示例#1
0
        public CswNbtFieldTypeRuleList(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            // ValueSubField - Field1
            ValueSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, CswEnumNbtSubFieldName.Value);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(ValueSubField);

            //TextSubField - Field2
            TextSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, CswEnumNbtSubFieldName.Text);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(TextSubField);
        }//ctor
示例#2
0
        public CswNbtFieldTypeRuleSequence(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            SequenceSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Sequence);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            SequenceSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(SequenceSubField);

            SequenceNumberSubField = new CswNbtSubField(_CswNbtFieldResources, SequenceNumberColumn, SubFieldName.Number);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            SequenceNumberSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(SequenceNumberSubField);
        }//ctor
        public CswNbtFieldTypeRuleBlob(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            FileNameSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Name);
            FileNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            FileNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(FileNameSubField);

            ContentTypeSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, SubFieldName.ContentType);
            ContentTypeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            ContentTypeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(ContentTypeSubField);

            DateModifiedSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2_Date, SubFieldName.DateModified);
            DateModifiedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            DateModifiedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            DateModifiedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            DateModifiedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            DateModifiedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            DateModifiedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            DateModifiedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            DateModifiedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(DateModifiedSubField);

            //BlobSubField = new CswNbtSubField( CswEnumNbtPropColumn.Field1, CswEnumNbtSubFieldName.Blob );
            //BlobSubField.SupportedFilterModes.Add( CswEnumNbtFilterMode.NotNull |
            //                           CswEnumNbtFilterMode.Null;
            //SubFields.add( BlobSubField );
        }//ctor
示例#4
0
        public CswNbtFieldTypeRuleLink(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            TextSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Text);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(TextSubField, true);

            HrefSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_Big, CswEnumNbtSubFieldName.Href);
            HrefSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            HrefSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            HrefSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            HrefSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            HrefSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            HrefSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(HrefSubField);
        }//ctor
        public CswNbtFieldTypeRuleScientific(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            BaseSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_Numeric, SubFieldName.Base, true);
            BaseSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            BaseSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            BaseSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            BaseSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            BaseSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            BaseSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            BaseSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            BaseSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(BaseSubField);

            ExponentSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2_Numeric, SubFieldName.Exponent, true);
            ExponentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            ExponentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            ExponentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            ExponentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            ExponentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            ExponentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            ExponentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            ExponentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(ExponentSubField);
        }//ctor
        public CswNbtFieldTypeRuleTimeInterval(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            IntervalSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Interval, true);
            IntervalSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            IntervalSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            IntervalSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            IntervalSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            IntervalSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            IntervalSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            IntervalSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            IntervalSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(IntervalSubField);

            StartDateSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_Date, SubFieldName.StartDateTime, true);
            StartDateSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            StartDateSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            StartDateSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            StartDateSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            StartDateSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            StartDateSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            StartDateSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            StartDateSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(StartDateSubField);

            ClobDataSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.ClobData, CswEnumNbtSubFieldName.Value);
            ClobDataSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            ClobDataSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(ClobDataSubField);
        }//ctor
        public CswNbtFieldTypeRuleMTBF(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            StartDateTimeSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.StartDateTime, true);
            StartDateTimeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            StartDateTimeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            StartDateTimeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            StartDateTimeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            StartDateTimeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            StartDateTimeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            StartDateTimeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            StartDateTimeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(StartDateTimeSubField);

            UnitsSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, SubFieldName.Units, true);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            SubFields.add(UnitsSubField);

            ValueSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_Numeric, SubFieldName.Value, true);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            SubFields.add(ValueSubField, true);
        }//ctor
        public CswNbtFieldTypeRuleMetaDataList(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            IdSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_FK, SubFieldName.Id);
            IdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            IdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            IdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            IdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            SubFields.add(IdSubField);

            TypeSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Type);
            TypeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            TypeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            TypeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            TypeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            SubFields.add(TypeSubField);

            TextSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, SubFieldName.Text);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(TextSubField);
        }//ctor
        public CswNbtFieldTypeRuleQuantity(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            QuantitySubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_Numeric, SubFieldName.Value, true);
            QuantitySubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            QuantitySubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            QuantitySubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            QuantitySubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            QuantitySubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            QuantitySubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            QuantitySubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            QuantitySubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(QuantitySubField, true);

            UnitIdSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_FK, SubFieldName.NodeID, true);
            UnitIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            UnitIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            UnitIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            UnitIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            UnitIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.In);
            SubFields.add(UnitIdSubField);

            UnitNameSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Name);
            UnitNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            UnitNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            UnitNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            UnitNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            UnitNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            UnitNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            UnitNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            UnitNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(UnitNameSubField);

            Val_kg_SubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2_Numeric, CswEnumNbtSubFieldName.Val_kg, true);
            Val_kg_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            Val_kg_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            Val_kg_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            Val_kg_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            Val_kg_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            Val_kg_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            Val_kg_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            Val_kg_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(Val_kg_SubField);

            Val_Liters_SubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field3_Numeric, CswEnumNbtSubFieldName.Val_Liters, true);
            Val_Liters_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            Val_Liters_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            Val_Liters_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            Val_Liters_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            Val_Liters_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            Val_Liters_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            Val_Liters_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            Val_Liters_SubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(Val_Liters_SubField);
        }//ctor
        public CswNbtFieldTypeRuleLogical(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            CheckedSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Checked);
            CheckedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            CheckedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            SubFields.add(CheckedSubField);
        }//ctor
