public ActionResult Docking_Display() { try { if (SessionData.CurrentUser == null) { return(Redirect("/")); } decimal _total_record = 0; Docking_BL _obj_bl = new Docking_BL(); string _keySearch = "ALL" + "|" + "ALL" + "|" + "ALL" + "|" + "ALL" + "|" + "ALL"; List <Docking_Info> _lst = _obj_bl.Docking_Search(_keySearch, ref _total_record); string htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Docking_Info>((int)_total_record, 1, "Tài liệu"); ViewBag.Obj = _lst; ViewBag.Paging = htmlPaging; ViewBag.SumRecord = _total_record; return(View("~/Areas/Manager/Views/Docking/Docking_Display.cshtml")); } catch (Exception ex) { Logger.LogException(ex); return(View()); } }
public ActionResult DoEdit(Docking_Info p_Docking_Info) { try { Docking_BL _obj_bl = new Docking_BL(); p_Docking_Info.Modify_By = SessionData.CurrentUser.Username; p_Docking_Info.Modify_Date = DateTime.Now; p_Docking_Info.Language_Code = AppsCommon.GetCurrentLang(); p_Docking_Info.Document_Name = p_Docking_Info.Document_Name_Type + p_Docking_Info.Document_Name_Other; if (p_Docking_Info.File_Upload != null) { var url_File_Upload = AppLoadHelpers.PushFileToServer(p_Docking_Info.File_Upload, AppUpload.Document); p_Docking_Info.FileName = p_Docking_Info.File_Upload.FileName; p_Docking_Info.Url = url_File_Upload; } else { p_Docking_Info.FileName = "NA"; p_Docking_Info.Url = "NA"; } decimal _ck = _obj_bl.Docking_Update(p_Docking_Info); return(Json(new { success = _ck })); } catch (Exception ex) { Logger.LogException(ex); return(Json(new { success = "-1" })); } }
public ActionResult GetView2View(decimal p_id) { try { Docking_BL _obj_bl = new Docking_BL(); Docking_Info _Docking_Info = _obj_bl.Docking_GetBy_Id(p_id); return(View("~/Areas/Manager/Views/Docking/_PartialView.cshtml", _Docking_Info)); } catch (Exception ex) { Logger.LogException(ex); return(View("~/Areas/Manager/Views/Docking/_PartialView.cshtml", new Docking_Info())); } }
public ActionResult GetView2CompleteDoc(string p_case_code) { try { Docking_BL _obj_bl = new Docking_BL(); Docking_Info _Docking_Info = _obj_bl.Docking_GetBy_DocCaseCode(p_case_code); return(View("~/Areas/Manager/Views/Docking/_PartialChangeStatus.cshtml", _Docking_Info)); } catch (Exception ex) { Logger.LogException(ex); return(View("~/Areas/Manager/Views/Docking/_PartialChangeStatus.cshtml")); } }
public ActionResult GetView2UpdateStatus(int p_id) { try { Docking_BL _obj_bl = new Docking_BL(); Docking_Info _Docking_Info = _obj_bl.Docking_GetBy_Id(p_id); return(View("~/Areas/Manager/Views/Docking/_PartialChangeStatus.cshtml", _Docking_Info)); } catch (Exception ex) { Logger.LogException(ex); return(View("~/Areas/Manager/Views/Docking/_PartialChangeStatus.cshtml")); } }
public ActionResult DoDelete(int p_id) { try { Docking_BL _obj_bl = new Docking_BL(); var modifiedBy = SessionData.CurrentUser.Username; decimal _result = _obj_bl.Docking_Update_Delete(p_id, AppsCommon.GetCurrentLang(), SessionData.CurrentUser.Username, DateTime.Now); return(Json(new { success = _result })); } catch (Exception ex) { Logger.LogException(ex); return(Json(new { success = -1 })); } }
public ActionResult ChooseDocketing(string p_case_code, string p_docking_id) { try { Docking_BL _obj_bl = new Docking_BL(); List <Docking_Info> _lstDocking = _obj_bl.Docking_GetBy_AppCaseCode(p_case_code); ViewBag.Lst_Docking = _lstDocking; ViewBag.Docking_id = p_docking_id; return(PartialView("~/Areas/Manager/Views/Docking/_PartialChooseDocketing.cshtml")); } catch (Exception ex) { Logger.LogException(ex); return(PartialView("~/Areas/Manager/Views/Docking/_PartialChooseDocketing.cshtml")); } }
public ActionResult Search_Docking(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); Docking_BL _obj_bl = new Docking_BL(); List <Docking_Info> _lst = _obj_bl.Docking_Search(p_keysearch, ref _total_record, p_from, p_to); string htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Docking_Info>((int)_total_record, 1, "Tài liệu"); ViewBag.Paging = htmlPaging; ViewBag.Obj = _lst; ViewBag.SumRecord = _total_record; return(PartialView("~/Areas/Manager/Views/Docking/_PartialTableDocking.cshtml")); } catch (Exception ex) { Logger.LogException(ex); return(PartialView("~/Areas/Manager/Views/Docking/_PartialTableDocking.cshtml")); } }