修改焊接工艺评定
This commit is contained in:
@@ -225,6 +225,11 @@ namespace FineUIPro.Web.HJGL.WPQ
|
||||
Alert.ShowInTop("焊丝、焊条不能同时为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.rblIsAgree.SelectedValue == "false" && (this.drpPerson.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpPerson.SelectedValue)))
|
||||
{
|
||||
Alert.ShowInTop("请选择办理人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string id = SaveData(BLL.Const.BtnSubmit);
|
||||
ShowNotify("提交成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
@@ -352,7 +357,7 @@ namespace FineUIPro.Web.HJGL.WPQ
|
||||
{
|
||||
string newId = SQLHelper.GetNewID(typeof(Model.WPQ_WPQList));
|
||||
wpq.WPQId = newId;
|
||||
|
||||
wpq.CompileMan = this.CurrUser.PersonId;
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
if (this.drpPerson.SelectedValue == BLL.Const._Null)
|
||||
@@ -506,18 +511,14 @@ namespace FineUIPro.Web.HJGL.WPQ
|
||||
Model.WPQ_WPQList wpq = BLL.WPQListServiceService.GetWPQById(WPQId);
|
||||
if (wpq != null)
|
||||
{
|
||||
Model.WPQ_WPQListFlowOperate flowOperate = Funs.DB.WPQ_WPQListFlowOperate.FirstOrDefault(x => x.WPQId == WPQId && x.OperateName == "施工单位编制");
|
||||
if (flowOperate != null)
|
||||
Model.Person_Persons user = BLL.Person_PersonsService.GetPerson_PersonsById(wpq.CompileMan);
|
||||
if (user != null)
|
||||
{
|
||||
Model.Person_Persons user = BLL.Person_PersonsService.GetPerson_PersonsById(flowOperate.OperateManId);
|
||||
if (user != null)
|
||||
{
|
||||
ListItem[] list = new ListItem[1];
|
||||
list[0] = new ListItem(user.PersonName ?? "", user.PersonId.ToString());
|
||||
drpPerson.DataSource = list;
|
||||
drpPerson.DataBind();
|
||||
drpPerson.SelectedValue = user.PersonId;
|
||||
}
|
||||
ListItem[] list = new ListItem[1];
|
||||
list[0] = new ListItem(user.PersonName ?? "", user.PersonId.ToString());
|
||||
drpPerson.DataSource = list;
|
||||
drpPerson.DataBind();
|
||||
drpPerson.SelectedValue = user.PersonId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user