20240430 质量综合管理导入导出
This commit is contained in:
@@ -61,6 +61,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.txtAuditMan.Text = model.AuditMan;
|
||||
this.txtApprovalMan.Text = model.ApprovalMan;
|
||||
this.txtRemarks.Text = model.Remarks;
|
||||
this.txtRemarkCode.Text = model.RemarkCode.HasValue ? model.RemarkCode.ToString() : "";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -104,6 +105,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var q = Funs.DB.Inspection_Test_Plan.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.Id != this.Id || (this.Id == null && x.Id != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var majorPlanApproval = new Model.Inspection_Test_Plan();
|
||||
majorPlanApproval.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
@@ -124,7 +131,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
majorPlanApproval.AuditMan = this.txtAuditMan.Text.Trim();
|
||||
majorPlanApproval.ApprovalMan = this.txtApprovalMan.Text.Trim();
|
||||
majorPlanApproval.Remarks = this.txtRemarks.Text.Trim();
|
||||
|
||||
majorPlanApproval.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
|
||||
|
||||
if (string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user