SolverTech.Tasha.PlugIns.Commands.PostImportJobsCompute

Z Solvertech
Skočit na navigaci Skočit na vyhledávání
Jiné jazyky:

Configuration file for column calculations after data import. It is typically used for calculations that require a calculated distance (courier module, especially TopTrans price list).



Example 1: I want to calculate the duration (loading) from the imported demand (loading)
<string>stops[0].duration;stops[0].demand1;;3*stops[0].demand1</string>


Example 2: if the distance is less than 100 km the result to the penalty for not serving is 20 times the load1, if it is more than 100 km it is 68 times the distance

<string>notservedpenalty;stops[0].demand1;distance;;distance&lt;100?20*stops[0].demand1:distance*68</string>



Syntax

stopa[x].sloupec, který chceme vypočítat;stopa[x].proměnná1;stopa[x].proměnná2;;podmínka''''



The calculation itself is then performed by pressing the button " Job calculations"

Home ( Jobs ) → Commands → Job Calculations



TAS Pokroile Pluginy Input, Output Import SolverTech.Tasha.PlugIns.Commands.PostImportJobsComputevypocty zakazek.png

Code example:

<?xml version="1.0" encoding="utf-8"?> <PostImportJobsComputeSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 <Equations>
   <string>cenatoptranscz;cenatoptranscz;cenatt700cz;distance;;distance<701?cenatt700cz:cenatoptranscz</string> 
   <string>cenatoptranscz;cenatoptranscz;cenatt600cz;distance;;distance<601?cenatt600cz:cenatoptranscz</string>
   <string>cenatoptranscz;cenatoptranscz;cenatt500cz;distance;;distance<501?cenatt500cz:cenatoptranscz</string>
   <string>cenatoptranscz;cenatoptranscz;cenatt400cz;distance;;distance<401?cenatt400cz:cenatoptranscz</string>
   <string>cenatoptranscz;cenatoptranscz;cenatt300cz;distance;;distance<301?cenatt300cz:cenatoptranscz</string>
   <string>cenatoptranscz;cenatoptranscz;cenatt200cz;distance;;distance<201?cenatt200cz:cenatoptranscz</string>
   <string>cenatoptranscz;cenatoptranscz;cenatt100cz;distance;;distance<101?cenatt100cz:cenatoptranscz</string>
   <string>cenatoptranssk;cenatoptranssk;cenatt900sk;distance;;distance<901?cenatt900sk:cenatoptranssk</string>
   <string>cenatoptranssk;cenatoptranssk;cenatt800sk;distance;;distance<801?cenatt800sk:cenatoptranssk</string>
   <string>cenatoptranssk;cenatoptranssk;cenatt700sk;distance;;distance<701?cenatt700sk:cenatoptranssk</string>
   <string>cenatoptranssk;cenatoptranssk;cenatt600sk;distance;;distance<601?cenatt600sk:cenatoptranssk</string>
   <string>cenatoptranssk;cenatoptranssk;cenatt500sk;distance;;distance<501?cenatt500sk:cenatoptranssk</string>
   <string>cenatoptranssk;cenatoptranssk;cenatt400sk;distance;;distance<401?cenatt400sk:cenatoptranssk</string>
   <string>cenatoptranssk;cenatoptranssk;cenatt300sk;distance;;distance<301?cenatt300sk:cenatoptranssk</string>
   <string>cenatoptranssk;cenatoptranssk;cenatt200sk;distance;;distance<201?cenatt200sk:cenatoptranssk</string>
   <string>cenatoptranssk;cenatoptranssk;cenatt100sk;distance;;distance<101?cenatt100sk:cenatoptranssk</string>
   <string>cenatoptrans;slovensko;cenatoptranscz;cenatoptranssk;;slovensko==1?cenatoptranssk:cenatoptranscz</string>
 </Equations>

</PostImportJobsComputeSettings>