- | Cod | Articolo | Fase | -Macchina | -Info ciclo | - @*Note | *@ -Att | -+ @if (!showRecipe) + { + | Macchina | +Info ciclo | +Att | ++ } |
|---|---|---|---|---|---|---|---|---|---|---|---|
| - - @if (record.IdxOdl == 0) + @if (!showRecipe) { - @if (canStartOdl(record.IdxMacchina)) + + @if (record.IdxOdl == 0) { - + @if (canStartOdl(record.IdxMacchina)) + { + + } + else + { + + } + @if (canStartOdl(record.IdxMacchina)) + { + + } + else + { + + } } - else + } + @if (MachineWithRecipe) + { + @if (machineHasRecipe(record.IdxMacchina).Result) { - - } - @if (canStartOdl(record.IdxMacchina)) - { - - } - else - { - | -
- @record.IdxMacchina
- @record.Nome
- |
-
- N° pezzi: @record.NumPezzi
- T. Ciclo: @record.Tcassegnato.ToString("N3")
- |
- @*@record.Note | *@ -- @if (@record.Attivabile) - { - - } - else - { - - } - | -
- @if (POdlDelEnabled(record.IdxOdl))
- {
- |
+ @if (!showRecipe)
+ {
+
+ @record.IdxMacchina
+ @record.Nome
+ |
+
+ N° pezzi: @record.NumPezzi
+ T. Ciclo: @record.Tcassegnato.ToString("N3")
+ |
+ + @if (@record.Attivabile) + { + + } + else + { + + } + | +
+ @if (POdlDelEnabled(record.IdxOdl))
+ {
+ |
+ }
- ||PlaceholderHeader|| verrà sostituito per intero dai valori di testata.
+
+Il blocco delel righe è invece più complesso e composto da 3 parti:
+ * nel primo blocco, ||SROW:{"ColData":{||, si cerca start riga e si prende il valore compreso tra ||SROW:: e || come testata riga da ripetere
+ * nel secondo blocco si sostituiscono tutti i valori della riga i-esima
+ * nel terzo blocco ||EROW":}}|| si sistema la chiusura della riga (end row)
+
+
+
+## Esempio tracciato configurazione complessivo
+
+```json
+{
+ "TemplateFile": "TemplateOutput.tpl",
+ "NumRow": 2,
+ "HeadConf": {
+ "ListKeys": {
+ "CustDrumCode": "F:",
+ "Taglio-N": "F:1",
+ "LotID": "C:IdxPODL",
+ "OrderCode": "C:CodePODL",
+ "Prio": "E:Priority",
+ "DrumType": "E:DrumType",
+ "Customer": "Tenditalia",
+ "Design": "DESIGN",
+ "Quantity-kg": "1.00"
+ },
+ "EnumVal": {
+ "Priority": {
+ "N": "Normal",
+ "H": "Hight"
+ },
+ "DrumType": {
+ "1": "Small",
+ "2": "Medium",
+ "3": "Big"
+ }
+ }
+ },
+ "RowsConf": {
+ "ListKeys": {
+ "Weight-gr-prev": "F:0.00",
+ "CompNumber": "C:RowNum",
+ "ColourCode": "C001",
+ "Description": "COLOR1",
+ "TypComp": "E:ColType",
+ "PartsWeight": "1.00",
+ "PartsPerc": "0.10",
+ "Weight-gr": "30.00"
+ },
+ "EnumVal": {
+ "ColType": {
+ "C": "Color",
+ "A": "Thickener",
+ "X": "Auxiliaries"
+ }
+ }
+ }
+}
+```
+
+Come si può notare, il tracciato di configurazione comprende i seguenti blocchi:
+| Blocco | descrizione |
+|-------------------|--------------------------------------|
+| HeadConf | Configurazione campi testata |
+| HeadConf:ListKeys | Elenco chiavi/valori x testata |
+| HeadConf:EnumVal | Elenco enumerativi ammessi x testata |
+| RowsConf | Configurazione campi riga |
+| RowsConf:ListKeys | Elenco chiavi/valori x righe |
+| RowsConf:EnumVal | Elenco enumerativi ammessi x righe |
+
+## Campi Calcolati
+
+I tag noti x decodifica riguardano i campi calcolati; hard coded, e riconosciuti, sono i seguenti:
+
+| ID | Note | Format | Esempio |
+|--------------|-----------------------------------------|------------------|-----------------|
+| IdxPODL | IdxODL numerico | - | 123 |
+| CodePODL | Codice alfanumerico partendo da IdxPODL | PODL{0:00000000} | PODL00000123 |
+| CodArticolo | Campo CodArticolo | - | Art000123 |
+| DescArticolo | Campo DescArticolo | - | Articol 123 blu |
+| RowNum | Numero riga | - | 1 |
+| RowTot | Totale righe | - | 10 |
diff --git a/MP.SPEC/Recipe/README.pdf b/MP.SPEC/Recipe/README.pdf
new file mode 100644
index 00000000..02bb87f2
Binary files /dev/null and b/MP.SPEC/Recipe/README.pdf differ
diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html
index 36d2458d..f5c92414 100644
--- a/MP.SPEC/Resources/ChangeLog.html
+++ b/MP.SPEC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MAPOSPEC
-