Пример #1
0
 private void button13_Click(object sender, EventArgs e)
 {
     this._employee_list = new employee_list_controller(this._user_id);
     panel_body.Controls.Clear();
     panel_body.Controls.Add(this._employee_list);
     lbl_current_tab.Text = "Employee List";
 }
 public frm_employee_info(employee_list_controller employee_list, int UserId)
 {
     InitializeComponent();
     GetDepartments();
     this._employee_list = employee_list;
     this._user_id       = UserId;
 }
Пример #3
0
        public frm_employeeInfo(employee_list_controller employee, int id, int UserId)
        {
            InitializeComponent();
            this._employeeId = id;
            this._employee   = employee;
            this._user_id    = UserId;
            Users user = new Users();

            user.Id            = this._user_id;
            this._privilege_id = user.SelectUser();
        }
        public frm_employee_info(employee_list_controller employee_list, int id, int UserId)
        {
            InitializeComponent();
            GetDepartments();
            this._employee_list = employee_list;
            this._user_id       = UserId;

            this._employee_id = id;

            employeeRepository = new EmployeeRepository();
            Employee employee = employeeRepository.SelectById(this._employee_id);

            txt_firstName.Text          = employee.FirstName;
            txt_lastName.Text           = employee.LastName;
            txt_empid.Text              = employee.EmployeeID;
            cb_department.SelectedValue = int.Parse(employee.Department.Id.ToString());
            cb_position.SelectedValue   = int.Parse(employee.Position.Id.ToString());
            dateTimePicker1.Value       = DateTime.Parse(employee.DateHired.ToString());

            Users user = new Users();

            user.Id            = this._user_id;
            this._privilege_id = user.SelectUser();
        }
Пример #5
0
 public frm_employeeInfo(employee_list_controller employee, int UserId)
 {
     InitializeComponent();
     this._employee = employee;
     this._user_id  = UserId;
 }