コード例 #1
0
        public int DeleteSlot(string userName, string password, int bId)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials user = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return service.DeleteSlot(bId);
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #2
0
        public DataTable GetAirlines(string userName, string password)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials user = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return service.GetAirlines();
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #3
0
        public int UpdateSlot(string userName, string password, int bookId, int airbusId, int seatNumber, DateTime travelDate)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials   user    = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return(service.UpdateSlot(bookId, airbusId, seatNumber, travelDate));
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #4
0
        public int ConfirmSlot(string userName, string password, int bId, int seatNumber, decimal paidAmount)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials user = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return service.ConfirmSlot(bId, userName, paidAmount);
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #5
0
        public int BookSlot(string userName, string password, int airbusId,int seatNumber,  DateTime travelDate, bool isLocked, string passengerSSN, string updatedUser)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials user = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return service.BookSlot(airbusId, seatNumber, travelDate, isLocked, passengerSSN, updatedUser);
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #6
0
        public int BookSlot(string userName, string password, int airbusId, int seatNumber, DateTime travelDate, bool isLocked, string passengerSSN, string updatedUser)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials   user    = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return(service.BookSlot(airbusId, seatNumber, travelDate, isLocked, passengerSSN, updatedUser));
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #7
0
        public DataTable GetBookedSlots(string userName, string password, int airbusId)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials   user    = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return(service.GetBookedSlots(airbusId));
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #8
0
        public int DeleteSlot(string userName, string password, int bId)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials   user    = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return(service.DeleteSlot(bId));
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #9
0
        public int ConfirmSlot(string userName, string password, int bId, int seatNumber, decimal paidAmount)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials   user    = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return(service.ConfirmSlot(bId, userName, paidAmount));
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #10
0
        public int UpdateSlot(string userName, string password, int bookId, int airbusId, int seatNumber, DateTime travelDate)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials user = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return service.UpdateSlot(bookId, airbusId, seatNumber, travelDate);
            }
            catch (Exception ex)
            { throw ex; }
        }
コード例 #11
0
        public DataTable GetSlots(string userName, string password,int airbusId, DateTime travelDate)
        {
            try
            {
                AirwayTSWebServices.SOAPHeaderService service = new AirwayTSWebServices.SOAPHeaderService();
                AirwayTSWebServices.UserCredentials user = new AirwayTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return service.GetSlots(airbusId, travelDate);
            }
            catch (Exception ex)
            { throw ex; }
        }