private void reportThisConsignorByItemStatusToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (iRowClick != -9)
     {
         GlobalClass gc = new GlobalClass();
         gc.ClearEverything();
         GlobalClass.ConsignerID = int.Parse(dataGridView1[0, iRowClick].Value.ToString());
         GlobalClass.WhateverInt = -1;
         Report_ConsignorDetailReport cDetails = new Report_ConsignorDetailReport();
         cDetails.MdiParent = this.MdiParent;
         cDetails.Show();
     }
 }
        /// <summary>
        /// Load new inventory data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void NewInventory_Load(object sender, EventArgs e)
        {
            GlobalClass gc = new GlobalClass();
            if (GlobalClass.ConsignerID != 0)
            {
                txtConsignorName.Text = GlobalClass.ConsignerSearchName;
                txtConsignerID.Text = GlobalClass.ConsignerID.ToString();

                txtConsignerID.Enabled = false;
                txtConsignorName.Enabled = false;
                gc.ClearEverything();
            }
            else
            {
                txtConsignerID.Enabled = true;
                txtConsignorName.Enabled = true;
            }
            dgInventoryColumns();
        }
 private void SalesTaxCall()
 {
     GlobalClass gc = new GlobalClass();
     SalesTaxRate = gc.SalesTax;
 }
        /// <summary>
        /// load the selected inventory item by the inventory number id
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UpdateInventory_Load(object sender, EventArgs e)
        {
            LoadComboBox();
            GlobalClass gc = new GlobalClass();
            // were we passed this form or asked to update?
            if ((GlobalClass.ConsignerID != 0) && (GlobalClass.InventoryID != string.Empty))
            {
                LoadDetails(int.Parse(GlobalClass.InventoryID.ToString()));
            }
            else
            {
                txtItemID.Enabled = true;
                cmdSearch.Visible = true;
            }

            gc.ClearEverything();
        }
Exemple #5
0
        private void Payments_Load(object sender, EventArgs e)
        {
            GetPayRate();
            GlobalClass mygc = new GlobalClass();
            if (GlobalClass.ConsignerID == 0)
            {
                LoadDataGridHeader(1);
                LoadConsignor(0);
                contextMenuStrip1.Items["MarkAsPaid"].Enabled = false;
                dgThePayment.Visible = false;
                cmdCancel.Visible = false;
                cmdSave.Visible = false;
            }
            else
            {
                LoadDataGridHeader(2);
                LoadConsignor(GlobalClass.ConsignerID);
                dgThePayment.Visible = true;
                ThePaymentGridSetup();
                contextMenuStrip1.Items["GetSalesInfo"].Enabled = false;
                contextMenuStrip1.Items["GetConsignorInfo"].Enabled = false;
            }

            // set the max grid based on PreSelected
            if (!PreSelected)
            {
                dgPayments.Width = this.Width - 50;
                dgPayments.Height = this.Height - 50;
            }
            mygc.ClearEverything();
        }
Exemple #6
0
        private void toolStripButton2Action()
        {
            if (toolStripTextBox1.Text != string.Empty)
            {
                int outnumber = 0;
                if (int.TryParse(toolStripTextBox1.Text, out outnumber) == true)
                {
                    GlobalClass gc = new GlobalClass();
                    gc.ClearEverything();
                    GlobalClass.ConsignerID = outnumber;
                }
                else
                {
                    //CONSIGNOR SEARCH
                    GlobalClass gc = new GlobalClass();
                    gc.ClearEverything();
                    GlobalClass.ConsignerSearchName = toolStripTextBox1.Text;
                }

                SearchResults SR = new SearchResults();
                SR.MdiParent = this;
                toolStripTextBox1.Text = string.Empty;
                SR.Show();
            }
        }
Exemple #7
0
 private void toolStripButton1Action()
 {
     if (toolStripTextBox2.Text != string.Empty)
     {
         //ITEM SEARCH
         GlobalClass gc = new GlobalClass();
         gc.ClearEverything();
         GlobalClass.InventoryDescription = toolStripTextBox2.Text.ToString();
         SearchResults SR = new SearchResults();
         SR.MdiParent = this;
         toolStripTextBox2.Text = string.Empty;
         SR.Show();
     }
 }
        private void SearchResults_Load(object sender, EventArgs e)
        {
            GlobalClass gc = new GlobalClass();
            if (GlobalClass.InventoryDescription != string.Empty)
            {
                //we have a inventory description id search
                SearchBarCodeID(GlobalClass.InventoryDescription);
                gc.ClearEverything();
                dataGridView1.ContextMenuStrip = contextMenuStrip2;
            }

            if (GlobalClass.ConsignerSearchName != string.Empty)
            {
                //we have a consignor name search
                SearchConsignerName(GlobalClass.ConsignerSearchName);
                gc.ClearEverything();
                dataGridView1.ContextMenuStrip = contextMenuStrip1;
            }

            if (GlobalClass.ConsignerID != 0)
            {
                //we have an inventory search by consignorid
                SearchConsignorID(GlobalClass.ConsignerID);
                gc.ClearEverything();
                dataGridView1.ContextMenuStrip = contextMenuStrip2;
            }

            gc.ClearEverything();
            statusStrip1.Text = string.Empty;
        }
 private void NewConsignor_Load(object sender, EventArgs e)
 {
     GlobalClass gc = new GlobalClass();
     if (GlobalClass.ConsignerID != 0)
     {
         //we have a consigner to update
         lblConsignorID.Visible = true;
         txtConsignorID.Visible = true;
         GetConsignor(GlobalClass.ConsignerID);
     }
     else
     {
         lblConsignorID.Visible = false;
         txtConsignorID.Visible = false;
         //allow new consignor to be entered
     }
     gc.ClearEverything();
 }