public FrmRoleDialog(AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            FillRolesComboBox();
        }
Beispiel #2
0
        public FrmRoleDialog(AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            FillRolesComboBox();
        }
 public FrmUpdateReorderThreshold(int?currentReorderAmount, int currentProductID, AccessToken _myAccessToken)
 {
     InitializeComponent();
     _currentAmount  = currentReorderAmount;
     _currentProduct = currentProductID;
     var RoleAccess = new RoleAccess(_myAccessToken, this);
 }
Beispiel #4
0
        public frmReceiving(AccessToken acctkn)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctkn, this);

            _myAccessToken = acctkn;
        }
Beispiel #5
0
        public frmReceiving(AccessToken acctkn)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctkn, this);

            _myAccessToken = acctkn;
        }
 public FrmUpdateReorderThreshold(int? currentReorderAmount, int currentProductID, AccessToken _myAccessToken)
 {
     InitializeComponent();
     _currentAmount = currentReorderAmount;
     _currentProduct = currentProductID;
     var RoleAccess = new RoleAccess(_myAccessToken, this);
 }
        public frmPrintPackReport(ShippingOrder order, AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _currentOrder = order;
            Instance = this;
        }
Beispiel #8
0
        public frmPrintOrderDetails(int myOrderId, AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _myOrderId = myOrderId;
            Instance   = this;
        }//frmPrintOrderDetails(.)
Beispiel #9
0
        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 frmPrintPackReport(ShippingOrder order, AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _currentOrder = order;
            Instance      = this;
        }//frmPrintPackReport(.)
Beispiel #12
0
        public FrmRoleView(AccessToken accessToken, Role role = null)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(accessToken, this);

            _accessToken = accessToken;
            _role        = role;
        }
Beispiel #13
0
        //Constructor with AccessToken as the only parameter.
        public frmReorder(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);

            _myAccessToken = acctoken;
            Instance       = this;
        }
Beispiel #14
0
        public FrmEmployees(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);
            _myAccessToken = acctoken;

            Instance = this;
        }
Beispiel #15
0
        private Boolean _vendorOrdered = true; //used to check if current Vendor Order has been ordered before moving to new Vendor Order

        #endregion Fields

        #region Constructors

        //Constructor with AccessToken as the only parameter.
        public frmReorder(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);

            _myAccessToken = acctoken;
            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);
 }
Beispiel #17
0
        public FrmAddShippingVendor(AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _myShippingVendorManager = new ShippingVendorManager();
            PopulateCountryCombo();
            PopulateStateCombo();
        }//End of FrmAddShippingVendor()
Beispiel #18
0
 public FrmAttachVendorSource(Product product, AccessToken _myAccessToken)
 {
     InitializeComponent();
     _currentProduct = product;
     _vendorSource   = new VendorSourceItemManager();
     _vendorManager  = new VendorManager();
     _vendors        = _vendorManager.GetVendors();
     var RoleAccess = new RoleAccess(_myAccessToken, this);
 }//End of FrmAttachVendorSource(.)
Beispiel #19
0
        public FrmShippingTerm(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);

            _myAccessToken = acctoken;
            _myTermManager = new ShippingTermManager();
            Instance       = this;
        }
Beispiel #20
0
        public FrmEmployees(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);

            _myAccessToken = acctoken;

            Instance = this;
        }
        public FrmShippingTerm(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);

            _myAccessToken = acctoken;
            _myTermManager = new ShippingTermManager();
            Instance = this;
        }
        public FrmAddShippingVendor(AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _myShippingVendorManager = new ShippingVendorManager();
            PopulateCountryCombo();
            PopulateStateCombo();
        }
Beispiel #23
0
        // 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;
        }
        public FrmAddShippingTerm(AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _myShippingTermManager = new ShippingTermManager();
            _myShippingVendorManager = new ShippingVendorManager();
            vendors = _myShippingVendorManager.GetVendors();
            PopulateVendorCombo();
        }
        public FrmShippingPackList(AccessToken accToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(accToken, this);

            _myAccessToken = accToken;
            _myOrderManager = new ShippingOrderManager();
            RefreshPackView();
            Instance = this;
        }
        public FrmShippingMyOrders(AccessToken accToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(accToken, this);

            _myAccessToken  = accToken;
            _myOrderManager = new ShippingOrderManager();
            RefreshMyOrdersView();
            Instance = this;
        }//End FrmShippingMyOrders(.)
