20240422 综合管理导入

This commit is contained in:
2024-04-22 11:19:05 +08:00
parent 4e9dddbaed
commit 5d9374cdd7
22 changed files with 765 additions and 969 deletions
@@ -126,7 +126,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close();
oleDBConn.Dispose();
AddDatasetToSQL(ds.Tables[0], 13);
AddDatasetToSQL(ds.Tables[0], 14);
hdCheckResult.Text = "1";
}
catch (Exception exc)
@@ -298,6 +298,12 @@ namespace FineUIPro.Web.CQMS.Comprehensive
result += (i + 2).ToString() + "," + "完成日期" + "," + "[" + row12 + "]错误!" + "|";
}
}
string row13 = pds.Rows[i][13].ToString();
if (string.IsNullOrEmpty(row13))
{
result += (i + 2).ToString() + "," + "标志编号" + "," + "此项为必填项!" + "|";
}
}
if (!string.IsNullOrEmpty(result))
{
@@ -403,7 +409,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close();
oleDBConn.Dispose();
AddDatasetToSQL2(ds.Tables[0], 13);
AddDatasetToSQL2(ds.Tables[0], 14);
}
catch (Exception ex)
{
@@ -453,7 +459,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
string row0 = pds.Rows[i][0].ToString().Trim();
string row1 = pds.Rows[i][1].ToString().Trim();
var cn = cns.Where(y => y.ProfessionalName == row1).FirstOrDefault();
oldViewInfo = oldViewInfos.Where(x => x.NCRCode == pds.Rows[i][2].ToString().Trim()
oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == pds.Rows[i][13].ToString().Trim()
).FirstOrDefault();
if (oldViewInfo == null)
{
@@ -489,6 +495,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{
des.CompleteDate = Convert.ToDateTime(pds.Rows[i][12].ToString().Trim());
}
des.RemarkCode = pds.Rows[i][13].ToString().Trim();
BLL.NCRManagementService.AddNCRManagement(des);
}
}