예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            {
                conn.sqlConnection1.Open();
                SqlCommand smd = new SqlCommand("insert into grn_tbl(grnid,grndate,poid,vid)values(@grnid,@grndate,@poid,@vid)", conn.sqlConnection1);
                smd.Parameters.AddWithValue("@grnid", textBox1.Text);
                smd.Parameters.AddWithValue("@grndate", textBox2.Text);
                smd.Parameters.AddWithValue("@poid", comboBox1.Text);
                smd.Parameters.AddWithValue("@vid", textBox3.Text);


                smd.ExecuteNonQuery();
                MessageBox.Show("Data Inserted");
                conn.sqlConnection1.Close();
            }
            {
                Invoic inv = new Invoic();
                inv.Show();
            }
        }
예제 #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            Invoic inc = new Invoic();

            inc.Show();
        }