提交代码
This commit is contained in:
@@ -64,6 +64,20 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverRun/DriverRunPlan&menuId={1}", this.hdId.Text, BLL.Const.DriverRunPlanMenuId)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 附件上传
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachK_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
|
||||
{
|
||||
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.DriverRun_DriverRunPlan));
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverRun/DriverRunPlan&menuId={1}", this.hdId.Text+"K", BLL.Const.DriverRunPlanMenuId)));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 下载模板
|
||||
@@ -87,8 +101,8 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
||||
if (e.EventArgument == "Confirm_OK")
|
||||
{
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string uploadfilepath = rootPath + "File\\Excel\\DataIn\\CivilStructure导入模板.xls";
|
||||
string filePath = "File\\Excel\\DataIn\\CivilStructure导入模板.xls";
|
||||
string uploadfilepath = rootPath + "File\\Excel\\TestRun\\保运考勤表模板.xls";
|
||||
string filePath = "File\\Excel\\TestRun\\保运考勤表模板.xls";
|
||||
string fileName = Path.GetFileName(filePath);
|
||||
FileInfo info = new FileInfo(uploadfilepath);
|
||||
long fileSize = info.Length;
|
||||
|
||||
Reference in New Issue
Block a user