Esempio n. 1
0
        public ActionResult GetView2Update(decimal pID, string pAppCode)
        {
            var sysApplication        = new SysApplicationBL();
            SysAppFixChargeInfo pInfo = sysApplication.SysAppFixChargeById(pID, pAppCode);

            return(PartialView("~/Areas/QuanLyPhi/Views/QLPhi/_PartialViewFeeFixUpdate.cshtml", pInfo));
        }
Esempio n. 2
0
        public ActionResult SearchDSPhi(string pAppCode)
        {
            try
            {
                var lstFeeResultSearch = new List <SysAppFixChargeInfo>();

                var sysApplication = new SysApplicationBL();
                List <SysAppFixChargeInfo> lstFee = sysApplication.Sys_App_Fix_Charge_GetAll();
                if (pAppCode != "ALL")
                {
                    foreach (var item in lstFee)
                    {
                        if (item.Appcode.ToUpper() == pAppCode.ToUpper())
                        {
                            lstFeeResultSearch.Add(item);
                        }
                    }
                }
                else
                {
                    lstFeeResultSearch = lstFee;
                }
                ViewBag.listData = lstFeeResultSearch;
                return(PartialView("~/Areas/QuanLyPhi/Views/QLPhi/_PartialTableDanhSachPhi.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(PartialView("~/Areas/QuanLyPhi/Views/QLPhi/_PartialTableDanhSachPhi.cshtml"));
            }
        }
Esempio n. 3
0
 public static void LoadSys_App_Fee_Fix()
 {
     try
     {
         c_dic_FeeByApp_Fix = new Dictionary <string, SysAppFixChargeInfo>();
         SysApplicationBL           _SysApplicationBL = new SysApplicationBL();
         List <SysAppFixChargeInfo> _lst1             = _SysApplicationBL.Sys_App_Fix_Charge_GetAll();
         foreach (SysAppFixChargeInfo item in _lst1)
         {
             c_dic_FeeByApp_Fix[item.Appcode + "_" + item.Fee_Id.ToString()] = item;
         }
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
     }
 }
Esempio n. 4
0
 public ActionResult ExecuteUpdate(SysAppFixChargeInfo pInfo)
 {
     try
     {
         if (pInfo == null)
         {
             return(Json(new { success = -3 }));
         }
         var     sysApplication = new SysApplicationBL();
         decimal presonse       = sysApplication.SysAppFixChargeUpdate(pInfo);
         BussinessFacade.ModuleMemoryData.MemoryData.LoadSys_App_Fee_Fix();
         return(Json(new { success = presonse }));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(Json(new { success = -3 }));
     }
 }
Esempio n. 5
0
 public ActionResult GetListDSPhi()
 {
     try
     {
         if (SessionData.CurrentUser == null)
         {
             return(Redirect("/"));
         }
         var sysApplication = new SysApplicationBL();
         List <SysAppFixChargeInfo> lstFee = sysApplication.Sys_App_Fix_Charge_GetAll();
         ViewBag.listData = lstFee;
         return(View("~/Areas/QuanLyPhi/Views/QLPhi/GetListDSPhi.cshtml"));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(View());
     }
 }
Esempio n. 6
0
        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);
            }
        }