private void init()
        {
            currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK);
            inventory       = new InventoryEntities();

            retrievalBroker  = new RetrievalBroker(inventory);
            employeeBroker   = new EmployeeBroker(inventory);
            itemBroker       = new ItemBroker(inventory);
            departmentBroker = new DepartmentBroker(inventory);
        }
示例#2
0
        public BlacklistDepartmentControl()
        {
            currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_MANAGER);
            InventoryEntities inventory = new InventoryEntities();

            departmentBroker       = new DepartmentBroker(inventory);
            collectionMissedBroker = new CollectionMissedBroker(inventory);

            cleanDepartmentList       = departmentBroker.GetAllDepartment(Constants.DEPARTMENT_STATUS.SHOW);
            unblacklistDepartmentList = departmentBroker.GetAllDepartment(Constants.DEPARTMENT_STATUS.UNBLACKLIST);
            blacklistDepartmentList   = departmentBroker.GetAllDepartment(Constants.DEPARTMENT_STATUS.BLACKLIST);

            dataColumn = new DataColumn[] { new DataColumn(columnName[0]),
                                            new DataColumn(columnName[1]),
                                            new DataColumn(columnName[2]),
                                            new DataColumn(columnName[3]),
                                            new DataColumn(columnName[4]), };
        }
        public BlacklistDepartmentControl()
        {
            currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_MANAGER);
            InventoryEntities inventory = new InventoryEntities();

            departmentBroker = new DepartmentBroker(inventory);
            collectionMissedBroker = new CollectionMissedBroker(inventory);

            cleanDepartmentList = departmentBroker.GetAllDepartment(Constants.DEPARTMENT_STATUS.SHOW);
            unblacklistDepartmentList = departmentBroker.GetAllDepartment(Constants.DEPARTMENT_STATUS.UNBLACKLIST);
            blacklistDepartmentList = departmentBroker.GetAllDepartment(Constants.DEPARTMENT_STATUS.BLACKLIST);

            dataColumn = new DataColumn[]{ new DataColumn(columnName[0]),
                                           new DataColumn(columnName[1]),
                                           new DataColumn(columnName[2]),
                                           new DataColumn(columnName[3]),
                                           new DataColumn(columnName[4]),
                                          };
        }
        private void init()
        {
            currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK);
            inventory = new InventoryEntities();

            retrievalBroker = new RetrievalBroker(inventory);
            employeeBroker = new EmployeeBroker(inventory);
            itemBroker = new ItemBroker(inventory);
            departmentBroker = new DepartmentBroker(inventory);
        }