コード例 #1
0
ファイル: MDIParent1.cs プロジェクト: doghousesoftware/CIMS
        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();
            }
        }
コード例 #2
0
 private void viewAllOfThisConsignorsInventoryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //show all inventory for this consignor
     if (iRowClick != -9)
     {
         GlobalClass.ConsignerID = int.Parse(dataGridView1[1, iRowClick].Value.ToString());
         SearchResults newForm = new SearchResults();
         newForm.MdiParent = this.MdiParent;
         newForm.Show();
     }
     else
     {
         iRowClick = -9;
     }
 }
コード例 #3
0
ファイル: MDIParent1.cs プロジェクト: doghousesoftware/CIMS
 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();
     }
 }
コード例 #4
0
        private void updateConsignorsInventoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (iRowClick != -9)
            {
                //WE SHOW THE LIST OF INVENTORY FOR THAT CONSIGNOR
                //WHICH IS A TYPE OF ITEM SEARCH
                GlobalClass.ConsignerID = int.Parse(dataGridView1[0, iRowClick].Value.ToString());
                GlobalClass.ConsignerSearchName = string.Empty;
                GlobalClass.InventoryDescription = string.Empty;
                GlobalClass.InventoryID = string.Empty;

                SearchResults SR = new SearchResults();
                SR.MdiParent = this.MdiParent;
                SR.Show();
            }
            else
            {
                iRowClick = -9;
            }
        }