20240430 质量综合管理导入导出
This commit is contained in:
@@ -63,7 +63,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
this.txtReportTime.Text = string.Format("{0:yyyy-MM-dd}", pressurePipe.ReportTime);
|
||||
}
|
||||
|
||||
this.txtRemarkCode.Text = pressurePipe.RemarkCode.HasValue ? pressurePipe.RemarkCode.ToString() : "";
|
||||
var currApprove = PressurePipeApproveService.GetCurrentApprove(pressurePipe.PressurePipeId);
|
||||
if (currApprove != null)
|
||||
{
|
||||
@@ -119,6 +119,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.txtPressurePipeNumber.Readonly = true;
|
||||
this.drpUnit.Readonly = true;
|
||||
this.txtReportTime.Readonly = true;
|
||||
this.txtRemarkCode.Readonly = true;
|
||||
|
||||
this.drpAudit.Readonly = true;
|
||||
|
||||
@@ -163,6 +164,13 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Alert.ShowInTop("请选择所属单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var q = Funs.DB.Comprehensive_PressurePipe.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.PressurePipeId != this.PressurePipeId || (this.PressurePipeId == null && x.PressurePipeId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
Model.Comprehensive_PressurePipe pressurePipe = new Model.Comprehensive_PressurePipe();
|
||||
pressurePipe.Projctid = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
|
||||
@@ -201,7 +209,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
pressurePipe.ReportTime = Convert.ToDateTime(this.txtReportTime.Text);
|
||||
}
|
||||
|
||||
pressurePipe.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
|
||||
if (string.IsNullOrEmpty(this.PressurePipeId))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
|
||||
@@ -242,6 +250,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Alert.ShowInTop("请选择所属单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var q = Funs.DB.Comprehensive_PressurePipe.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.PressurePipeId != this.PressurePipeId || (this.PressurePipeId == null && x.PressurePipeId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Comprehensive_PressurePipe pressurePipe = new Model.Comprehensive_PressurePipe();
|
||||
pressurePipe.Projctid = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
|
||||
@@ -280,6 +294,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
pressurePipe.ReportTime = Convert.ToDateTime(this.txtReportTime.Text);
|
||||
}
|
||||
pressurePipe.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
|
||||
if (string.IsNullOrEmpty(this.PressurePipeId))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
|
||||
|
||||
Reference in New Issue
Block a user