C# Class HBM.Reservation.Reservation

Mostra file Open project: nirshandileep/HotelManagement

Protected Properties

Property Type Description
ASPxPageControl1 global::DevExpress.Web.ASPxTabControl.ASPxPageControl
aspxLoadingPanel global::DevExpress.Web.ASPxLoadingPanel.ASPxLoadingPanel
btnAdd global::DevExpress.Web.ASPxEditors.ASPxButton
btnCreate global::DevExpress.Web.ASPxEditors.ASPxButton
btnNew global::DevExpress.Web.ASPxEditors.ASPxButton
btnPrint global::DevExpress.Web.ASPxEditors.ASPxButton
btnSave global::DevExpress.Web.ASPxEditors.ASPxButton
btnSearch global::DevExpress.Web.ASPxEditors.ASPxButton
cmbCustomer global::DevExpress.Web.ASPxEditors.ASPxComboBox
cmbRatePlan global::DevExpress.Web.ASPxEditors.ASPxComboBox
cmbResStatus global::DevExpress.Web.ASPxEditors.ASPxComboBox
cmbRoom global::DevExpress.Web.ASPxEditors.ASPxComboBox
cmbSource global::DevExpress.Web.ASPxEditors.ASPxComboBox
cmbTax global::DevExpress.Web.ASPxEditors.ASPxComboBox
ddlShareNames global::DevExpress.Web.ASPxEditors.ASPxDropDownEdit
dtCheckOutDate global::DevExpress.Web.ASPxEditors.ASPxDateEdit
dtCheckingDate global::DevExpress.Web.ASPxEditors.ASPxDateEdit
gvPaymentInformation global::DevExpress.Web.ASPxGridView.ASPxGridView
gvRoomInfo global::DevExpress.Web.ASPxGridView.ASPxGridView
gvServiceInformation global::DevExpress.Web.ASPxGridView.ASPxGridView
hdnMaxAdult global::System.Web.UI.WebControls.HiddenField
hdnMaxChildren global::System.Web.UI.WebControls.HiddenField
hdnMaxInfant global::System.Web.UI.WebControls.HiddenField
hdnRate global::System.Web.UI.WebControls.HiddenField
hdnReservationId global::System.Web.UI.WebControls.HiddenField
hdnRoom global::System.Web.UI.WebControls.HiddenField
hdnTaxPercent global::System.Web.UI.WebControls.HiddenField
ltlReservationCode global::System.Web.UI.WebControls.Literal
ppPrintPreview global::DevExpress.Web.ASPxPopupControl.ASPxPopupControl
seAdults global::DevExpress.Web.ASPxEditors.ASPxSpinEdit
seChildren global::DevExpress.Web.ASPxEditors.ASPxSpinEdit
seInfants global::DevExpress.Web.ASPxEditors.ASPxSpinEdit
trButtonSection global::System.Web.UI.HtmlControls.HtmlTableRow
trReservationSection global::System.Web.UI.HtmlControls.HtmlTableRow
trStatusSection global::System.Web.UI.HtmlControls.HtmlTableRow
trSummarySection global::System.Web.UI.HtmlControls.HtmlTableRow
txtBalance global::DevExpress.Web.ASPxEditors.ASPxTextBox
txtDiscount global::DevExpress.Web.ASPxEditors.ASPxSpinEdit
txtNetTotal global::DevExpress.Web.ASPxEditors.ASPxTextBox
txtPaidAmount global::DevExpress.Web.ASPxEditors.ASPxTextBox
txtRoomTotal global::DevExpress.Web.ASPxEditors.ASPxTextBox
txtServiceTotal global::DevExpress.Web.ASPxEditors.ASPxTextBox
txtTaxTotal global::DevExpress.Web.ASPxEditors.ASPxTextBox
txtTotal global::DevExpress.Web.ASPxEditors.ASPxTextBox

Protected Methods

