/// <summary> /// ############ ######## #### ### ######### /// </summary> protected virtual void FillDayTypeControl() { var esq = new EntitySchemaQuery(UserConnection.EntitySchemaManager, "DayType"); esq.AddAllSchemaColumns(); EntityCollection dayTypes = esq.GetEntityCollection(UserConnection); foreach (Entity type in dayTypes) { DayTypeEdit.AddItem(type.PrimaryColumnValue, type.PrimaryDisplayColumnValue); } }
protected override void FillDayTypeControl() { var esq = new EntitySchemaQuery(UserConnection.EntitySchemaManager, "DayType"); esq.AddAllSchemaColumns(); EntityCollection dayTypes = esq.GetEntityCollection(UserConnection); var allowedWeekDayTypeIds = new List <Guid> { DayTypeConstants.WorkDayId, DayTypeConstants.WeekEndId, }; foreach (Entity type in dayTypes.Where(type => allowedWeekDayTypeIds.Contains(type.PrimaryColumnValue))) { DayTypeEdit.AddItem(type.PrimaryColumnValue, type.PrimaryDisplayColumnValue); } }