Esempio n. 1
0
 public ActionResult DeliveryBillList()
 {
     if (!SessionCheck(Define.Session.SESSION_CHECK))
     {
         return(ErrorPage("/Home/Error"));
     }
     if (!CheckAuth())
     {
         LogWriter.Instance().LogWrite(UserSession.UserId, "/Delivery/DeliveryBillList - Error");
         return(base.Logout());
     }
     LogWriter.Instance().LogWrite(UserSession.UserId, "/Delivery/DeliveryBillList");
     ViewBag.list      = billDao.SelectBill(PAGELIMIT, Define.PAGE_START, CompanySession.CompanyCode);
     ViewBag.listcount = Convert.ToInt32(Math.Ceiling((Double)((Double)billDao.GetBillCountByCompanyCode(CompanySession.CompanyCode) / (Double)PAGELIMIT)));
     return(View("~/Views/Delivery/Web/DeliveryBillList.cshtml", Define.MASTER_VIEW));
 }