public ActionResult _Material(long roomId)
        {
            ViewBag.RoomId = roomId;

            var room = RoomBll.GetById(roomId);

            ViewBag.RoomTypeId = room.RoomTypeId;
            ViewBag.RoomRegId  = room.RoomRegId;

            if (room.LastCleanEmployeeId != 0)
            {
                if (room.FjState != FjStateEnum.脏房)
                {
                    ViewBag.EmployeeId = room.LastCleanEmployeeId;
                    var employee = EmployeeBll.GetById(room.LastCleanEmployeeId);
                    ViewBag.EmployeeName = employee.Name;
                }


                ViewBag.IsMaterialChangeEveryday = room.IsMaterialChangeEveryday;
                ViewBag.IsMaterialChangeWash     = room.IsMaterialChangeWash;
            }
            else
            {
                ViewBag.IsMaterialChangeEveryday = true;
                ViewBag.IsMaterialChangeWash     = true;
            }



            return(View());
        }
Esempio n. 2
0
        // GET: Items/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(RedirectToAction("Error", "Home"));
            }
            Employee employee = employeeBll.GetById(id);

            if (employee == null)
            {
                return(RedirectToAction("Error", "Home"));
            }
            ViewBag.OutletId    = employeeBll.GetOutlet();
            ViewBag.ReferenceId = employeeBll.GetReference();
            return(View(employee));
        }
Esempio n. 3
0
        //GET: Items/Details/5
        public ActionResult Details(int id)
        {
            Employee employee = employeeBll.GetById(id);

            return(View(employee));
        }