移交管理,管道导入补充总达因数、达因数数据格式判断

This commit is contained in:
夏菊 2025-01-09 16:29:50 +08:00
parent d1d6353e0a
commit 766b96b2ec
1 changed files with 25 additions and 0 deletions

View File

@ -169,6 +169,31 @@ namespace FineUIPro.Web.Transfer
{
result += (i + 3).ToString() + "," + "Test Package No" + "," + "不能为空!" + "|";
}
string obj1 = pds.Rows[i][5].ToString();
string obj2 = pds.Rows[i][6].ToString();
string obj3 = pds.Rows[i][7].ToString();
if (!string.IsNullOrEmpty(obj1))
{
try
{
Decimal date = Convert.ToDecimal(obj1.Trim());
}
catch (Exception)
{
result += (i + 3).ToString() + "," + "总达因数" + "," + "请填写数值!" + "|";
}
}
if (!string.IsNullOrEmpty(obj2))
{
try
{
Decimal date = Convert.ToDecimal(obj2.Trim());
}
catch (Exception)
{
result += (i + 3).ToString() + "," + "完成达因数" + "," + "请填写数值!" + "|";
}
}
}
if (!string.IsNullOrEmpty(result))