diff --git a/Step.Utils/languages/IT.xml b/Step.Utils/languages/IT.xml index 8489ae8f..e4e41715 100644 --- a/Step.Utils/languages/IT.xml +++ b/Step.Utils/languages/IT.xml @@ -467,7 +467,7 @@ Sei sicuro di aver eseguito questa manutenzione? - Gestore delle manutenzioni + Gestore Manutenzioni Salva Mostra tutti i file Mostra solo gli ultimi file @@ -519,7 +519,7 @@ Modifica Manutenzione - Gestore della produzione + Gestore Produzione CMS CNC Softkey Preferite @@ -544,7 +544,7 @@ NC PLC - Gestore dello Storico allarmi + Gestore Storico Allarmi Filtra allarmi per titolo Titolo... Sorgente @@ -573,7 +573,7 @@ Modifica ruolo: %s Sei sicuro di voler eliminare l'utente? Aggiungi un nuovo utente - Gestore deli Utenti + Gestore Utenti Filtra utenti per Username Username... Avatar diff --git a/Step/Listeners/Database/SignalRDatabaseHandler.cs b/Step/Listeners/Database/SignalRDatabaseHandler.cs index c267ed19..7f332d59 100644 --- a/Step/Listeners/Database/SignalRDatabaseHandler.cs +++ b/Step/Listeners/Database/SignalRDatabaseHandler.cs @@ -176,7 +176,7 @@ namespace Step.Listeners.Database { int processesByte = 0; // Convert list to byte - x.Process.ForEach(y => processesByte |= (1 << y)); + x.Process.ForEach(y => processesByte |= (1 << (y-1))); return new AlarmOccurrencesModel() { diff --git a/Step/wwwroot/assets/icons/png/machine-info-black.png b/Step/wwwroot/assets/icons/png/machine-info-black.png new file mode 100644 index 00000000..8070591b Binary files /dev/null and b/Step/wwwroot/assets/icons/png/machine-info-black.png differ diff --git a/Step/wwwroot/assets/styles/base/alarms.less b/Step/wwwroot/assets/styles/base/alarms.less index 9cf15cbd..26556e17 100644 --- a/Step/wwwroot/assets/styles/base/alarms.less +++ b/Step/wwwroot/assets/styles/base/alarms.less @@ -704,7 +704,7 @@ } .selectBoxU{ position: relative; - width: 180px; + width: 320px; } .selectBoxU select{ width: 100%; @@ -754,6 +754,21 @@ border-radius: 2px; position: relative; border: solid 1px @color-label-grey; + .loading{ + display: flex; + align-items: center; + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + height: 100%; + line-height: 100%; + background-color: #ffffff; + font-size: 5em; + color: #4b4b4b; + justify-content: center; + } table{ table-layout: fixed; width: 100%; @@ -919,7 +934,7 @@ } .subtitle{ margin-bottom: 15px; - span{ + .inside{ height: 21px; border: solid 1px @color-warm-grey2; font-size: 14px; diff --git a/Step/wwwroot/assets/styles/base/maintenance.less b/Step/wwwroot/assets/styles/base/maintenance.less index 9346b0a2..68655c64 100644 --- a/Step/wwwroot/assets/styles/base/maintenance.less +++ b/Step/wwwroot/assets/styles/base/maintenance.less @@ -132,6 +132,22 @@ border-radius: 2px; position: relative; border: solid 1px @color-label-grey; + + .loading{ + display: flex; + align-items: center; + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + height: 100%; + line-height: 100%; + background-color: #ffffff; + font-size: 5em; + color: #4b4b4b; + justify-content: center; + } table{ table-layout: fixed; width: 100%; @@ -175,9 +191,6 @@ width:30px; max-width:30px; text-align: left; - .machine-img{ - filter: invert(); - } } th, td{ overflow: hidden; @@ -203,9 +216,6 @@ &.selected{ background-color: rgba(23, 145, 255, 0.75); color: @color-white; - .machine-img{ - filter: none; - } td div.maintenance-progress.selected{ label{ color: @color-white; diff --git a/Step/wwwroot/assets/styles/base/users.less b/Step/wwwroot/assets/styles/base/users.less index 46b24c65..8785a277 100644 --- a/Step/wwwroot/assets/styles/base/users.less +++ b/Step/wwwroot/assets/styles/base/users.less @@ -148,6 +148,24 @@ width: 100%; max-height: 680px; border: solid 1px #979797; + position: relative; + + .loading{ + display: flex; + align-items: center; + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + height: 100%; + line-height: 100%; + background-color: #ffffff; + font-size: 5em; + color: #4b4b4b; + justify-content: center; + } + table{ table-layout: fixed; width: 100%; diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css index 9fd7a452..93941fc6 100644 --- a/Step/wwwroot/assets/styles/style.css +++ b/Step/wwwroot/assets/styles/style.css @@ -4893,7 +4893,7 @@ footer .container button.big:before { } .alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-left-filter .selectBoxU { position: relative; - width: 180px; + width: 320px; } .alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-left-filter .selectBoxU select { width: 100%; @@ -4947,6 +4947,21 @@ footer .container button.big:before { position: relative; border: solid 1px #979797; } +.alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table .loading { + display: flex; + align-items: center; + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + height: 100%; + line-height: 100%; + background-color: #ffffff; + font-size: 5em; + color: #4b4b4b; + justify-content: center; +} .alarm-history-container .alarm-history-body .alarm-history-body-left .alarm-history-table table { table-layout: fixed; width: 100%; @@ -5119,7 +5134,7 @@ footer .container button.big:before { .alarm-history-container .alarm-history-body .alarm-history-body-right .box-right .box-right-info .box-right-info-header .subtitle { margin-bottom: 15px; } -.alarm-history-container .alarm-history-body .alarm-history-body-right .box-right .box-right-info .box-right-info-header .subtitle span { +.alarm-history-container .alarm-history-body .alarm-history-body-right .box-right .box-right-info .box-right-info-header .subtitle .inside { height: 21px; border: solid 1px #9b9b9b; font-size: 14px; @@ -16522,6 +16537,21 @@ footer .container button.big:before { position: relative; border: solid 1px #979797; } +.maintenance-container .maintenance-box .maintenance-body .maintenance-box-left .maintenance-box-left-body .loading { + display: flex; + align-items: center; + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + height: 100%; + line-height: 100%; + background-color: #ffffff; + font-size: 5em; + color: #4b4b4b; + justify-content: center; +} .maintenance-container .maintenance-box .maintenance-body .maintenance-box-left .maintenance-box-left-body table { table-layout: fixed; width: 100%; @@ -16573,9 +16603,6 @@ footer .container button.big:before { max-width: 30px; text-align: left; } -.maintenance-container .maintenance-box .maintenance-body .maintenance-box-left .maintenance-box-left-body table td:nth-child(5) .machine-img { - filter: invert(); -} .maintenance-container .maintenance-box .maintenance-body .maintenance-box-left .maintenance-box-left-body table th, .maintenance-container .maintenance-box .maintenance-body .maintenance-box-left .maintenance-box-left-body table td { overflow: hidden; @@ -16605,9 +16632,6 @@ footer .container button.big:before { background-color: rgba(23, 145, 255, 0.75); color: #fff; } -.maintenance-container .maintenance-box .maintenance-body .maintenance-box-left .maintenance-box-left-body table tbody tr.selected .machine-img { - filter: none; -} .maintenance-container .maintenance-box .maintenance-body .maintenance-box-left .maintenance-box-left-body table tbody tr.selected td div.maintenance-progress.selected label { color: #fff; } @@ -19364,6 +19388,22 @@ footer .container button.big:before { width: 100%; max-height: 680px; border: solid 1px #979797; + position: relative; +} +.users-container .users-box .users-body .users-table .loading { + display: flex; + align-items: center; + position: absolute; + top: 0px; + left: 0px; + right: 0px; + bottom: 0px; + height: 100%; + line-height: 100%; + background-color: #ffffff; + font-size: 5em; + color: #4b4b4b; + justify-content: center; } .users-container .users-box .users-body .users-table table { table-layout: fixed; diff --git a/Step/wwwroot/src/app_modules/alarms/components/alarm-history.ts b/Step/wwwroot/src/app_modules/alarms/components/alarm-history.ts index 23996841..f292786d 100644 --- a/Step/wwwroot/src/app_modules/alarms/components/alarm-history.ts +++ b/Step/wwwroot/src/app_modules/alarms/components/alarm-history.ts @@ -74,6 +74,7 @@ export default class AlarmHistory extends Vue { enableModifyNote = true; selectedPage = 1; visiblePages = 3; + onloading: boolean = false; // get filteredAttaches() { // return this.attaches.filter((v, idx) => idx < this.limitationList); // } @@ -149,6 +150,7 @@ export default class AlarmHistory extends Vue { var $this = this; ModalHelper.HideModal("modal-internal"); + this.onloading = true; this.users = await awaiter(loginService.getAllUsers()); this.users.unshift({ id: -1, username: this.$options.filters.localize("alarm_history_users_not_user", "Nessun utente") }); this.paginationData = await awaiter(alarmsService.getAlarmsData()); @@ -156,6 +158,7 @@ export default class AlarmHistory extends Vue { for (let index = 0; index < this.users.length; index++) { this.filter.multiUser.push(this.users[index].username); } + this.onloading = false; } async onChange(e) { diff --git a/Step/wwwroot/src/app_modules/alarms/components/alarm-history.vue b/Step/wwwroot/src/app_modules/alarms/components/alarm-history.vue index 4bceb402..efd8011b 100644 --- a/Step/wwwroot/src/app_modules/alarms/components/alarm-history.vue +++ b/Step/wwwroot/src/app_modules/alarms/components/alarm-history.vue @@ -88,6 +88,7 @@
+
@@ -136,8 +137,8 @@ {{'alarm_'+ selectedAlarm.alarmId | localize('alarm_'+ selectedAlarm.alarmId)}}
- {{'alarm_history_filter_nc' | localize("NC")}}{{ p }} - {{'alarm_history_filter_plc' | localize("PLC")}}{{ p }} + {{'alarm_history_filter_nc' | localize("NC")}}{{p}} + {{'alarm_history_filter_plc' | localize("PLC")}}{{p}}
diff --git a/Step/wwwroot/src/app_modules/maintenance/components/maintenance.ts b/Step/wwwroot/src/app_modules/maintenance/components/maintenance.ts index 05593b92..1d940fdd 100644 --- a/Step/wwwroot/src/app_modules/maintenance/components/maintenance.ts +++ b/Step/wwwroot/src/app_modules/maintenance/components/maintenance.ts @@ -20,6 +20,7 @@ export default class Maintenance extends Vue { public get maintenances(): server.Maintenance[] { return (this.$store.state as AppModel).maintenance.maintenances; } public enableMaintenance: boolean = true; + onloading: boolean = false; get selectedMaintenance() { @@ -59,6 +60,7 @@ export default class Maintenance extends Vue { } async mounted() { + this.onloading = true; Factory.Get(MessageService).subscribeToChannel("update-maintenance", args => { awaiter(new MaintenanceService().GetMaintenances()); }); @@ -68,6 +70,7 @@ export default class Maintenance extends Vue { this.selectedMaintenanceId = this.$route.params.id; this.enableMaintenance = false; } + this.onloading = false; } updated() { diff --git a/Step/wwwroot/src/app_modules/maintenance/components/maintenance.vue b/Step/wwwroot/src/app_modules/maintenance/components/maintenance.vue index 1ddba6d0..1e8c25b0 100644 --- a/Step/wwwroot/src/app_modules/maintenance/components/maintenance.vue +++ b/Step/wwwroot/src/app_modules/maintenance/components/maintenance.vue @@ -71,6 +71,7 @@
+
@@ -90,7 +91,7 @@ diff --git a/Step/wwwroot/src/app_modules/users/components/users.ts b/Step/wwwroot/src/app_modules/users/components/users.ts index 066f3b40..a993fcaa 100644 --- a/Step/wwwroot/src/app_modules/users/components/users.ts +++ b/Step/wwwroot/src/app_modules/users/components/users.ts @@ -20,7 +20,8 @@ export default class Users extends Vue { public selectedUser: any = null; public users: any = []; public currentFilter: string = ""; - public isLoading: boolean = false; + public onloading: boolean = false; + get Users() { if(this.selectedUser) @@ -92,9 +93,9 @@ export default class Users extends Vue { } async mounted() { - this.isLoading = true; + this.onloading = true; await awaiter (usersService.getUsers()); - this.isLoading = false; + this.onloading = false; } async reloadUsers() { diff --git a/Step/wwwroot/src/app_modules/users/components/users.vue b/Step/wwwroot/src/app_modules/users/components/users.vue index b0a06b6f..5021310f 100644 --- a/Step/wwwroot/src/app_modules/users/components/users.vue +++ b/Step/wwwroot/src/app_modules/users/components/users.vue @@ -28,6 +28,7 @@
+
- +