20240429 修改综合管理导入导出
This commit is contained in:
@@ -64,6 +64,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.drpUnitWorkIds.SelectedValueArray = con.UnitWorkId.Split(',');
|
||||
}
|
||||
this.txtAttendMan.Text = con.AttendMan;
|
||||
this.txtRemarkCode.Text = con.RemarkCode.HasValue ? con.RemarkCode.ToString() : "";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -91,6 +92,14 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Alert.ShowInTop("请选择交底负责单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
var q = Funs.DB.Comprehensive_ConTechnologyDisclosure.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.ConTechnologyDisclosureId != this.ConTechnologyDisclosureId || (this.ConTechnologyDisclosureId == null && x.ConTechnologyDisclosureId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
Model.Comprehensive_ConTechnologyDisclosure newCon = new Model.Comprehensive_ConTechnologyDisclosure();
|
||||
newCon.ProjectId = this.CurrUser.LoginProjectId;
|
||||
newCon.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
|
||||
@@ -112,6 +121,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
}
|
||||
newCon.UnitWorkId = ids;
|
||||
newCon.AttendMan = this.txtAttendMan.Text.Trim();
|
||||
newCon.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
|
||||
|
||||
if (string.IsNullOrEmpty(this.ConTechnologyDisclosureId))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user