예제 #1
0
        // GET: ModuleBaseData/Port
        public ActionResult Port_Getpage()
        {
            List <PortInfo> list = new List <PortInfo>();

            try
            {
                int p_total_record = 0;
                list = PortBL.Port_Getpage("", 0, Common.constRecordOnPage, "", "", ref p_total_record);
                string htmlPaging = NaviCommon.CommonFuc.Get_HtmlPaging <PortInfo>((int)p_total_record, 1, "Cảng");
                ViewBag.Paging    = htmlPaging;
                ViewBag.SumRecord = p_total_record;
            }
            catch (Exception ex)
            {
                Common.log.Error(ex.ToString());
            }
            return(View(list));
        }
예제 #2
0
 public ActionResult Port_Search(string _portText, int _recordpage, int _currentpage)
 {
     try
     {
         int p_total_record = 0;
         _recordpage = _recordpage == 0 ? Common.constRecordOnPage : _recordpage;
         int             _start = _recordpage * (_currentpage - 1) + 1;
         int             _end   = _recordpage * _currentpage;
         List <PortInfo> _lst   = new List <PortInfo>();
         _lst = PortBL.Port_Getpage(_portText, _start, _end, "", "", ref p_total_record);
         string htmlPaging = NaviCommon.CommonFuc.Get_HtmlPaging <PortInfo>((int)p_total_record, 1, "Cảng");
         ViewBag.Paging    = htmlPaging;
         ViewBag.SumRecord = p_total_record;
         return(PartialView("_Port_List", _lst));
     }
     catch (Exception ex)
     {
         Common.log.Error(ex.ToString());
         return(PartialView("_Port_List"));
     }
 }