Beispiel #27
0
        // 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;
        }
        public FrmShippingAllOrders(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);

            _myAccessToken = acctoken;
            _myOrderManager = new ShippingOrderManager();
            PopulateMasterListView(lvAllOrders, _myOrderManager.GetAllShippingOrders());
            Instance = this;
        }
Beispiel #29
0
        public FrmShippingAllOrders(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);

            _myAccessToken  = acctoken;
            _myOrderManager = new ShippingOrderManager();
            PopulateMasterListView(lvAllOrders, _myOrderManager.GetAllShippingOrders());
            Instance = this;
        }//End FrmShippingAllOrders(.)
        public FrmAddShippingTerm(AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _myShippingTermManager   = new ShippingTermManager();
            _myShippingVendorManager = new ShippingVendorManager();
            vendors = _myShippingVendorManager.GetVendors();
            PopulateVendorCombo();
        }//End of FrmAddShippingTerm()
 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 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;
        }
Beispiel #34
0
        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;
        }
Beispiel #35
0
 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);
 }// End FrmViewOrderDetails(..)
Beispiel #36
0
        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;
 }
Beispiel #38
0
        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;
        }//End of FrmUpdateShippingTerm(.)
        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 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 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;
 }
Beispiel #42
0
        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;
        }//End of FrmUpdateShippingVendor(.)
        public FrmUpdateVendorOrderLineItem(VendorOrderLineItem item, string vendorName, int vendorID, AccessToken acctkn)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctkn, this);

            this.item = item;
            txtLineItemProductID.Text           = item.ProductID.ToString();
            txtLineItemProductName.Text         = item.Name;
            txtLineItemQuantityOrdered.Text     = item.QtyOrdered.ToString();
            upDownQuantityDamaged.Value         = 0;
            upDownQuantityReceived.Value        = 0;
            txtLineItemVendorID.Text            = vendorID.ToString();
            txtLineItemVendorOrderID.Text       = item.VendorOrderId.ToString();
            txtLineItemVendorName.Text          = vendorName;
            txtLineItemVendorName.ReadOnly      = true;
            txtLineItemProductID.ReadOnly       = true;
            txtLineItemProductName.ReadOnly     = true;
            txtLineItemVendorID.ReadOnly        = true;
            txtLineItemVendorOrderID.ReadOnly   = true;
            txtLineItemQuantityOrdered.ReadOnly = true;
        }
        public FrmUpdateVendorOrderLineItem(VendorOrderLineItem item, string vendorName, int vendorID, AccessToken acctkn)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctkn, this);

            this.item = item;
            txtLineItemProductID.Text = item.ProductID.ToString();
            txtLineItemProductName.Text = item.Name;
            txtLineItemQuantityOrdered.Text = item.QtyOrdered.ToString();
            upDownQuantityDamaged.Value = 0;
            upDownQuantityReceived.Value = 0;
            txtLineItemVendorID.Text = vendorID.ToString();
            txtLineItemVendorOrderID.Text = item.VendorOrderId.ToString();
            txtLineItemVendorName.Text = vendorName;
            txtLineItemVendorName.ReadOnly = true;
            txtLineItemProductID.ReadOnly = true;
            txtLineItemProductName.ReadOnly = true;
            txtLineItemVendorID.ReadOnly = true;
            txtLineItemVendorOrderID.ReadOnly = true;
            txtLineItemQuantityOrdered.ReadOnly = true;
        }
 public frmEmployeeDirectory(AccessToken _myAccessToken)
 {
     InitializeComponent();
     var RoleAccess = new RoleAccess(_myAccessToken, this);
 }
 public frmVendorProductReport(AccessToken _myAccessToken)
 {
     InitializeComponent();
     Instance = this;
     var RoleAccess = new RoleAccess(_myAccessToken, this);
 }
 public frmReorderChangeLevels(Reorder _product, AccessToken _myAccessToken)
 {
     InitializeComponent();
     _curProduct = _product;
     var RoleAccess = new RoleAccess(_myAccessToken, this);
 }
Beispiel #48
0
 public frmReorderChangeLevels(Reorder _product, AccessToken _myAccessToken)
 {
     InitializeComponent();
     _curProduct = _product;
     var RoleAccess = new RoleAccess(_myAccessToken, this);
 }
 public frmVendorProductReport(AccessToken _myAccessToken)
 {
     InitializeComponent();
     Instance = this;
     var RoleAccess = new RoleAccess(_myAccessToken, this);
 }//frmVendorProductReport()