Files
BeWoPlaner/BeWoPlanerMobil/Models/MainSessionModel.cs
2025-06-11 22:56:25 +02:00

88 lines
4.2 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web.Mvc;
using BeWo.View.Navigation.Filter;
using BeWoPlanerMobil.Controllers;
using BeWoPlanerMobil.Service;
using BeWoPlanerMobil.Util;
using BS.Shared;
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.Compact;
using DevExpress.XtraReports.UI;
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<long> SelectedConceptCostBearerRelations { get; internal set; }
public List<long> GroupBookingSelectedSupportConceptOids { get; internal set; }
public List<long> GroupBookingSelectedEmployeeOids { get; internal set; }
public List<long> 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<long> MultiBookingSelectedSupportConceptOids { get; internal set; }
public List<long> MultiBookingSelectedGroupOfPeopleOids { get; internal set; }
public List<long> MultiBookingSelectedCostbearerRelOids { get; internal set; }
public List<long> MultiBookingSelectedEmployeeOids { get; internal set; }
public int CurrentPage { get; internal set; }
public List<long> SelectedGoalOids { get; internal set; }
public long LastCreatedServiceRecordOid { 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<long>();
GroupBookingSelectedSupportConceptOids = new List<long>();
GroupBookingSelectedEmployeeOids = new List<long>();
GroupBookingSelectedCostbearerRelOids = new List<long>();
MultiBookingSelectedSupportConceptOids = new List<long>();
MultiBookingSelectedGroupOfPeopleOids = new List<long>();
MultiBookingSelectedCostbearerRelOids = new List<long>();
MultiBookingSelectedEmployeeOids = new List<long>();
SelectedGoalOids = new List<long>();
PreviouslySelectedEmployeeOid = null;
PreviouslySelectedSupportConceptOid = null;
PreviouslySelectedCostbearer2SupportConceptOid = null;
IsInGroupBookingMode = false;
IsInEditingMode = false;
IsInMultiBookingMode = false;
CurrentPage = 0;
LastCreatedServiceRecordOid = 0;
}
}
}