feat(hjgl)焊前准备,日报管理增加附件
This commit is contained in:
@@ -129,5 +129,22 @@ namespace FineUIPro.Web.HJGL.PreWeld
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
string weldJointId = drpWeldJoint.SelectedValue;
|
||||
var check = string.IsNullOrEmpty(weldJointId)
|
||||
? null
|
||||
: Funs.DB.HJGL_PreWeldFitupCheck.FirstOrDefault(x => x.WeldJointId == weldJointId);
|
||||
if (check == null)
|
||||
{
|
||||
Alert.ShowInTop("请先保存组对抽检记录后再上传附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
string.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/HJGL/PreWeld/FitupCheck&menuId={1}&edit=1&type=-1",
|
||||
check.FitupCheckId, Const.HJGL_PreWeldFitupCheckMenuId)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user