public ActionResult Search_Fee_Display() { try { if (SessionData.CurrentUser == null) { return(Redirect("/")); } decimal _total_record = 0; Sys_Search_Fix_BL _obj_bl = new Sys_Search_Fix_BL(); string _keySearch = "ALL" + "|" + "ALL" + "|" + "ALL"; List <Sys_Search_Fix_Info> _lst = _obj_bl.Sys_Search_Fix_Search(_keySearch, ref _total_record); string htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Sys_Search_Fix_Info>((int)_total_record, 1, "phí"); ViewBag.Obj = _lst; ViewBag.Paging = htmlPaging; ViewBag.SumRecord = _total_record; return(View("~/Areas/Manager/Views/Search_Fee/Search_Fee_Display.cshtml")); } catch (Exception ex) { Logger.LogException(ex); return(View()); } }
public ActionResult GetView2View(decimal id) { try { Sys_Search_Fix_BL _obj_bl = new Sys_Search_Fix_BL(); Sys_Search_Fix_Info _Sys_Search_Fix_Info = _obj_bl.Sys_Search_Fix_GetById(id); return(PartialView("~/Areas/Manager/Views/Search_Fee/_PartialView.cshtml", _Sys_Search_Fix_Info)); } catch (Exception ex) { Logger.LogException(ex); return(PartialView("~/Areas/Manager/Views/Search_Fee/_PartialView.cshtml", new Sys_Search_Fix_Info())); } }
public static void LoadSys_Search_Fee_Fix() { try { c_dic_FeeBySearch = new Dictionary <string, Sys_Search_Fix_Info>(); Sys_Search_Fix_BL _Sys_Search_Fix_BL = new Sys_Search_Fix_BL(); List <Sys_Search_Fix_Info> _lst1 = _Sys_Search_Fix_BL.Sys_Search_Fix_GetAll(); foreach (Sys_Search_Fix_Info item in _lst1) { c_dic_FeeBySearch[item.Country_Id.ToString() + "_" + item.Search_Object.ToString() + "_" + item.Search_Type.ToString()] = item; } } catch (Exception ex) { Logger.LogException(ex); } }
public ActionResult DoDelete(decimal p_id) { try { if (SessionData.CurrentUser == null) { return(Redirect("/")); } Sys_Search_Fix_BL _obj_bl = new Sys_Search_Fix_BL(); decimal _ck = _obj_bl.Sys_Search_Fee_Delete(p_id, SessionData.CurrentUser.Username); BussinessFacade.ModuleMemoryData.MemoryData.LoadSys_Search_Fee_Fix(); return(Json(new { success = _ck })); } catch (Exception ex) { Logger.LogException(ex); return(Json(new { success = "-1" })); } }
public ActionResult DoEdit(Sys_Search_Fix_Info p_obj) { try { if (SessionData.CurrentUser == null) { return(Redirect("/")); } Sys_Search_Fix_BL _obj_bl = new Sys_Search_Fix_BL(); p_obj.Modified_By = SessionData.CurrentUser.Username; decimal _ck = _obj_bl.Sys_Search_Fee_Update(p_obj); BussinessFacade.ModuleMemoryData.MemoryData.LoadSys_Search_Fee_Fix(); return(Json(new { success = _ck })); } catch (Exception ex) { Logger.LogException(ex); return(Json(new { success = "-1" })); } }
public ActionResult Fee_Billing(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort) { try { decimal _total_record = 0; string p_to = ""; string p_from = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to); Sys_Search_Fix_BL _obj_bl = new Sys_Search_Fix_BL(); List <Sys_Search_Fix_Info> _lst = _obj_bl.Sys_Search_Fix_Search(p_keysearch, ref _total_record, p_from, p_to); string htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Sys_Search_Fix_Info>((int)_total_record, 1, "phí"); ViewBag.Paging = htmlPaging; ViewBag.Obj = _lst; ViewBag.SumRecord = _total_record; return(PartialView("~/Areas/Manager/Views/Search_Fee/_PartialTableSearch_Fee.cshtml")); } catch (Exception ex) { Logger.LogException(ex); return(PartialView("~/Areas/Manager/Views/Search_Fee/_PartialTableSearch_Fee.cshtml")); } }