20240430 修改附件上传条件
This commit is contained in:
@@ -169,7 +169,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
var ins = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null orderby x.UnitWorkCode select x;
|
||||
var cns = from x in Funs.DB.Base_CNProfessional select x;
|
||||
|
||||
for (int i = 0; i < ir; i++)
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
string row0 = pds.Rows[i][0].ToString().Trim();
|
||||
if (!string.IsNullOrEmpty(row0))
|
||||
@@ -244,6 +244,17 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "标志编号" + "," + "此项为必填项!" + "|";
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
int t = Convert.ToInt32(row10);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "标志编号" + "," + "[" + row10 + "]错误!" + "|";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
@@ -387,9 +398,9 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
var oldViewInfos = from x in Funs.DB.Comprehensive_SiteVisaManagement
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
select x;
|
||||
for (int i = 0; i < ir; i++)
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
var oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == pds.Rows[i][10].ToString().Trim()).FirstOrDefault();
|
||||
var oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == Funs.GetNewInt(pds.Rows[i][10].ToString().Trim())).FirstOrDefault();
|
||||
if (oldViewInfo == null)
|
||||
{
|
||||
Model.Comprehensive_SiteVisaManagement Ins = new Model.Comprehensive_SiteVisaManagement();
|
||||
@@ -416,7 +427,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
|
||||
Ins.SignMan = pds.Rows[i][7].ToString().Trim();
|
||||
Ins.AuditMan = pds.Rows[i][8].ToString().Trim();
|
||||
Ins.Remark = pds.Rows[i][9].ToString().Trim();
|
||||
Ins.RemarkCode = pds.Rows[i][10].ToString().Trim();
|
||||
Ins.RemarkCode = Funs.GetNewInt(pds.Rows[i][10].ToString().Trim());
|
||||
Ins.CompileMan = this.CurrUser.UserId;
|
||||
Ins.Status = BLL.Const.Comprehensive_Compile;
|
||||
Ins.VisaId = SQLHelper.GetNewID();
|
||||
|
||||
Reference in New Issue
Block a user