Aggiunta file conf preliminari x FIMAT

This commit is contained in:
Samuele Locatelli
2023-02-07 20:51:30 +01:00
parent 1a00cfe70a
commit 40c8bb1a22
11 changed files with 157 additions and 74 deletions
+2 -2
View File
@@ -146,10 +146,10 @@ else
</tbody>
</table>
</div>
@if (showRecipe)
@if (showRecipe && currRecord != null)
{
<div class="col-4">
dettaglio ricetta
<RecipeMan IdxOdl="@currRecord.IdxOdl"></RecipeMan>
</div>
}
</div>
+2
View File
@@ -0,0 +1,2 @@
<h3>RecipeMan</h3>
+29
View File
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using System.Net.Http;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.AspNetCore.Components.Routing;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.Web.Virtualization;
using Microsoft.JSInterop;
using MP.SPEC;
using MP.SPEC.Shared;
using MP.SPEC.Components;
using EgwCoreLib.Razor;
namespace MP.SPEC.Components
{
public partial class RecipeMan
{
[Parameter]
public int IdxOdl { get; set; } = 0;
}
}
+9 -1
View File
@@ -12,6 +12,14 @@
<Content Remove="compilerconfig.json" />
</ItemGroup>
<ItemGroup>
<None Remove="Recipe\Fimat\TemplateOutput.tpl" />
</ItemGroup>
<ItemGroup>
<Content Include="Recipe\Fimat\TemplateOutput.tpl" />
</ItemGroup>
<ItemGroup>
<None Include="compilerconfig.json" />
<None Include="wwwroot\lib\Chart.js\chart.esm.js" />
@@ -39,7 +47,7 @@
</ItemGroup>
<ItemGroup>
<Content Update="Recipe\Fimat\Recipe.json">
<Content Update="Recipe\Fimat\_RefRecipe.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Update="wwwroot\favicon.ico">
@@ -1,11 +0,0 @@
{
"A_Recipe": {
"DesRecipe": {
"DesData": {
"Article": "ARTICLE",
"LotID": "LOTID",
"Info1": "INFO1"
}
}
}
}
+5
View File
@@ -0,0 +1,5 @@
{
"TemplateFile": "TemplateOutput.tpl",
"HeadConf": "TemplateHead.json",
"RowsConf": "TemplateRows.json"
}
@@ -1,60 +0,0 @@
{
"A_Recipe": {
"DesRecipe": {
"DesData": {
"Prio": "N",
"DrumType": "1",
"CustDrumCode": "123456789012",
"OrderCode": "ORDERCODE",
"Customer": "CUSTOMER",
"Design": "DESIGN",
"Screen": "SCREEN",
"Variant": "VARIANT",
"RecName": "RECNAME",
"Article": "ARTICLE",
"LotID": "LOTID",
"Info1": "INFO1",
"ViscoName": "",
"Taglio-N": "1",
"Taglio-D": "4",
"Sequence": "1",
"SequenceTot": "8",
"Series": "2",
"ViscoValue": "0",
"UM": "1",
"DosType": "P",
"ServiceType": "N",
"RecipeType": "C",
"Note1": "NOTE1",
"Note2": "NOTE2",
"Quantity-kg": "10.00"
}
},
"ColRecipe": [
{
"ColData": {
"CompNumber": "1",
"ColourCode": "C001",
"Description": "COLOR1",
"TypComp": "C",
"PartsWeight": "1.00",
"PartsPerc": "0.10",
"Weight-gr": "30.00",
"Weight-gr-prev": "0.00"
}
},
{
"ColData": {
"CompNumber": "2",
"ColourCode": "THICK1",
"Description": "Thickner 1",
"TypComp": "A",
"PartsWeight": "997.00",
"PartsPerc": "99.70",
"Weight-gr": "9970.00",
"Weight-gr-prev": "0.00"
}
}
]
}
}
+83
View File
@@ -0,0 +1,83 @@
{
"FixedKeys": {
"CustDrumCode": "",
"Taglio-N": "1",
"Taglio-D": "4",
"ServiceType": "N",
"RecipeType": "C",
"ViscoName": "",
"ViscoValue": "0"
},
"CalcKeys": {
"LotID": "PODL01",
"OrderCode": "PODL02",
"Article": "Art2PODL01",
"Info1": "Art2PODL02"
},
"EditKeys": {
"Prio": "Enum:Priority",
"DrumType": "Enum:DrumType",
"Customer": "Tenditalia",
"Design": "DESIGN",
"Screen": "SCREEN",
"Variant": "VARIANT",
"RecName": "CODE000",
"Series": "Enum:Series",
"UM": "Enum:UM",
"DosType": "Enum:DosType",
"Note1": "",
"Note2": "",
"Sequence": "1",
"SequenceTot": "8",
"Quantity-kg": "1.00"
},
"EnumVal": {
"Priority": {
"N": "Normal",
"H": "Hight"
},
"DrumType": {
"1": "Small",
"2": "Medium",
"3": "Big"
},
"Series": {
"1": "Series 1",
"2": "Series 2"
},
"UM": {
"0": "Percentage",
"1": "g/kg",
"2": "parts for colour and g/kg for thickener",
"3": "gr and parts for thickener",
"4": "g/kg for colour and parts for thickener",
"5": "parts for colour and parts for thickener"
},
"DosType": {
"P": "Production",
"S": "Sampling"
}
},
"CalcVal": {
"PODL01": {
"Description": "Idx PODL",
"Type": "int",
"Format": "{0}"
},
"PODL02": {
"Description": "Codice PODL",
"Type": "string",
"Format": "PODL{0:00000000}"
},
"Art2PODL01": {
"Description": "Codice Articolo dato PODL",
"Type": "string",
"Format": ""
},
"Art2PODL02": {
"Description": "Descrizione Articolo dato PODL",
"Type": "string",
"Format": ""
}
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"A_Recipe": {
"DesRecipe": {
"DesData": {
[[TemplateHead.json]]
},
"ColRecipe": [
[[TemplateRows.json]]
]
}
}
+16
View File
@@ -0,0 +1,16 @@
{
"FixedData": {
"TypComp": "C",
"Weight-gr-prev": "0.00"
},
"CalcData": {
"CompNumber": "#"
},
"EditData": {
"ColourCode": "C001",
"Description": "COLOR1",
"PartsWeight": "1.00",
"PartsPerc": "0.10",
"Weight-gr": "30.00"
}
}