public bool checkLogin(frmLogin form)
        {
            string          username        = form.getUserName().Trim();
            string          password        = form.getPassword().Trim();
            TblEmployeesDTO tblEmployeesDTO = new TblEmployeesDTO();

            tblEmployeesDTO.idEmployee = username;
            tblEmployeesDTO.password   = password;
            TblEmployeesDTO emp = loginModel.checkLogin(tblEmployeesDTO);

            if (emp != null)
            {
                string role = emp.role.ToUpper();
                switch (role)
                {
                case "MANAGER":
                    frmManager_v2 manager = new frmManager_v2(form, emp);
                    manager.Show();
                    break;

                case "WAREHOUSE STAFF":
                    frmWarehouse_V2 warehouse = new frmWarehouse_V2(form, emp);
                    warehouse.Show();
                    break;

                case "SALESMAN":
                    frmSaleManager_V2 saleManager = new frmSaleManager_V2(form, emp);
                    saleManager.Show();
                    break;
                }
                form.Hide();
                form.setUsername("");
                form.setPassword("");
                return(true);
            }
            return(false);
        }
 public SaleManagerPresenter(frmSaleManager_V2 form)
 {
     this.form = form;
 }