public FrmUpdateReorderThreshold(int? currentReorderAmount, int currentProductID, AccessToken _myAccessToken) { InitializeComponent(); _currentAmount = currentReorderAmount; _currentProduct = currentProductID; var RoleAccess = new RoleAccess(_myAccessToken, this); }
public frmReceiving(AccessToken acctkn) { InitializeComponent(); var RoleAccess = new RoleAccess(acctkn, this); _myAccessToken = acctkn; }
public frmVendorCreateOrder(AccessToken acctoken) { InitializeComponent(); _myAccessToken = acctoken; _vendorList = _myVendorManager.GetVendors(); _productList = _myProductManager.GetProducts(); var RoleAccess = new RoleAccess(acctoken, this); tbOrderDate.Text = DateTime.Now.ToString(); populateListView(); for (int i = 0; i <= 100; i++) { comboQuanity.Items.Add(i); } for (int i = 0; i <= 10; i++) { comboShipments.Items.Add(i); } foreach (var vendor in _vendorList) { comboVendor.Items.Add(vendor.Id + " " + vendor.Name); } Instance = this; }
public FrmVendorAddUpdate(AccessToken acctkn, Vendor vendor) { InitializeComponent(); _myAccessToken = acctkn; _myVendor = vendor; this.Text = "Update Vendor: " + vendor.Name; btMorph.Text = "Update Vendor"; PopulateStateCombo(); PopulateCountryCombo(); txtVendorID.Text = vendor.Id.ToString(); txtVendorName.Text = vendor.Name; txtVendorAddress.Text = vendor.Address; txtVendorCity.Text = vendor.City; cbVendorState.Text = vendor.State; cbVendorCountry.Text = vendor.Country; txtVendorZipCode.Text = vendor.Zip; txtVendorContact.Text = vendor.Contact; txtVendorContactEmail.Text = vendor.ContactEmail; txtVendorContactPhone.Text = vendor.Phone; Instance = this; }
public ProductView(AccessToken accToken, Product ProductInfo) { InitializeComponent(); _myAccessToken = accToken; _productManager = new ProductManager(); _vendorManager = new VendorManager(); _vendorSourceManager = new VendorSourceItemManager(); _currentProduct = ProductInfo; //Assigning the current product values to the appropriate controls. this.Text = "Update Product"; btMorph.Text = "Update Product"; tbProductID.Text = ProductInfo.Id.ToString(); tbDescription.Text = ProductInfo.description; tbItemName.Text = ProductInfo.Name; nudUnitPrice.Value = ProductInfo.unitPrice; nudAvailableQty.Value = ProductInfo.available; nudOnHandQty.Value = ProductInfo.reserved; nudReorderThreshold.Value = (decimal)ProductInfo._reorderThreshold; nudReorderAmount.Value = (decimal)ProductInfo._reorderAmount; nudOnOrderAmount.Value = ProductInfo._onOrder; txtDimensions.Text = ProductInfo._shippingDemensions; nudWeight.Value = (decimal)ProductInfo._shippingWeight; PopulateActiveCombo(); PopulateLocationCombo(); PopulateListView(lvVendors, ProductInfo.Id); this.btnClear.Enabled = false; lblPriceDisplay.Text = String.Format("{0:C}", ProductInfo.unitPrice); tbItemName.Focus(); Instance = this; }
public FrmRoleDialog(AccessToken _myAccessToken) { InitializeComponent(); var RoleAccess = new RoleAccess(_myAccessToken, this); FillRolesComboBox(); }
public FrmVendor(AccessToken acctoken) { InitializeComponent(); var RoleAccess = new RoleAccess(acctoken, this); _myAccessToken = acctoken; Instance = this; }
public frmPrintPackReport(ShippingOrder order, AccessToken _myAccessToken) { InitializeComponent(); var RoleAccess = new RoleAccess(_myAccessToken, this); _currentOrder = order; Instance = this; }
public FrmRoleView(AccessToken accessToken, Role role = null) { InitializeComponent(); var RoleAccess = new RoleAccess(accessToken, this); _accessToken = accessToken; _role = role; }
public frmPrintOrderDetails(int myOrderId, AccessToken _myAccessToken) { InitializeComponent(); var RoleAccess = new RoleAccess(_myAccessToken, this); _myOrderId = myOrderId; Instance = this; }
public FrmAttachVendorSource(Product product, AccessToken _myAccessToken) { InitializeComponent(); _currentProduct = product; _vendorSource = new VendorSourceItemManager(); _vendorManager = new VendorManager(); _vendors = _vendorManager.GetVendors(); var RoleAccess = new RoleAccess(_myAccessToken, this); }
// private List<Role> roles = new List<Role>(); public FrmRoles(AccessToken acctoken) { InitializeComponent(); var RoleAccess = new RoleAccess(acctoken, this); _roleManager = new RoleManager(); _myAccessToken = acctoken; Instance = this; }
//Constructor with AccessToken as the only parameter. public FrmProduct(AccessToken acctoken) { InitializeComponent(); _myAccessToken = acctoken; //Instantiates a ProductManager. _myProductManager = new ProductManager(); Instance = this; RoleAccess = new RoleAccess(_myAccessToken, this); }
public FrmAddShippingVendor(AccessToken _myAccessToken) { InitializeComponent(); var RoleAccess = new RoleAccess(_myAccessToken, this); _myShippingVendorManager = new ShippingVendorManager(); PopulateCountryCombo(); PopulateStateCombo(); }
public frmStartUp(AccessToken acctoken) { InitializeComponent(); var RoleAccess = new RoleAccess(acctoken, this); _myAccessToken = acctoken; this.Text = " " + _myAccessToken.FirstName + " " + _myAccessToken.LastName + " logged in as a " + _myAccessToken.Role.Name; this.WindowState = FormWindowState.Maximized; }
public AddVendorWindow(string productId, AccessToken _myAccessToken) { var RoleAccess = new RoleAccess(_myAccessToken, this); var vendors = _vendorManager.GetVendors(); foreach (var vendor in vendors) { lvVendors.Items.Add(vendor.ToString()); } }
public FrmShippingTerm(AccessToken acctoken) { InitializeComponent(); var RoleAccess = new RoleAccess(acctoken, this); _myAccessToken = acctoken; _myTermManager = new ShippingTermManager(); Instance = this; }
public FrmAddShippingTerm(AccessToken _myAccessToken) { InitializeComponent(); var RoleAccess = new RoleAccess(_myAccessToken, this); _myShippingTermManager = new ShippingTermManager(); _myShippingVendorManager = new ShippingVendorManager(); vendors = _myShippingVendorManager.GetVendors(); PopulateVendorCombo(); }
public FrmShippingAllOrders(AccessToken acctoken) { InitializeComponent(); var RoleAccess = new RoleAccess(acctoken, this); _myAccessToken = acctoken; _myOrderManager = new ShippingOrderManager(); PopulateMasterListView(lvAllOrders, _myOrderManager.GetAllShippingOrders()); Instance = this; }
public FrmShippingPackList(AccessToken accToken) { InitializeComponent(); var RoleAccess = new RoleAccess(accToken, this); _myAccessToken = accToken; _myOrderManager = new ShippingOrderManager(); RefreshPackView(); Instance = this; }
public FrmShipping(AccessToken acctoken) { InitializeComponent(); var RoleAccess = new RoleAccess(acctoken, this); _myAccessToken = acctoken; _myVendorManager = new ShippingVendorManager(); _myTermManager = new ShippingTermManager(); _myOrderManager = new ShippingOrderManager(); }
public frmReceivingNotes(int vendorOrderID, int productID, int vendorID, string note, AccessToken acctkn) { InitializeComponent(); var RoleAccess = new RoleAccess(acctkn, this); _myAccessToken = acctkn; txtVendorOrderID.Text = vendorOrderID.ToString(); txtProductID.Text = productID.ToString(); txtVendorID.Text = vendorID.ToString(); txtNotes.Text = note; }
public FrmViewOrderDetails(int orderId, AccessToken accToken) { InitializeComponent(); Text += " Details for Order #" + _myOrderId; _myAccessToken = accToken; _myOrderId = orderId; _myOrderDetails = new ShippingOrderLineItemManager(); _myOrderManager = new ShippingOrderManager(); PopulateLineItemLists(); var RoleAccess = new RoleAccess(accToken, this); }
public FrmShippingVendor(AccessToken acctoken) { InitializeComponent(); var RoleAccess = new RoleAccess(acctoken, this); _myAccessToken = acctoken; _myVendorManager = new ShippingVendorManager(); PopulateActiveCombo(); PopulateVendorListView(this.lvShippingVendors, _myVendorManager.GetVendors()); Instance = this; }
public FrmUpdateShippingTerm(ShippingTerm term, AccessToken _myAccessToken) { InitializeComponent(); var RoleAccess = new RoleAccess(_myAccessToken, this); _myShippingTermManager = new ShippingTermManager(); _myShippingVendorManager = new ShippingVendorManager(); vendors = _myShippingVendorManager.GetVendors(); _originalTerm = term; PopulateVendorCombo(); txtDesc.Text = term.Description; this.Text = "Shipping Term: " + term.Id; }
public FrmVendorAddUpdate(AccessToken acctkn) { InitializeComponent(); _myAccessToken = acctkn; btMorph.Text = "Add Vendor"; var RoleAccess = new RoleAccess(acctkn, this); PopulateStateCombo(); PopulateCountryCombo(); Instance = this; }
public FrmAddLineItemToVendorOrder(VendorOrder vendorOrder, AccessToken acctkn) { InitializeComponent(); _myAccessToken = acctkn; var RoleAccess = new RoleAccess(acctkn, this); this.vendorOrder = vendorOrder; txtVendorOrderID.Text = vendorOrder.Id.ToString(); VendorManager _vendorManager = new VendorManager(); var vendor = vendorOrder.VendorID; txtVendorName.Text = _vendorManager.GetVendor(vendorOrder.VendorID).Name; txtVendorID.Text = vendorOrder.VendorID.ToString(); txtVendorName.ReadOnly = true; txtVendorID.ReadOnly = true; fillProductDropDown(vendorOrder.VendorID); }
public frmReceiving(VendorOrder vendorOrder, AccessToken acctkn) { InitializeComponent(); _myAccessToken = acctkn; VendorManager _vendorManager = new VendorManager(); this.vendorOrder = vendorOrder; txtVendorOrderID.Text = vendorOrder.Id.ToString(); txtVendorName.Text = _vendorManager.GetVendor(vendorOrder.VendorID).Name.ToString(); txtVendorID.Text = _vendorManager.GetVendor(vendorOrder.VendorID).Id.ToString(); txtNumberofShipments.Text = _vendorOrderManager.getVendorOrder(vendorOrder.Id).NumberOfShipments.ToString(); txtDateOrdered.Text = _vendorOrderManager.getVendorOrder(vendorOrder.Id).DateOrdered.ToString(); vendorOrder = new VendorOrder(Int32.Parse(txtVendorOrderID.Text.ToString()), Int32.Parse(txtVendorID.Text.ToString())); populateListView(); //try //{ // lvReceiving.Clear(); // vendorOrderLineItemList = _receivingManager.GetAllLineItemsByVendorOrder(vendorOrder); // foreach (var vendorOrderLineItem in vendorOrderLineItemList) // { // var item = new ListViewItem(); // item.Text = vendorOrderLineItem.ProductID.ToString(); // item.SubItems.Add(_productManager.GetProduct(vendorOrderLineItem.ProductID).Name.ToString()); // item.SubItems.Add(vendorOrderLineItem.QtyOrdered.ToString()); // item.SubItems.Add(vendorOrderLineItem.QtyReceived.ToString()); // item.SubItems.Add(vendorOrderLineItem.QtyDamaged.ToString()); // item.SubItems.Add(vendorOrderLineItem.Note); // lvReceiving.Items.Add(item); // } // lvReceiving.Columns.Add("ProductID"); // lvReceiving.Columns.Add("Product Name"); // lvReceiving.Columns.Add("Quantity Ordered"); // lvReceiving.Columns.Add("Quantity Received"); // lvReceiving.Columns.Add("Quantity Damaged"); // lvReceiving.Columns.Add("Note"); // lvReceiving.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize); //} //catch (Exception ex) //{ // MessageBox.Show("An error occured while loading the vendor listView. " + ex.ToString()); //} }
public FrmUpdateShippingVendor(ShippingVendor vendor, AccessToken _myAccessToken) { InitializeComponent(); var RoleAccess = new RoleAccess(_myAccessToken, this); _myShippingVendorManager = new ShippingVendorManager(); _originalVendor = vendor; this.Text = "Shipping Vendor ID: " + vendor.Id; PopulateCountryCombo(); PopulateStateCombo(); txtAddress.Text = vendor.Address; txtCity.Text = vendor.City; txtContact.Text = vendor.Contact; comboCountry.SelectedItem = vendor.Country; txtEmail.Text = vendor.ContactEmail; txtName.Text = vendor.Name; txtPhone.Text = vendor.Phone; txtZip.Text = vendor.Zip; comboState.SelectedItem = vendor.State; }
public RoleAccess(AccessToken accessToken, Control form) { _myAccessToken = accessToken; try { _controls = GetControls(form); _formName = form.Name; _currentForm = form; _accessControls = accessToken.Role.Controls; if (accessToken.Role.Id == 1000) { AddEditRoleMenuStrip(); } HasAccess(); } catch (Exception) { throw new ApplicationException("Error setting up role access"); } }