20240428 修改资料收发文登记记录导入导出

This commit is contained in:
2024-04-28 17:40:20 +08:00
parent 0aefcb309d
commit fc56b1f6c2
10 changed files with 63 additions and 29 deletions
@@ -172,7 +172,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x;
for (int i = 0; i < ir; i++)
for (int i = 2; i < ir; i++)
{
string row0 = pds.Rows[i][0].ToString();
if (string.IsNullOrEmpty(row0))
@@ -263,7 +263,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
string row9 = pds.Rows[i][9].ToString();
if (string.IsNullOrEmpty(row9))
{
result += (i + 2).ToString() + "," + "发出日期" + "," + "此项为必填项!" + "|";
result += (i + 2).ToString() + "," + "上报日期" + "," + "此项为必填项!" + "|";
}
else
{
@@ -273,7 +273,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
}
catch (Exception)
{
result += (i + 2).ToString() + "," + "发出日期" + "," + "格式错误!" + "|";
result += (i + 2).ToString() + "," + "上报日期" + "," + "格式错误!" + "|";
}
}
@@ -286,7 +286,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var unit = units.Where(x => x.UnitName == u.Trim()).FirstOrDefault();
if (unit == null)
{
result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + u.Trim() + "]不存在!" + "|";
result += (i + 2).ToString() + "," + "上报接收单位" + "," + "[" + u.Trim() + "]不存在!" + "|";
}
}
}
@@ -511,7 +511,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x;
for (int i = 0; i < ir; i++)
for (int i = 2; i < ir; i++)
{
Model.Comprehensive_DataReceivingDoc oldViewInfo = new Model.Comprehensive_DataReceivingDoc();
var cn = cns.Where(y => y.ProfessionalName == pds.Rows[i][4].ToString().Trim()).FirstOrDefault();