Пример #1
0
    protected void Bind_Quote_Details()
    {
        BLL_TRV_QuoteRequest objRFQ = new BLL_TRV_QuoteRequest();
        DataSet dsQuoteDetails      = objRFQ.Get_Quotation_Details(Convert.ToInt32(Request.QueryString["RequestID"]), Convert.ToInt32(Request.QueryString["QuoteID"]));

        if (dsQuoteDetails.Tables.Count > 1)
        {
            dsQuoteDetails.Tables[1].PrimaryKey = new DataColumn[] { dsQuoteDetails.Tables[1].Columns["id"] };

            GrdFlight.DataSource = dsQuoteDetails.Tables[1];
            GrdFlight.DataBind();
        }
        if (dsQuoteDetails.Tables[0].Rows.Count > 0)
        {
            txtGDSLocator.Text     = dsQuoteDetails.Tables[0].Rows[0]["GDSLocator"].ToString();
            txtTicketDeadline.Text = dsQuoteDetails.Tables[0].Rows[0]["TicketingDeadline"].ToString();
            cmbHours.Items.FindByValue(dsQuoteDetails.Tables[0].Rows[0]["TimeHours"].ToString()).Selected = true;
            cmbMins.Items.FindByValue(dsQuoteDetails.Tables[0].Rows[0]["TimeMins"].ToString()).Selected   = true;
            txtFare.Text    = dsQuoteDetails.Tables[0].Rows[0]["Fare"].ToString();
            txtTax.Text     = dsQuoteDetails.Tables[0].Rows[0]["Tax"].ToString();
            txtPNRText.Text = dsQuoteDetails.Tables[0].Rows[0]["Remarks"].ToString();
            cmbCurrency.Items.FindByValue(dsQuoteDetails.Tables[0].Rows[0]["currency"].ToString()).Selected = true;
            txtbaggageallowances.Text  = dsQuoteDetails.Tables[0].Rows[0]["Baggage_Charge"].ToString();
            txtCancellationCharge.Text = dsQuoteDetails.Tables[0].Rows[0]["Cancellation_Charge"].ToString();
            txtDateChangeAllow.Text    = dsQuoteDetails.Tables[0].Rows[0]["Date_Change_Charge"].ToString();
        }
    }