20240430 质量综合管理导入导出
This commit is contained in:
@@ -60,7 +60,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
this.drpUnitWorkId.SelectedValueArray = pressurePipe.UnitWorkId.Split(',');
|
||||
}
|
||||
|
||||
this.txtRemarkCode.Text = pressurePipe.RemarkCode.HasValue ? pressurePipe.RemarkCode.ToString() : "";
|
||||
var currApprove = QualityAccidentApproveService.GetCurrentApprove(pressurePipe.QualityAccidentId);
|
||||
if (currApprove != null)
|
||||
{
|
||||
@@ -114,7 +114,8 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.txtTime.Readonly = true;
|
||||
this.drpUnit.Readonly = true;
|
||||
this.drpUnitWorkId.Readonly = true;
|
||||
this.drpAudit.Readonly = true;
|
||||
this.drpAudit.Readonly = true;
|
||||
this.txtRemarkCode.Readonly = true;
|
||||
//this.btnAttach.Enabled = false;
|
||||
|
||||
}
|
||||
@@ -151,6 +152,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
if (drpUnit.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
var q = Funs.DB.Comprehensive_QualityAccident.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.QualityAccidentId != this.QualityAccidentId || (this.QualityAccidentId == null && x.QualityAccidentId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Comprehensive_QualityAccident pressurePipe = new Model.Comprehensive_QualityAccident();
|
||||
pressurePipe.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
|
||||
@@ -182,6 +189,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
ids = ids.Substring(0, ids.LastIndexOf(","));
|
||||
}
|
||||
pressurePipe.UnitWorkId = ids;
|
||||
pressurePipe.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
|
||||
if (string.IsNullOrEmpty(this.QualityAccidentId))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
|
||||
@@ -224,6 +232,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
if (drpUnit.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
var q = Funs.DB.Comprehensive_QualityAccident.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.QualityAccidentId != this.QualityAccidentId || (this.QualityAccidentId == null && x.QualityAccidentId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Comprehensive_QualityAccident pressurePipe = new Model.Comprehensive_QualityAccident();
|
||||
pressurePipe.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
|
||||
@@ -255,6 +269,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
ids = ids.Substring(0, ids.LastIndexOf(","));
|
||||
}
|
||||
pressurePipe.UnitWorkId = ids;
|
||||
pressurePipe.RemarkCode =Funs.GetNewInt( this.txtRemarkCode.Text.Trim());
|
||||
if (string.IsNullOrEmpty(this.QualityAccidentId))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
|
||||
|
||||
Reference in New Issue
Block a user