From 24d75428cb7269c89ddb97c2a9573df6e597aaef Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期三, 29 九月 2021 17:36:14 +0800 Subject: [PATCH] 增加工种模块+增加工资类型模块 --- DAL/质检管理/ClsQC_NoPassProdCheckBill.cs | 52 ++++++++++++++++++++++++++-------------------------- 1 files changed, 26 insertions(+), 26 deletions(-) diff --git "a/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_NoPassProdCheckBill.cs" "b/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_NoPassProdCheckBill.cs" index 8a00be1..eb8d2e8 100644 --- "a/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_NoPassProdCheckBill.cs" +++ "b/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_NoPassProdCheckBill.cs" @@ -172,19 +172,19 @@ //鏍规嵁鍐呯爜 鍥炲~瀵瑰簲娴佽浆鍗� 涓嶈壇鍏宠仈鏁伴噺 oCn.RunProc("exec h_p_QC_NoPassProdCheckBillToProcExch " + omodel.HInterID.ToString() + ",1"); ////////////////////////////// - //DataSet Ds; - //Ds = oCn.RunProcReturn("exec h_p_QC_NoPassProdCheckBillQtyCtrl " + omodel.HInterID.ToString(), "h_p_QC_NoPassProdCheckBillQtyCtrl"); - //if (Ds == null || Ds.Tables[0].Rows.Count == 0) - //{ - // oCn.RollBack(); - // return false; - //} - //if (DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBack"]) == "2") - //{ - // sReturn = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackRemark"]); - // oCn.RollBack(); - // return false; - //} + DataSet Ds; + Ds = oCn.RunProcReturn("exec h_p_QC_NoPassProdCheckBill_QtyCtrl " + omodel.HInterID.ToString(), "h_p_QC_NoPassProdCheckBill_QtyCtrl"); + if (Ds == null || Ds.Tables[0].Rows.Count == 0) + { + oCn.RollBack(); + return false; + } + if (DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBack"]) == "2") + { + sReturn = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackRemark"]); + oCn.RollBack(); + return false; + } //////////////////////// @@ -275,19 +275,19 @@ oCn.RunProc("exec h_p_QC_NoPassProdCheckBillToProcExch " + omodel.HInterID.ToString() + ",1"); // ////////////////////////////// - //DataSet Ds; - //Ds = oCn.RunProcReturn("exec h_p_QC_NoPassProdCheckBillQtyCtrl " + omodel.HInterID.ToString(), "h_p_QC_NoPassProdCheckBillQtyCtrl"); - //if (Ds == null || Ds.Tables[0].Rows.Count == 0) - //{ - // oCn.RollBack(); - // return false; - //} - //if (DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBack"]) == "2") - //{ - // sReturn = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackRemark"]); - // oCn.RollBack(); - // return false; - //} + DataSet Ds; + Ds = oCn.RunProcReturn("exec h_p_QC_NoPassProdCheckBill_QtyCtrl " + omodel.HInterID.ToString(), "h_p_QC_NoPassProdCheckBill_QtyCtrl"); + if (Ds == null || Ds.Tables[0].Rows.Count == 0) + { + oCn.RollBack(); + return false; + } + if (DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBack"]) == "2") + { + sReturn = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackRemark"]); + oCn.RollBack(); + return false; + } //////////////////////// // -- Gitblit v1.9.1