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 ReceiveOrderControl() { currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK); InventoryEntities inventory = new InventoryEntities(); purchaseOrderBroker = new PurchaseOrderBroker(inventory); itemBroker = new ItemBroker(inventory); employeeBroker = new EmployeeBroker(inventory); purchaseOrderList = purchaseOrderBroker.GetAllPurchaseOrder(); dataColumn = new DataColumn[] { new DataColumn(columnName[0]), new DataColumn(columnName[1]) }; detailColumn = new DataColumn[] { new DataColumn(detail[0]), new DataColumn(detail[1]), new DataColumn(detail[2]), new DataColumn(detail[3]) }; }
public ReceiveOrderControl() { currentEmployee = Util.ValidateUser(Constants.EMPLOYEE_ROLE.STORE_CLERK); InventoryEntities inventory = new InventoryEntities(); purchaseOrderBroker = new PurchaseOrderBroker(inventory); itemBroker = new ItemBroker(inventory); employeeBroker = new EmployeeBroker(inventory); purchaseOrderList = purchaseOrderBroker.GetAllPurchaseOrder(); dataColumn = new DataColumn[]{ new DataColumn(columnName[0]), new DataColumn(columnName[1]) }; detailColumn = new DataColumn[]{new DataColumn(detail[0]), new DataColumn(detail[1]),new DataColumn(detail[2]),new DataColumn(detail[3])}; }