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


C# ClsBAL.GetTicketIdByManabusRefNo方法代码示例

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


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

示例1: GetTicketDetails

    protected void GetTicketDetails()
    {
        try
        {
            if (Session["manabusrefno"] != null)
            {
                ObjBAL = new ClsBAL();
                ObjBAL.manabusRefNo = Session["manabusrefno"].ToString();
                _objDataSetBook = (DataSet)ObjBAL.GetTicketIdByManabusRefNo();
                if (_objDataSetBook != null)
                {
                    if (_objDataSetBook.Tables.Count > 0)
                    {
                        if (_objDataSetBook.Tables[0].Rows.Count > 0)
                        {
                            string travelName = _objDataSetBook.Tables[0].Rows[0]["TravelOPName"].ToString();
                            string api = _objDataSetBook.Tables[0].Rows[0]["APIName"].ToString();
                            lblNewcashcouponcode.Text = _objDataSetBook.Tables[0].Rows[0]["CouponNo"].ToString();
                            lblnewCouponAmount.Text = _objDataSetBook.Tables[0].Rows[0]["CashCouponAmount"].ToString();
                            gvView.DataSource = _objDataSetBook.Tables[0];
                            gvView.DataBind();
                            GetCancellationPolicy(travelName);
                            if (api == "Kesineni")
                            {
                                imgKesineni.Visible = true;
                            }
                            Mail();
                            #region SMS
                            Label lblManabusRefNo = (Label)gvView.Rows[0].FindControl("lblManabusRefNo");
                            Label lblDOJ = (Label)gvView.Rows[0].FindControl("lblDOJ");
                            Label lblTravelName = (Label)gvView.Rows[0].FindControl("lblTravelName");
                            Label lblSourceName = (Label)gvView.Rows[0].FindControl("lblSourceName");
                            Label lblDestinationName = (Label)gvView.Rows[0].FindControl("lblDestinationName");
                            Label lblBusType = (Label)gvView.Rows[0].FindControl("lblBusType");
                            Label lblBoardingPoint = (Label)gvView.Rows[0].FindControl("lblBoardingPoint");
                            Label lblEmailID = (Label)gvView.Rows[0].FindControl("lblEmailid");
                            Label lblContactNo = (Label)gvView.Rows[0].FindControl("lblContactNo");
                            Label lblBookedBy = (Label)gvView.Rows[0].FindControl("lblBookedBy");
                            string msg = "Hi " + lblBookedBy.Text + "Your Journey Details are" + System.Environment.NewLine + "Route : " + lblSourceName.Text + " to " + lblDestinationName.Text + System.Environment.NewLine + "Reference N0: " + lblManabusRefNo.Text + System.Environment.NewLine +
                                "Travel Name: " + lblTravelName.Text;
                            string msg1 = " DOJ: " + lblDOJ.Text + System.Environment.NewLine + System.Environment.NewLine + "Thanks & Regards," + System.Environment.NewLine + "LoveJourney team";

          //                  string strUrl = "http://sms.cheapgoogleads.com/WebServiceSMS.aspx?User=superbus&passwd=hyderabad&mobilenumber=" + lblContactNo.Text.ToString() +
          //"&message= " + msg.ToString();

          //                  string strUrl2 = "http://sms.cheapgoogleads.com/WebServiceSMS.aspx?User=superbus&passwd=hyderabad&mobilenumber=" + lblContactNo.Text.ToString() +
          //"&message= " + msg1.ToString();
          //                  SendSMS(strUrl);
          //                  SendSMS(strUrl2);
                            #endregion
                        }
                        else
                        {
                            pnlmail.Visible = false;
                        }
                    }
                }
            }

        }
        catch (System.Exception ex)
        {
            throw ex;
        }
        finally
        {
            if (_objDataSetBook != null)
            {
                _objDataSetBook = null;
            }
        }
    }
开发者ID:srisai339,项目名称:LoveJourney_Working,代码行数:72,代码来源:BookByCashCoupon.aspx.cs


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