修改质量导入

This commit is contained in:
2023-06-28 09:42:41 +08:00
parent 291d71f92c
commit 2e4e6d7403
4 changed files with 21 additions and 538 deletions
@@ -486,13 +486,13 @@ namespace FineUIPro.Web.CQMS.Comprehensive
Ins.InspectionDate = Convert.ToDateTime(pds.Rows[i][9].ToString().Trim());
}
Ins.IsOnSite = pds.Rows[i][10].ToString().Trim() == "是" ? true : false;
if (!string.IsNullOrEmpty(pds.Rows[i][10].ToString().Trim()))
{
Ins.UnitsCount = Convert.ToInt32(pds.Rows[i][10].ToString().Trim());
}
if (!string.IsNullOrEmpty(pds.Rows[i][11].ToString().Trim()))
{
Ins.LeaveDate = Convert.ToDateTime(pds.Rows[i][11].ToString().Trim());
Ins.UnitsCount = Convert.ToInt32(pds.Rows[i][11].ToString().Trim());
}
if (!string.IsNullOrEmpty(pds.Rows[i][12].ToString().Trim()))
{
Ins.LeaveDate = Convert.ToDateTime(pds.Rows[i][12].ToString().Trim());
}
Ins.InspectionMachineId = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionMachine));