UAdminHotelReservationController class

Inheritance

Properties

checkIn ↔ DateTime?
getter/setter pair
checkInController → TextEditingController
final
checkOut ↔ DateTime?
getter/setter pair
checkOutController → TextEditingController
final
editing ↔ UHotelReservationResponse?
getter/setter pair
endDate ↔ DateTime?
getter/setter pairinherited
endDateController → TextEditingController
finalinherited
formKey → GlobalKey<FormState>
finalinherited
formRoom ↔ UHotelRoomResponse?
getter/setter pair
formUser ↔ UUserResponse?
getter/setter pair
guestCountController → TextEditingController
final
guestFilterController → TextEditingController
final
guestNameController → TextEditingController
final
guestPhoneController → TextEditingController
final
hashCode → int
The hash code for this object.
no setterinherited
hotel ↔ UHotelResponse?
getter/setter pair
hotelFilter ↔ UHotelResponse?
getter/setter pair
list ↔ List<UHotelReservationResponse>
getter/setter pair
notesController → TextEditingController
final
pageNumber → URxInt
finalinherited
pageSize ↔ int
getter/setter pairinherited
penaltyController → TextEditingController
final
room ↔ UHotelRoomResponse?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startDate ↔ DateTime?
The list filter's date range, shown in startDateController / endDateController.
getter/setter pairinherited
startDateController → TextEditingController
finalinherited
state → URxState
finalinherited
statusFilter ↔ UAdminHotelReservationStatusFilter
getter/setter pair
tagOrderBy → URx<TagOrderBy>
finalinherited
totalCount ↔ int
getter/setter pairinherited
totalPages → URxInt
finalinherited
totalPriceController → TextEditingController
final

Methods

applyFilters() → void
cancel(UHotelReservationResponse i) → void
checkInGuest(UHotelReservationResponse i) → void
checkOutGuest(UHotelReservationResponse i) → void
clearDates() → void
inherited
clearFilters() → void
confirm(UHotelReservationResponse i) → void
confirmAction(Future<(dynamic, dynamic, String?)> call(), void reload(), {String? title, String? message}) → void
Asks for confirmation (the dialog closes itself), then runs call through send. Defaults to a delete prompt.
inherited
delete(UHotelReservationResponse i) → void
dispose() → void
Releases everything this controller owns. The page that created the controller calls this from its own State.dispose(); a subclass that adds its own notifiers overrides this and ends with super.dispose().
override
init({UHotelResponse? hotel, UHotelRoomResponse? room}) → void
intOf(TextEditingController c) → int?
inherited
loadForm(UHotelReservationResponse? i) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
numOf(TextEditingController c) → double?
The number typed in c (Persian digits and separators allowed); null when empty.
inherited
payInvoice(UHotelInvoiceResponse inv) → void
read() → Future<void>
readUsersById(List<String> ids) → Future<List<UUserResponse>>
The users with ids; the ones that fail to load are skipped.
inherited
save() → Future<bool>
Creates or updates the reservation. Returns true when the dialog can close.
searchHotels(String query) → Future<List<UHotelResponse>>
searchRooms(String query) → Future<List<UHotelRoomResponse>>
searchUsers(String query) → Future<List<UUserResponse>>
Users matching query, for user pickers.
inherited
send<T>(Future<(T?, Object?, String?)> call, VoidCallback? reload) → Future<T?>
Awaits a service call's (ok, error, exception) result: on success toasts and runs reload, otherwise toasts the error. Returns the ok response (on create its result is the new id), or null when it failed.
inherited
setError([String? message]) → void
inherited
setTotalPages(int count) → void
inherited
splitList(String text) → List<String>
"a, b، c" → "a", "b", "c" (Latin and Persian commas).
inherited
toString() → String
A string representation of this object.
inherited
unpaidInvoiceOf(UHotelReservationResponse i) → UHotelInvoiceResponse?

Operators

operator ==(Object other) → bool
The equality operator.
inherited