public ActionResult SearchShowTodo() { if (SessionData.CurrentUser == null) { return(Redirect("/account/dang-xuat")); } try { SearchObject_BL _searchBL = new SearchObject_BL(); SearchObject_Header_Info _HeaderInfo = new SearchObject_Header_Info(); List <SearchObject_Detail_Info> _ListDetail = new List <SearchObject_Detail_Info>(); SearchObject_Question_Info _QuestionInfo = new SearchObject_Question_Info(); List <AppClassDetailInfo> search_Class_Infos = new List <AppClassDetailInfo>(); string _casecode = ""; if (RouteData.Values.ContainsKey("id")) { _casecode = RouteData.Values["id"].ToString(); _HeaderInfo = _searchBL.SEARCH_HEADER_GETBY_CASECODE(_casecode, ref _ListDetail, ref _QuestionInfo, ref search_Class_Infos); ViewBag.SearchHeader = _HeaderInfo; ViewBag.SearchListDetail = _ListDetail; ViewBag.QuestionInfo = _QuestionInfo; // lấy dữ liệu lịch sử giao dịch B_Todos_BL _B_Todos_BL = new B_Todos_BL(); List <B_Remind_Info> _ListRemind = new List <B_Remind_Info>(); List <B_Todos_Info> _Listtodo = _B_Todos_BL.NotifiGetByCasecode(_casecode, ref _ListRemind); ViewBag.ListTodo = _Listtodo; ViewBag.ListRemind = _ListRemind; ViewBag.Currstatus = _HeaderInfo.STATUS; ViewBag.lstClassDetailInfo = search_Class_Infos; B_Todos_Info _B_Todos_Info = _B_Todos_BL.Todo_GetByCaseCode(_casecode, SessionData.CurrentUser.Username); if (_B_Todos_Info != null) { ViewBag.B_Todos_Info = _B_Todos_Info; } //action là view hay sửa decimal _operator_type = Convert.ToDecimal(Common.CommonData.CommonEnums.Operator_Type.Update); if (RouteData.Values.ContainsKey("id1")) { _operator_type = Convert.ToDecimal(RouteData.Values["id1"].ToString()); } ViewBag.Operator_Type = _operator_type; } } catch (Exception ex) { Logger.LogException(ex); } return(View(@"~\Areas\Manager\Views\SearchManage\Search_Detail.cshtml")); }
public ActionResult EditNewsArticles() { try { if (SessionData.CurrentUser == null) { return(Redirect("/")); } decimal pIDArticles = 0; int Status = 0; if (RouteData.Values.ContainsKey("id")) { pIDArticles = CommonFuc.ConvertToDecimal(RouteData.Values["id"]); } if (RouteData.Values.ContainsKey("id2")) { Status = CommonFuc.ConvertToInt(RouteData.Values["id2"]); } ViewBag.Status = Status; var objNewsBL = new NewsBL(); ViewBag.lstCategory = WebApps.CommonFunction.AppsCommon.AllCode_GetBy_CdTypeCdName("ARTICLES", "CATEGORIES"); string language = AppsCommon.GetCurrentLang(); var objNewInfo = objNewsBL.ArticlesGetById(pIDArticles, language); if (SessionData.CurrentUser != null && SessionData.CurrentUser.Type != (decimal)CommonEnums.UserType.Customer) { B_Todos_BL _B_Todos_BL = new B_Todos_BL(); B_Todos_Info _B_Todos_Info = _B_Todos_BL.Todo_GetByCaseCode(objNewInfo.Case_Code, SessionData.CurrentUser.Username); if (_B_Todos_Info != null) { ViewBag.B_Todos_Info = _B_Todos_Info; } } return(View("~/Areas/Articles/Views/ArticlesNews/_PartialviewEdit.cshtml", objNewInfo)); } catch (Exception ex) { Logger.LogException(ex); return(View()); } }
public ActionResult TodoNews() { try { if (SessionData.CurrentUser == null) { return(Redirect("/")); } string _casecode = ""; if (RouteData.Values.ContainsKey("id")) { _casecode = RouteData.Values["id"].ToString(); } if (SessionData.CurrentUser != null && SessionData.CurrentUser.Type != (decimal)CommonEnums.UserType.Customer) { B_Todos_BL _B_Todos_BL = new B_Todos_BL(); B_Todos_Info _B_Todos_Info = _B_Todos_BL.Todo_GetByCaseCode(_casecode, SessionData.CurrentUser.Username); if (_B_Todos_Info != null) { ViewBag.B_Todos_Info = _B_Todos_Info; } } var objNewsBL = new NewsBL(); ViewBag.lstCategory = WebApps.CommonFunction.AppsCommon.AllCode_GetBy_CdTypeCdName("ARTICLES", "CATEGORIES"); string language = AppsCommon.GetCurrentLang(); var objNewInfo = objNewsBL.ArticlesGetByCaseCode(_casecode, language); if (objNewInfo != null) { ViewBag.Status = objNewInfo.Status; } return(View("~/Areas/Articles/Views/ArticlesNews/_Partial_Approve.cshtml", objNewInfo)); } catch (Exception ex) { Logger.LogException(ex); return(View()); } }