Beispiel #1
0
        protected void LoadItem(object sender, EventArgs e, String name)
        {
            DataTable    tb  = new DataTable();
            SqlParameter par = new SqlParameter();

            par.ParameterName = "@Id";
            par.Value         = name;
            tb = cM.getAllData("select_product_byID", par, null, null, null);
            Class.cOrder_detial order = new Class.cOrder_detial();

            order.Insert(Convert.ToInt32(txtInvo.Text), Convert.ToInt32(tb.Rows[0][0].ToString()), 1, tb.Rows[0][2].ToString(), "00", tb.Rows[0][2].ToString());
            get_order_hold(txtInvo.Text);
            getTotal();
        }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     Class.cOrder_detial order = new Class.cOrder_detial();
     order.Insert(1, 1, 2, "100", "200", "0");
     MessageBox.Show("Inserted ");
 }