Пример #1
0
 public ViewCreateTemplateSchedule()
 {
     departmentProxy = new DepartmentProxy();
     InitializeComponent();
     LoadDeparmentList();
     NoOfWeeks.ItemsSource = new int[] { 1, 2, 3, 4 };
 }
Пример #2
0
 public CreateScheduleView()
 {
     departmentProxy = new DepartmentProxy();
     InitializeComponent();
     BtnGenerateSchedule.IsEnabled = false;
     BtnPublishSchedule.IsEnabled  = false;
     BindData();
 }
Пример #3
0
 public UpdateEmployeeView()
 {
     departmentProxy = new DepartmentProxy();
     InitializeComponent();
     LoadDepartmentList();
     UpdateEmployeeClicked();
     empProxy = new EmployeeProxy();
 }
 public ViewEditTemplateSchedule()
 {
     InitializeComponent();
     TemplateSchedules = new List <TemplateSchedule>();
     _departmentProxy  = new DepartmentProxy();
     _templateProxy    = new TemplateScheduleProxy();
     BindDataDepartmentcBox();
     EventChangesListener();
     BtnSaveUpdatedTemplateSchedule.IsEnabled = false;
 }
Пример #5
0
 public ViewScheduleView()
 {
     scheduleProxy   = new ScheduleProxy();
     departmentProxy = new DepartmentProxy();
     InitializeComponent();
     BindComboBoxData();
     SetOnNewScheduleActive();
     EventChangesListener();
     HideStartEndTxt();
 }
Пример #6
0
        public ActionResult Index()
        {
            EmployeeModel employeeModel = new EmployeeModel();

            if (Session["employee"] != null)
            {
                Employee   employee   = (Employee)Session["employee"];
                Department department = new DepartmentProxy().GetDepartmentById(employee.DepartmentId);
                employeeModel.Employee   = employee;
                employeeModel.Department = department;
            }
            return(View(employeeModel));
        }
Пример #7
0
 public void ShowDepartment(DepartmentProxy department)
 {
     _frame.Navigate(NoppaUtility.MakeUri("/CourseListPage.xaml", "content", "department", "id", department.Id));
 }
Пример #8
0
 public CreateEmployeeView()
 {
     departmentProxy = new DepartmentProxy();
     InitializeComponent();
     LoadDepartmentList();
 }