20240430 质量综合管理导入导出
This commit is contained in:
@@ -64,6 +64,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.txtAuditMan.Text = generalPlanApproval.AuditMan;
|
||||
this.txtApprovalMan.Text = generalPlanApproval.ApprovalMan;
|
||||
this.txtImplementationDeviation.Text = generalPlanApproval.ImplementationDeviation;
|
||||
this.txtRemarkCode.Text = generalPlanApproval.RemarkCode.HasValue ? generalPlanApproval.RemarkCode.ToString() : "";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -90,6 +91,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var q = Funs.DB.Comprehensive_GeneralPlanApproval.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.GeneralPlanApprovalId != this.GeneralPlanApprovalId || (this.GeneralPlanApprovalId == null && x.GeneralPlanApprovalId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Comprehensive_GeneralPlanApproval generalPlanApproval = new Model.Comprehensive_GeneralPlanApproval();
|
||||
generalPlanApproval.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
@@ -120,6 +127,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
ids = ids.Substring(0, ids.LastIndexOf(","));
|
||||
}
|
||||
generalPlanApproval.UnitWorkId = ids;
|
||||
generalPlanApproval.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
|
||||
if (string.IsNullOrEmpty(this.GeneralPlanApprovalId))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
|
||||
|
||||
Reference in New Issue
Block a user