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