Пример #1
0
    protected void btnSettle_Click(object sender, CommandEventArgs e)
    {
        //Defining the Values to the Object
        TransactionRecord tr = new TransactionRecord();

        tr.BookingID     = txt_BookingID.Text.Length > 0 ? long.Parse(txt_BookingID.Text) : 0;
        tr.ReceiptNo     = txt_ReceiptNo.Text.Length > 0 ? txt_ReceiptNo.Text : "0";
        tr.DateOfBooking = txt_BookingDate.Text.Length > 0 ? txt_BookingDate.Text : "0";
        tr.Location      = txt_bookingDateTo.Text.Length > 0 ? txt_bookingDateTo.Text : "0";
        tr.ShowDate      = txt_ShowDate.Text.Length > 0 ? txt_ShowDate.Text : "0";
        tr.MobileNo      = txt_ShowDateTo.Text.Length > 0 ? txt_ShowDateTo.Text : "0";
        tr.Name          = txt_Name.Text.Length > 0 ? txt_Name.Text : "0";
        tr.AgentCode     = ddlAgent.SelectedValue;
        tr.ID            = int.Parse(lblBookingID.Text);
        tr.SeatInfo      = lblCurrentseats.Text + " (" + textRemarks.Text + ")";
        DataSet ds = TransactionBOL.Settle_Transaction_Details(tr);

        gv_Report.DataSource = ds.Tables[0].DefaultView;
        gv_Report.DataBind();
    }