20240430 修改附件上传条件
This commit is contained in:
@@ -75,6 +75,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.txtSignMan.Text = siteVisaManagement.SignMan;
|
||||
this.txtAuditMan.Text = siteVisaManagement.AuditMan;
|
||||
this.txtRemark.Text = siteVisaManagement.Remark;
|
||||
this.txtRemarkCode.Text = siteVisaManagement.RemarkCode.HasValue ? siteVisaManagement.RemarkCode.ToString() : "";
|
||||
|
||||
|
||||
var currApprove = SiteVisaManagementApproveService.GetCurrentApprove(siteVisaManagement.VisaId);
|
||||
@@ -132,7 +133,8 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
this.txtVisaDate.Readonly = true;
|
||||
this.drpUnitWorkId.Readonly = true;
|
||||
this.drpProcessingState.Readonly = true;
|
||||
this.drpAudit.Readonly = true;
|
||||
this.drpAudit.Readonly = true;
|
||||
this.txtRemarkCode.Readonly = true;
|
||||
//this.btnAttach.Enabled = false;
|
||||
|
||||
}
|
||||
@@ -172,6 +174,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var q = Funs.DB.Comprehensive_SiteVisaManagement.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.VisaId != this.VisaId || (this.VisaId == null && x.VisaId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Comprehensive_SiteVisaManagement siteVisaManagement = new Model.Comprehensive_SiteVisaManagement();
|
||||
siteVisaManagement.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
|
||||
@@ -200,6 +208,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
siteVisaManagement.SignMan = this.txtSignMan.Text.Trim();
|
||||
siteVisaManagement.AuditMan = this.txtAuditMan.Text.Trim();
|
||||
siteVisaManagement.Remark = this.txtRemark.Text.Trim();
|
||||
siteVisaManagement.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
|
||||
if (string.IsNullOrEmpty(this.VisaId))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
|
||||
@@ -238,6 +247,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var q = Funs.DB.Comprehensive_SiteVisaManagement.FirstOrDefault(x => x.RemarkCode == Funs.GetNewInt(this.txtRemarkCode.Text.Trim()) && (x.VisaId != this.VisaId || (this.VisaId == null && x.VisaId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
Alert.ShowInTop("标志编号已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Comprehensive_SiteVisaManagement siteVisaManagement = new Model.Comprehensive_SiteVisaManagement();
|
||||
siteVisaManagement.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue))
|
||||
@@ -266,6 +281,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
siteVisaManagement.SignMan = this.txtSignMan.Text.Trim();
|
||||
siteVisaManagement.AuditMan = this.txtAuditMan.Text.Trim();
|
||||
siteVisaManagement.Remark = this.txtRemark.Text.Trim();
|
||||
siteVisaManagement.RemarkCode = Funs.GetNewInt(this.txtRemarkCode.Text.Trim());
|
||||
if (string.IsNullOrEmpty(this.VisaId))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdAttachUrl.Text))
|
||||
@@ -405,15 +421,15 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
this.hdAttachUrl.Text = SQLHelper.GetNewID(typeof(Model.Comprehensive_SiteVisaManagement));
|
||||
}
|
||||
Model.Comprehensive_SiteVisaManagement siteVisaManagement = BLL.SiteVisaManagementService.GetSiteVisaManagementById(this.VisaId);
|
||||
if (siteVisaManagement.Status == BLL.Const.Comprehensive_Complete)
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/siteVisaManagement&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SiteVisaManagementMenuId)));
|
||||
}
|
||||
else
|
||||
{
|
||||
//Model.Comprehensive_SiteVisaManagement siteVisaManagement = BLL.SiteVisaManagementService.GetSiteVisaManagementById(this.VisaId);
|
||||
//if (siteVisaManagement.Status == BLL.Const.Comprehensive_Complete)
|
||||
//{
|
||||
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CQMS/siteVisaManagement&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SiteVisaManagementMenuId)));
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/CQMS/siteVisaManagement&menuId={1}", this.hdAttachUrl.Text, BLL.Const.SiteVisaManagementMenuId)));
|
||||
}
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user