Beispiel #1
0
 protected void LinkButton6_Click(object sender, EventArgs e)
 {
     CashierInsertDetails.Addcuschequedetails(1, int.Parse(Label33.Text.ToString()), TextBox1.Text.ToString(), TextBox2.Text.ToString(), TextBox3.Text.ToString(), DateTime.Parse(Label51.Text.ToString()), DropDownList1.Text.ToString(), DateTime.Parse(TextBox4.Text.ToString()), double.Parse(TextBox5.Text.ToString()), DropDownList2.Text.ToString(), DropDownList3.Text.ToString(), DropDownList4.Text.ToString(), TextBox6.Text.ToString(), TextBox7.Text.ToString(), TextBox8.Text.ToString(), TextBox9.Text.ToString(), "Not Deposit", Session["sc"].ToString());
     Label50.Text               = CashierInsertDetails.issueid.ToString();
     Session["issueid"]         = Label50.Text.ToString();
     Session["cuschequeno"]     = TextBox3.Text.ToString();
     Session["cuschequeamount"] = TextBox5.Text.ToString();
     Session["cuschequetype"]   = DropDownList1.Text.ToString();
     Session["cuschequedate"]   = TextBox4.Text.ToString();
     Label51.Text               = System.DateTime.Today.ToString();
 }
Beispiel #2
0
 protected void LinkButton1_Click(object sender, EventArgs e)
 {
     try
     {
         CashierInsertDetails.Addcuschequedetails(1, int.Parse(Label33.Text.ToString()), TextBox1.Text.ToString(), TextBox2.Text.ToString(), TextBox3.Text.ToString(), DateTime.Parse(Label51.Text.ToString()), DropDownList1.Text.ToString(), DateTime.Parse(Calendar1.SelectedDate.ToString()), double.Parse(TextBox5.Text.ToString()), DropDownList2.Text.ToString(), DropDownList3.Text.ToString(), DropDownList4.Text.ToString(), TextBox6.Text.ToString(), TextBox7.Text.ToString(), TextBox8.Text.ToString(), TextBox9.Text.ToString(), "Not Deposit", Session["sc"].ToString());
         Label50.Text               = CashierInsertDetails.issueid.ToString();
         Session["issueid"]         = Label50.Text.ToString();
         Session["cuschequeno"]     = TextBox3.Text.ToString();
         Session["cuschequeamount"] = TextBox5.Text.ToString();
         Session["cuschequetype"]   = DropDownList1.Text.ToString();
         Session["cuschequedate"]   = Calendar1.SelectedDate.ToString();
         Label51.Text               = System.DateTime.Today.ToString();
         Label52.Visible            = true;
         Label52.Text               = "Data Store In Database Cheque Transition ID:" + Label50.Text.ToString();
         LinkButton2.Enabled        = true;
         LinkButton3.Enabled        = true;
     }
     catch {
         Label53.Visible = true;
         Label53.Text    = "Data Not Store Check Your All Data";
     }
 }