public override void update() { // Add 'Event Type' to Schedule Add form CswNbtMetaDataObjectClass GeneratorOC = _CswNbtSchemaModTrnsctn.MetaData.getObjectClass( NbtObjectClass.GeneratorClass ); foreach( CswNbtMetaDataNodeType GeneratorNT in GeneratorOC.getNodeTypes() ) { CswNbtMetaDataNodeTypeProp EventTypeNTP = GeneratorNT.getNodeTypeProp( "Event Type" ); if( null != EventTypeNTP ) { EventTypeNTP.updateLayout( CswNbtMetaDataNodeTypeLayoutMgr.LayoutType.Add, GeneratorNT.getNodeTypeProp( "Technician" ), true ); } } } // update()
public override void update() { // This is a placeholder script that does nothing. CswNbtMetaDataObjectClass GeneratorOC = _CswNbtSchemaModTrnsctn.MetaData.getObjectClass( CswEnumNbtObjectClass.GeneratorClass ); foreach( CswNbtMetaDataNodeType GeneratorNT in GeneratorOC.getNodeTypes() ) { GeneratorNT.AuditLevel = CswEnumAuditLevel.PlainAudit; CswNbtMetaDataNodeTypeProp NextDueDateNTP = GeneratorNT.getNodeTypePropByObjectClassProp( CswNbtObjClassGenerator.PropertyName.NextDueDate ); NextDueDateNTP.AuditLevel = CswEnumAuditLevel.PlainAudit; CswNbtMetaDataNodeTypeProp EnabledNTP = GeneratorNT.getNodeTypePropByObjectClassProp( CswNbtObjClassGenerator.PropertyName.Enabled ); EnabledNTP.AuditLevel = CswEnumAuditLevel.PlainAudit; CswNbtMetaDataNodeTypeProp WarningDaysNTP = GeneratorNT.getNodeTypePropByObjectClassProp( CswNbtObjClassGenerator.PropertyName.WarningDays ); WarningDaysNTP.AuditLevel = CswEnumAuditLevel.PlainAudit; CswNbtMetaDataNodeTypeProp DueDateIntervalNTP = GeneratorNT.getNodeTypePropByObjectClassProp( CswNbtObjClassGenerator.PropertyName.DueDateInterval ); DueDateIntervalNTP.AuditLevel = CswEnumAuditLevel.PlainAudit; CswNbtMetaDataNodeTypeProp FinalDueDateNTP = GeneratorNT.getNodeTypePropByObjectClassProp( CswNbtObjClassGenerator.PropertyName.FinalDueDate ); FinalDueDateNTP.AuditLevel = CswEnumAuditLevel.PlainAudit; CswNbtMetaDataNodeTypeProp RunStatusNTP = GeneratorNT.getNodeTypePropByObjectClassProp( CswNbtObjClassGenerator.PropertyName.RunStatus ); RunStatusNTP.AuditLevel = CswEnumAuditLevel.PlainAudit; } } // update()