예제 #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 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"));
        }