From 8c59c2302ab3c82ee94f7af51d1cfad2a70b1ec6 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期四, 02 六月 2022 13:58:03 +0800 Subject: [PATCH] 工序流转卡 功能更新 --- WebAPI/Controllers/WebAPIController.cs | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/WebAPI/Controllers/WebAPIController.cs b/WebAPI/Controllers/WebAPIController.cs index 95a5aeb..bdd2421 100644 --- a/WebAPI/Controllers/WebAPIController.cs +++ b/WebAPI/Controllers/WebAPIController.cs @@ -832,23 +832,26 @@ } } + /// <summary> /// 鑾峰彇渚涘簲鍟嗗垪琛� /// </summary> /// <returns></returns> [Route("Web/GetSupplierList_Json")] [HttpGet] - public object GetSupplierList_Json(string Supplier) + public object GetSupplierList_Json(string Supplier, Int64 HOrgID) { - sWhere = " Where HStopFlag=0 and HEndFlag=1"; + sWhere = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID =" + HOrgID + ""; //sWhere = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + DBUtility.ClsPub.HORGANIZATIONSID.ToString(); if (Supplier != "") { - sWhere = sWhere + " and ( HNumber like '%" + Supplier + "%' or HName like '%" + Supplier + "%' ) "; + sWhere = sWhere + " and ( HNumber like '%" + Supplier + "%' or HName like '%" + Supplier + "%' or HUSEORGID like '%" + Supplier + "%' ) "; } try { - ds = webserver.GetSupplierList(sWhere, ref DBUtility.ClsPub.sErrInfo); + WebS.WebService1 oWeb = new WebS.WebService1(); + ds = oWeb.GetSupplierList(sWhere, ref DBUtility.ClsPub.sErrInfo); + //ds = webserver.GetSupplierList(sWhere, ref DBUtility.ClsPub.sErrInfo); if (ds == null || ds.Tables[0].Rows.Count <= 0) { objjson.code = "0"; -- Gitblit v1.9.1