Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="caption"></param>
 /// <param name="selectionFilter"></param>
 /// <param name="discrepanciesFilter"></param>
 /// <param name="additionalFilter"></param>
 /// <param name="directiveContainer"></param>
 public DirectivesDiscrepanciesSettings(string caption, DirectiveFilter selectionFilter, DirectiveFilter discrepanciesFilter, DirectiveCollectionFilter additionalFilter, IDirectiveContainer directiveContainer)
 {
     this.caption             = caption;
     this.directiveContainer  = directiveContainer;
     this.selectionFilter     = selectionFilter;
     this.discrepanciesFilter = discrepanciesFilter;
     this.additionalFilter    = additionalFilter;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Создается коллекция настроек элементов отображения отклонений базового агрегата
 /// </summary>
 /// <param name="discrepanciesFilter"></param>
 /// <param name="additionalFilter"></param>
 /// <returns></returns>
 public static DirectivesDiscrepanciesSettings[] CreateBaseDetailSettings(DirectiveFilter discrepanciesFilter, DirectiveCollectionFilter additionalFilter)
 {
     return(new DirectivesDiscrepanciesSettings[]
     {
         new DirectivesDiscrepanciesSettings("AD Status", new ADStatusFilter(), discrepanciesFilter,
                                             additionalFilter),
         new DirectivesDiscrepanciesSettings("Engineering Orders", new EngeneeringOrderFilter(),
                                             discrepanciesFilter, additionalFilter),
         new DirectivesDiscrepanciesSettings("SB Status", new SBStatusFilter(), discrepanciesFilter,
                                             additionalFilter)
     });
 }
Exemplo n.º 3
0
 /// <summary>
 /// Создается коллекция настроек элементов отображения отклонений базового агрегата
 /// </summary>
 /// <param name="discrepanciesFilter"></param>
 /// <param name="additionalFilter"></param>
 /// <returns></returns>
 public static DirectivesDiscrepanciesSettings[] CreateAircraftSettings(DirectiveFilter discrepanciesFilter, DirectiveCollectionFilter additionalFilter)
 {
     return(new DirectivesDiscrepanciesSettings[]
     {
         new DirectivesDiscrepanciesSettings("AD Status", new ADStatusFilter(), discrepanciesFilter,
                                             additionalFilter),
         new DirectivesDiscrepanciesSettings("Aging Program", new AgingProgramFilter(), discrepanciesFilter, additionalFilter),
         new DirectivesDiscrepanciesSettings("CPCP Status", new CPCPFilter(), discrepanciesFilter, additionalFilter),
         new DirectivesDiscrepanciesSettings("Deferred Items", new DeferredItemsFilter(), discrepanciesFilter, additionalFilter),
         new DirectivesDiscrepanciesSettings("Engineering Orders", new EngeneeringOrderFilter(),
                                             discrepanciesFilter, additionalFilter),
         new DirectivesDiscrepanciesSettings("Modification Status", new ModificationFilter(), discrepanciesFilter, additionalFilter),
         new DirectivesDiscrepanciesSettings("Out Off Phase Items", new OutOffPhaseFilter(), discrepanciesFilter, additionalFilter),
         new DirectivesDiscrepanciesSettings("Repair Status", new RepairFilter(), discrepanciesFilter, additionalFilter),
         new DirectivesDiscrepanciesSettings("SB Status", new SBStatusFilter(), discrepanciesFilter,
                                             additionalFilter),
         new DirectivesDiscrepanciesSettings("SSID Status", new SSIDStatusFilter(), discrepanciesFilter, additionalFilter)
     });
 }
Exemplo n.º 4
0
 /// <summary>
 /// Задаются параметры фильтрации
 /// </summary>
 /// <param name="filter"></param>
 public void SetFilterParameters(DirectiveCollectionFilter filter)
 {
     for (int i = 0; i < filter.Filters.Length; i++)
     {
         DirectiveFilter directiveFilter = filter.Filters[i];
         if (directiveFilter is DirectiveTitleFilter)
         {
             abstractDirectiveTitleFilterControl1.SetFilterParameters(directiveFilter);
         }
         if (directiveFilter is DirectiveOpenessFilter)
         {
             directiveOpenessFilterControl1.SetFilterParameters(directiveFilter);
         }
         if (directiveFilter is DirectiveConditionFilter)
         {
             directiveConditionFilterControl1.SetFilterParameters(directiveFilter);
         }
     }
 }
Exemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="caption"></param>
 /// <param name="selectionFilter"></param>
 /// <param name="discrepanciesFilter"></param>
 /// <param name="additionalFilter"></param>
 public DirectivesDiscrepanciesSettings(string caption, DirectiveFilter selectionFilter, DirectiveFilter discrepanciesFilter, DirectiveCollectionFilter additionalFilter) : this(caption, selectionFilter, discrepanciesFilter, additionalFilter, null)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Создается элемент отображения отклонений для агрегатов
 /// </summary>
 /// <param name="discrepanciesFilter"></param>
 /// <param name="detailSource"></param>
 /// <param name="additionalFilter"></param>
 public ComponentDiscrepancies(DirectiveFilter discrepanciesFilter, IDetailContainer detailSource, DetailCollectionFilter additionalFilter) : this()
 {
     this.discrepanciesFilter = discrepanciesFilter;
     this.detailSource        = detailSource;
     this.additionalFilter    = additionalFilter;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Создается элемент управления - отображения коллекции отклонений по директивам
 /// </summary>
 /// <param name="directiveSelectionFilter"></param>
 /// <param name="discrepanciesFilter"></param>
 /// <param name="directiveContainer"></param>
 public DirectivesDiscrepanciesControl(DirectiveCollectionFilter directiveSelectionFilter, DirectiveCollectionFilter discrepanciesFilter, IDirectiveContainer directiveContainer) : this()
 {
     this.directiveSelectionFilter = directiveSelectionFilter;
     this.discrepanciesFilter      = discrepanciesFilter;
     this.directiveContainer       = directiveContainer;
 }