// Country public static void ReloadCountry() { try { AllCodeBL allCodeBL = new AllCodeBL(); c_lst_Country = allCodeBL.Country_GetAll(); c_lst_Nation_Represent = allCodeBL.Nation_Represent_GetAll(); } catch (Exception ex) { Logger.LogException(ex); } }
public static void LoadAllMemoryData() { try { // dangtq thêm thông tin fee tĩnh theo đơn LoadSys_App_Fee_Fix(); // DANGTQ load fee cho seach LoadSys_Search_Fee_Fix(); LoadTemplate(); AppDocumentBL _AppDocumentBL = new AppDocumentBL(); c_lstSys_Document = _AppDocumentBL.Sys_Document_GetAll(); #region Allcode c_hs_Allcode.Clear(); AllCodeBL _AllCodeBL = new AllCodeBL(); List <AllCodeInfo> _lst_al = _AllCodeBL.AllCode_Gets_List(); if (_lst_al.Count > 0) { foreach (AllCodeInfo item in _lst_al) { if (c_hs_Allcode.ContainsKey(item.CdName + "|" + item.CdType) == false) { List <AllCodeInfo> _lst = new List <AllCodeInfo> { item }; c_hs_Allcode[item.CdName + "|" + item.CdType] = _lst; } else { List <AllCodeInfo> _lst = (List <AllCodeInfo>)c_hs_Allcode[item.CdName + "|" + item.CdType]; _lst.Add(item); } } } AllCodeBL.LoadAllCodeToMemory(); #endregion List <Injection_Info> _lst_injection = AllCodeBL.Get_All_Injection(); foreach (var item in _lst_injection) { Common.c_dic_Injection[item.Key.ToUpper()] = item.Key; } ReloadGroup(); ReloadCountry(); MenuBL.LoadAllMenuToMemory(); FunctionBL.LoadFunctionCollectionsToMemory(); SysApplicationBL.SysApplicationAllOnMem(); //Load lên mem clstAppClass = AppClassInfoBL.AppClassGetOnMem(); foreach (var item in clstAppClass) { CustomerSuggestInfo pinfo = new CustomerSuggestInfo(); pinfo.label = item.Name_Vi; pinfo.name = item.Name_Vi; pinfo.label_en = item.Name_En; pinfo.name_en = item.Name_En; if (!string.IsNullOrEmpty(item.Code)) { if (item.Code.Length > 2) { //pinfo.value = item.Code.Substring(0, 2); pinfo.value = item.Group_Code; } else { pinfo.value = item.Code; } } clstAppClassSuggest.Add(pinfo); } //lấy toàn bộ thông tin đơn lên mem, đang đọc toàn bộ cả anh cả việt. GetCacheCustomerInfo(); GetCache_represent(); GetCacheDDSHCN(); // load thông tin page Load_Sys_page(); Logger.LogInfo("Load memory sucess MemoryData.c_dic_FeeByApp_Fix count " + MemoryData.c_dic_FeeByApp_Fix.Count); } catch (Exception ex) { Logger.LogException(ex); } }