Пример #1
0
    //public DataTable FinalBooking()
    public DataSet funFinalBooking(String TransactionID, String Source, String DateOfBooking, String TimeOfBooking, String Location,
                                   String Play, String ShowTime, String ShowDate, String Category, String PaymentType, String AgentCode, String SeatInfo,
                                   String MobileNo, String EmailID, String CustomerName, int TotalSeats, decimal TotalAmount, String strPaymentReceiptNo)
    {
        try
        {
            if (SecurityHeaderValidation.Validate(objSecurity))
            {
                DataTable dt            = VistaDAL._Select_Time_Api(TransactionID);
                DateTime  startdatetime = Convert.ToDateTime(dt.Rows[0][0]);
                if (startdatetime.AddMinutes(25) >= DateTime.UtcNow)
                {
                    TransactionRecord _tr = new TransactionRecord();
                    _tr.BookingID     = long.Parse(TransactionID);
                    _tr.Location      = Location;
                    _tr.Play          = Play.ToUpper();
                    _tr.ShowTime      = ShowTime;
                    _tr.ShowDate      = ShowDate;
                    _tr.Category      = Category;
                    _tr.SeatInfo      = SeatInfo;
                    _tr.TotalSeats    = TotalSeats;
                    _tr.Name          = CustomerName;
                    _tr.MobileNo      = MobileNo;
                    _tr.EmailID       = EmailID;
                    _tr.AgentCode     = AgentCode;
                    _tr.ReceiptNo     = strPaymentReceiptNo;
                    _tr.DateOfBooking = DateOfBooking;
                    _tr.TimeOfBooking = TimeOfBooking;
                    _tr.Source        = Source;
                    _tr.TotalAmount   = TotalAmount;
                    _tr.TotalSeats    = TotalSeats;
                    _tr.BookingID     = long.Parse(TransactionID);

                    return(GTICKDAL.funFinalBooking(_tr));
                }
                else
                {
                    DataSet   dsexcep = new DataSet();
                    DataTable dtexcep = new DataTable();
                    dtexcep.Columns.Add("Column1", typeof(string));
                    dtexcep.Rows.Add("Session Time Out");
                    dsexcep.Tables.Add(dtexcep);
                    return(dsexcep);
                }
            }
        }
        catch (Exception ex)
        {
            Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write(ex.Message);
        }
        return(null);
    }