diff --git a/Client.Utils/Constants.cs b/Client.Utils/Constants.cs
index bf0862c0..6482be8b 100644
--- a/Client.Utils/Constants.cs
+++ b/Client.Utils/Constants.cs
@@ -20,11 +20,7 @@ namespace Client.Utils
public static String CEF_LOCALES_PATH = BASE_PATH + "CEF\\Resources\\locales";
public static String CEF_EXCEPTIONLOG_PATH = BASE_PATH + "ExceptionLog";
public static String errorPageFile = BASE_PATH + "error.pg";
-<<<<<<< HEAD
- public static String JOB_OPENING_PATH = "C:\\CMS\\ACTIVE\\TMP\\clientTmpJob\\";
-=======
- public static String JOB_OPENING_PATH = "C:\\CMS\\Active\\TMP\\clientTmpJob\\";
->>>>>>> feature/Scada
+ public static String JOB_OPENING_PATH = "C:\\CMS\\ACTIVE\\TMP\\clientTmpJob\\";
//Config Names
public const string CONFIG_KEY = "Config";
diff --git a/Step.Config/ServerConfigController.cs b/Step.Config/ServerConfigController.cs
index 3141c076..ef93c97b 100644
--- a/Step.Config/ServerConfigController.cs
+++ b/Step.Config/ServerConfigController.cs
@@ -43,7 +43,10 @@ namespace Step.Config
}
catch (Exception ex)
{
- ExceptionManager.Manage(ERROR_LEVEL.FATAL, ex.Message);
+ var message = ex.Message;
+ if (ex.InnerException != null)
+ message += "\n"+ex.InnerException.Message;
+ ExceptionManager.Manage(ERROR_LEVEL.FATAL, message);
}
}
diff --git a/Step.Utils/languages/IT.xml b/Step.Utils/languages/IT.xml
index 782289d1..970ce28b 100644
--- a/Step.Utils/languages/IT.xml
+++ b/Step.Utils/languages/IT.xml
@@ -211,6 +211,7 @@
Id Offset
Offset %d
Crea una nuova famiglia
+ Spazio troppo piccolo per caricare questo utensile
Caricamento Utensile
diff --git a/Step.Utils/languages/en.xml b/Step.Utils/languages/en.xml
index 74ed611a..acbeaa0d 100644
--- a/Step.Utils/languages/en.xml
+++ b/Step.Utils/languages/en.xml
@@ -210,6 +210,7 @@
Offset Id
Offset %d
Create new Family
+ The space to load this tools is not enough
Loading Tool
diff --git a/Step/wwwroot/assets/styles/base/modals.less b/Step/wwwroot/assets/styles/base/modals.less
index 18dfcd02..5e4877fb 100644
--- a/Step/wwwroot/assets/styles/base/modals.less
+++ b/Step/wwwroot/assets/styles/base/modals.less
@@ -894,6 +894,12 @@
color: @color-cyan-blue;
margin-top: 20px;
flex-flow: column;
+ .error{
+ margin-top: 74px;
+ color: #a10518;
+ font-size: 22px;
+ font-weight: bold;
+ }
.load-depot-box-select {
margin-top: 15px;
}
diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css
index 376908a4..f400aff0 100644
--- a/Step/wwwroot/assets/styles/style.css
+++ b/Step/wwwroot/assets/styles/style.css
@@ -845,6 +845,12 @@
margin-top: 20px;
flex-flow: column;
}
+.modal.load-depot .load-depot-box .error {
+ margin-top: 74px;
+ color: #a10518;
+ font-size: 22px;
+ font-weight: bold;
+}
.modal.load-depot .load-depot-box .load-depot-box-select {
margin-top: 15px;
}
diff --git a/Step/wwwroot/src/app_modules/tooling/components/load-depot.ts b/Step/wwwroot/src/app_modules/tooling/components/load-depot.ts
index 7ba3509e..b1028803 100644
--- a/Step/wwwroot/src/app_modules/tooling/components/load-depot.ts
+++ b/Step/wwwroot/src/app_modules/tooling/components/load-depot.ts
@@ -3,6 +3,8 @@ import { ModalHelper, Modal } from "src/components/modals"
import { DepotService } from 'src/services/depotService';
import { Factory, MessageService } from 'src/_base';
import { inputBox } from "src/modules/base-components/cards";
+import { store, AppModel } from "src/store";
+import { ToolingGetters,toolingActions } from "src/store/tooling.store";
export default {
@@ -12,7 +14,9 @@ export default {
return {
toolSelected: {},
positionId: null,
- magazineId: null
+ magazineId: null,
+ magInfo: null,
+ fitInPosition: true
}
},
computed: {
@@ -32,8 +36,13 @@ export default {
new DepotService().GetToolAvailable();
else
new DepotService().GetNcToolAvailable();
-
})
+
+ this.magazineId = ModalHelper.loadDepotModal.magazineId;
+ this.positionId = ModalHelper.loadDepotModal.positionId;
+ if(this.magazineId)
+ this.magInfo = (this.$store.state as AppModel).tooling.magazines.find(d => d.id == this.magazineId);
+
},
methods: {
close() {
@@ -50,10 +59,13 @@ export default {
this.magazineId = ModalHelper.loadDepotModal.magazineId;
this.positionId = ModalHelper.loadDepotModal.positionId;
new DepotService().AddToolToDepot(this.magazineId, this.positionId, { toolId: this.toolSelected.id }).then(response => {
- Factory.Get(MessageService).deleteChannel("esc_pressed");
+ Factory.Get(MessageService).deleteChannel("esc_pressed");
+
+ if(this.magInfo)
+ toolingActions.updateBusyStatusPositions(store,this.magInfo.type,(this.$store.state as AppModel).depot.depot);
+
ModalHelper.HideModal();
});
- console.log(this.toolSelected);
},
calcItemName(shank) {
if (shank.childsTools && shank.childsTools.length > 1)
@@ -73,5 +85,13 @@ export default {
else
return this.familyNameFromId(id);
}
+ },
+ watch: {
+ toolSelected: function (val) {
+ if(this.toolSelected && this.positionId){
+ toolingActions.setCanLoadTool(store, this.toolSelected.rightSize,this.toolSelected.leftSize,this.magInfo.type,(this.$store.state as AppModel).depot.depot);
+ this.fitInPosition = (this.$store.state as AppModel).tooling.magPosDepot[this.positionId -1].canLoadTool;
+ }
+ }
}
};
diff --git a/Step/wwwroot/src/app_modules/tooling/components/load-depot.vue b/Step/wwwroot/src/app_modules/tooling/components/load-depot.vue
index d4c658c9..37e98990 100644
--- a/Step/wwwroot/src/app_modules/tooling/components/load-depot.vue
+++ b/Step/wwwroot/src/app_modules/tooling/components/load-depot.vue
@@ -5,9 +5,11 @@
-
+
+
+ {{'load_depot_error_fit' | localize('Spazio troppo piccolo per caricare questo utensile')}}
+
diff --git a/Step/wwwroot/src/modules/base-components/cards/detail-card.vue b/Step/wwwroot/src/modules/base-components/cards/detail-card.vue
index 76c98b90..808fd528 100644
--- a/Step/wwwroot/src/modules/base-components/cards/detail-card.vue
+++ b/Step/wwwroot/src/modules/base-components/cards/detail-card.vue
@@ -9,7 +9,7 @@
-
+