Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     DiskList dl = new DiskList();
     dl.Show();
     dl.Closed += new EventHandler(dl_Closed);
     this.Hide();
 }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            DiskList dl = new DiskList();

            dl.Show();
            dl.Closed += new EventHandler(dl_Closed);
            this.Hide();
        }
Пример #3
0
 private void btn_OK_Click(object sender, EventArgs e)
 {
     if (this.txt_ASN.Text.Trim() == string.Empty && this.txt_Disk.Text.Trim() == string.Empty && this.txt_SKU.Text.Trim() == string.Empty)
     {
         MessageBox.Show("请至少输入一个查询条件!");
     }
     else
     {
         DataSet ds = new DataSet();
         ds = new DB().GetDiskList(this.txt_Disk.Text.ToUpper().Trim(), this.txt_SKU.Text.ToUpper().Trim(), System.DateTime.Now, this.txt_ASN.Text.ToUpper().Trim());
         DiskList dl = new DiskList(ds);
         dl.Show();
         dl.Closed += new EventHandler(dl_Closed);
         this.Hide();
     }
 }
Пример #4
0
 private void btn_OK_Click(object sender, EventArgs e)
 {
     if (this.txt_ASN.Text.Trim() == string.Empty && this.txt_Disk.Text.Trim() == string.Empty && this.txt_SKU.Text.Trim() == string.Empty)
     {
         MessageBox.Show("请至少输入一个查询条件!");
     }
     else
     {
         DataSet ds = new DataSet();
         ds = new DB().GetDiskList(this.txt_Disk.Text.ToUpper().Trim(), this.txt_SKU.Text.ToUpper().Trim(), System.DateTime.Now, this.txt_ASN.Text.ToUpper().Trim());
         DiskList dl = new DiskList(ds);
         dl.Show();
         dl.Closed += new EventHandler(dl_Closed);
         this.Hide();
     }
 }