public ActionResult UpdateFlow(int id)
        {
            var vacationAuditFlow = VacationAuditFlow.SingleOrDefault(id);

            ViewBag.DeptLevels = EnumExtension.GetComboBox <EnumDeptLevel>();
            ViewBag.Roles      = BasicDataCache.listRoles;

            return(View(vacationAuditFlow));
        }
        public ActionResult AddFlow(int typeID)
        {
            ViewBag.DeptLevels = EnumExtension.GetComboBox <EnumDeptLevel>();
            ViewBag.Roles      = BasicDataCache.listRoles;
            ViewBag.MaxSort    = BasicDataCache.listVacationAuditFlows.Where(flow => flow.TypeID == typeID).Count() > 0 ? BasicDataCache.listVacationAuditFlows.Where(flow => flow.TypeID == typeID).Max(flow => flow.Sort) + 1 : 1;

            VacationAuditFlow model = new VacationAuditFlow();

            model.TypeID = typeID;

            return(View(model));
        }