@@ -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 . ToString ( ) ;
944+ body_device . fileVersion = eds . fi . fileVersionString ;
945945 body_device . fileModifiedBy = eds . fi . ModifiedBy ;
946946 body_device . fileModificationDate = eds . fi . ModificationDateTime ;
947947 body_device . fileModificationTime = eds . fi . ModificationDateTime ;
@@ -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 . ToString ( ) ;
1055+ body_network . fileVersion = eds . fi . FileVersion . ToString ( ) + "." + eds . fi . FileRevision . ToString ( ) ;
10561056 body_network . fileModificationDate = eds . fi . ModificationDateTime ;
10571057 body_network . fileModificationTime = eds . fi . ModificationDateTime ;
10581058 body_network . fileModificationDateSpecified = true ;
@@ -1213,7 +1213,6 @@ private string G_label_getDescription(object[] items) {
12131213 }
12141214 return "" ;
12151215 }
1216-
12171216 private EDSsharp Convert ( ISO15745ProfileContainer container )
12181217 {
12191218 EDSsharp eds = new EDSsharp ( ) ;
@@ -1234,7 +1233,7 @@ private EDSsharp Convert(ISO15745ProfileContainer container)
12341233 if ( body_device != null )
12351234 {
12361235 eds . fi . FileName = body_device . fileName ?? "" ;
1237- eds . fi . FileVersion = Byte . Parse ( body_device . fileVersion ?? "0" ) ;
1236+ eds . fi . fileVersionString = body_device . fileVersion ?? "" ;
12381237 eds . fi . CreatedBy = body_device . fileCreator ?? "" ;
12391238 eds . fi . ModifiedBy = body_device . fileModifiedBy ?? "" ;
12401239
@@ -1257,15 +1256,15 @@ private EDSsharp Convert(ISO15745ProfileContainer container)
12571256 if ( body_device . DeviceIdentity . vendorName != null )
12581257 eds . di . VendorName = body_device . DeviceIdentity . vendorName . Value ?? "" ;
12591258 if ( body_device . DeviceIdentity . vendorID != null )
1260- eds . di . VendorNumber = UInt32 . Parse ( body_device . DeviceIdentity . vendorID . Value ?? "0" ) ;
1259+ eds . di . VendorNumber = EDSsharp . U32Parse ( body_device . DeviceIdentity . vendorID . Value ?? "0" ) ;
12611260 if ( body_device . DeviceIdentity . revisionNumber != null )
12621261 eds . di . RevisionNumber = body_device . DeviceIdentity . revisionNumber . Value ;
12631262 if ( body_device . DeviceIdentity . orderCode != null )
12641263 eds . di . OrderCode = body_device . DeviceIdentity . orderCode . Value ?? "" ;
12651264 if ( body_device . DeviceIdentity . productName != null )
12661265 eds . di . ProductName = body_device . DeviceIdentity . productName . Value ?? "" ;
12671266 if ( body_device . DeviceIdentity . productID != null )
1268- eds . di . ProductNumber = UInt32 . Parse ( body_device . DeviceIdentity . productID . Value ?? "0" ) ;
1267+ eds . di . ProductNumber = EDSsharp . U32Parse ( body_device . DeviceIdentity . productID . Value ?? "0" ) ;
12691268 if ( body_device . DeviceIdentity . productText != null )
12701269 eds . fi . Description = G_label_getDescription ( body_device . DeviceIdentity . productText . Items ) ;
12711270 }
0 commit comments