From 51c8ecb7a3e5c8d681c7498c7a2e5ee1f108b90d Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期五, 26 四月 2024 13:41:57 +0800 Subject: [PATCH] 1 --- WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs index 15577f4..a989769 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs @@ -1023,14 +1023,21 @@ } ds = oCN.RunProcReturn("select ManagerFlag from gy_czygl where czymc='" + user.Trim() + "'", "gy_czygl"); - if (!(bool)ds.Tables[0].Rows[0]["ManagerFlag"]) //鏄惁绠$悊鍛� + string sErr = ""; + oSystemParameter.ShowBill(ref sErr); + if (oSystemParameter.omodel.WMS_CampanyName == "涔斾竴") { - //涓嶆槸绠$悊鍛� - sWhere += " and 鍒跺崟浜� = '" + user + "'"; + } + else + { + if (!(bool)ds.Tables[0].Rows[0]["ManagerFlag"]) //鏄惁绠$悊鍛� + { + //涓嶆槸绠$悊鍛� + sWhere += " and 鍒跺崟浜� = '" + user + "'"; + } } - - string sql = "select * from h_v_QC_FirstPieceCheckBillMainList where 1=1 " + sWhere + " order by 鏃ユ湡 "; + string sql = "select * from h_v_QC_FirstPieceCheckBillMainList where 1=1 " + sWhere ; ds = oCN.RunProcReturn(sql, "h_v_QC_FirstPieceCheckBillMainList"); -- Gitblit v1.9.1