本文整理汇总了C#中BAL.ClsBAL.AddBooking_TicketDetails方法的典型用法代码示例。如果您正苦于以下问题:C# ClsBAL.AddBooking_TicketDetails方法的具体用法?C# ClsBAL.AddBooking_TicketDetails怎么用?C# ClsBAL.AddBooking_TicketDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BAL.ClsBAL
的用法示例。
在下文中一共展示了ClsBAL.AddBooking_TicketDetails方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InsertBookedTicketDetails
protected bool InsertBookedTicketDetails(string TicketrefNo, string tinNo)
{
try
{
string message = ""; bool resinsert = false;
ClsBAL ObjManbusBAL = new ClsBAL();
ObjManbusBAL.PNRNumber = tinNo;
ObjManbusBAL.PNRTicketIDs = tinNo;
ObjManbusBAL.message = message;
ObjManbusBAL.manabusRefNo = TicketrefNo;
ObjManbusBAL.api = "SeatSeller";
if (ObjManbusBAL.AddBooking_TicketDetails())
{
resinsert = true;
}
return resinsert;
}
catch (System.Exception ex)
{
throw ex;
}
}
示例2: InsertBookedTicketDetails
protected bool InsertBookedTicketDetails(DataSet dsbookres, string manabusrefno, string api)
{
try
{
string pnrNumber = ""; string pnrticketId = ""; string message = ""; bool resinsert = false;
if (api == "Kesineni")
{
pnrNumber = dsbookres.Tables[0].Rows[0]["PNRNumber"].ToString();
pnrticketId = dsbookres.Tables[0].Rows[0]["PNRTicketIDs"].ToString();
message = dsbookres.Tables[0].Rows[0]["Message"].ToString();
}
else if (api == "Bitla")
{
pnrNumber = dsbookres.Tables[0].Rows[0]["ticket_number"].ToString();
pnrticketId = dsbookres.Tables[0].Rows[0]["travel_operator_pnr"].ToString();
message = dsbookres.Tables[0].Rows[0]["ticket_status"].ToString();
}
else if (api == "Abhibus")
{
pnrNumber = dsbookres.Tables[0].Rows[0]["TicketNumber"].ToString();
pnrticketId = dsbookres.Tables[0].Rows[0]["serviceNumber"].ToString();
message = dsbookres.Tables[0].Rows[0]["Message"].ToString();
}
else if (api == "Kallada")
{
pnrNumber = dsbookres.Tables[0].Rows[0]["TicketNumber"].ToString();
pnrticketId = dsbookres.Tables[0].Rows[0]["serviceNumber"].ToString();
message = dsbookres.Tables[0].Rows[0]["Message"].ToString();
}
else if (api == "TicketGoose")
{
pnrNumber = dsbookres.Tables[0].Rows[0]["bookingId"].ToString();
pnrticketId = dsbookres.Tables[0].Rows[0]["extraSeatInfo"].ToString();
message = dsbookres.Tables[0].Rows[0]["Status"].ToString();
}
ObjBAL = new ClsBAL();
ObjBAL.PNRNumber = pnrNumber;
ObjBAL.PNRTicketIDs = pnrticketId;
ObjBAL.message = message;
ObjBAL.manabusRefNo = manabusrefno;//Session["manabusrefno"].ToString();
ObjBAL.api = api;
if (ObjBAL.AddBooking_TicketDetails())
{
resinsert = true;
}
return resinsert;
}
catch (System.Exception ex)
{
throw ex;
}
}