示例#1
0
        public ActionResult Contract_Search(int currentPage, string keySearch)
        {
            var             contractBl  = new ContractBL();
            List <Contract> lstContract = new List <Contract>();

            try
            {
                decimal totalRecord = 0;
                lstContract = contractBl.Search(currentPage, ref totalRecord, keySearch);
                string htmlPaging = CommonFuc.Get_HtmlPaging <Contract>((int)totalRecord, currentPage, "hợp đồng");
                ViewBag.Paging       = htmlPaging;
                ViewBag.ListContract = lstContract;
                ViewBag.SumRecord    = totalRecord;
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(PartialView("~/Areas/Import/Views/Contract/_Partial_Contract_List.cshtml"));
        }
示例#2
0
        public ActionResult ToDo_Search(string keySearch, int currentPage)
        {
            var             todoBl  = new ToDoBL();
            List <ToDoInfo> lstToDo = new List <ToDoInfo>();

            try
            {
                decimal totalRecord = 0;
                lstToDo = todoBl.Search(currentPage, ref totalRecord, keySearch);
                string htmlPaging = CommonFuc.Get_HtmlPaging <ToDoInfo>((int)totalRecord, 1, "công việc");
                ViewBag.Paging    = htmlPaging;
                ViewBag.ListToDo  = lstToDo;
                ViewBag.SumRecord = totalRecord;
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(PartialView("~/Areas/ToDo/Views/ToDo/_Partial_ToDo_List.cshtml"));
        }
示例#3
0
        public ActionResult Contract_Display()
        {
            var             contractBl  = new ContractBL();
            List <Contract> lstContract = new List <Contract>();

            try
            {
                decimal totalRecord = 0;
                lstContract = contractBl.Search(1, ref totalRecord);
                string htmlPaging = CommonFuc.Get_HtmlPaging <Contract>((int)totalRecord, 1, "hợp đồng");
                ViewBag.Paging       = htmlPaging;
                ViewBag.ListContract = lstContract;
                ViewBag.SumRecord    = totalRecord;
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(View("~/Areas/Import/Views/Contract/Contract_Display.cshtml"));
        }
示例#4
0
        public ActionResult ToDo_Display()
        {
            var             todoBl  = new ToDoBL();
            List <ToDoInfo> lstToDo = new List <ToDoInfo>();

            try
            {
                decimal totalRecord = 0;
                lstToDo = todoBl.Search(1, ref totalRecord);
                string htmlPaging = CommonFuc.Get_HtmlPaging <ToDoInfo>((int)totalRecord, 1, "công việc");
                ViewBag.Paging    = htmlPaging;
                ViewBag.ListToDo  = lstToDo;
                ViewBag.SumRecord = totalRecord;
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(View("~/Areas/ToDo/Views/ToDo/ToDo_Display.cshtml"));
        }