Method Description
Page_Init ( object sender, EventArgs e ) : void
Page_PreRender ( object sender, EventArgs e ) : void
btnAdd_Click ( object sender, EventArgs e ) : void
btnCreate_Click ( object sender, EventArgs e ) : void
btnNew_Click ( object sender, EventArgs e ) : void
btnPrint_Click ( object sender, EventArgs e ) : void
btnSave_Click ( object sender, EventArgs e ) : void
btnSearch_Click ( object sender, EventArgs e ) : void
cmbRatePlan_Callback ( object sender, DevExpress e ) : void
cmbRatePlan_SelectedIndexChanged ( object sender, EventArgs e ) : void
cmbRoom_SelectedIndexChanged ( object sender, EventArgs e ) : void
cmbTax_SelectedIndexChanged ( object sender, EventArgs e ) : void
gvPaymentInformation_CellEditorInitialize ( object sender, ASPxGridViewEditorEventArgs e ) : void
gvPaymentInformation_DataBound ( object sender, EventArgs e ) : void
gvPaymentInformation_RowDeleting ( object sender, DevExpress e ) : void
gvPaymentInformation_RowInserting ( object sender, DevExpress e ) : void
gvPaymentInformation_RowUpdating ( object sender, DevExpress e ) : void
gvRoomInfo_CellEditorInitialize ( object sender, ASPxGridViewEditorEventArgs e ) : void
gvRoomInfo_DataBound ( object sender, EventArgs e ) : void
gvRoomInfo_RowDeleting ( object sender, DevExpress e ) : void
gvRoomInfo_RowInserting ( object sender, DevExpress e ) : void
gvRoomInfo_RowUpdating ( object sender, DevExpress e ) : void
gvServiceInformation_CellEditorInitialize ( object sender, ASPxGridViewEditorEventArgs e ) : void
gvServiceInformation_DataBound ( object sender, EventArgs e ) : void
gvServiceInformation_RowDeleting ( object sender, DevExpress e ) : void
gvServiceInformation_RowInserting ( object sender, DevExpress e ) : void
gvServiceInformation_RowUpdating ( object sender, DevExpress e ) : void
txtDiscount_ValueChanged ( object sender, EventArgs e ) : void

Private Methods

Method Description
Calculate ( ) : void
ClearFormFields ( ) : void
ClearRoomInfoSection ( ) : void
DisplayData ( Int64 reservationId ) : bool
LoadAddiotnalService ( Int64 reservationId ) : void
LoadCardInformationByCustomer ( int customerID ) : void
LoadInitialData ( ) : void
LoadPaymentInformation ( Int64 reservationId ) : void
LoadRatePlans ( ) : void
LoadRoomInformation ( Int64 reservationId ) : void
LoadRoomList ( ) : void
LoadSharesList ( int customerID ) : void
SaveData ( Int64 reservationId ) : bool
ValidateReservation ( ) : void
ValidateRooms ( ) : bool

Method Details

Page_Init() protected method

protected Page_Init ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Page_PreRender() protected method

protected Page_PreRender ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnAdd_Click() protected method

protected btnAdd_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnCreate_Click() protected method

protected btnCreate_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnNew_Click() protected method

protected btnNew_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnPrint_Click() protected method

protected btnPrint_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnSave_Click() protected method

protected btnSave_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnSearch_Click() protected method

protected btnSearch_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

cmbRatePlan_Callback() protected method

protected cmbRatePlan_Callback ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

cmbRatePlan_SelectedIndexChanged() protected method

protected cmbRatePlan_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

cmbRoom_SelectedIndexChanged() protected method

protected cmbRoom_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

cmbTax_SelectedIndexChanged() protected method

protected cmbTax_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

gvPaymentInformation_CellEditorInitialize() protected method

protected gvPaymentInformation_CellEditorInitialize ( object sender, ASPxGridViewEditorEventArgs e ) : void
sender object
e ASPxGridViewEditorEventArgs
return void

gvPaymentInformation_DataBound() protected method

protected gvPaymentInformation_DataBound ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

gvPaymentInformation_RowDeleting() protected method

protected gvPaymentInformation_RowDeleting ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

gvPaymentInformation_RowInserting() protected method

protected gvPaymentInformation_RowInserting ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

gvPaymentInformation_RowUpdating() protected method

protected gvPaymentInformation_RowUpdating ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

gvRoomInfo_CellEditorInitialize() protected method

protected gvRoomInfo_CellEditorInitialize ( object sender, ASPxGridViewEditorEventArgs e ) : void
sender object
e ASPxGridViewEditorEventArgs
return void

