Esempio n. 1
0
        public FrmRoleDialog(AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            FillRolesComboBox();
        }
Esempio n. 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);
 }
Esempio n. 4
0
        public frmReceiving(AccessToken acctkn)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctkn, this);

            _myAccessToken = acctkn;
        }
Esempio n. 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;
        }
Esempio n. 8
0
        public frmPrintOrderDetails(int myOrderId, AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

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

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

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

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

            Instance = this;
        }
Esempio n. 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);
 }
Esempio n. 17
0
        public FrmAddShippingVendor(AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _myShippingVendorManager = new ShippingVendorManager();
            PopulateCountryCombo();
            PopulateStateCombo();
        }//End of FrmAddShippingVendor()
Esempio n. 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(.)
Esempio n. 19
0
        public FrmShippingTerm(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);

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

            _myAccessToken = acctoken;

            Instance = this;
        }
Esempio n. 21
0
        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();
        }
Esempio n. 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;
        }
Esempio n. 24
0
        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;
        }
Esempio n. 26
0
        public FrmShippingMyOrders(AccessToken accToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(accToken, this);

            _myAccessToken  = accToken;
            _myOrderManager = new ShippingOrderManager();
            RefreshMyOrdersView();
            Instance = this;
        }//End FrmShippingMyOrders(.)
Esempio n. 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;
        }
Esempio n. 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(.)
Esempio n. 30
0
        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);
 }
Esempio n. 32
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;
        }
Esempio n. 33
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;
        }
Esempio n. 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;
        }
Esempio n. 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(..)
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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);
 }
Esempio n. 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()