示例#11
0
        public CswNbtFieldTypeRuleUserSelect(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            SelectedUserIdsSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.ClobData, CswEnumNbtSubFieldName.NodeID);
            SelectedUserIdsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            SelectedUserIdsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            SelectedUserIdsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(SelectedUserIdsSubField);
        }//ctor
        public CswNbtFieldTypeRuleMultiList(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            ValueSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.ClobData, SubFieldName.Value);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(ValueSubField);
        }//ctor
示例#13
0
        public CswNbtFieldTypeRuleMol(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            MolSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Mol);
            // BZ 8638
            //MolSubField.SupportedFilterModes.Add( CswEnumNbtFilterMode.NotNull |
            //                          CswEnumNbtFilterMode.Null;
            MolSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            MolSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(MolSubField);
        }//ctor
示例#14
0
        public CswNbtFieldTypeRuleComments(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);


            CommentSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.ClobData, SubFieldName.Comments);     //bz # 6628: Gestalt instead of Field1
            CommentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            CommentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            CommentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            CommentSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(CommentSubField);
        }//ctor
示例#15
0
        public CswNbtFieldTypeRuleLogicalSet(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            //CheckedSubField = new CswNbtSubField(CswEnumNbtPropColumn.Field1, CswNbtFieldTypeRule.SubFieldName. );
            //CheckedSubField.SupportedFilterModes.Add( CswEnumNbtFilterMode.Equals;
            //SubFields.add( CheckedSubField );

            ClobDataSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.ClobData, CswEnumNbtSubFieldName.Value);
            ClobDataSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            ClobDataSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(ClobDataSubField);
        }//ctor
        public CswNbtFieldTypeRuleMemo(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);


            TextSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Gestalt, SubFieldName.Text);     //bz # 6628: Gestalt instead of Field1
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            TextSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(TextSubField);
        }//ctor
示例#17
0
        public CswNbtFieldTypeRuleNumber(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            ValueSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_Numeric, SubFieldName.Value, true);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            ValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(ValueSubField);
        }//ctor
        public CswNbtFieldTypeRulePassword(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            EncryptedPasswordSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Password);
            //// BZ 8638
            //EncryptedPasswordSubField.SupportedFilterModes.Add( CswEnumNbtFilterMode.NotNull |
            //                                        CswEnumNbtFilterMode.Null;
            SubFields.add(EncryptedPasswordSubField);

            ChangedDateSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_Date, SubFieldName.ChangedDate);
            SubFields.add(ChangedDateSubField);

            PreviouslyUsedPasswords = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, SubFieldName.PreviouslyUsedPasswords);
            SubFields.add(PreviouslyUsedPasswords);
        }//ctor
示例#19
0
        public CswNbtFieldTypeRuleButton(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            StateSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Value);
            SubFields.add(StateSubField);

            MenuOptionsSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, SubFieldName.Options);
            SubFields.add(MenuOptionsSubField);

            DisplayNameField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field3, SubFieldName.Name);
            SubFields.add(DisplayNameField);

            IconSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field4, SubFieldName.Icon);
            SubFields.add(IconSubField);
        }//ctor
示例#20
0
        public CswNbtFieldTypeRuleComposite(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            CachedValueSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Value);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            CachedValueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(CachedValueSubField);
        }//ctor
        public CswNbtFieldTypeRuleNFPA(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            RedSubField    = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Flammability, true);
            YellowSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, SubFieldName.Reactivity, true);
            BlueSubField   = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field3, SubFieldName.Health, true);
            WhiteSubField  = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field4, SubFieldName.Special, true);

            RedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            RedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            RedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            RedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            RedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            RedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            YellowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            YellowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            YellowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            YellowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            YellowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            YellowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            BlueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            BlueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            BlueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            BlueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            BlueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            BlueSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            WhiteSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            WhiteSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            WhiteSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            WhiteSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            WhiteSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            WhiteSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);

            SubFields.add(RedSubField);
            SubFields.add(YellowSubField);
            SubFields.add(BlueSubField);
            SubFields.add(WhiteSubField);
        }//ctor
        public CswNbtFieldTypeRuleViewReference(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            CachedViewNameSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Name);
            CachedViewNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            CachedViewNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            CachedViewNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            CachedViewNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            CachedViewNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            CachedViewNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            CachedViewNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            CachedViewNameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            SubFields.add(CachedViewNameSubField);

            ViewIdSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_FK, SubFieldName.ViewID);
            ViewIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            ViewIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            ViewIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(ViewIdSubField);
        }//ctor
