Index: OBJTimpl/PM/OBJTIdentLookupService.cls.xml =================================================================== diff -u --- OBJTimpl/PM/OBJTIdentLookupService.cls.xml (revision 0) +++ OBJTimpl/PM/OBJTIdentLookupService.cls.xml (revision 66508) @@ -0,0 +1,70 @@ + + + +TECH.RegisteredObject + + +AXimpl.SqlQueryConnection +1 + + + +OBJTimpl.PM.OBJTIdentNrMappingRepository +1 + + + +OBJTIdentNrMappingRepository:OBJTimpl.PM.OBJTIdentNrMappingRepository="" +1 +1 +%Status +1 + + + + + ADUOBJITEMID and ADUOBJITEMID is not null and ADUOBJITEMID <> ''") + + Do ..OBJTIdentNrMappingRepository.VerwijderAlle() + + Set ResultSetIterator = ##class(TECH.ResultSetIterator).%New(ResultSet) + While (ResultSetIterator.HasNext()){ + #dim rs as TECH.ResultSet + set rs = ResultSetIterator.Next() + #dim OBJTIdentNrMapping as OBJTimpl.PM.OBJTIdentNrMapping + Set OBJTIdentNrMapping = ..OBJTIdentNrMappingRepository.Maak(rs.GetDataByName("itemid"),rs.GetDataByName("aduobjitemid")) + Do ..OBJTIdentNrMappingRepository.Bewaar(OBJTIdentNrMapping) + } + } catch { + #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() + w Exception.ToString() + do ..SQLConnection.Disconnect() + } +]]> + + + +AdminIdentNr:%String +%String + + + + + + Index: OBJTimpl/PM/OBJTIdentNrMappingRepository.cls.xml =================================================================== diff -u --- OBJTimpl/PM/OBJTIdentNrMappingRepository.cls.xml (revision 0) +++ OBJTimpl/PM/OBJTIdentNrMappingRepository.cls.xml (revision 66508) @@ -0,0 +1,49 @@ + + + +TECH.Persistentie.impl.Repository + + +%String +OBJTimpl.PM.OBJTIdentNrMapping + + + +ItemID:%String,ADUOBJItemID:%String +TECH.Persistent + + + + +ItemID:%String +%Boolean + + + + +ItemID:%String +OBJTimpl.PM.OBJTIdentNrMapping + + + + + + + + + + Index: OBJTimpl/PM/OBJTIdentNrMapping.cls.xml =================================================================== diff -u --- OBJTimpl/PM/OBJTIdentNrMapping.cls.xml (revision 0) +++ OBJTimpl/PM/OBJTIdentNrMapping.cls.xml (revision 66508) @@ -0,0 +1,46 @@ + + + +persistent +1 +TECH.Persistent + + +%String + + + +%String + + + +%Boolean +$$$false +1 + + + +%Library.CacheStorage +^OBJTimpl.PM.OBJTIdentNr9F1FD +OBJTIdentNrMappingDefaultData +^OBJTimpl.PM.OBJTIdentNr9F1FD +^OBJTimpl.PM.OBJTIdentNr9F1FI +^OBJTimpl.PM.OBJTIdentNr9F1FS + +listnode + + +%%CLASSNAME + + +ItemID + + +ADUOBJItemID + + + + + + +