public override void update() { // Fix existing barcode values CswNbtMetaDataObjectClass LocationOC = _CswNbtSchemaModTrnsctn.MetaData.getObjectClass( NbtObjectClass.LocationClass ); foreach( CswNbtMetaDataNodeType LocationNT in LocationOC.getNodeTypes() ) { foreach( CswNbtObjClassLocation LocationNode in LocationNT.getNodes( false, false ) ) { if( false == LocationNode.Barcode.Barcode.StartsWith( "LS" ) ) { LocationNode.Barcode.setBarcodeValue( OverrideExisting: true ); } if( LocationNode.Barcode.SequenceNumber == Int32.MinValue ) { LocationNode.Barcode.resetSequenceNumber(); } if( LocationNode.Barcode.Barcode.Length < 8 ) { string NewBarcodeValue = "LS" + CswTools.PadInt( CswConvert.ToInt32( LocationNode.Barcode.SequenceNumber ), 6 ); LocationNode.Barcode.setBarcodeValueOverride( NewBarcodeValue, false ); } LocationNode.postChanges( false ); } // foreach( CswNbtObjClassLocation LocationNode in LocationNT.getNodes( false, false ) ) } // foreach( CswNbtMetaDataNodeType LocationNT in LocationOC.getNodeTypes() ) } //Update()
/// <summary> /// String version of Schema Version tag, e.g. 01F-02 /// </summary> public override string ToString() { string ret = ""; ret += CswTools.PadInt(CycleIteration, 2); ret += ReleaseIdentifier.ToString(); ret += "-"; ret += CswTools.PadInt(ReleaseIteration, 3); //27448: going forward, three character iteration segments return(ret); }