using System; using System.Collections.Generic; using BeWo.View.Navigation.Filter; using BeWoPlanerMobil.Util; namespace BeWoPlanerMobil.Models { [Serializable] public class MainSessionModel : BaseSessionModel { 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 GroupBookingSelectedCostBearerSupportConceptOids { get; internal set; } public List GroupBookingSelectedSupportConceptOids { get; internal set; } public List GroupBookingSelectedEmployeeOids { get; internal set; } public List GroupBookingSelectedGroupOfPeopleOids { get; internal set; } public bool IsInGroupBookingMode { get; internal set; } public bool IsInMultiBookingMode { 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 int CurrentPage { get; internal set; } public List SelectedGoalOids { get; internal set; } public long LastCreatedServiceRecordOid { get; internal set; } public long? TransferringAppointmentOid { get; internal set; } public IList SupportConceptListObjects { get; internal set; } public bool IsInTransferMode { get; internal set; } public IList SelectedGoals { get; internal set; } public List SupportConceptOids { get; set; } public MokServiceRecord SelectedServiceRecord { get; internal set; } public DateTime? NewStartDate { get; internal set; } public DateTime? NewEndDate { get; internal set; } public override void ResetValues() { base.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; NewStartDate = null; NewEndDate = null; GroupBookingSelectedCostBearerSupportConceptOids = new List(); GroupBookingSelectedSupportConceptOids = new List(); GroupBookingSelectedEmployeeOids = new List(); GroupBookingSelectedGroupOfPeopleOids = new List(); //GroupBookingSelectedCostbearerRelOids = new List(); //MultiBookingSelectedSupportConceptOids = new List(); //MultiBookingSelectedCostbearerRelOids = new List(); //MultiBookingSelectedEmployeeOids = new List(); SelectedGoalOids = new List(); PreviouslySelectedEmployeeOid = null; PreviouslySelectedSupportConceptOid = null; PreviouslySelectedCostbearer2SupportConceptOid = null; IsInGroupBookingMode = false; IsInEditingMode = false; IsInMultiBookingMode = false; IsInTransferMode = false; CurrentPage = 0; LastCreatedServiceRecordOid = 0; TransferringAppointmentOid = null; SupportConceptListObjects = new List(); SelectedGoals = new List(); SupportConceptOids = new List(); SelectedServiceRecord = null; } } }