public override void update()
        {
            CswNbtMetaDataObjectClass ComponentOC = _CswNbtSchemaModTrnsctn.MetaData.getObjectClass(CswEnumNbtObjectClass.MaterialComponentClass);

            // Make new NumericRange property on MaterialComponent
            _CswNbtSchemaModTrnsctn.createObjectClassProp(ComponentOC, new CswNbtWcfMetaDataModel.ObjectClassProp()
            {
                PropName        = CswNbtObjClassMaterialComponent.PropertyName.PercentageRange,
                FieldType       = CswEnumNbtFieldType.NumericRange,
                NumberMinValue  = 0,
                NumberMaxValue  = 100,
                NumberPrecision = 3,
                IsRequired      = true,
                SetValOnAdd     = true,
                AuditLevel      = CswEnumAuditLevel.PlainAudit
            });


            // Fix CAF bindings
            CswNbtSchemaUpdateImportMgr ImpMgr = new CswNbtSchemaUpdateImportMgr(_CswNbtSchemaModTrnsctn, "CAF");

            ImpMgr.removeImportBinding(CswScheduleLogicNbtCAFImport.DefinitionName, "quantity", "Material Component", oldTargetPercentageValue, "Value");
            ImpMgr.removeImportBinding(CswScheduleLogicNbtCAFImport.DefinitionName, "quantity", "Material Component", oldHighPercentageValue, "Value");

            ImpMgr.importBinding("quantity", CswNbtObjClassMaterialComponent.PropertyName.PercentageRange, CswNbtFieldTypeRuleNumericRange.SubFieldName.Target.ToString());
            ImpMgr.importBinding("quantity", CswNbtObjClassMaterialComponent.PropertyName.PercentageRange, CswNbtFieldTypeRuleNumericRange.SubFieldName.Upper.ToString());

            ImpMgr.finalize();
        }
 public override void doUpdate()
 {
     CswNbtSchemaUpdateImportMgr sizeImporter = new CswNbtSchemaUpdateImportMgr( _CswNbtSchemaModTrnsctn, "CAF" );
     sizeImporter.removeImportBinding( "CAF", "upc", "Size", "UPC Barcode", CswEnumNbtSubFieldName.Barcode.ToString() );
     sizeImporter.importBinding( "upc", CswNbtObjClassSize.PropertyName.UPC, "", DestNodeTypeName: "Size" );
     sizeImporter.finalize();
 } // update()
Exemple #3
0
        public override void doUpdate()
        {
            CswNbtSchemaUpdateImportMgr ImpMgr = new CswNbtSchemaUpdateImportMgr(_CswNbtSchemaModTrnsctn, "CAF");

            ImpMgr.removeImportBinding("CAF", "CA_FileExtension", "C of A Document", "File Type", "Value");
            ImpMgr.importBinding("FileExtension", CswNbtObjClassCofADocument.PropertyName.FileType, "", "CAF", "C of A Document");

            ImpMgr.finalize();
        }
        public override void update()
        {
            if( CswNbtImportDef.checkForDefinitionEntries( _CswNbtSchemaModTrnsctn, "CAF" ) )
            {
                CswNbtSchemaUpdateImportMgr ImpMgr = new CswNbtSchemaUpdateImportMgr( _CswNbtSchemaModTrnsctn, "CAF" );

                ImpMgr.removeImportBinding( "CAF", "controlzonename", "Control Zone", "Name", "Text" );
                ImpMgr.importBinding( "controlzonename", CswNbtObjClassControlZone.PropertyName.ControlZoneName, "", "CAF", "Control Zone" );

                ImpMgr.finalize();
            }
        } // update()