예제 #1
0
 private void button12_Click(object sender, EventArgs e)
 {
     _employee_with_assets = new uc_employee_with_assets(this, this._user_id);
     panel_body.Controls.Clear();
     panel_body.Controls.Add(this._employee_with_assets);
     lbl_current_tab.Text = "Employee Accountabiliies";
 }
예제 #2
0
        public employee_assets_controller(int Id, int UserId)
        {
            InitializeComponent();
            this._main  = new uc_employee_with_assets();
            _employeeId = Id;
            EmployeeRepository employeeRepository = new EmployeeRepository();
            Employee           employee           = employeeRepository.SelectById(Id);

            StringBuilder name = new StringBuilder();

            name.Append(employee.FirstName).Append(" ").Append(employee.LastName);
            txt_name.Text   = name.ToString();
            txt_emp_id.Text = employee.EmployeeID;
            txt_dept.Text   = employee.Department.DepartmentNames;
            txt_pos.Text    = employee.Position.PositionName;
            this._user_id   = UserId;

            Users user = new Users();

            user.Id            = this._user_id;
            this._privilege_id = user.SelectUser();
        }
예제 #3
0
 public uc_add_assets(uc_employee_with_assets EmployeeWithAssets)
 {
     InitializeComponent();
     _employee_asset_list = EmployeeWithAssets;
 }