本文整理汇总了C#中BAL.ClsBAL.GetTicketIdByTicketrefNo方法的典型用法代码示例。如果您正苦于以下问题:C# ClsBAL.GetTicketIdByTicketrefNo方法的具体用法?C# ClsBAL.GetTicketIdByTicketrefNo怎么用?C# ClsBAL.GetTicketIdByTicketrefNo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BAL.ClsBAL
的用法示例。
在下文中一共展示了ClsBAL.GetTicketIdByTicketrefNo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetTicketDetails
protected void GetTicketDetails()
{
try
{
if (Session["Ticketrefno"] != null)
{
ClsBAL ObjManbusBAL = new ClsBAL();
ObjManbusBAL.manabusRefNo = Session["Ticketrefno"].ToString();
DataSet _objDataSetBook = (DataSet)ObjManbusBAL.GetTicketIdByTicketrefNo();
if (_objDataSetBook != null)
{
if (_objDataSetBook.Tables.Count > 0)
{
if (_objDataSetBook.Tables[0].Rows.Count > 0)
{
travelName = _objDataSetBook.Tables[0].Rows[0]["TravelOPName"].ToString().Trim();
api = _objDataSetBook.Tables[0].Rows[0]["APIName"].ToString();
Name = _objDataSetBook.Tables[0].Rows[0]["FullName"].ToString();
SeatNos = _objDataSetBook.Tables[0].Rows[0]["SeatNos"].ToString();
Route = _objDataSetBook.Tables[0].Rows[0]["Route"].ToString();
LJRefNo = _objDataSetBook.Tables[0].Rows[0]["OnewayMBRefNo"].ToString();
PNR = _objDataSetBook.Tables[0].Rows[0]["PNRNumber"].ToString();
Boardingpoint = _objDataSetBook.Tables[0].Rows[0]["BoardingPointName"].ToString();
BoardingInfo = _objDataSetBook.Tables[0].Rows[0]["BoardingInfo"].ToString();
ContactNo = _objDataSetBook.Tables[0].Rows[0]["ContactNo"].ToString();
gvView.DataSource = _objDataSetBook.Tables[0];
gvView.DataBind();
GetCancellationPolicy(api);
Mail(_objDataSetBook.Tables[0].Rows[0]["EmailId"].ToString());
SMS();
ViewState["MailId"] = _objDataSetBook.Tables[0].Rows[0]["EmailId"].ToString();
ViewState["BookingId"] = _objDataSetBook.Tables[0].Rows[0]["BookingId"].ToString();
ViewState["TentativeId"] = _objDataSetBook.Tables[0].Rows[0]["TentativeId"].ToString();
}
}
}
}
}
catch (System.Exception ex)
{
throw ex;
}
}
示例2: GetTicketDetails
protected void GetTicketDetails()
{
try
{
if (Session["Ticketrefno"] != null)
{
ClsBAL ObjManbusBAL = new ClsBAL();
ObjManbusBAL.manabusRefNo = Session["Ticketrefno"].ToString();
DataSet _objDataSetBook = (DataSet)ObjManbusBAL.GetTicketIdByTicketrefNo();
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();
gvView.DataSource = _objDataSetBook.Tables[0];
gvView.DataBind();
GetCancellationPolicy(travelName);
if (api == "Kesineni")
{
imgKesineni.Visible = true;
}
Mail(_objDataSetBook.Tables[0].Rows[0]["EmailId"].ToString());
ViewState["MailId"] = _objDataSetBook.Tables[0].Rows[0]["EmailId"].ToString();
ViewState["BookingId"] = _objDataSetBook.Tables[0].Rows[0]["BookingId"].ToString();
ViewState["TentativeId"] = _objDataSetBook.Tables[0].Rows[0]["TentativeId"].ToString();
}
}
}
}
}
catch (System.Exception ex)
{
throw ex;
}
}