Merge branch 'develop' of https://gitlab.steamware.net/steamware/mapo-core into develop
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="col-12 col-md-6">
|
||||
<div class="col-12 col-md-6 mb-2">
|
||||
<div class="input-group input-group-lg">
|
||||
<input type="text" class="form-control w-25" placeholder="Cerca" aria-label="Cerca">
|
||||
<select class="form-select w-50" @bind="IdxPOdlSel">
|
||||
|
||||
@@ -57,6 +57,9 @@ namespace MP_TAB_SERV.Components
|
||||
protected SharedMemService SMServ { get; set; } = null!;
|
||||
[Inject]
|
||||
protected MessageService MServ { get; set; } = null!;
|
||||
protected SharedMemService SMServ { get; set; } = null!;
|
||||
[Inject]
|
||||
protected MessageService MServ { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Verifica ODL OK (ovvero caricato x macchina...)
|
||||
@@ -108,7 +111,7 @@ namespace MP_TAB_SERV.Components
|
||||
protected string getIdxMaccParent()
|
||||
{
|
||||
string answ = IdxMaccSel;
|
||||
// se è multi controllo
|
||||
// se � multi controllo
|
||||
if (isMulti)
|
||||
{
|
||||
// verifico se SIA una tavola (ha char "#")
|
||||
@@ -124,7 +127,7 @@ namespace MP_TAB_SERV.Components
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
baseLang = SMServ.GetConf("baseLang");
|
||||
//baseLang = SMServ.GetConf("baseLang");
|
||||
numDayOdl = SMServ.GetConfInt("numDaySelOdl");
|
||||
confRett = SMServ.GetConfBool("confRett");
|
||||
enableSplitODL = SMServ.GetConfBool("enableSplitODL");
|
||||
@@ -144,7 +147,6 @@ namespace MP_TAB_SERV.Components
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
isMulti = SMServ.DictMacchMulti[RecMSE?.IdxMacchina] == 1;
|
||||
|
||||
await ReloadData(false);
|
||||
}
|
||||
|
||||
@@ -173,7 +175,7 @@ namespace MP_TAB_SERV.Components
|
||||
/// <param name="confZero">boolean, true = deve confermare 0 pezzi (es. in setup)</param>
|
||||
private async Task confermaProdOdl(bool confZero)
|
||||
{
|
||||
// 2016.11.17 NOTA: introdotti scarti, li confermiamo SEMPRE a zero se in setup, però da valutare SE a FINE ATTREZZAGGIO chiedere num pezzi e num scarti (saldo zero buoni) da inserire...
|
||||
// 2016.11.17 NOTA: introdotti scarti, li confermiamo SEMPRE a zero se in setup, per� da valutare SE a FINE ATTREZZAGGIO chiedere num pezzi e num scarti (saldo zero buoni) da inserire...
|
||||
bool fatto = false;
|
||||
DateTime adesso = DateTime.Now;
|
||||
if (confZero)
|
||||
@@ -224,12 +226,12 @@ namespace MP_TAB_SERV.Components
|
||||
***************************************************/
|
||||
|
||||
bool inAttr = false;
|
||||
// se è multi mi chiedo se sia DAVVERO in attrezzaggio...
|
||||
// se � multi mi chiedo se sia DAVVERO in attrezzaggio...
|
||||
if (isMulti)
|
||||
{
|
||||
try
|
||||
{
|
||||
// controllo se NON SONO già in attrezzaggio...
|
||||
// controllo se NON SONO gi� in attrezzaggio...
|
||||
var rigaStato = TabDServ.StatoMacchina(IdxMaccParent);
|
||||
inAttr = (rigaStato.IdxStato == 2);
|
||||
}
|
||||
@@ -248,7 +250,7 @@ namespace MP_TAB_SERV.Components
|
||||
}
|
||||
if (enableSplitODL)
|
||||
{
|
||||
// splitto VECCHIO ODL (se è rimasto qualcosa da produrre e se ce ne è rimasto uno.......)
|
||||
// splitto VECCHIO ODL (se � rimasto qualcosa da produrre e se ce ne � rimasto uno.......)
|
||||
try
|
||||
{
|
||||
var currOdl = await TabDServ.OdlCurrByMacc(IdxMaccSel);
|
||||
@@ -258,7 +260,7 @@ namespace MP_TAB_SERV.Components
|
||||
decimal tcAss = currOdl[0].Tcassegnato;
|
||||
await TabDServ.OdlSplit(idxODLTemp, MatrOpr, IdxMaccSel, tcAss, PzPallet, $"inizio attrezzaggio, Sospensione ODL {idxODLTemp}, generato residuo con pari TCiclo: {tcAss}", false, 0);
|
||||
}
|
||||
// se è multi processo ANCHE x altra tavola...
|
||||
// se � multi processo ANCHE x altra tavola...
|
||||
if (isMulti)
|
||||
{
|
||||
#if false
|
||||
@@ -336,7 +338,7 @@ namespace MP_TAB_SERV.Components
|
||||
catch
|
||||
{ }
|
||||
|
||||
// se è multi CHIUDO ODL x altra tavola...
|
||||
// se � multi CHIUDO ODL x altra tavola...
|
||||
if (isMulti)
|
||||
{
|
||||
// se NON sono in attrezzaggio...
|
||||
@@ -369,7 +371,7 @@ namespace MP_TAB_SERV.Components
|
||||
// update buttons...
|
||||
checkAll();
|
||||
}
|
||||
// se è master --> chiamo update child!
|
||||
// se � master --> chiamo update child!
|
||||
if (isMaster)
|
||||
{
|
||||
DataLayerObj.taODL.fixMachineSlave(idxMacchina, 30, 1);
|
||||
@@ -419,7 +421,15 @@ namespace MP_TAB_SERV.Components
|
||||
|
||||
private static Logger Log = LogManager.GetCurrentClassLogger();
|
||||
|
||||
private string baseLang = "IT";
|
||||
private string _baseLang { get; set; } = "IT";
|
||||
private string baseLang
|
||||
{
|
||||
get => _baseLang;
|
||||
set
|
||||
{
|
||||
MServ.UserPrefGet("Lang");
|
||||
}
|
||||
}
|
||||
|
||||
private bool cancelSetupEnabled = false;
|
||||
|
||||
@@ -579,7 +589,7 @@ namespace MP_TAB_SERV.Components
|
||||
if (IdxPOdlSel > 0)
|
||||
{
|
||||
currPodl = await TabDServ.PODLExp_getByKey(IdxPOdlSel);
|
||||
// controllo se è cambiato PODL
|
||||
// controllo se � cambiato PODL
|
||||
if (IdxPOdlSel != lastIdxPOdl)
|
||||
{
|
||||
lastIdxPOdl = IdxPOdlSel;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="row align-items-center flex-wrap h-100">
|
||||
@*<div class="col-12 text-end">
|
||||
<div class="form-check form-switch fs-3">
|
||||
<input class="form-check-input" type="checkbox" @bind="@ShowMS">
|
||||
@@ -16,7 +16,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group my-3">
|
||||
<span class="input-group-text">@labelTempoIN</span>
|
||||
<input type="time" class="form-control" @bind="@selTempoMS" step="1">
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using global::Microsoft.AspNetCore.Components;
|
||||
using MP.Data.Services;
|
||||
using MP_TAB_SERV.Pages;
|
||||
|
||||
namespace MP_TAB_SERV.Components
|
||||
{
|
||||
@@ -161,7 +162,7 @@ namespace MP_TAB_SERV.Components
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
baseLang = SMServ.GetConf("baseLang");
|
||||
//baseLang = SMServ.GetConf("baseLang");
|
||||
}
|
||||
|
||||
protected override void OnParametersSet()
|
||||
@@ -183,7 +184,15 @@ namespace MP_TAB_SERV.Components
|
||||
|
||||
#region Private Fields
|
||||
|
||||
private string baseLang = "IT";
|
||||
private string _baseLang { get; set; } = "IT";
|
||||
private string baseLang
|
||||
{
|
||||
get => _baseLang;
|
||||
set
|
||||
{
|
||||
MsgServ.UserPrefGet("Lang");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
@@ -218,7 +227,7 @@ namespace MP_TAB_SERV.Components
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = tcMode == "ms" ? $"--> {TempoMS.TotalMinutes:N0}:{TempoMS:ss} (min:sec)" : $"--> {TempoMC:0.000} (min.cent)";
|
||||
string answ = tcMode == "mc" ? $"--> {TempoMS.TotalMinutes:N0}:{TempoMS:ss} (min:sec)" : $"--> {TempoMC:0.000} (min.cent)";
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace MP_TAB_SERV.Components
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
imgBasePath = Environment.CurrentDirectory;
|
||||
baseLang = SMServ.GetConf("baseLang");
|
||||
//baseLang = SMServ.GetConf("baseLang");
|
||||
enableForceParamSchedaTecnica = SMServ.GetConfBool("enableForceParamSchedaTecnica");
|
||||
}
|
||||
|
||||
@@ -117,7 +117,15 @@ namespace MP_TAB_SERV.Components
|
||||
|
||||
#region Private Fields
|
||||
|
||||
private string baseLang = "IT";
|
||||
private string _baseLang { get; set; } = "IT";
|
||||
private string baseLang
|
||||
{
|
||||
get => _baseLang;
|
||||
set
|
||||
{
|
||||
MServ.UserPrefGet("Lang");
|
||||
}
|
||||
}
|
||||
private bool enableForceParamSchedaTecnica = false;
|
||||
private bool hasDeroga = false;
|
||||
private string imgBasePath = "";
|
||||
|
||||
@@ -43,15 +43,27 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="my-1 text-center fw-bold fs-3">
|
||||
Preferenze
|
||||
</div>
|
||||
<div>
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
<div class="text-center mb-1 fw-bold">Modalità di inserimento del tempo ciclo</div>
|
||||
<div class="d-flex justify-content-between">
|
||||
<button class="btn btn-sm @btnMsStyle" @onclick='()=>setTcMode("ms")'>min:sec</button>
|
||||
<button class="btn btn-sm @btnMcStyle" @onclick='()=>setTcMode("mc")'>min.cent</button>
|
||||
<div class="d-flex justify-content-center">
|
||||
<div class="btn-group" role="group" aria-label="Basic outlined example">
|
||||
<button class="btn btn-sm @btnMsStyle" @onclick='()=>setTcMode("ms")'>min:sec</button>
|
||||
<button class="btn btn-sm @btnMcStyle" @onclick='()=>setTcMode("mc")'>min.cent</button>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<div class="text-center mb-1 fw-bold">Lingua</div>
|
||||
<select class="form-select" @bind="langIns">
|
||||
<option value="IT">IT</option>
|
||||
<option value="EN">EN</option>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -80,19 +92,24 @@
|
||||
await Task.Delay(1);
|
||||
tcModIns = tcMode;
|
||||
}
|
||||
protected async Task setLang(string lang)
|
||||
{
|
||||
await Task.Delay(1);
|
||||
langIns = lang;
|
||||
}
|
||||
|
||||
protected string btnMsStyle
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if(tcModIns == "ms")
|
||||
if (tcModIns == "ms")
|
||||
{
|
||||
answ = "btn-primary";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "btn-secondary";
|
||||
answ = "btn-outline-secondary";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -102,13 +119,13 @@
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if(tcModIns == "mc")
|
||||
if (tcModIns == "mc")
|
||||
{
|
||||
answ = "btn-primary";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = "btn-secondary";
|
||||
answ = "btn-outline-secondary";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -121,13 +138,27 @@
|
||||
get => _tcModIns;
|
||||
set
|
||||
{
|
||||
if(_tcModIns != value)
|
||||
if (_tcModIns != value)
|
||||
{
|
||||
_tcModIns = value;
|
||||
MsgServ.UserPrefSave("TcMode", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
protected string _langIns { get; set; } = "";
|
||||
|
||||
protected string langIns
|
||||
{
|
||||
get => _langIns;
|
||||
set
|
||||
{
|
||||
if (_langIns != value)
|
||||
{
|
||||
_langIns = value;
|
||||
MsgServ.UserPrefSave("Lang", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int Height { get; set; } = 0;
|
||||
public int Width { get; set; } = 0;
|
||||
@@ -151,10 +182,15 @@
|
||||
protected async override Task OnInitializedAsync()
|
||||
{
|
||||
var tcPrefItem = MsgServ.UserPrefGet("TcMode");
|
||||
if(tcPrefItem != null)
|
||||
if (tcPrefItem != null)
|
||||
{
|
||||
tcModIns = tcPrefItem;
|
||||
}
|
||||
var langPrefItem = MsgServ.UserPrefGet("Lang");
|
||||
if (langPrefItem != null)
|
||||
{
|
||||
langIns = langPrefItem;
|
||||
}
|
||||
await Task.Delay(1);
|
||||
if (string.IsNullOrEmpty(currIpv4))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user