示例#23
0
        public CswNbtFieldTypeRuleRelationship(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            NameSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Name);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(NameSubField, true);

            NodeIDSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_FK, SubFieldName.NodeID, true);
            NodeIDSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            NodeIDSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            NodeIDSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            NodeIDSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            NodeIDSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.In);
            SubFields.add(NodeIDSubField);
        }//ctor
        public CswNbtFieldTypeRuleQuestion(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            //List
            AnswerSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Answer, true);
            AnswerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            AnswerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            AnswerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            AnswerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(AnswerSubField, true);

            //List
            CorrectiveActionSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, SubFieldName.CorrectiveAction, true);
            CorrectiveActionSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            CorrectiveActionSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            CorrectiveActionSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            CorrectiveActionSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(CorrectiveActionSubField);

            //Logical
            IsCompliantSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field3, SubFieldName.IsCompliant, true);
            IsCompliantSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            IsCompliantSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            IsCompliantSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            IsCompliantSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(IsCompliantSubField);

            //Memo
            CommentsSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.ClobData, SubFieldName.Comments, true);
            CommentsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            CommentsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            CommentsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            CommentsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            CommentsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            CommentsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            CommentsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(CommentsSubField);

            //Date
            DateAnsweredSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_Date, SubFieldName.DateAnswered, true);
            DateAnsweredSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            DateAnsweredSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            DateAnsweredSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            DateAnsweredSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            DateAnsweredSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            DateAnsweredSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            DateAnsweredSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            DateAnsweredSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(DateAnsweredSubField);

            //Date
            DateCorrectedSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2_Date, SubFieldName.DateCorrected, true);
            DateCorrectedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            DateCorrectedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            DateCorrectedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            DateCorrectedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            DateCorrectedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            DateCorrectedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            DateCorrectedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            DateCorrectedSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(DateCorrectedSubField);
        }//ctor
示例#25
0
        public CswNbtFieldTypeRuleLocation(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);


            NameSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Name);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            NameSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(NameSubField, true);

            NodeIdSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_FK, SubFieldName.NodeID, true);
            NodeIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            NodeIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            NodeIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            NodeIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            NodeIdSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.In);
            SubFields.add(NodeIdSubField);

            RowSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, SubFieldName.Row);
            RowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            RowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            RowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            RowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            RowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            RowSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(RowSubField);

            ColumnSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field3, SubFieldName.Column);
            ColumnSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            ColumnSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            ColumnSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            ColumnSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            ColumnSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            ColumnSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(ColumnSubField);

            PathSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field4, SubFieldName.Path);
            PathSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            PathSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            PathSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            PathSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(PathSubField);


            BarcodeSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field5, SubFieldName.Barcode);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            BarcodeSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(BarcodeSubField);
        }//ctor
示例#26
0
        public CswNbtFieldTypeRuleNumericRange(CswNbtFieldResources CswNbtFieldResources)
        {
            _CswNbtFieldResources       = CswNbtFieldResources;
            _CswNbtFieldTypeRuleDefault = new CswNbtFieldTypeRuleDefaultImpl(_CswNbtFieldResources);

            LowerSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1_Numeric, SubFieldName.Lower, true);
            LowerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            LowerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            LowerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            LowerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            LowerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            LowerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            LowerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            LowerSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(LowerSubField);

            TargetSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2_Numeric, SubFieldName.Target, true);
            TargetSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            TargetSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            TargetSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            TargetSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            TargetSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            TargetSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            TargetSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            TargetSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(TargetSubField);

            UpperSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field3_Numeric, SubFieldName.Upper, true);
            UpperSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            UpperSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            UpperSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThanOrEquals);
            UpperSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.GreaterThan);
            UpperSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThan);
            UpperSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.LessThanOrEquals);
            UpperSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            UpperSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(UpperSubField);

            LowerInclusiveSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field2, SubFieldName.LowerInclusive, true);
            LowerInclusiveSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            LowerInclusiveSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            LowerInclusiveSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            LowerInclusiveSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(LowerInclusiveSubField);

            UpperInclusiveSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field3, SubFieldName.UpperInclusive, true);
            UpperInclusiveSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            UpperInclusiveSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            UpperInclusiveSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            UpperInclusiveSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(UpperInclusiveSubField);

            UnitsSubField = new CswNbtSubField(_CswNbtFieldResources, CswEnumNbtPropColumn.Field1, SubFieldName.Units, true);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Begins);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Contains);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotContains);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Ends);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Equals);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotEquals);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.NotNull);
            UnitsSubField.SupportedFilterModes.Add(CswEnumNbtFilterMode.Null);
            SubFields.add(UnitsSubField);
        } //ctor