diff --git a/Step.Config/Config/serverConfig.xml b/Step.Config/Config/serverConfig.xml index f1b79dd3..0a29d13c 100644 --- a/Step.Config/Config/serverConfig.xml +++ b/Step.Config/Config/serverConfig.xml @@ -10,6 +10,7 @@ //PARTPRG:/ 01/01/2019 false + true false diff --git a/Step.Config/Config/serverConfigValidator.xsd b/Step.Config/Config/serverConfigValidator.xsd index cfc509bc..633994fc 100644 --- a/Step.Config/Config/serverConfigValidator.xsd +++ b/Step.Config/Config/serverConfigValidator.xsd @@ -15,6 +15,7 @@ + diff --git a/Step.Config/ServerConfigController.cs b/Step.Config/ServerConfigController.cs index 1421909c..42318e30 100644 --- a/Step.Config/ServerConfigController.cs +++ b/Step.Config/ServerConfigController.cs @@ -279,7 +279,8 @@ namespace Step.Config SharedPath = x.Element("sharedPath").Value, SharedName = x.Element("sharedName").Value, InstallationDate = x.Element("installationDate").Value, - MgiOption = Convert.ToBoolean(x.Element("mgiOption").Value) + MgiOption = Convert.ToBoolean(x.Element("mgiOption").Value), + SiemensKeyboardOption = Convert.ToBoolean(x.Element("siemensKeyboardOption").Value) }).FirstOrDefault(); // Read Prod Software Config with LINQ @@ -309,7 +310,7 @@ namespace Step.Config MTCApplicationName = x.Element("MTCApplicationName").Value, MaxAlarmsRows = Convert.ToInt32(x.Element("maxAlarmsRows").Value), AlarmToDelete = Convert.ToInt32(x.Element("alarmToDelete").Value), - CmsConnectReady = Convert.ToBoolean(x.Element("CMSConnectReady").Value) + CmsConnectReady = Convert.ToBoolean(x.Element("CMSConnectReady").Value) }).FirstOrDefault(); int softwareId = 0; diff --git a/Step.Model/ConfigModels/NcConfigModel.cs b/Step.Model/ConfigModels/NcConfigModel.cs index 0c607c37..e8324679 100644 --- a/Step.Model/ConfigModels/NcConfigModel.cs +++ b/Step.Model/ConfigModels/NcConfigModel.cs @@ -18,5 +18,6 @@ namespace Step.Model.ConfigModels public string SharedName { get; set; } public string InstallationDate { get; set; } public bool MgiOption { get; set; } + public bool SiemensKeyboardOption { get; set; } } } diff --git a/Step.Model/ConfigModels/ServerConfigModel.cs b/Step.Model/ConfigModels/ServerConfigModel.cs index ac5a3920..ca5f6c7b 100644 --- a/Step.Model/ConfigModels/ServerConfigModel.cs +++ b/Step.Model/ConfigModels/ServerConfigModel.cs @@ -23,5 +23,7 @@ namespace Step.Model.ConfigModels public int MaxAlarmsRows { get; set; } public int AlarmToDelete { get; set; } + + public bool SiemensKeyboardOption { get; set; } } } \ No newline at end of file diff --git a/Step.Model/DTOModels/DTOClientConfigurationModel.cs b/Step.Model/DTOModels/DTOClientConfigurationModel.cs index 42d7ac88..40132909 100644 --- a/Step.Model/DTOModels/DTOClientConfigurationModel.cs +++ b/Step.Model/DTOModels/DTOClientConfigurationModel.cs @@ -17,6 +17,8 @@ namespace Step.Model.DTOModels public bool Autorun { get; set; } public bool MgiOption { get; set; } public bool CmsConnectReady { get; set; } + public bool SiemensKeyboardOption { get; set; } + public List ExtSoftwares { get; set; } public CultureInfo DefaultLanguage diff --git a/Step/Controllers/WebApi/ConfigurationController.cs b/Step/Controllers/WebApi/ConfigurationController.cs index ec8934f8..d2f725b1 100644 --- a/Step/Controllers/WebApi/ConfigurationController.cs +++ b/Step/Controllers/WebApi/ConfigurationController.cs @@ -49,7 +49,8 @@ namespace Step.Controllers.WebApi EditorPath = ServerStartupConfig.TextEditorPath, MgiOption = NcConfig.MgiOption, //CmsConnectReady = CmsConnectConfig.Enabled - CmsConnectReady = ServerStartupConfig.CmsConnectReady + CmsConnectReady = ServerStartupConfig.CmsConnectReady, + SiemensKeyboardOption = NcConfig.SiemensKeyboardOption }; return Ok(clientConfiguration); diff --git a/Step/wwwroot/assets/styles/base/head.less b/Step/wwwroot/assets/styles/base/head.less index 3d8ae22d..5df3ea4f 100644 --- a/Step/wwwroot/assets/styles/base/head.less +++ b/Step/wwwroot/assets/styles/base/head.less @@ -602,6 +602,15 @@ right: -12px; } +.siemens-keyboard-head-style { + width: 828px !important; + right: 0px; + overflow-x: auto; + overflow-y: hidden; + flex-wrap: nowrap; + height: 132px; +} + .head-production{ max-width: 530px; width: 530px; diff --git a/Step/wwwroot/assets/styles/base/plc-softkeys.less b/Step/wwwroot/assets/styles/base/plc-softkeys.less index 5dd8655f..2157d0d9 100644 --- a/Step/wwwroot/assets/styles/base/plc-softkeys.less +++ b/Step/wwwroot/assets/styles/base/plc-softkeys.less @@ -204,6 +204,10 @@ } } +.siemens-keyboard-style { + height: 650px !important; +} + .soft-key { cursor: pointer; // &.menuopened:after{ diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css index 6fcc7a5a..467c80e3 100644 --- a/Step/wwwroot/assets/styles/style.css +++ b/Step/wwwroot/assets/styles/style.css @@ -6007,6 +6007,9 @@ footer .container button.big:before { align-items: center; justify-content: flex-end; } +.siemens-keyboard-style { + height: 650px !important; +} .soft-key { cursor: pointer; position: relative; @@ -7364,6 +7367,14 @@ footer .container button.big:before { .heads-container-lt4 { right: -12px; } +.siemens-keyboard-head-style { + width: 828px !important; + right: 0px; + overflow-x: auto; + overflow-y: hidden; + flex-wrap: nowrap; + height: 132px; +} .head-production { max-width: 530px; width: 530px; diff --git a/Step/wwwroot/src/app.business-logic.ts b/Step/wwwroot/src/app.business-logic.ts index 0f0125a1..595d2caf 100644 --- a/Step/wwwroot/src/app.business-logic.ts +++ b/Step/wwwroot/src/app.business-logic.ts @@ -97,10 +97,10 @@ async function loadMachineConfig() { // set vendor type switch (vendor) { - case "siemens": machineInfoActions.updateMachineInfo(store, { isSiemens: true, isFanuc: false, isOsai: false, defaultLanguage: mcresult.defaultLanguage, isSCMVisualStyle: isSCM, mgiOption : false, cmsConnectReady: mcresult.cmsConnectReady }); break; - case "fanuc": machineInfoActions.updateMachineInfo(store, { isSiemens: false, isFanuc: true, isOsai: false, defaultLanguage: mcresult.defaultLanguage, isSCMVisualStyle: isSCM, mgiOption: mcresult.mgiOption, cmsConnectReady: mcresult.cmsConnectReady }); break; - case "osai": machineInfoActions.updateMachineInfo(store, { isSiemens: false, isFanuc: false, isOsai: true, defaultLanguage: mcresult.defaultLanguage, isSCMVisualStyle: isSCM, mgiOption: false, cmsConnectReady: mcresult.cmsConnectReady }); break; - default: machineInfoActions.updateMachineInfo(store, { isSiemens: false, isFanuc: false, isOsai: false, defaultLanguage: mcresult.defaultLanguage, isSCMVisualStyle: isSCM, cmsConnectReady: mcresult.cmsConnectReady }); break; + case "siemens": machineInfoActions.updateMachineInfo(store, { isSiemens: true, isFanuc: false, isOsai: false, defaultLanguage: mcresult.defaultLanguage, isSCMVisualStyle: isSCM, mgiOption : false, cmsConnectReady: mcresult.cmsConnectReady, siemensKeyboardOption: mcresult.siemensKeyboardOption }); break; + case "fanuc": machineInfoActions.updateMachineInfo(store, { isSiemens: false, isFanuc: true, isOsai: false, defaultLanguage: mcresult.defaultLanguage, isSCMVisualStyle: isSCM, mgiOption: mcresult.mgiOption, cmsConnectReady: mcresult.cmsConnectReady, siemensKeyboardOption: false }); break; + case "osai": machineInfoActions.updateMachineInfo(store, { isSiemens: false, isFanuc: false, isOsai: true, defaultLanguage: mcresult.defaultLanguage, isSCMVisualStyle: isSCM, mgiOption: false, cmsConnectReady: mcresult.cmsConnectReady, siemensKeyboardOption: false }); break; + default: machineInfoActions.updateMachineInfo(store, { isSiemens: false, isFanuc: false, isOsai: false, defaultLanguage: mcresult.defaultLanguage, isSCMVisualStyle: isSCM, cmsConnectReady: mcresult.cmsConnectReady, siemensKeyboardOption: false }); break; } machineInfoActions.updateMachineInfo(store, { clientDefaultLanguage: mcresult.defaultLanguage }); diff --git a/Step/wwwroot/src/app_modules/production/components/card-production-cms.ts b/Step/wwwroot/src/app_modules/production/components/card-production-cms.ts index 56cf0275..e8e8175b 100644 --- a/Step/wwwroot/src/app_modules/production/components/card-production-cms.ts +++ b/Step/wwwroot/src/app_modules/production/components/card-production-cms.ts @@ -57,6 +57,10 @@ export default class CardProductionCms extends Vue { get canLoadProgram() { return this.$store.state.process.canLoadProgram; } + + get siemensKeyboardOption() { + return this.$store.state.machineInfo.siemensKeyboardOption; + } openModal() { ModalHelper.ShowModal(modalLoadProgram); diff --git a/Step/wwwroot/src/app_modules/production/components/card-production-cms.vue b/Step/wwwroot/src/app_modules/production/components/card-production-cms.vue index e7dfc8e6..2b355376 100644 --- a/Step/wwwroot/src/app_modules/production/components/card-production-cms.vue +++ b/Step/wwwroot/src/app_modules/production/components/card-production-cms.vue @@ -17,7 +17,7 @@
{{'production_label_select_auto_mode' | localize('Seleziona la modalità automatica per eseguire un programma')}}
- +
diff --git a/Step/wwwroot/src/app_modules/production/components/production.vue b/Step/wwwroot/src/app_modules/production/components/production.vue index 69d39452..e3e47727 100644 --- a/Step/wwwroot/src/app_modules/production/components/production.vue +++ b/Step/wwwroot/src/app_modules/production/components/production.vue @@ -34,7 +34,7 @@
-
+
diff --git a/Step/wwwroot/src/app_modules/under-the-hood/components/plc-softkeys.ts b/Step/wwwroot/src/app_modules/under-the-hood/components/plc-softkeys.ts index 6ce2a3d7..af4cf0f4 100644 --- a/Step/wwwroot/src/app_modules/under-the-hood/components/plc-softkeys.ts +++ b/Step/wwwroot/src/app_modules/under-the-hood/components/plc-softkeys.ts @@ -9,6 +9,7 @@ import { DataService } from "src/services/dataService"; import onOffSoftKey from "./soft-key2.vue"; import procedureSoftKey from "./soft-key3.vue"; import groupSoftKey from "./soft-key1.vue"; +import { Prop } from "vue-property-decorator"; @Componet({ @@ -16,6 +17,9 @@ import groupSoftKey from "./soft-key1.vue"; }) export default class softKeys extends Vue { + @Prop({ default: false }) + public siemensKeyboardOption: boolean; + public maxNumberSelected: number = 10; public selectedSection: number = 1; diff --git a/Step/wwwroot/src/app_modules/under-the-hood/components/plc-softkeys.vue b/Step/wwwroot/src/app_modules/under-the-hood/components/plc-softkeys.vue index c1ead884..5f12fac7 100644 --- a/Step/wwwroot/src/app_modules/under-the-hood/components/plc-softkeys.vue +++ b/Step/wwwroot/src/app_modules/under-the-hood/components/plc-softkeys.vue @@ -1,5 +1,5 @@ diff --git a/Step/wwwroot/src/modules/mheads.vue b/Step/wwwroot/src/modules/mheads.vue index a573c991..70a82863 100644 --- a/Step/wwwroot/src/modules/mheads.vue +++ b/Step/wwwroot/src/modules/mheads.vue @@ -1,5 +1,5 @@