20240428 修改资料收发文登记记录导入导出
This commit is contained in:
@@ -72,6 +72,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.txtIssueCopies.Readonly = true;
|
||||
this.txtIssueUnitReceiver.Readonly = true;
|
||||
this.rblIsOnFile.Readonly = true;
|
||||
this.txtRemarkCode.Readonly = true;
|
||||
//this.drpAudit.Readonly = true;
|
||||
//this.btnAttach.Enabled = false;
|
||||
}
|
||||
@@ -152,6 +153,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.rblIsOnFile.SelectedValue = "false";
|
||||
}
|
||||
}
|
||||
this.txtRemarkCode.Text = dataReceivingDoc.RemarkCode;
|
||||
|
||||
//var currApprove = DataReceivingDocApproveService.GetCurrentApprove(dataReceivingDoc.DataReceivingDocId);
|
||||
//if (currApprove != null)
|
||||
@@ -210,6 +212,13 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var q = Funs.DB.Comprehensive_DataReceivingDoc.FirstOrDefault(x => x.RemarkCode == this.txtRemarkCode.Text.Trim() && (x.DataReceivingDocId != this.DataReceivingDocId || (this.DataReceivingDocId == null && x.DataReceivingDocId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
Model.Comprehensive_DataReceivingDoc dataReceivingDoc = new Model.Comprehensive_DataReceivingDoc();
|
||||
dataReceivingDoc.ProjectId = this.CurrUser.LoginProjectId;
|
||||
dataReceivingDoc.FileCode = this.txtFileCode.Text.Trim();
|
||||
@@ -265,6 +274,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
dataReceivingDoc.IsOnFile = Convert.ToBoolean(this.rblIsOnFile.SelectedValue);
|
||||
}
|
||||
dataReceivingDoc.RemarkCode = this.txtRemarkCode.Text.Trim();
|
||||
//if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
|
||||
//{
|
||||
// dataReceivingDoc.AuditMan = drpAudit.SelectedValue;
|
||||
|
||||
Reference in New Issue
Block a user