private void button1_Click(object sender, EventArgs e) { if (Order_Id == 0) { int Orderno = 0; Hashtable ht_Maxid = new Hashtable(); DataTable dt_Maxid = new DataTable(); ht_Maxid.Add("@Trans", "MAX_ORDER_NO"); dt_Maxid = dataaccess.ExecuteSP("Sp_Order", ht_Maxid); if (dt_Maxid.Rows.Count > 0) { Orderno = int.Parse(dt_Maxid.Rows[0]["ORDER_NUMBER"].ToString()); Order_Uploads Orderuploads = new Order_Uploads("Insert", Orderno, userid, txt_OrderNumber.Text, ddl_ClientName.SelectedValue.ToString(), ddl_SubProcess.SelectedValue.ToString()); Orderuploads.Show(); } } else { Order_Uploads Orderuploads = new Order_Uploads("Update", Order_Id, userid, txt_OrderNumber.Text, ddl_ClientName.Text, ddl_SubProcess.Text); Orderuploads.Show(); } }
private void button1_Click(object sender, EventArgs e) { Order_Uploads Orderuploads = new Order_Uploads(Order_Id); Orderuploads.Show(); }