质量专项检查增加附件
This commit is contained in:
@@ -128,6 +128,7 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
{
|
||||
State = BLL.Const.JointCheck_Compile;
|
||||
}
|
||||
this.hdAttachUrl.Text = this.JointCheckId;
|
||||
jointCheckDetails.Clear();
|
||||
BindData();
|
||||
}
|
||||
@@ -528,7 +529,16 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
}
|
||||
else
|
||||
{
|
||||
jointCheck.JointCheckId = SQLHelper.GetNewID(typeof(Model.Check_JointCheck)); ;
|
||||
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
|
||||
{
|
||||
jointCheck.JointCheckId = this.hdAttachUrl.Text;
|
||||
}
|
||||
else
|
||||
{
|
||||
jointCheck.JointCheckId = SQLHelper.GetNewID(typeof(Model.Check_JointCheck));
|
||||
this.hdAttachUrl.Text = jointCheck.JointCheckId;
|
||||
}
|
||||
// jointCheck.JointCheckId = SQLHelper.GetNewID(typeof(Model.Check_JointCheck));
|
||||
jointCheck.CheckMan = CurrUser.UserId;
|
||||
JointCheckService.AddJointCheck(jointCheck);
|
||||
if (saveType == "submit")
|
||||
@@ -825,5 +835,21 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 附件上传
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttach_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.hdAttachUrl.Text)) //新增记录
|
||||
{
|
||||
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Check_JointCheck));
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/JointCheck&menuId={1}&edit=1", this.hdAttachUrl.Text, BLL.Const.JointCheckMenuId)));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user