gvRoomInfo_DataBound() protected method

protected gvRoomInfo_DataBound ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

gvRoomInfo_RowDeleting() protected method

protected gvRoomInfo_RowDeleting ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

gvRoomInfo_RowInserting() protected method

protected gvRoomInfo_RowInserting ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

gvRoomInfo_RowUpdating() protected method

protected gvRoomInfo_RowUpdating ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

gvServiceInformation_CellEditorInitialize() protected method

protected gvServiceInformation_CellEditorInitialize ( object sender, ASPxGridViewEditorEventArgs e ) : void
sender object
e ASPxGridViewEditorEventArgs
return void

gvServiceInformation_DataBound() protected method

protected gvServiceInformation_DataBound ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

gvServiceInformation_RowDeleting() protected method

protected gvServiceInformation_RowDeleting ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

gvServiceInformation_RowInserting() protected method

protected gvServiceInformation_RowInserting ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

gvServiceInformation_RowUpdating() protected method

protected gvServiceInformation_RowUpdating ( object sender, DevExpress e ) : void
sender object
e DevExpress
return void

txtDiscount_ValueChanged() protected method

protected txtDiscount_ValueChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Property Details

ASPxPageControl1 protected_oe property

ASPxPageControl1 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxTabControl.ASPxPageControl ASPxPageControl1
return global::DevExpress.Web.ASPxTabControl.ASPxPageControl

aspxLoadingPanel protected_oe property

aspxLoadingPanel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxLoadingPanel.ASPxLoadingPanel aspxLoadingPanel
return global::DevExpress.Web.ASPxLoadingPanel.ASPxLoadingPanel

btnAdd protected_oe property

btnAdd control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxButton btnAdd
return global::DevExpress.Web.ASPxEditors.ASPxButton

btnCreate protected_oe property

btnCreate control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxButton btnCreate
return global::DevExpress.Web.ASPxEditors.ASPxButton

btnNew protected_oe property

btnNew control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxButton btnNew
return global::DevExpress.Web.ASPxEditors.ASPxButton

btnPrint protected_oe property

btnPrint control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxButton btnPrint
return global::DevExpress.Web.ASPxEditors.ASPxButton

btnSave protected_oe property

btnSave control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxButton btnSave
return global::DevExpress.Web.ASPxEditors.ASPxButton

btnSearch protected_oe property

btnSearch control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxButton btnSearch
return global::DevExpress.Web.ASPxEditors.ASPxButton

cmbCustomer protected_oe property

cmbCustomer control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxComboBox cmbCustomer
return global::DevExpress.Web.ASPxEditors.ASPxComboBox

cmbRatePlan protected_oe property

cmbRatePlan control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxComboBox cmbRatePlan
return global::DevExpress.Web.ASPxEditors.ASPxComboBox

cmbResStatus protected_oe property

cmbResStatus control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxComboBox cmbResStatus
return global::DevExpress.Web.ASPxEditors.ASPxComboBox

cmbRoom protected_oe property

cmbRoom control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxComboBox cmbRoom
return global::DevExpress.Web.ASPxEditors.ASPxComboBox

cmbSource protected_oe property

cmbSource control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxComboBox cmbSource
return global::DevExpress.Web.ASPxEditors.ASPxComboBox

cmbTax protected_oe property

cmbTax control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxComboBox cmbTax
return global::DevExpress.Web.ASPxEditors.ASPxComboBox

ddlShareNames protected_oe property

ddlShareNames control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxDropDownEdit ddlShareNames
return global::DevExpress.Web.ASPxEditors.ASPxDropDownEdit

dtCheckOutDate protected_oe property

dtCheckOutDate control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxDateEdit dtCheckOutDate
return global::DevExpress.Web.ASPxEditors.ASPxDateEdit

dtCheckingDate protected_oe property

dtCheckingDate control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxDateEdit dtCheckingDate
return global::DevExpress.Web.ASPxEditors.ASPxDateEdit

gvPaymentInformation protected_oe property

gvPaymentInformation control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxGridView.ASPxGridView gvPaymentInformation
return global::DevExpress.Web.ASPxGridView.ASPxGridView

