示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     DokBoxCreateForm.DokBoxCreateShow();
     ds = AppDataSet.setData("xdokbox");
     dataGridView1.DataSource = ds;
     dataGridView1.DataMember = "xdokbox";
 }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (this.textBox1.Text == "")
     {
         MessageBox.Show("Należy obowiązkowo podać numer dokumentu");
     }
     else if (this.comboBox1.Text == "")
     {
         MessageBox.Show("Należy obowiązkowo podać typ dokumentu");
     }
     else
     {
         this.NullHandler();
         this.MMChecker(this.comboBox1.Text, this.comb4);
         if (!DokBoxCreateForm.Insert("dokbox", "NRDOK", "TYP", "ZIARID", "KONBOX_XKEY", "POBÓR", "ZBIORNIK", "MASA", "DATA", "KIERBOX_XKEY", "POJBOX_XKEY", "NACZBOX_XKEY", "WILGOTNOŚĆ", "BIAŁKO", "GLUTEN", "GĘSTOŚĆ", "ZU", "ZN", this.textBox1.Text, this.comboBox1.Text, this.comb3, Convert.ToInt32(this.comboBox2.ValueMember), this.comb4, this.comb8, this.textBox2.Text, this.dateTimePicker1.Value, Convert.ToInt32(this.comb5), Convert.ToInt32(this.comb6), Convert.ToInt32(this.comb7), this.textBox3.Text, this.textBox4.Text, this.textBox5.Text, this.textBox6.Text, this.textBox7.Text, this.textBox8.Text))
         {
             return;
         }
         this.Close();
     }
 }