From 766b96b2ec0e4357126846329e0768f57e960467 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Thu, 9 Jan 2025 16:29:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E4=BA=A4=E7=AE=A1=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E7=AE=A1=E9=81=93=E5=AF=BC=E5=85=A5=E8=A1=A5=E5=85=85=E6=80=BB?= =?UTF-8?q?=E8=BE=BE=E5=9B=A0=E6=95=B0=E3=80=81=E8=BE=BE=E5=9B=A0=E6=95=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Transfer/PipingDataIn.aspx.cs | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) 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))