private void button19_Click(object sender, EventArgs e) { Admin.queryViaPho program3 = new Admin.queryViaPho(); DataTable dt = program3.dateSend(dateTimePicker3.Value.Date); //DateTimePicker.Value.ToString( "yyyy-MM-dd "); dataGridView2.DataSource = dt; }
private void button8_Click(object sender, EventArgs e) { Admin.queryViaPho program4 = new Admin.queryViaPho(); if (textBox21.Text.ToString() == "") { return; } dataGridView1.DataSource = program4.query(Convert.ToInt32(textBox21.Text)); }
private void button1_Click(object sender, EventArgs e) { Admin.queryViaPho program1 = new Admin.queryViaPho(); foreach (DataRow item in program1.query(textBox1.Text).Rows) { textBox2.Text = item[3].ToString(); textBox5.Text = item[4].ToString(); textBox4.Text = item[5].ToString(); textBox3.Text = item[6].ToString(); textBox6.Text = item[7].ToString(); textBox7.Text = item[8].ToString(); textBox8.Text = item[9].ToString(); textBox9.Text = item[10].ToString(); textBox10.Text = item[11].ToString(); } }
private void button3_Click(object sender, EventArgs e) { foreach (DataRow item in Form1Form2.mm.temp.Rows) { item[3] = textBox2.Text.ToString(); item[4] = textBox5.Text.ToString(); item[5] = textBox4.Text.ToString(); item[6] = textBox3.Text.ToString(); item[7] = textBox6.Text.ToString(); item[8] = textBox7.Text.ToString(); item[9] = textBox8.Text.ToString(); item[10] = textBox9.Text.ToString(); item[11] = textBox10.Text.ToString(); } Admin.queryViaPho program2 = new Admin.queryViaPho(); program2.update(Form1Form2.mm.temp); }
private void button11_Click(object sender, EventArgs e) { Admin.queryViaPho program4 = new Admin.queryViaPho(); textBox22.Text = program4.Money(program4.dateSend(dateTimePicker1.Value.Date)).ToString(); }