Airline Reservation System In .net?
Dec 30, 2008airline reservation system in .net
View 2 Repliesairline reservation system in .net
View 2 RepliesWhy doesn't this code work? Public Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
[Code]...
I have put about 12 Hours into this assignment and i feel that i have most of it completed what have is a combo box that has a FlightBindingSource and a listbox that has ReservationsBindingSource i need to the selected item in the combo box to be sent to a proceedure called DisplayPassengers, and then DisplayPassengers fills the list box with the passengers assigned to each flight.
This is what i have so far:
Public Class AirlineReservationForm
Private database As New ReservationsDataClassesDataContext()
Private Sub FillAll()
[code]...
I could not include the code since it's too large but here is the LINK. I have most of it working. I just need to know how to display the passenger list in the ListBox when the flight number is changed from the ComboBox.
View 8 RepliesI'm trying to complete this airline reservation application, but having a problem in this part of the question:Creat an event handler for the FlightBindingSource's PositionChanged event: select FlightBindingSource in the class Name combobox then select position changed in method name combobox to creat the FlightBindingSource's PositionChanged event handler. Write a code to access the currently displayed flight object and pass its flightNumber to method DisplayPassengers as a decimal.This Is my code so far:
HTML
Public Class AirlineReservationForm
Private database As New ReservationsDataClassesDataContext()
Private Sub FillAll()[code].....
I'm looking at building a airline simulation game whereby users create an run an airline, I just want to ask something that will possibly be very simple but it's going to be very complicated answer i think.for every aspect of my game do i have a class to create an object, for example
City: (I'll have a class called myCity and each time i look at a city it goes to that class creates an object and I use it then dispose of the object)Airplane: (make model etc) How about bigger items such as Bank is bank it's own class or are items inside the bank the object?
How about competitors, i guess each one is it's own object? i would never dispose of them, how would I store them form each user session to another?
I'm doing an airline reservation system program, but I can't wrap my head around it. I can't even come up with psuedocode. The airplane has 10 seats. The user needs to choose first class(seats 1-5) or economy(seats 6-10), and I need to make sure that no seat is sold to more than one person. And if there are no more seat in the selected class I need to display a message box "there are no more seats in the selected class. Would you like to switch classes?" else display message " next flight leaves in three hours".
I have more code now!:
Public Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim firstClass() As Integer = {1, 2, 3, 4, 5}
Dim economyClass() As Integer = {6, 7, 8, 9, 10}
[code].....
if someone could help about my Guest Reservation SystemI not intending anyone to do it for me,just need some advice want to know what is better or what should I do to make the project better.
View 3 Replies[font=Arial] i whoud like to develop vehical reservation system project what can i do for that?
View 1 Replieswat shud i include in my PROJECT exactly n perfectly..
View 1 RepliesI am trying to update my table reservation I am just trying to update only on column which is total amount but it is not updating.
Here is my code.
Dim a As Integer
a = MessageBox.Show("Are you sure you want to exit????", "ALI ENTERPRISES", MessageBoxButtons.YesNo, MessageBoxIcon.Information)
If a = vbYes Then
Me.Close()
[Code] .....
I have made a project on offline railway reservation ticket and cancellation and management wel i have included following things: form wise
1}welcome page (containing news , updates about the software )
2}registration n login page
3}main menu (Containing links to all tools and services i included in software)
4}ticket regestration (fare calculation and deduction and special discounts included)
5}ticket cancelation
6}PNR CHECK
7}FEED back form
9}Splash Screen
10}Rules n policies ,refund rules
11}Gerneral information
12}RTI act
13}Railway Map
15}Service area Covered
16}Train Halt Stations , total Halts per train according to Journey and distance Stations Between Journey
17)Trains and stations Codes
18}Train Arrival and Departure Timings
Thats It, Full database on Ms Access ..and Text Strings.Now Is this enough Or shall i Do add some thing More ... if u think its incomplete Plz suggest Some topic that i can add to This project.
How do I print out the message, "The customer has no reservation", when the computer cannot find the customerid table.
Private Sub cboSearchCustomer_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboSearchCustomer.SelectedIndexChanged
Dim dt2 As New DataTable
Dim strFmt As String = "{0,13}{1,13}{2,13}{3,10}{4,13}"
[CODE]...
This is how it should look like when completed. What type of steps should I take to get here?
how tell availabilty of rooms .I am having a hotel reservation system just wanna ask if how can I show that the rooms is occupied or not by using a label for the rooms
View 2 RepliesWith the following imported namespaces in my project :
Imports System.Windows.Forms
Imports System.Reflection
.. I cannot add..
[code].....
VB 2008, DataGridView,DataGridView1_CellLeave(sender, New System.EventArgs)
"Unable to cast object of type 'System.EventArgs' to type 'System.Windows.Forms.DataGridViewCellEventArgs'."
What is the Correct String for "New System.EventsArgs"
Anybody there is to help me out.
I am getting following error whenever I want to use IIf function inside entity framework query.
LINQ to Entities does not recognize the method 'System.Object IIf(Boolean, System.Object, System.Object)' method, and this method cannot be translated into a store expression.
What do I need to convert?
Dim CEESearchByAppNo = From CEEsearch In dbCEE.tblScanneds _
Where CEEsearch.AppNo = iAppNo
[code].....
I am getting the following erro message: "Unable to cast object of type 'System.String' to type 'System.Predicate`1[System.String]'." on the line of code: If Not StrgFrag.Exists(wrd) Then I was expecting a True/False response and assumed it would work given that wrd is a String variables and StrgFrag in a List(of String). Do I need to reference the wrd variable differently? Dim StrgFrag As New List(Of String)
[Code]....
I am using VS 2008, Office 2007, and Win7 Home Premium on my system.I have a simple application which should be a breeze to build. All I am attempting to do is pull data from an Access database with four small tables into a data grid on a windows project. Should be simple, set up the data connection, choose a datagrid from the table in the data source view, drag it onto the page and done, right?I can't get it to work. It will all work fine until I attempt to run or debug the project. The data will not show up. The data grid does, but I get this error: A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll
As I said, the project seems to build fine, but it will not pull the data. After the initial build I get the message that Windows will show this page in Compatibility View. Is it something with Win7 Home Premium, or a setting somewhere?
I have a utility that is a simple exe that is not installed compiled with VS2005 and works well. But when I upgraded to VS2008 the utility can no longer locate files in the active system folder. I have UAC turned off and am logged in as the Administrator and it still can not locate a file that I can see in Windows Explorer. The file I am looking for is PakMgr.exe.
View 1 RepliesI'm using express 2008 build the windows app. and in the app, it calls a webservice which was built by VS2003.It works fine on most PCs. however, there is one PC, it always shows this error:
System.TypeInitializationException: The type initializer for 'System.ServiceModel.ClientBase' 1' threw an exception
....
System.configuration.ConfigurationErrorException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException:
Unrecognized configuration section system.serviceModel
.....
however, the configuration file was generated by express 2008, and it seems there is no error.
I have a text-boxes that use both the validating event as well as the lostfocus event.I have pinpointed the exception in the post title to the validating events.[code]Maybe I am unaware that CancelEventArgs are not suppose to be used in the validating event? [code]
View 4 RepliesI'm trying to use DataView.Rowfilter and I'm getting an exception which says "Cannot perform 'Like' operation on System.Int32 and System.String".
Here's the code...
Dim str2 As Double = CDbl(searchSTR)
Me.shipperDV.RowFilter = fieldName & " LIKE '*" & str2 & "*'"
I would like to create a local user on a windows 7 PC, but gets the following error when commitchanges runs. I am administrator on the PC:
A first chance exception of type 'System.UnauthorizedAccessException' occurred in System.DirectoryServices.dll
Here is my code:
CODE:
I am using Visual Basic 2010 ultimate in Visual Studio 2010.
Here is the stack trace:
2012-03-16 19:15:09Z E System.NullReferenceException: Object reference not set to an instance of an object.
at System.Timers.Timer.set_Enabled(Boolean value)
at System.Timers.Timer.Stop()
Here's the code:
Timer declared as private member variable.
Private _myTimer As System.Timers.Timer
Initialize timer method.
[code]....
The timer has to have a value or else the Timer.Stop() call would be throwing the exception. This is a sporadic error and I'm just trying to see if anyone has experienced this before or if anyone has any ideas of what could be causing it. It is occuring in a WinForms application in the event handler for the Elapsed event of the Timer, but it is only occuring sporadically on the users computer. I haven't been able to reproduce the error myself.
I wrote the code below which calculates the length of a line on the form and save record. An error occurs when the programme tries to save the record. It gives me "Cannot perform '=' operation on System.Int32 and System.String" error. I checked the data type of "ID"(int), "Microscope"(Varchar), "Magnification"(int) and "Calibration"(Decimal), and they are fine so far as I know.
Code:
Private Sub btnEnd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnd.Click
'Check if the length textbox is not empty
[Code].....
get out from the below loop
Shared Function GetIPAddress() As String
Dim sam As System.Net.IPAddress
Dim sam1 As String
[code]....
I have a program that creates a Treeview from information procured through an ODBC query and dumped into a dataset. I have three such queries set up via radial buttons as well as a refresh button that triggers whatever radial button is active at the time it's clicked. The purpose of this program is to allow drag-and-drop of selected nodes, ending with a post to the database that officially makes that change of assignment to the new node.
[Code]...
Private Sub wb_Scrape(ByVal sender As System.Object, ByVal e As
[Code]...