Пример #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     order_cust_keeper ok = new order_cust_keeper();
     string res = ok.GetStatus(int.Parse(TextBox2.Text));
     if (res.Equals("error")) Label5.Text = "Order Not Found!";
     else TextBox3.Text = res; 
 }
Пример #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            order_cust_keeper ok = new order_cust_keeper();
            cylinder_dealer_keeper ck = new cylinder_dealer_keeper();
            customer_keeper cust = new customer_keeper();
            customer_class cc = cust.GetData(int.Parse(Session["user_id"].ToString()));
            

            
            cc._booking_count++;
            if (cc._subsidy_count > 0)
            {
                cc._subsidy_count--;
            }

            int cylinder_id = ck.assign(cc._dealer_id );

            int id = ok.get_id(); 
            ok.insert(id, int.Parse(Session["user_id"].ToString()), cylinder_id);
            TextBox7.Text = cylinder_id.ToString ();
            TextBox4.Text = id.ToString() ;

            

            cust.update(cc);
  
 
        }
Пример #3
0
        private void GetData(int id)
        {
            order_cust_keeper od = new order_cust_keeper();
            ArrayList arr = od.GetData(id);

            Session["da"] = arr[0];
            Session["ds"] = arr[1];
            SetData();

        }