UAdminHotelContractController class

Inheritance

Properties

bed ↔ UDormBedResponse?
getter/setter pair
bedFilter ↔ UDormBedResponse?
getter/setter pair
contractEnd ↔ DateTime?
getter/setter pair
contractEndController → TextEditingController
final
contractStart ↔ DateTime?
getter/setter pair
contractStartController → TextEditingController
final
depositController → TextEditingController
final
descriptionController → TextEditingController
final
dormFilter ↔ UDormResponse?
getter/setter pair
editing ↔ UDormBedContractResponse?
getter/setter pair
endDate ↔ DateTime?
getter/setter pairinherited
endDateController → TextEditingController
finalinherited
formBed ↔ UDormBedResponse?
getter/setter pair
formKey → GlobalKey<FormState>
finalinherited
formUser ↔ UUserResponse?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
list ↔ List<UDormBedContractResponse>
getter/setter pair
pageNumber → URxInt
finalinherited
pageSize ↔ int
getter/setter pairinherited
penaltyController → TextEditingController
final
rentController → TextEditingController
final
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 ↔ UAdminHotelContractStatusFilter
getter/setter pair
tagOrderBy → URx<TagOrderBy>
finalinherited
tenantFilterController → TextEditingController
final
totalCount ↔ int
getter/setter pairinherited
totalPages → URxInt
finalinherited
type ↔ TagDormBedContract
getter/setter pair
typeFilter ↔ int?
getter/setter pair
user ↔ UUserResponse?
getter/setter pair

Methods

applyFilters() → void
clearDates() → void
inherited
clearFilters() → 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(UDormBedContractResponse 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({UDormBedResponse? bed, UUserResponse? user}) → void
intOf(TextEditingController c) → int?
inherited
isActive(UDormBedContractResponse i) → bool
loadForm(UDormBedContractResponse? 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
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 contract. Returns true when the dialog can close.
searchBeds(String query) → Future<List<UDormBedResponse>>
searchDorms(String query) → Future<List<UDormResponse>>
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
typeOf(UDormBedContractResponse i) → TagDormBedContract?

Operators

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

Constants

types → const List<TagDormBedContract>
Only two contract kinds exist: monthly (rent + deposit) and daily (one invoice, no deposit).