From a9f282b625e6cebb93c02946eb9a1d5bd699544b Mon Sep 17 00:00:00 2001 From: yxj <yxj@hz-kingdee.com> Date: 星期日, 28 四月 2024 16:44:28 +0800 Subject: [PATCH] 新增采购退料模块、生产退料模块扫描源单调用方法,上传生成单据调用方法 --- 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