当前位置: 首页>>代码示例>>C#>>正文


C# ClsBAL.GetTicketIdByOnewayManabusRefNo方法代码示例

本文整理汇总了C#中BAL.ClsBAL.GetTicketIdByOnewayManabusRefNo方法的典型用法代码示例。如果您正苦于以下问题:C# ClsBAL.GetTicketIdByOnewayManabusRefNo方法的具体用法?C# ClsBAL.GetTicketIdByOnewayManabusRefNo怎么用?C# ClsBAL.GetTicketIdByOnewayManabusRefNo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BAL.ClsBAL的用法示例。


在下文中一共展示了ClsBAL.GetTicketIdByOnewayManabusRefNo方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: btnSignIn_Click

    protected void btnSignIn_Click(object sender, EventArgs e)
    {
        try
        {
            objBAL = new ClsBAL();
            objBAL.manabusRefNo = txtMBRefNo.Text.Trim().ToString();
            ObjDataset = (DataSet)objBAL.GetTicketIdByOnewayManabusRefNo();
            if (ObjDataset != null)
            {
                if (ObjDataset.Tables.Count > 0)
                {
                    if (ObjDataset.Tables[0].Rows.Count > 0)
                    {
                        string travelName = ObjDataset.Tables[0].Rows[0]["TravelOPName"].ToString();
                        string api = ObjDataset.Tables[0].Rows[0]["APIName"].ToString();
                        gvView.DataSource = ObjDataset.Tables[0];
                        foreach (DataRow item in ObjDataset.Tables[0].Rows)
                        {
                            //item["Comment"] = Convert.ToDecimal(item["Comment"].ToString()).ToString("0.00", System.Globalization.CultureInfo.InvariantCulture);

                            //item["TotalWithMarkPrice"] =
                            //    Convert.ToDecimal(
                            //    Convert.ToDecimal(item["Comment"].ToString())
                            //    +
                            //    Convert.ToDecimal(item["TotalFare"].ToString())
                            //    ).ToString("0.00", System.Globalization.CultureInfo.InvariantCulture)
                            //    ;
                        }

                        GetCancellationPolicy(travelName);
                        if (api == "Kesineni")
                        {

                        }
                        else {  }

                        gvView.DataBind();
                        Panel1.Visible = false;
                        pnlViewticket.Visible = true;
                    }
                    else
                    {
                        lblMsg.Text = "Invalid Ref No";
                        lblMsg.ForeColor = System.Drawing.Color.Red;
                        Panel1.Visible = true;
                        pnlViewticket.Visible = false;
                    }
                }
                else
                {
                    lblMsg.Text = "Invalid Ref No";
                    lblMsg.ForeColor = System.Drawing.Color.Red;
                    Panel1.Visible = true;
                    pnlViewticket.Visible = false;
                }
            }
            else
            {
                lblMsg.Text = "Invalid Ref No";
                lblMsg.ForeColor = System.Drawing.Color.Red;
                Panel1.Visible = true;
                pnlViewticket.Visible = false;
            }
        }
        catch (Exception)
        {
            throw;
        }
        finally
        {
            if (ObjDataset != null)
            {
                ObjDataset = null;
            }
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:76,代码来源:PrintTicket.aspx.cs

示例2: btnSignIn_Click

    protected void btnSignIn_Click(object sender, EventArgs e)
    {
        pnlFlightTicket.Visible = false;
        pnlViewticket.Visible = false;
        pnlhotelTicket.Visible = false;
        Panel1.Visible = false;
        Panel10.Visible = false;

        if (ddlType.SelectedItem.Text == "Bus")
        {
            pnlFlightTicket.Visible = false;
            pnlViewticket.Visible = false;
            pnlhotelTicket.Visible = false;
            Panel1.Visible = true;

            try
            {
                #region Bitla
                ////objBitlaAPILayer.TicketNumber = txtMBRefNo.Text.ToString();
                ////DataSet dsBitla = objBitlaAPILayer.GetTicketDetails();
                ////GridView1.DataSource = dsBitla;
                ////GridView1.DataBind();
                //#endregion

                //#region Kesneni
                //DataSet dsKesineni = objKesineniAPILayer.CancelTickets("843254",
                //    "RajuKatare", "RajuKatare", "05/25/2012", "2,1");
                //GridView1.DataSource = dsKesineni;
                //GridView1.DataBind();
                //#endregion

                //#region AbhiBus
                //DataTable dsAbhiBus = objAbhiBusAPILayer.GetTicketInfo("RajuKatare");
                //GridView1.DataSource = dsAbhiBus;
                //GridView1.DataBind();
                #endregion
                objManabusBAL = new ClsBAL();
                objManabusBAL.manabusRefNo = txtMBRefNo.Text;
                ObjDataset = (DataSet)objManabusBAL.GetTicketIdByOnewayManabusRefNo();
                if (ObjDataset != null)
                {
                    if (ObjDataset.Tables.Count > 0)
                    {
                        if (ObjDataset.Tables[0].Rows.Count > 0)
                        {
                            string travelName = ObjDataset.Tables[0].Rows[0]["TravelOPName"].ToString();
                            string api = ObjDataset.Tables[0].Rows[0]["APIName"].ToString();
                            gvView.DataSource = ObjDataset.Tables[0];
                            GetCancellationPolicy(travelName);
                            if (api == "Kesineni")
                            {
                                imgKesineni.Visible = true;
                            }
                            gvView.DataBind();
                            Panel1.Visible = false;
                            pnlViewticket.Visible = true;
                        }
                        else
                        {
                            lblMsg.Text = "Invalid Ref NO";
                            lblMsg.ForeColor = System.Drawing.Color.Red;
                            Panel1.Visible = true;
                            pnlViewticket.Visible = false;
                        }
                    }
                    else
                    {
                        lblMsg.Text = "Invalid Ref NO";
                        lblMsg.ForeColor = System.Drawing.Color.Red;
                        Panel1.Visible = true;
                        pnlViewticket.Visible = false;
                    }
                }
                else
                {
                    lblMsg.Text = "Invalid Ref NO";
                    lblMsg.ForeColor = System.Drawing.Color.Red;
                    Panel1.Visible = true;
                    pnlViewticket.Visible = false;
                }
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {

                if (ObjDataset != null)
                {
                    ObjDataset = null;
                }

            }
        }
        else if (ddlType.SelectedItem.Text == "Flight")
        {

            pnlFlightTicket.Visible = true;
            pnlViewticket.Visible = false;
//.........这里部分代码省略.........
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:101,代码来源:PrintTicket.aspx.cs

示例3: btnSignIn_Click

    protected void btnSignIn_Click(object sender, EventArgs e)
    {
        try
        {
            if (ddlType.SelectedValue == "Buses")
            {
                try
                {
                    objBAL = new ClsBAL();
                    objBAL.manabusRefNo = txtMBRefNo.Text;
                    ObjDataset = (DataSet)objBAL.GetTicketIdByOnewayManabusRefNo();
                    if (ObjDataset != null)
                    {
                        if (ObjDataset.Tables.Count > 0)
                        {
                            if (ObjDataset.Tables[0].Rows.Count > 0)
                            {
                                string travelName = ObjDataset.Tables[0].Rows[0]["TravelOPName"].ToString();
                                string api = ObjDataset.Tables[0].Rows[0]["APIName"].ToString();
                                gvView.DataSource = ObjDataset.Tables[0];
                                GetCancellationPolicy(travelName);
                                if (api == "Kesineni")
                                {
                                    imgKesineni.Visible = true;
                                }
                                else { imgKesineni.Visible = false; }
                                gvView.DataBind();
                                Panel1.Visible = false;
                                pnlViewticket.Visible = true;
                            }
                            else
                            {
                                lblMsg.Text = "Invalid Ref No";
                                lblMsg.ForeColor = System.Drawing.Color.Red;
                                Panel1.Visible = true;
                                pnlViewticket.Visible = false;
                            }
                        }
                        else
                        {
                            lblMsg.Text = "Invalid Ref No";
                            lblMsg.ForeColor = System.Drawing.Color.Red;
                            Panel1.Visible = true;
                            pnlViewticket.Visible = false;
                        }
                    }
                    else
                    {
                        lblMsg.Text = "Invalid Ref No";
                        lblMsg.ForeColor = System.Drawing.Color.Red;
                        Panel1.Visible = true;
                        pnlViewticket.Visible = false;
                    }
                }
                catch (Exception)
                {
                    throw;
                }
                finally
                {
                    if (ObjDataset != null)
                    {
                        ObjDataset = null;
                    }
                }
            }
            else if (ddlType.SelectedValue == "DomesticFlights")
            {
                DataSet dsFlights = new DataSet();
                dsFlights = objFlightsBAL.GetDomesticFlightDetails(txtRefNo.Text.Trim());
                if (dsFlights.Tables[0].Rows.Count > 0)
                {
                    string customerDetails = dsFlights.Tables[0].Rows[0]["Customer_Details"].ToString();
                    string[] strArryCustDet = customerDetails.Split('|');
                    lblName.Text = strArryCustDet[0] + strArryCustDet[1] + "  " + strArryCustDet[2];
                    lblTel.Text = dsFlights.Tables[0].Rows[0]["telephone"].ToString();
                    lblEmailAddress.Text = dsFlights.Tables[0].Rows[0]["emailAddress"].ToString();
                    lblPNR.Text = dsFlights.Tables[0].Rows[0]["ReferenceNo"].ToString();
                    lblOrigin.Text = dsFlights.Tables[0].Rows[0]["DepartureAirportCode"].ToString();
                    lblDestination.Text = dsFlights.Tables[0].Rows[0]["ArrivalAirportCode"].ToString();
                    lblAirlineName.Text = dsFlights.Tables[0].Rows[0]["airlineName"].ToString();
                    img.ImageUrl = dsFlights.Tables[0].Rows[0]["imageFileName"].ToString();
                    lblFlightNumber.Text = dsFlights.Tables[0].Rows[0]["FlightNumber"].ToString();
                    string DepartureDatetime = dsFlights.Tables[0].Rows[0]["DepartureDateTime"].ToString();
                    string[] strArryDeptDatetime = DepartureDatetime.Split('T');
                    lblDepartureDate.Text = strArryDeptDatetime[0].ToString();
                    lblDepartureTime.Text = strArryDeptDatetime[1].ToString();
                    string ArrivalDatetime = dsFlights.Tables[0].Rows[0]["ArrivalDateTime"].ToString();
                    string[] strArrivalDatetime = ArrivalDatetime.Split('T');
                    lblArrivalDate.Text = strArryDeptDatetime[0].ToString();
                    lblArrivalTime.Text = strArryDeptDatetime[1].ToString();
                    lblPNRNo.Text = dsFlights.Tables[0].Rows[0]["ReferenceNo"].ToString();
                    lblPsngrMobileNo.Text = dsFlights.Tables[0].Rows[0]["telephone"].ToString();

                    string[] strCusDetArr = customerDetails.Split(';');
                    string indCustDet = string.Empty;
                    DataTable dtPsgrDet = new DataTable();
                    dtPsgrDet.Columns.Add("Name", typeof(string));
                    dtPsgrDet.Columns.Add("Type", typeof(string));
                    dtPsgrDet.Columns.Add("Age", typeof(string));
//.........这里部分代码省略.........
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:101,代码来源:AdminDashBoardPrint.aspx.cs

示例4: btnSignIn_Click

    protected void btnSignIn_Click(object sender, EventArgs e)
    {
        try
        {

            objBAL = new ClsBAL();
            objBAL.manabusRefNo = txtMBRefNo.Text;
            ObjDataset = (DataSet)objBAL.GetTicketIdByOnewayManabusRefNo();
            if (ObjDataset != null)
            {
                if (ObjDataset.Tables.Count > 0)
                {
                    if (ObjDataset.Tables[0].Rows.Count > 0)
                    {
                         travelName = ObjDataset.Tables[0].Rows[0]["TravelOPName"].ToString();
                         api = ObjDataset.Tables[0].Rows[0]["APIName"].ToString();

                         Route = ObjDataset.Tables[0].Rows[0]["Route"].ToString();
                         LJRefNo = ObjDataset.Tables[0].Rows[0]["OnewayMBRefNo"].ToString();
                         PNR = ObjDataset.Tables[0].Rows[0]["PNRNumber"].ToString();
                         Boardingpoint = ObjDataset.Tables[0].Rows[0]["BoardingPointName"].ToString();
                         BoardingInfo = ObjDataset.Tables[0].Rows[0]["BoardingInfo"].ToString();
                         ContactNo = ObjDataset.Tables[0].Rows[0]["ContactNo"].ToString();
                         SeatNos = ObjDataset.Tables[0].Rows[0]["SeatNos"].ToString();

                        gvView.DataSource = ObjDataset.Tables[0];
                        gvView.DataBind();
                        GetCancellationPolicy(travelName);
                        if (api == "Kesineni")
                        {

                        }

                        Panel1.Visible = false;
                        pnlViewticket.Visible = true;
                    }
                    else
                    {
                        Label1.Text = "Invalid  Ref No";
                        Label1.ForeColor = System.Drawing.Color.Red;
                        Panel1.Visible = true;
                        pnlViewticket.Visible = false;
                    }
                }
                else
                {
                    Label1.Text = "Invalid  Ref No";
                    Label1.ForeColor = System.Drawing.Color.Red;
                    Panel1.Visible = true;
                    pnlViewticket.Visible = false;
                }
            }
            else
            {
                Label1.Text = "Invalid  Ref No";
                Label1.ForeColor = System.Drawing.Color.Red;
                Panel1.Visible = true;
                pnlViewticket.Visible = false;
            }
        }
        catch (Exception)
        {
            throw;
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:65,代码来源:PrintTicket.aspx.cs


注:本文中的BAL.ClsBAL.GetTicketIdByOnewayManabusRefNo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。