public PurchaseOrderControl() { currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK); InventoryEntities inventory = new InventoryEntities(); supplierBroker = new SupplierBroker(inventory); itemBroker = new ItemBroker(inventory); purchaseOrderBroker = new PurchaseOrderBroker(inventory); itemPriceBroker = new ItemPriceBroker(inventory); employeeBroker = new EmployeeBroker(inventory); //reorderList = GetReorderItemList(); purchaseOrder = new PurchaseOrder(); purchaseOrder.Id = purchaseOrderBroker.GetPurchaseOrderId(); purchaseOrder.CreatedBy = Util.GetEmployee(employeeBroker); purchaseOrder.CreatedDate = DateTime.Now; purchaseOrder.Status = Converter.objToInt(Constants.VISIBILITY_STATUS.SHOW); poDetailList = new List <PurchaseOrderDetail>(); addedItemList = new Dictionary <Item, List <double> >(); //purchaseOrderDetailList = new System.Data.Objects.DataClasses.EntityCollection<PurchaseOrderDetail>(); // need to load reorder quantity // need to load unfulfilled quantity supplierColumn = new DataColumn[] { new DataColumn(supplierColumnName[0]), new DataColumn(supplierColumnName[1]) }; dataColumn = new DataColumn[] { new DataColumn(columnName[0]), new DataColumn(columnName[1]), new DataColumn(columnName[2]), new DataColumn(columnName[3]), new DataColumn(columnName[4]) }; }
public PurchaseOrderControl() { currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK); InventoryEntities inventory = new InventoryEntities(); supplierBroker = new SupplierBroker(inventory); itemBroker = new ItemBroker(inventory); purchaseOrderBroker = new PurchaseOrderBroker(inventory); itemPriceBroker = new ItemPriceBroker(inventory); employeeBroker = new EmployeeBroker(inventory); //reorderList = GetReorderItemList(); purchaseOrder = new PurchaseOrder(); purchaseOrder.Id = purchaseOrderBroker.GetPurchaseOrderId(); purchaseOrder.CreatedBy = Util.GetEmployee(employeeBroker); purchaseOrder.CreatedDate = DateTime.Now; purchaseOrder.Status = Converter.objToInt(Constants.VISIBILITY_STATUS.SHOW); poDetailList = new List<PurchaseOrderDetail>(); addedItemList = new Dictionary<Item, List<double>>(); //purchaseOrderDetailList = new System.Data.Objects.DataClasses.EntityCollection<PurchaseOrderDetail>(); // need to load reorder quantity // need to load unfulfilled quantity supplierColumn = new DataColumn[] { new DataColumn(supplierColumnName[0]), new DataColumn(supplierColumnName[1])}; dataColumn = new DataColumn[] { new DataColumn(columnName[0]), new DataColumn(columnName[1]), new DataColumn(columnName[2]), new DataColumn(columnName[3]), new DataColumn(columnName[4])}; }
public CreateDiscrepencyReportControl() { currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK); inventory = new InventoryEntities(); discrepancyBroker = new DiscrepancyBroker(inventory); itemBroker = new ItemBroker(inventory); item = new Item(); itemPriceBroker = new ItemPriceBroker(inventory); itemprice = new ItemPrice(); discrepancy = new Discrepancy(); discrepancy.Id = discrepancyBroker.GetDiscrepancyId(); discrepancy.CreatedDate = DateTime.Now; discrepancy.CreatedBy = Util.GetEmployee(new EmployeeBroker(inventory)); discrepancy.Status = Converter.objToInt(Constants.VISIBILITY_STATUS.SHOW); // discrepancyDetailList = new System.Data.Objects.DataClasses.EntityCollection<DiscrepancyDetail>(); dataColumn = new DataColumn[] { new DataColumn(columnName[0]), new DataColumn(columnName[1]), new DataColumn(columnName[2]), new DataColumn(columnName[3]), new DataColumn(columnName[4]), new DataColumn(columnName[5]) }; }
public CreateDiscrepencyReportControl() { currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK); inventory = new InventoryEntities(); discrepancyBroker = new DiscrepancyBroker(inventory); itemBroker = new ItemBroker(inventory); item = new Item(); itemPriceBroker = new ItemPriceBroker(inventory); itemprice = new ItemPrice(); discrepancy = new Discrepancy(); discrepancy.Id = discrepancyBroker.GetDiscrepancyId(); discrepancy.CreatedDate = DateTime.Now; discrepancy.CreatedBy = Util.GetEmployee(new EmployeeBroker(inventory)); discrepancy.Status = Converter.objToInt(Constants.VISIBILITY_STATUS.SHOW); // discrepancyDetailList = new System.Data.Objects.DataClasses.EntityCollection<DiscrepancyDetail>(); dataColumn = new DataColumn[] { new DataColumn(columnName[0]), new DataColumn(columnName[1]), new DataColumn(columnName[2]), new DataColumn(columnName[3]), new DataColumn(columnName[4]), new DataColumn(columnName[5]) }; }
public ViewStockCardControl() { currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK); InventoryEntities inventory = new InventoryEntities(); itemBroker = new ItemBroker(inventory); itemPriceBroker = new ItemPriceBroker(inventory); dataColumn = new DataColumn[] { new DataColumn(columnName[0]), new DataColumn(columnName[1]), new DataColumn(columnName[2]), new DataColumn(columnName[3])}; }
public ViewStockCardControl() { currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK); InventoryEntities inventory = new InventoryEntities(); itemBroker = new ItemBroker(inventory); itemPriceBroker = new ItemPriceBroker(inventory); dataColumn = new DataColumn[] { new DataColumn(columnName[0]), new DataColumn(columnName[1]), new DataColumn(columnName[2]), new DataColumn(columnName[3]) }; }