gvRoomInfo protected_oe property

gvRoomInfo control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxGridView.ASPxGridView gvRoomInfo
return global::DevExpress.Web.ASPxGridView.ASPxGridView

gvServiceInformation protected_oe property

gvServiceInformation control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxGridView.ASPxGridView gvServiceInformation
return global::DevExpress.Web.ASPxGridView.ASPxGridView

hdnMaxAdult protected_oe property

hdnMaxAdult control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HiddenField hdnMaxAdult
return global::System.Web.UI.WebControls.HiddenField

hdnMaxChildren protected_oe property

hdnMaxChildren control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HiddenField hdnMaxChildren
return global::System.Web.UI.WebControls.HiddenField

hdnMaxInfant protected_oe property

hdnMaxInfant control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HiddenField hdnMaxInfant
return global::System.Web.UI.WebControls.HiddenField

hdnRate protected_oe property

hdnRate control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HiddenField hdnRate
return global::System.Web.UI.WebControls.HiddenField

hdnReservationId protected_oe property

hdnReservationId control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HiddenField hdnReservationId
return global::System.Web.UI.WebControls.HiddenField

hdnRoom protected_oe property

hdnRoom control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HiddenField hdnRoom
return global::System.Web.UI.WebControls.HiddenField

hdnTaxPercent protected_oe property

hdnTaxPercent control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.HiddenField hdnTaxPercent
return global::System.Web.UI.WebControls.HiddenField

ltlReservationCode protected_oe property

ltlReservationCode control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal ltlReservationCode
return global::System.Web.UI.WebControls.Literal

ppPrintPreview protected_oe property

ppPrintPreview control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxPopupControl.ASPxPopupControl ppPrintPreview
return global::DevExpress.Web.ASPxPopupControl.ASPxPopupControl

seAdults protected_oe property

seAdults control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxSpinEdit seAdults
return global::DevExpress.Web.ASPxEditors.ASPxSpinEdit

seChildren protected_oe property

seChildren control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxSpinEdit seChildren
return global::DevExpress.Web.ASPxEditors.ASPxSpinEdit

seInfants protected_oe property

seInfants control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxSpinEdit seInfants
return global::DevExpress.Web.ASPxEditors.ASPxSpinEdit

trButtonSection protected_oe property

trButtonSection control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlTableRow trButtonSection
return global::System.Web.UI.HtmlControls.HtmlTableRow

trReservationSection protected_oe property

trReservationSection control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlTableRow trReservationSection
return global::System.Web.UI.HtmlControls.HtmlTableRow

trStatusSection protected_oe property

trStatusSection control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlTableRow trStatusSection
return global::System.Web.UI.HtmlControls.HtmlTableRow

trSummarySection protected_oe property

trSummarySection control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlTableRow trSummarySection
return global::System.Web.UI.HtmlControls.HtmlTableRow

txtBalance protected_oe property

txtBalance control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxTextBox txtBalance
return global::DevExpress.Web.ASPxEditors.ASPxTextBox

txtDiscount protected_oe property

txtDiscount control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxSpinEdit txtDiscount
return global::DevExpress.Web.ASPxEditors.ASPxSpinEdit

txtNetTotal protected_oe property

txtNetTotal control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxTextBox txtNetTotal
return global::DevExpress.Web.ASPxEditors.ASPxTextBox

txtPaidAmount protected_oe property

txtPaidAmount control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxTextBox txtPaidAmount
return global::DevExpress.Web.ASPxEditors.ASPxTextBox

txtRoomTotal protected_oe property

txtRoomTotal control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxTextBox txtRoomTotal
return global::DevExpress.Web.ASPxEditors.ASPxTextBox

txtServiceTotal protected_oe property

txtServiceTotal control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxTextBox txtServiceTotal
return global::DevExpress.Web.ASPxEditors.ASPxTextBox

txtTaxTotal protected_oe property

txtTaxTotal control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxTextBox txtTaxTotal
return global::DevExpress.Web.ASPxEditors.ASPxTextBox

txtTotal protected_oe property

txtTotal control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::DevExpress.Web.ASPxEditors.ASPxTextBox txtTotal
return global::DevExpress.Web.ASPxEditors.ASPxTextBox