// GET: Attended 出勤情况查询
        public ActionResult Attended()
        {
            SettingsLogic slogic = new SettingsLogic();

            ViewBag.WorkTimeSetting = slogic.GetEnabledWorkTimeSetting();

            EmployeeLogic empLogic = new EmployeeLogic();

            ViewBag.Employees = empLogic.GetAllEmployees(false);

            IUserData user = UserContext.CurrentUser;

            ViewBag.EmployeeId = user.UserId.ToString();
            return(View());
        }
Beispiel #2
0
        public ActionResult Record()
        {
            DictionaryLogic dlogic = new DictionaryLogic();

            ViewBag.AttendanceTypes = new SelectList(
                dlogic.GetEnabledDictionaryItems(DictionaryLogic.AttendanceType), DictionaryLogic.ValueField, DictionaryLogic.TextField);

            ProjectLogic plogic   = new ProjectLogic();
            var          projects = plogic.GetProjectStage(UserContext.CurrentUser.UserId);

            ViewBag.Projects          = projects;
            ViewBag.ProjectSelectList = new SelectList(
                projects, "ProjectId", "ProjectName");

            SettingsLogic slogic = new SettingsLogic();

            ViewBag.WorkTimeSetting = slogic.GetEnabledWorkTimeSetting();

            return(View());
        }