Wiki source code of IMPACT Sync

Last modified by Theib Sawaf on 2018/10/07 13:24

Show last authors
1 (% class="row" %)
2 (((
3 (% class="col-xs-12 col-sm-8" %)
4 (((
5 (% dir="ltr" %)
6 = =
7
8 (% dir="ltr" %)
9 == (% id="docs-internal-guid-73f0ee8e-7fff-33c8-27c9-11f007609aab" %)Overview(%%) ==
10
11 (% dir="ltr" %)
12 The IMPACT Sync is a client console application that is used to integrate IMPACT with other ERP (Enterprise Resource Planning) systems like MANTUM, SAP, etc.
13
14 (% class="lead" dir="ltr" %)
15 (% id="docs-internal-guid-73f0ee8e-7fff-33c8-27c9-11f007609aab" %)**[[image:https://lh3.googleusercontent.com/GEIMUVnmLby0DCBAbqsGno3P2xlvrlDqJwJg-pstWnVFL4sMA1YAqqcG2Ryi0po4fOjMbgpl3T-m00GY7vfqgfLScbBXzrrbloUjsDmW831SEjLSHvbruCDcTuIyQAqOosYwiSlk||height="183" width="587"]]**
16
17 (% class="lead" dir="ltr" id="HIMPACTSyncTrigger" %)
18 == IMPACT Sync Trigger ==
19
20 (% dir="ltr" %)
21 Normally IMPACT Sync is triggered by a scheduled task in MS Windows with a certain time interval.
22
23 (% class="wikigeneratedid" dir="ltr" %)
24 Follow the instructions on this page to create a new task: [[IMPACT Sync Scheduled Task>>doc:.Scheduled Task.WebHome]].
25
26 (% class="wikigeneratedid" dir="ltr" %)
27 For test you can use a bat file that can be started manually as below:
28
29 (% class="wikigeneratedid" dir="ltr" %)
30 Create a bat file, e.g. **TransportCompanyExport_4.bat**
31
32 (% class="wikigeneratedid" dir="ltr" %)
33 Put the following inside the file (parameter 4 is used for transport export to transport company MANTUM):
34 **"C:\Program Files\StruSoft\IMPACT 15\Sync\IMPACT Sync 15.0.exe" 4**
35
36 (% dir="ltr" %)
37 == IMPACT Sync Functions ==
38
39 (% dir="ltr" %)
40 Below are the functions implemented in IMPAC Sync
41
42 |(((
43 (% dir="ltr" %)
44 (% id="docs-internal-guid-ba39b962-7fff-cac4-e71e-76c558420c6a" %)**IMPACT Sync Function**
45 )))|(((
46 (% dir="ltr" %)
47 (% id="docs-internal-guid-ba39b962-7fff-cac4-e71e-76c558420c6a" %)**Trigger Parameter**
48 )))|(((
49 (% dir="ltr" %)
50 (% id="docs-internal-guid-ba39b962-7fff-cac4-e71e-76c558420c6a" %)**Format**
51 )))|(((
52 (% dir="ltr" %)
53 (% id="docs-internal-guid-ba39b962-7fff-cac4-e71e-76c558420c6a" %)**Description**
54 )))
55 |(((
56 (% dir="ltr" %)
57 [[ERP Production Export>>doc:.Production Export To SAP.WebHome]]
58 )))|(((
59 (% dir="ltr" %)
60 1
61 )))|(((
62 (% dir="ltr" %)
63 Text
64 )))|One file type is exported
65 |(((
66 (% dir="ltr" %)
67 [[ERP Delivery Export>>ERP Delivery Export]]
68 )))|(((
69 (% dir="ltr" %)
70 2
71 )))|(((
72 (% dir="ltr" %)
73 Text
74 )))|Three file types are exported
75 |(((
76 (% dir="ltr" %)
77 [[ ERP Price Import>>doc:.SAP Price Import.WebHome]]
78 )))|(((
79 (% dir="ltr" %)
80 3
81 )))|XML|Import of prices.
82 |(((
83 (% dir="ltr" %)
84 [[Mantum Transport Export>>doc:.Mantum Transport Export.WebHome]]
85 )))|(((
86 (% dir="ltr" %)
87 4
88 )))|(((
89 (% dir="ltr" %)
90 XML
91 )))|One file type is exported
92 |(((
93 (% dir="ltr" %)
94 [[Element Mark Import>>doc:.Element Mark Import.WebHome]]
95 )))|(((
96 (% dir="ltr" %)
97 5
98 )))|(((
99 (% dir="ltr" %)
100 XML
101 )))|Creates/updates element marks based on imported xml file.
102 |(((
103 (% dir="ltr" %)
104 [[PLI Cast Planning Import>>doc:.PLI Castplanning Import.WebHome]]
105 )))|(((
106 (% dir="ltr" %)
107 6
108 )))|(((
109 (% dir="ltr" %)
110 Text
111 )))|Obsolete. Used for cast planning in pallet factories.
112 |(((
113 (% dir="ltr" %)
114 [[TVN Cast Status Import>>doc:.TVN Caststatus Import.WebHome]]
115 )))|(((
116 (% dir="ltr" %)
117 7
118 )))|(((
119 (% dir="ltr" %)
120 Text
121 )))|Obsolete. Used for setting status of elements in pallet factories.
122 |(((
123 (% dir="ltr" %)
124 [[Inventory Export>>doc:.Inventory Export.WebHome]]
125 )))|(((
126 (% dir="ltr" %)
127 8
128 )))|(((
129 (% dir="ltr" %)
130 Text
131 )))|One file type is exported
132 |(((
133 (% dir="ltr" %)
134 [[Auto Cost Calculation>>doc:.Auto Cost Calculation.WebHome]]
135 )))|(((
136 (% dir="ltr" %)
137 9
138 )))| |Carries out project cost calculations.
139 |(((
140 (% dir="ltr" %)
141 [[Project Import>>doc:.Project Import.WebHome]]
142 )))|(((
143 (% dir="ltr" %)
144 12
145 )))|(((
146 (% dir="ltr" %)
147 XML
148 )))|Create's project based on given xml files.
149 |(((
150 (% dir="ltr" %)
151 [[Pallet Planning Export>>doc:.Pallet Planning Export.WebHome]]
152 )))|(((
153 (% dir="ltr" %)
154 13
155 )))|(((
156 (% dir="ltr" %)
157 Text
158 )))|(((
159 (% dir="ltr" %)
160 Pallet planning. Two file types are exported
161 )))
162 |(((
163 (% dir="ltr" %)
164 [[Pallet Status Import>>doc:.Pallet Status Import.WebHome]]
165 )))|(((
166 (% dir="ltr" %)
167 14
168 )))|(((
169 (% dir="ltr" %)
170 Text
171 )))|(((
172 (% dir="ltr" %)
173 Pallet planning. Sets element status to Produced.
174 )))
175 |(((
176 (% dir="ltr" %)
177 [[Pallet Move Unproduced>>doc:.Pallet Move Unproduced.WebHome]]
178 )))|(((
179 (% dir="ltr" %)
180 15
181 )))| |(((
182 (% dir="ltr" %)
183 Pallet planning. Moves unproduced elements to next working day.
184 )))
185 |(((
186 (% dir="ltr" %)
187 [[Pxml Export>>doc:.Pxml Export.WebHome]]
188 )))|(((
189 (% dir="ltr" %)
190 16
191 )))|(((
192 (% dir="ltr" %)
193 Text
194 )))|(((
195 (% dir="ltr" %)
196 Reinforcement info.
197 )))
198 |(((
199 (% dir="ltr" %)
200 [[ELiPLAN Import>>doc:.ELiPLAN Import.WebHome]]
201 )))|(((
202 (% dir="ltr" %)
203 21
204 )))|(((
205 (% dir="ltr" %)
206 Text
207 )))|ELiPLAN file import
208 |(((
209 (% dir="ltr" %)
210 [[ELiPLAN Export>>doc:.ELiPLAN Export.WebHome]]
211 )))|(((
212 (% dir="ltr" %)
213 22
214 )))|(((
215 (% dir="ltr" %)
216 Text
217 )))|ELiPLAN file export
218 |(((
219 (% dir="ltr" %)
220 [[StruSoft Transport Export>>doc:.StruSoft Transport Export.WebHome]]
221 )))|(((
222 (% dir="ltr" %)
223 24
224 )))|(((
225 (% dir="ltr" %)
226 XML
227 )))|(((
228 (% dir="ltr" %)
229 Transport export to transport company using StruSoft XML format.
230 )))
231
232 (% dir="ltr" %)
233 == IMPACT Sync Configuration File ==
234
235 (% dir="ltr" %)
236 The config file must be in the directory of the IMPACT Sync application with the name IMPACT Sync XX.0.exe.config (where XX is version number, e.g. 15)
237
238 (% dir="ltr" %)
239 [[image:https://lh6.googleusercontent.com/LpRA62aO7_Fw92ngJBjOuaXkQZFQHn7SKKut1vzaxTjZtqy4fWakJ4fMh9nvBZTGw2iEnE8i6-4BXzXEdyY4QG15lIjyGEmnQgFKJxkvW_Wd7Kmk_uVhE21T6nWW1mkmmqDHPoV8]]
240
241 (% dir="ltr" %)
242 == Sync 15.0.exe.config_default ==
243
244 (% dir="ltr" %)
245 The file IMPACT Sync 15.0.exe.config_default and Sync 15.0.exe.config_default_EliPLAN contain default settings just to show how it works. They are not used by the IMPACT Sync. They are updated everytime the IMPACT Sync is updated.
246
247 (% dir="ltr" %)
248 == IMPACT Sync 15.0.exe.config ==
249
250 (% dir="ltr" %)
251 The file IMPACT Sync 15.0.exe.config however is the one that is used by the IMPACT Sync.
252 Note that this file is not overwritten when updating the IMPACT Sync.
253
254
255 == IMPACT Sync Config File Contents ==
256
257 (% dir="ltr" %)
258 The IMPACT Sync config-file contains the following
259
260 * (((
261 (% dir="ltr" %)
262 Service addresses and service logging on info (WebApi, SecurityServer, UserName, Password, SecuritySecret)
263 )))
264 * (((
265 (% dir="ltr" %)
266 ProductionCompanyId for STRUSOFT should be in the this format 1XXX
267 )))
268 * (((
269 (% dir="ltr" %)
270 Destination directory and FTP logging on info (TransportCompanyDirectory, FtpUserName, FtpPassword)
271 )))
272 * (((
273 (% dir="ltr" %)
274 CompanyIdentifier used in the XML element RegisteredByCompanyIdentifier
275 )))
276
277 UseProjectInvoiceFactory if UseProjectInvoiceFactory is set to “YES”, 2 XML-elements are added to the Consignee element: ProjectManager, ProjectInvoiceFactory.Source of ProjectManager, ProjectInvoiceFactory is PM/Project properties (Description & Checked By) see the figure below.
278
279
280 (% dir="ltr" %)
281 (% id="docs-internal-guid-d9d9074b-7fff-960c-6102-3b509c99dab4" %)**[[image:https://lh5.googleusercontent.com/15lES8_GIl8SufkyYEMn_skUlXe-CdX7N1cL1IvkXhZJXoIn76wm3VK07qvoBgasyojT1xVjFL2shl7lN2eT0YdxSUa3d2gKir35AJjGoR-84N-94a3TR56lVRa9Yoomn-IFKSZt]]**
282
283
284 (% class="wikigeneratedid" dir="ltr" id="HIMPACTSyncConfig-file" %)
285 Here is an example of the config file (IMPACT Sync 15.0.exe.config):
286
287
288 (% dir="ltr" %)
289 <?xml version="1.0" encoding="utf-8"?>
290
291 (% dir="ltr" %)
292 <configuration>
293
294 (% dir="ltr" %)
295 <appSettings>
296
297 (% dir="ltr" %)
298 <!~-~- WebApi Address ~-~->
299
300 (% dir="ltr" %)
301 <add key="WebApi" value="http:~/~/localhost:81/STRUSOFTWebApi15/" />
302
303
304 (% dir="ltr" %)
305 <!~-~- Security ~-~->
306
307 (% dir="ltr" %)
308 <add key="SecurityServer" value="http:~/~/localhost:81/STRUSOFTOpenIdServer15/" />
309
310 (% dir="ltr" %)
311 <add key="UserName" value="xxxxx" />
312
313 (% dir="ltr" %)
314 <add key="Password" value="yyyyyyy" />
315
316 (% dir="ltr" %)
317 <add key="SecuritySecret" value="zzzzzz" />
318
319
320 (% dir="ltr" %)
321 <!~-~- Production Company Id, Skanska:1XXX, STRUSOFT:1XXX ~-~->
322
323 (% dir="ltr" %)
324 <add key="ProductionCompanyId" value="1XXX" />
325
326
327 (% dir="ltr" %)
328 <!~-~- Transport Export to transport company (DHL, TRANSPORTCOMPANY, ...) ~-~->
329
330 (% dir="ltr" %)
331 <!~-~- Destination directory, Eg: "C:\IMPACT\" or "ftp:~/~/ftp.xxx.com/inbox" ~-~->
332
333 (% dir="ltr" %)
334 <add key="TransportCompanyDirectory" value="ftp:~/~/ftp.testxxxframework.com/shipment/inbox" />
335
336 (% dir="ltr" %)
337 <!~-~- <add key="TransportCompanyDirectory" value="C:\IMPACT\StruSoft\TransportCompanyDelivery\Out" /> ~-~->
338
339 (% dir="ltr" %)
340 <add key="FtpUserName" value="STRUSOFTPrefabTestUser" />
341
342 (% dir="ltr" %)
343 <add key="FtpPassword" value="STRUSOFTPrefab69741!" />
344
345 (% dir="ltr" %)
346 <add key="CompanyIdentifier" value="STRUSOFTPREFABAB"/>
347
348
349 (% dir="ltr" %)
350 <!~-~- UseProjectInvoiceFactory set to yes if you want ProjectManager and ProjectInvoiceFactory to added to Consignee element. ~-~->
351
352 (% dir="ltr" %)
353 <add key="UseProjectInvoiceFactory" value="NO" />
354
355
356 (% dir="ltr" %)
357 <!~-~- UseVehicleName: set to yes if you want to append vehicle name defined in Recoure Manager/Settings/Transport Vehicles to PickUpInstructions after second comma ~-~->
358
359 (% dir="ltr" %)
360 <!~-~- <PickUpInstructions>Lass nr 9, , Bygel 27 ton.TS</PickUpInstructions> ~-~->
361
362 (% dir="ltr" %)
363 <add key="UseVehicleName" value="YES" />
364
365 (% dir="ltr" %)
366 <add key="FreightProductExternalCommunicationId" value="7301" />
367
368
369 (% dir="ltr" %)
370 <!~-~- Cost calculation filter: Limit calculation to certain standard(s) and project(s) ~-~->
371
372 (% dir="ltr" %)
373 <add key="CostCalcFactory" value="" />
374
375 (% dir="ltr" %)
376 <add key="CostCalcProjectPrefix" value="P330" />
377
378
379 == IMPACT Sync Monitoring ==
380
381 In the program Resource Manager/Setting/Message Log you can follow the IMPACT Sync functions triggered with different log info like errors, warnings or just information.
382
383 You also see the IMPACT Sync and WebApi versions used when starting a function.
384
385 [[image:1538911481779-534.png]]
386
387 (% dir="ltr" %)
388
389 )))
390
391 (% class="col-xs-12 col-sm-4" %)
392 (((
393 (% class="box" %)
394 (((
395 {{toc/}}
396 )))
397 )))
398 )))
Copyright 2018 StruSoft AB
Impact Documentation