using System; using System.Collections.Generic; using BeWo.View.Navigation.Filter; using BeWoPlanerMobil.Util; namespace BeWoPlanerMobil.Models { [Serializable] public class MainSessionModel : ISessionModel { public bool SessionInitialized { get; internal set; } public long? SelectedSupportConceptOid { get; internal set; } public long? SelectedCostBearerSupportConceptOid { get; internal set; } public bool ShowOnlyOwnSupportConcepts { get; internal set; } public bool ShowOnlyMyTeamsSupportConcepts { get; internal set; } public CustomerFilterEnum SelectedSupportConceptFilter { get; internal set; } public bool ShowExpiredSupportConcepts { get; internal set; } public long? SelectedServiceCategoryOid { get; internal set; } public long? SelectedServiceDescriptionOid { get; internal set; } public long? SelectedServiceRecordOid { get; internal set; } public long? SelectedEmployeeOid { get; internal set; } public NullableDateTimeSpan SelectedZeitraum { get; internal set; } public List SelectedConceptCostBearerRelations { get; internal set; } public List GroupBookingSelectedSupportConceptOids { get; internal set; } public List GroupBookingSelectedEmployeeOids { get; internal set; } public List GroupBookingSelectedCostbearerRelOids { get; internal set; } public bool IsInGroupBookingMode { get; internal set; } public bool IsInEditingMode { get; internal set; } public long? PreviouslySelectedEmployeeOid { get; internal set; } public long? PreviouslySelectedSupportConceptOid { get; internal set; } public long? PreviouslySelectedCostbearer2SupportConceptOid { get; internal set; } public bool IsInMultiBookingMode { get; internal set; } public List MultiBookingSelectedSupportConceptOids { get; internal set; } public List MultiBookingSelectedGroupOfPeopleOids { get; internal set; } public List MultiBookingSelectedCostbearerRelOids { get; internal set; } public List MultiBookingSelectedEmployeeOids { get; internal set; } public int CurrentPage { get; internal set; } public List SelectedGoalOids { get; internal set; } public long LastCreatedServiceRecordOid { get; internal set; } public long? TransferringAppointmentOid { get; internal set; } public void ResetValues() { SessionInitialized = false; SelectedSupportConceptOid = null; SelectedCostBearerSupportConceptOid = null; ShowOnlyOwnSupportConcepts = false; ShowOnlyMyTeamsSupportConcepts = false; SelectedSupportConceptFilter = CustomerFilterEnum.All; ShowExpiredSupportConcepts = false; SelectedServiceCategoryOid = null; SelectedServiceDescriptionOid = null; SelectedServiceRecordOid = null; SelectedEmployeeOid = null; SelectedZeitraum = null; SelectedConceptCostBearerRelations = new List(); GroupBookingSelectedSupportConceptOids = new List(); GroupBookingSelectedEmployeeOids = new List(); GroupBookingSelectedCostbearerRelOids = new List(); MultiBookingSelectedSupportConceptOids = new List(); MultiBookingSelectedGroupOfPeopleOids = new List(); MultiBookingSelectedCostbearerRelOids = new List(); MultiBookingSelectedEmployeeOids = new List(); SelectedGoalOids = new List(); PreviouslySelectedEmployeeOid = null; PreviouslySelectedSupportConceptOid = null; PreviouslySelectedCostbearer2SupportConceptOid = null; IsInGroupBookingMode = false; IsInEditingMode = false; IsInMultiBookingMode = false; CurrentPage = 0; LastCreatedServiceRecordOid = 0; TransferringAppointmentOid = null; } } }