From 9f1588051e7d7b8153bb3f1c5d87311a9d6cb67c Mon Sep 17 00:00:00 2001 From: berlin-tzen Date: Mon, 20 Feb 2023 14:11:57 +0800 Subject: [PATCH] =?UTF-8?q?[WHAT]=20=E4=BE=9B=E6=87=89=E5=95=86=E4=BB=A5ID?= =?UTF-8?q?=E6=9F=A5=E8=A9=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ShowEasy/SupplierMaintain_QryService.cs | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/SupplierMaintain_QryService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/SupplierMaintain_QryService.cs index 824ac87..bf98f02 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/SupplierMaintain_QryService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/SupplierMaintain_QryService.cs @@ -287,5 +287,50 @@ namespace EasyBL.WEBAPP.ShowEasy } #endregion 參數類別(多筆) + + public Dictionary FindAllByIDsAsDictionary(string sLanguageID) { + + Dictionary rsSupplierDic = new Dictionary(); + + string sMsg = null; + var db = SugarBase.GetIntance(); + try + { + do + { + + if (string.IsNullOrEmpty(sLanguageID)) + { + sLanguageID = WebAppGlobalConstWord.DEFAULT_LANGUAGE; + } + + var rsSupplierList = db.Queryable() + .Where(t1 => t1.Effective == "Y") + .Where(t1 => t1.LangType == sLanguageID) + .Select(t1 => new View_SCM_Supplier { + + SupplierID = SqlFunc.GetSelfAndAutoFill(t1.SupplierID) + + }) + .ToList(); + + foreach (var Supplier in rsSupplierList) { + rsSupplierDic[Supplier.SupplierID] = Supplier; + } + + return rsSupplierDic; + + } while (false); + } + catch (Exception ex) + { + sMsg = Util.GetLastExceptionMsg(ex); + } + + return rsSupplierDic; + + } + + } } \ No newline at end of file