示例#1
0
        public ActionResult Staff_BillDetail(int BillID)
        {
            BillDB billDB = new BillDB();
            Bill   bill   = billDB.GetBillDetail(BillID);

            return(View(bill));
        }
示例#2
0
        public ActionResult Staff_BillFail()
        {
            BillDB    tool   = new BillDB();
            DataTable dtBill = tool.GetBillOnState(3);

            return(View(dtBill));
        }
示例#3
0
        public ActionResult Staff_BillInProcess()
        {
            BillDB    tool   = new BillDB();
            DataTable dtBill = tool.GetBillOnState(1);

            return(View(dtBill));
        }
        public ActionResult Admin_BillSuccess()
        {
            BillDB    tool   = new BillDB();
            DataTable dtBill = tool.GetBillOnState(2);

            return(View(dtBill));
        }
        public ActionResult Admin_BillWaiting()
        {
            BillDB    tool   = new BillDB();
            DataTable dtBill = tool.GetBillOnState(0);

            return(View(dtBill));
        }
示例#6
0
        public ActionResult BillWaiting(int BillID)
        {
            BillDB billDB  = new BillDB();
            string staffID = FormsAuthentication.Decrypt(Request.Cookies[FormsAuthentication.FormsCookieName].Value).Name;
            bool   check   = billDB.ChangeBillState(1, BillID, staffID);

            if (check)
            {
                TempData["alertMessage"] = "Success";
            }
            else
            {
                TempData["alertMessage"] = "Fail";
            }

            return(RedirectToAction("Staff_BillWaiting", "Staff"));
        }
示例#7
0
        public ActionResult Staff_BillWaiting()
        {
            DataTable dtBill;

            try
            {
                BillDB tool = new BillDB();
                dtBill = tool.GetBillOnState(0);
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("", ex.Message);
                return(RedirectToAction("Error", "Error"));
            }

            return(View(dtBill));
        }