diff --git a/SGGL/FineUIPro.Web/Transfer/PipingDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/PipingDataIn.aspx.cs index fd63a60a..feb1e395 100644 --- a/SGGL/FineUIPro.Web/Transfer/PipingDataIn.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/PipingDataIn.aspx.cs @@ -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))