diff --git a/MP.SPEC/Components/ListPODL.razor b/MP.SPEC/Components/ListPODL.razor index b790af50..eaf09467 100644 --- a/MP.SPEC/Components/ListPODL.razor +++ b/MP.SPEC/Components/ListPODL.razor @@ -146,10 +146,10 @@ else - @if (showRecipe) + @if (showRecipe && currRecord != null) {
- dettaglio ricetta +
} diff --git a/MP.SPEC/Components/RecipeMan.razor b/MP.SPEC/Components/RecipeMan.razor new file mode 100644 index 00000000..53c84bc8 --- /dev/null +++ b/MP.SPEC/Components/RecipeMan.razor @@ -0,0 +1,2 @@ +

RecipeMan

+ diff --git a/MP.SPEC/Components/RecipeMan.razor.cs b/MP.SPEC/Components/RecipeMan.razor.cs new file mode 100644 index 00000000..a16156d4 --- /dev/null +++ b/MP.SPEC/Components/RecipeMan.razor.cs @@ -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; + + + } +} \ No newline at end of file diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index b174410e..ddbbd88b 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -12,6 +12,14 @@ + + + + + + + + @@ -39,7 +47,7 @@ - + PreserveNewest diff --git a/MP.SPEC/Recipe/Fimat/RecipeCalcFields.json b/MP.SPEC/Recipe/Fimat/RecipeCalcFields.json deleted file mode 100644 index d1ad3d32..00000000 --- a/MP.SPEC/Recipe/Fimat/RecipeCalcFields.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "A_Recipe": { - "DesRecipe": { - "DesData": { - "Article": "ARTICLE", - "LotID": "LOTID", - "Info1": "INFO1" - } - } - } -} \ No newline at end of file diff --git a/MP.SPEC/Recipe/Fimat/RecipeConf.json b/MP.SPEC/Recipe/Fimat/RecipeConf.json new file mode 100644 index 00000000..dea24c34 --- /dev/null +++ b/MP.SPEC/Recipe/Fimat/RecipeConf.json @@ -0,0 +1,5 @@ +{ + "TemplateFile": "TemplateOutput.tpl", + "HeadConf": "TemplateHead.json", + "RowsConf": "TemplateRows.json" +} \ No newline at end of file diff --git a/MP.SPEC/Recipe/Fimat/RecipeEditFields.json b/MP.SPEC/Recipe/Fimat/RecipeEditFields.json deleted file mode 100644 index 5e5c1292..00000000 --- a/MP.SPEC/Recipe/Fimat/RecipeEditFields.json +++ /dev/null @@ -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" - } - } - ] - } -} \ No newline at end of file diff --git a/MP.SPEC/Recipe/Fimat/TemplateHead.json b/MP.SPEC/Recipe/Fimat/TemplateHead.json new file mode 100644 index 00000000..c978f942 --- /dev/null +++ b/MP.SPEC/Recipe/Fimat/TemplateHead.json @@ -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": "" + } + } +} \ No newline at end of file diff --git a/MP.SPEC/Recipe/Fimat/TemplateOutput.tpl b/MP.SPEC/Recipe/Fimat/TemplateOutput.tpl new file mode 100644 index 00000000..99e3d023 --- /dev/null +++ b/MP.SPEC/Recipe/Fimat/TemplateOutput.tpl @@ -0,0 +1,11 @@ +{ + "A_Recipe": { + "DesRecipe": { + "DesData": { + [[TemplateHead.json]] + }, + "ColRecipe": [ + [[TemplateRows.json]] + ] + } +} \ No newline at end of file diff --git a/MP.SPEC/Recipe/Fimat/TemplateRows.json b/MP.SPEC/Recipe/Fimat/TemplateRows.json new file mode 100644 index 00000000..bfb3539c --- /dev/null +++ b/MP.SPEC/Recipe/Fimat/TemplateRows.json @@ -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" + } +} \ No newline at end of file diff --git a/MP.SPEC/Recipe/Fimat/Recipe.json b/MP.SPEC/Recipe/Fimat/_RefRecipe.json similarity index 100% rename from MP.SPEC/Recipe/Fimat/Recipe.json rename to MP.SPEC/Recipe/Fimat/_RefRecipe.json