@@ -941,7 +941,7 @@ private ISO15745ProfileContainer Convert(EDSsharp eds, string fileName, bool dev
941941 body_device . fileCreationDate = eds . fi . CreationDateTime ;
942942 body_device . fileCreationTime = eds . fi . CreationDateTime ;
943943 body_device . fileCreationTimeSpecified = true ;
944- body_device . fileVersion = eds . fi . FileVersion ;
944+ body_device . fileVersion = eds . fi . FileVersion . ToString ( ) ;
945945 body_device . fileModifiedBy = eds . fi . ModifiedBy ;
946946 body_device . fileModificationDate = eds . fi . ModificationDateTime ;
947947 body_device . fileModificationTime = eds . fi . ModificationDateTime ;
@@ -953,11 +953,11 @@ private ISO15745ProfileContainer Convert(EDSsharp eds, string fileName, bool dev
953953 if ( body_device . DeviceIdentity == null )
954954 body_device . DeviceIdentity = new DeviceIdentity ( ) ;
955955 body_device . DeviceIdentity . vendorName = new vendorName { Value = eds . di . VendorName } ;
956- body_device . DeviceIdentity . vendorID = new vendorID { Value = eds . di . VendorNumber } ;
956+ body_device . DeviceIdentity . vendorID = new vendorID { Value = eds . di . VendorNumber . ToHexString ( ) } ;
957957 body_device . DeviceIdentity . revisionNumber = new revisionNumber { Value = eds . di . RevisionNumber } ;
958958 body_device . DeviceIdentity . orderCode = new orderCode { Value = eds . di . OrderCode } ;
959959 body_device . DeviceIdentity . productName = new productName { Value = eds . di . ProductName } ;
960- body_device . DeviceIdentity . productID = new productID { Value = eds . di . ProductNumber } ;
960+ body_device . DeviceIdentity . productID = new productID { Value = eds . di . ProductNumber . ToHexString ( ) } ;
961961 if ( eds . fi . Description != null && eds . fi . Description != "" )
962962 {
963963 body_device . DeviceIdentity . productText = new productText
@@ -1052,7 +1052,7 @@ private ISO15745ProfileContainer Convert(EDSsharp eds, string fileName, bool dev
10521052 body_network . fileCreationDate = eds . fi . CreationDateTime ;
10531053 body_network . fileCreationTime = eds . fi . CreationDateTime ;
10541054 body_network . fileCreationTimeSpecified = true ;
1055- body_network . fileVersion = eds . fi . FileVersion ;
1055+ body_network . fileVersion = eds . fi . FileVersion . ToString ( ) ;
10561056 body_network . fileModificationDate = eds . fi . ModificationDateTime ;
10571057 body_network . fileModificationTime = eds . fi . ModificationDateTime ;
10581058 body_network . fileModificationDateSpecified = true ;
@@ -1234,7 +1234,7 @@ private EDSsharp Convert(ISO15745ProfileContainer container)
12341234 if ( body_device != null )
12351235 {
12361236 eds . fi . FileName = body_device . fileName ?? "" ;
1237- eds . fi . FileVersion = body_device . fileVersion ?? "" ;
1237+ eds . fi . FileVersion = Byte . Parse ( body_device . fileVersion ?? "0" ) ;
12381238 eds . fi . CreatedBy = body_device . fileCreator ?? "" ;
12391239 eds . fi . ModifiedBy = body_device . fileModifiedBy ?? "" ;
12401240
@@ -1257,15 +1257,15 @@ private EDSsharp Convert(ISO15745ProfileContainer container)
12571257 if ( body_device . DeviceIdentity . vendorName != null )
12581258 eds . di . VendorName = body_device . DeviceIdentity . vendorName . Value ?? "" ;
12591259 if ( body_device . DeviceIdentity . vendorID != null )
1260- eds . di . VendorNumber = body_device . DeviceIdentity . vendorID . Value ?? "" ;
1260+ eds . di . VendorNumber = UInt32 . Parse ( body_device . DeviceIdentity . vendorID . Value ?? "0" ) ;
12611261 if ( body_device . DeviceIdentity . revisionNumber != null )
12621262 eds . di . RevisionNumber = body_device . DeviceIdentity . revisionNumber . Value ;
12631263 if ( body_device . DeviceIdentity . orderCode != null )
12641264 eds . di . OrderCode = body_device . DeviceIdentity . orderCode . Value ?? "" ;
12651265 if ( body_device . DeviceIdentity . productName != null )
12661266 eds . di . ProductName = body_device . DeviceIdentity . productName . Value ?? "" ;
12671267 if ( body_device . DeviceIdentity . productID != null )
1268- eds . di . ProductNumber = body_device . DeviceIdentity . productID . Value ?? "" ;
1268+ eds . di . ProductNumber = UInt32 . Parse ( body_device . DeviceIdentity . productID . Value ?? "0" ) ;
12691269 if ( body_device . DeviceIdentity . productText != null )
12701270 eds . fi . Description = G_label_getDescription ( body_device . DeviceIdentity . productText . Items ) ;
12711271 }
0 commit comments