From 0a53017ee6aa02f1daee76256e082c10fd7afb55 Mon Sep 17 00:00:00 2001 From: Alessio Date: Mon, 20 Apr 2020 16:32:09 +0200 Subject: [PATCH 01/10] add arretramento riscaldi modal --- .../styles/base/arretramento-riscaldi.less | 10 +++++ .../wwwroot/assets/styles/base/layout.less | 1 + Thermo.Active/wwwroot/assets/styles/style.css | 4 ++ .../wwwroot/src/app.business-logic.ts | 2 + .../show-arretramento-riscladi-info.ts | 39 +++++++++++++++++++ .../show-arretramento-riscladi-info.vue | 31 +++++++++++++++ 6 files changed, 87 insertions(+) create mode 100644 Thermo.Active/wwwroot/assets/styles/base/arretramento-riscaldi.less create mode 100644 Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.ts create mode 100644 Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.vue diff --git a/Thermo.Active/wwwroot/assets/styles/base/arretramento-riscaldi.less b/Thermo.Active/wwwroot/assets/styles/base/arretramento-riscaldi.less new file mode 100644 index 00000000..34dc22c6 --- /dev/null +++ b/Thermo.Active/wwwroot/assets/styles/base/arretramento-riscaldi.less @@ -0,0 +1,10 @@ +// out: false, sourceMap: false, main: ../style.less +@import "grid-system.less"; +@import "colors.less"; +@import "fonts.less"; +@modal: modal; + +.@{modal}.estrazione-info { + width: 560px; + height: 411px; +} \ No newline at end of file diff --git a/Thermo.Active/wwwroot/assets/styles/base/layout.less b/Thermo.Active/wwwroot/assets/styles/base/layout.less index 23a58891..f98f8283 100644 --- a/Thermo.Active/wwwroot/assets/styles/base/layout.less +++ b/Thermo.Active/wwwroot/assets/styles/base/layout.less @@ -6,6 +6,7 @@ @import "formato.less"; @import "slider.less"; @import "tastierino.less"; +@import "arretramento-riscaldi.less"; @import "setup.less"; @import "ciclo.less"; @import "raffreddamento.less"; diff --git a/Thermo.Active/wwwroot/assets/styles/style.css b/Thermo.Active/wwwroot/assets/styles/style.css index 74f1be2b..73fc614d 100644 --- a/Thermo.Active/wwwroot/assets/styles/style.css +++ b/Thermo.Active/wwwroot/assets/styles/style.css @@ -4072,6 +4072,10 @@ grid-column: 0.8; grid-row: 0.5; } +.modal.estrazione-info { + width: 560px; + height: 411px; +} .setup { padding-top: 50px; display: flex; diff --git a/Thermo.Active/wwwroot/src/app.business-logic.ts b/Thermo.Active/wwwroot/src/app.business-logic.ts index 83ae1eb7..40cd4c9b 100644 --- a/Thermo.Active/wwwroot/src/app.business-logic.ts +++ b/Thermo.Active/wwwroot/src/app.business-logic.ts @@ -16,6 +16,7 @@ import ShowEstrazioneInfo from "@/app_modules_thermo/setup/estrazione/components import ShowVuotoInfo from "@/app_modules_thermo/setup/vuoto/show-vuoto-info.vue"; import ShowImbutituraInfo from "@/app_modules_thermo/setup/imbutitura/show-imbutitura-info.vue"; import ShowOpzioniInfo from "@/app_modules_thermo/setup/opzioni/show-opzioni-info.vue"; +import ShowArretramentoRiscaldiInfo from "@/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscaldi-info.vue"; // import { DataService } from "./services/dataService"; // import { ToolingService } from "./services/toolingService"; // import { DepotService } from "./services/depotService"; @@ -50,6 +51,7 @@ let HMIScreenshotInterval; let HMIprodTimeout; let RerenderInterval; +messageService.subscribeToChannel("show-arretramento-riscaldi-info", () => { ModalHelper.ShowModal(ShowOpzioniInfo); }); messageService.subscribeToChannel("show-opzioni-info", () => { ModalHelper.ShowModal(ShowOpzioniInfo); }); messageService.subscribeToChannel("show-vuoto-info", () => { ModalHelper.ShowModal(ShowVuotoInfo); }); messageService.subscribeToChannel("show-estrazione-info", () => { ModalHelper.ShowModal(ShowEstrazioneInfo); }); diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.ts new file mode 100644 index 00000000..f683ddf8 --- /dev/null +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.ts @@ -0,0 +1,39 @@ +import Vue from 'vue'; +import Component from 'vue-class-component'; +import {Prop} from 'vue-property-decorator'; +import Slider from "../components/slider.vue" +import { Modal, ModalHelper } from "@/components/modals"; +import { Factory, messageService, awaiter } from "@/_base"; + +@Component({components:{slider:Slider,modal:Modal}}) +export default class ArretramentoRiscaldi extends Vue{ + + @Prop({default:0}) + ritardo:number + + annulla(){ + ModalHelper.HideModal(); + }; + + conferma(){ + ModalHelper.HideModal(); + }; + + async beforeMount() { + // this.contactInfo = await awaiter(new machineService().getContactConfiguration()); + messageService.subscribeToChannel("esc_pressed", args => { + this.close(); + }); + } + + beforeDestroy() { + messageService.deleteChannel("esc_pressed"); + } + + close() { + messageService.deleteChannel("esc_pressed"); + ModalHelper.HideModal(); + } + + +} \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.vue new file mode 100644 index 00000000..429bca6d --- /dev/null +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.vue @@ -0,0 +1,31 @@ + + + \ No newline at end of file From d3f2b8830adb1c30c0cf60947ca251756f4163a0 Mon Sep 17 00:00:00 2001 From: Alessio Date: Mon, 20 Apr 2020 16:57:13 +0200 Subject: [PATCH 02/10] add processo modal to the footer --- .../wwwroot/assets/styles/base/layout.less | 1 + .../wwwroot/assets/styles/base/processo.less | 11 +++++++++++ Thermo.Active/wwwroot/assets/styles/style.css | 5 +++++ Thermo.Active/wwwroot/src/app.business-logic.ts | 4 ++-- Thermo.Active/wwwroot/src/app.routes.ts | 4 ++-- .../show-arretramento-riscladi-info.ts | 2 +- .../show-arretramento-riscladi-info.vue | 0 .../processo/components/processo.ts | 16 ++++++++++++++++ .../processo/components/processo.vue | 9 +++++++++ .../src/app_modules_thermo/processo/route.js | 8 ++++++++ 10 files changed, 55 insertions(+), 5 deletions(-) create mode 100644 Thermo.Active/wwwroot/assets/styles/base/processo.less rename Thermo.Active/wwwroot/src/app_modules_thermo/{ => processo}/arretramento-riscaldi/show-arretramento-riscladi-info.ts (93%) rename Thermo.Active/wwwroot/src/app_modules_thermo/{ => processo}/arretramento-riscaldi/show-arretramento-riscladi-info.vue (100%) create mode 100644 Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.ts create mode 100644 Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.vue create mode 100644 Thermo.Active/wwwroot/src/app_modules_thermo/processo/route.js diff --git a/Thermo.Active/wwwroot/assets/styles/base/layout.less b/Thermo.Active/wwwroot/assets/styles/base/layout.less index f98f8283..b2f1a151 100644 --- a/Thermo.Active/wwwroot/assets/styles/base/layout.less +++ b/Thermo.Active/wwwroot/assets/styles/base/layout.less @@ -10,6 +10,7 @@ @import "setup.less"; @import "ciclo.less"; @import "raffreddamento.less"; +@import "processo.less"; @import "controstamposetup.less"; @import "quote-velocita.less"; @import "opzioni.less"; diff --git a/Thermo.Active/wwwroot/assets/styles/base/processo.less b/Thermo.Active/wwwroot/assets/styles/base/processo.less new file mode 100644 index 00000000..83652a1c --- /dev/null +++ b/Thermo.Active/wwwroot/assets/styles/base/processo.less @@ -0,0 +1,11 @@ +// out: false, sourceMap: false, main: ../style.less +@import "grid-system.less"; +@import "colors.less"; +@import "fonts.less"; +@modal: modal; + +.@{modal}.processo-info { + width: 1820px; + height: 980px; + margin: 150px 193px; +} \ No newline at end of file diff --git a/Thermo.Active/wwwroot/assets/styles/style.css b/Thermo.Active/wwwroot/assets/styles/style.css index 73fc614d..6e59be8d 100644 --- a/Thermo.Active/wwwroot/assets/styles/style.css +++ b/Thermo.Active/wwwroot/assets/styles/style.css @@ -4474,6 +4474,11 @@ margin-left: 50px; width: 480px; } +.modal.processo-info { + width: 1820px; + height: 980px; + margin: 150px 193px; +} .modal.controstamposetup-info { width: 1820px; height: 980px; diff --git a/Thermo.Active/wwwroot/src/app.business-logic.ts b/Thermo.Active/wwwroot/src/app.business-logic.ts index 40cd4c9b..0ea51ce9 100644 --- a/Thermo.Active/wwwroot/src/app.business-logic.ts +++ b/Thermo.Active/wwwroot/src/app.business-logic.ts @@ -16,7 +16,7 @@ import ShowEstrazioneInfo from "@/app_modules_thermo/setup/estrazione/components import ShowVuotoInfo from "@/app_modules_thermo/setup/vuoto/show-vuoto-info.vue"; import ShowImbutituraInfo from "@/app_modules_thermo/setup/imbutitura/show-imbutitura-info.vue"; import ShowOpzioniInfo from "@/app_modules_thermo/setup/opzioni/show-opzioni-info.vue"; -import ShowArretramentoRiscaldiInfo from "@/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscaldi-info.vue"; +import ShowArretramentoRiscaldiInfo from "@/app_modules_thermo/processo/arretramento-riscaldi/show-arretramento-riscladi-info.vue"; // import { DataService } from "./services/dataService"; // import { ToolingService } from "./services/toolingService"; // import { DepotService } from "./services/depotService"; @@ -51,7 +51,7 @@ let HMIScreenshotInterval; let HMIprodTimeout; let RerenderInterval; -messageService.subscribeToChannel("show-arretramento-riscaldi-info", () => { ModalHelper.ShowModal(ShowOpzioniInfo); }); +messageService.subscribeToChannel("show-arretramento-riscaldi-info", () => { ModalHelper.ShowModal(ShowArretramentoRiscaldiInfo); }); messageService.subscribeToChannel("show-opzioni-info", () => { ModalHelper.ShowModal(ShowOpzioniInfo); }); messageService.subscribeToChannel("show-vuoto-info", () => { ModalHelper.ShowModal(ShowVuotoInfo); }); messageService.subscribeToChannel("show-estrazione-info", () => { ModalHelper.ShowModal(ShowEstrazioneInfo); }); diff --git a/Thermo.Active/wwwroot/src/app.routes.ts b/Thermo.Active/wwwroot/src/app.routes.ts index e38f562d..75594578 100644 --- a/Thermo.Active/wwwroot/src/app.routes.ts +++ b/Thermo.Active/wwwroot/src/app.routes.ts @@ -60,7 +60,7 @@ export let routes = [ import { routes as alarmRoutes } from "@/app_modules/alarms/route.js"; -// import { routes as productionRoutes } from "./app_modules/production/route"; +import { routes as productionRoutes } from "./app_modules_thermo/processo/route.js"; import { routes as SetupRoutes } from "@/app_modules_thermo/setup/route.js"; // import { routes as toolingRoutes} from "./app_modules/tooling/route"; // import { routes as maintenance } from "./app_modules/maintenance/route"; @@ -69,7 +69,7 @@ import { routes as SetupRoutes } from "@/app_modules_thermo/setup/route.js"; // import { routes as users } from "./app_modules/users/route"; injectRoutes(routes, alarmRoutes); -// injectRoutes(routes, productionRoutes); +injectRoutes(routes, productionRoutes); injectRoutes(routes, SetupRoutes); // injectRoutes(routes, toolingRoutes); // injectRoutes(routes, maintenance); diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/arretramento-riscaldi/show-arretramento-riscladi-info.ts similarity index 93% rename from Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.ts rename to Thermo.Active/wwwroot/src/app_modules_thermo/processo/arretramento-riscaldi/show-arretramento-riscladi-info.ts index f683ddf8..5d29892e 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/arretramento-riscaldi/show-arretramento-riscladi-info.ts @@ -1,7 +1,7 @@ import Vue from 'vue'; import Component from 'vue-class-component'; import {Prop} from 'vue-property-decorator'; -import Slider from "../components/slider.vue" +import Slider from "@/app_modules_thermo/components/slider.vue"; import { Modal, ModalHelper } from "@/components/modals"; import { Factory, messageService, awaiter } from "@/_base"; diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/arretramento-riscaldi/show-arretramento-riscladi-info.vue similarity index 100% rename from Thermo.Active/wwwroot/src/app_modules_thermo/arretramento-riscaldi/show-arretramento-riscladi-info.vue rename to Thermo.Active/wwwroot/src/app_modules_thermo/processo/arretramento-riscaldi/show-arretramento-riscladi-info.vue diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.ts new file mode 100644 index 00000000..68009a2c --- /dev/null +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.ts @@ -0,0 +1,16 @@ +import Vue from 'vue'; +import Component from 'vue-class-component'; +import {Prop} from 'vue-property-decorator'; +import { messageService } from "@/_base/messageService"; +import { Modal, ModalHelper } from "@/components/modals" + +@Component({ + components: { + modal: Modal + } +}) +export default class Processo extends Vue{ + public sendMessage(name: string) { + messageService.publishToChannel(name); + } +} \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.vue new file mode 100644 index 00000000..d50267ba --- /dev/null +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/processo.vue @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/route.js b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/route.js new file mode 100644 index 00000000..64468b07 --- /dev/null +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/route.js @@ -0,0 +1,8 @@ +import Setup from "./components/processo.vue" + +export const routes = [ + { + name: 'production', path: "/production", + meta: { title: "Production", area: "production" }, + component: Setup + }]; \ No newline at end of file From 50873adeb719aa18457fc31a2f29fe9907ac23b5 Mon Sep 17 00:00:00 2001 From: "francesco.guerrieri" Date: Mon, 20 Apr 2020 18:37:50 +0200 Subject: [PATCH 03/10] add tab stampo in modal quote-velocita --- .../svg/disegno-quote-velocita-stampo.svg | 397 ++++++++++++++++++ .../components/SVG_Components/stampo.ts | 14 + .../components/SVG_Components/stampo.vue | 67 +++ .../components/salita-stampo.ts | 20 + .../components/salita-stampo.vue | 63 +++ .../components/show-quote-velocita-info.ts | 2 + .../components/show-quote-velocita-info.vue | 1 + 7 files changed, 564 insertions(+) create mode 100644 Thermo.Active/wwwroot/assets/icons/svg/disegno-quote-velocita-stampo.svg create mode 100644 Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/SVG_Components/stampo.ts create mode 100644 Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/SVG_Components/stampo.vue create mode 100644 Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/salita-stampo.ts create mode 100644 Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/salita-stampo.vue diff --git a/Thermo.Active/wwwroot/assets/icons/svg/disegno-quote-velocita-stampo.svg b/Thermo.Active/wwwroot/assets/icons/svg/disegno-quote-velocita-stampo.svg new file mode 100644 index 00000000..60b38a87 --- /dev/null +++ b/Thermo.Active/wwwroot/assets/icons/svg/disegno-quote-velocita-stampo.svg @@ -0,0 +1,397 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1059 mm + + 0 mm + + diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/SVG_Components/stampo.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/SVG_Components/stampo.ts new file mode 100644 index 00000000..b2739e23 --- /dev/null +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/SVG_Components/stampo.ts @@ -0,0 +1,14 @@ +import Vue from 'vue'; +import Component from 'vue-class-component'; +import {Prop} from 'vue-property-decorator'; + +@Component({}) +export default class QuoteVelocita extends Vue{ + @Prop({default:0}) + x:number; + @Prop({default:0}) + y:number; + @Prop({default:0}) + spes:number; + +} \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/SVG_Components/stampo.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/SVG_Components/stampo.vue new file mode 100644 index 00000000..c79cdca7 --- /dev/null +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/SVG_Components/stampo.vue @@ -0,0 +1,67 @@ + + + \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/salita-stampo.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/salita-stampo.ts new file mode 100644 index 00000000..7837688e --- /dev/null +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/salita-stampo.ts @@ -0,0 +1,20 @@ +import Vue from "vue"; +import Component from "vue-class-component"; +import { Prop } from 'vue-property-decorator'; +import Slider from "@/app_modules_thermo/components/slider.vue" +// import QuoteVelocitaSVG from "./SVG_Components/quote-velocita.vue"; + +@Component({name:"salitastampo", components:{slider:Slider}}) +export default class DiscesaCornice extends Vue { + + @Prop({default:0}) + ritardo:number; + @Prop({default:0}) + corsa:number; + @Prop({default:0}) + velSalita:number; + @Prop({default:0}) + ralSalita:number; + @Prop({default:0}) + velSalitaLenta:number; +} \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/salita-stampo.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/salita-stampo.vue new file mode 100644 index 00000000..9c427109 --- /dev/null +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/salita-stampo.vue @@ -0,0 +1,63 @@ + + + \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/show-quote-velocita-info.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/show-quote-velocita-info.ts index 291d0a3f..8a5cf7cf 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/show-quote-velocita-info.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/show-quote-velocita-info.ts @@ -3,12 +3,14 @@ import { Modal, ModalHelper } from "@/components/modals"; import { Factory, messageService, awaiter } from "@/_base"; import Component from "vue-class-component"; import DiscesaCornice from "./discesa-cornice.vue"; +import SalitaStampo from "./salita-stampo.vue"; import StepFooter from "@/app_modules_thermo/setup/components/step-footer.vue" @Component({ components: { modal: Modal, discesacornice: DiscesaCornice, + salitaStampo: SalitaStampo, stepfooter: StepFooter } }) diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/show-quote-velocita-info.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/show-quote-velocita-info.vue index 44206b9c..709801d3 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/show-quote-velocita-info.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/quote-velocita/components/show-quote-velocita-info.vue @@ -12,6 +12,7 @@ +