FIX lettura conf da DB / file x TAB
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@
|
||||
<h5 class="mb-1">Module</h5>
|
||||
<%--<small>3 days ago</small>--%>
|
||||
</div>
|
||||
<p class="mb-1"><%: SteamWare.memLayer.ML.confReadString("CodModulo") %></p>
|
||||
<p class="mb-1"><%: SteamWare.memLayer.ML.CRS("CodModulo") %></p>
|
||||
<%--<small>Altro.</small>--%>
|
||||
</div>
|
||||
<div class="list-group-item bg-secondary">
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace MoonProTablet
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect(memLayer.ML.confReadString("mainPage"));
|
||||
Response.Redirect(memLayer.ML.CRS("mainPage"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ namespace MoonProTablet
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// elimina il device da db...
|
||||
string cookieName = memLayer.ML.confReadString("cookieName");
|
||||
string cookieName = memLayer.ML.CRS("cookieName");
|
||||
string devSecret = memLayer.ML.getCookieVal(cookieName);
|
||||
authProxy.removeDeviceByDevSec(devSecret);
|
||||
// elimina il cookie dal browser e l'utente loggato
|
||||
@@ -19,7 +19,7 @@ namespace MoonProTablet
|
||||
user_std.UtSn.logOffUtente();
|
||||
Session.Clear();
|
||||
// rimanda alla pagina di reg device
|
||||
Response.Redirect(memLayer.ML.confReadString("mainPage"));
|
||||
Response.Redirect(memLayer.ML.CRS("mainPage"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ namespace MoonProTablet
|
||||
// reset appConf
|
||||
memLayer.ML.resetAppConf();
|
||||
// rimanda alla pagina di reg device
|
||||
Response.Redirect(memLayer.ML.confReadString("mainPage"));
|
||||
Response.Redirect(memLayer.ML.CRS("mainPage"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ namespace WebMasterPages
|
||||
/// </summary>
|
||||
private void setTimer()
|
||||
{
|
||||
Timer1.Interval = SteamWare.memLayer.ML.confReadInt("intUpdatePagina_ms");
|
||||
Timer1.Interval = SteamWare.memLayer.ML.CRI("intUpdatePagina_ms");
|
||||
}
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace MoonProTablet.WebUserControls
|
||||
// invio email notifica creazione ODL PROVVISORIO (da riconciliare...)
|
||||
string subject = "Effettuato attrezzaggio con ODL provvisorio";
|
||||
string oggetto = string.Format("E' stato effettuato unattrezzaggio con ODL provvisorio.<br/>Macchina: <b>{0}</b><br>Articolo: <b>{1}</b><br>Lanciati <b>{2}</b> pezzi con T.Ciclo <b>{3:N3}</b> (min.cent) / <b>{4}:{5}</b> (min:sec).<br><br>Note operatore: <b>{6}</b>", macchina, articolo, numPz, tCiclo, numMin, numSec, note);
|
||||
gestEmail.geAuth.mandaEmail(memLayer.ML.confReadString("_fromEmail"), memLayer.ML.confReadString("_adminEmail"), subject, oggetto);
|
||||
gestEmail.geAuth.mandaEmail(memLayer.ML.CRS("_fromEmail"), memLayer.ML.CRS("_adminEmail"), subject, oggetto);
|
||||
// sollevo evento!
|
||||
if (eh_newVal != null)
|
||||
{
|
||||
|
||||
@@ -285,7 +285,7 @@ namespace MoonProTablet.WebUserControls
|
||||
if (needStRefresh)
|
||||
{
|
||||
// chiamo refresh MSE
|
||||
DataLayer.obj.taMSE.getByRefreshData(memLayer.ML.confReadInt("refrMSE_0"));
|
||||
DataLayer.obj.taMSE.getByRefreshData(memLayer.ML.CRI("refrMSE_0"));
|
||||
}
|
||||
lblOut.Text = userMsg;
|
||||
// loggo USR MSG
|
||||
@@ -413,7 +413,7 @@ namespace MoonProTablet.WebUserControls
|
||||
if (rigaOdl.TCAssegnato != TCRichAttr)
|
||||
{
|
||||
// invio email!
|
||||
DataLayer.obj.sendWarnTcChangeReq(memLayer.ML.confReadString("_adminEmail"));
|
||||
DataLayer.obj.sendWarnTcChangeReq(memLayer.ML.CRS("_adminEmail"));
|
||||
}
|
||||
// processo chiusura setup
|
||||
processaEvento(idxEvento, String.Format("Registrata inizio produzione per ODL {0}", idxODL), idxODL);
|
||||
@@ -486,7 +486,7 @@ namespace MoonProTablet.WebUserControls
|
||||
if (confZero)
|
||||
{
|
||||
// confermo produzione ZERO pezzi (in setup)
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.confReadInt("modoConfProd"), 0, 0, DateTime.Now);
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.CRI("modoConfProd"), 0, 0, DateTime.Now);
|
||||
}
|
||||
else // se NON sono in setup verifico se ho pz da confermare
|
||||
{
|
||||
@@ -494,7 +494,7 @@ namespace MoonProTablet.WebUserControls
|
||||
DS_ProdTempi.stp_PzProd_getByMacchinaRow rigaProd = DataLayer.obj.taPzProd2conf.GetData(idxMacchina)[0];
|
||||
if (rigaProd.pezziNonConfermati > 0)
|
||||
{
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.confReadInt("modoConfProd"), rigaProd.pezziNonConfermati, 0, DateTime.Now);
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.CRI("modoConfProd"), rigaProd.pezziNonConfermati, 0, DateTime.Now);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -553,7 +553,7 @@ namespace MoonProTablet.WebUserControls
|
||||
DataLayer.emptyCurrODL(idxMacchina);
|
||||
|
||||
// invio email!
|
||||
DataLayer.obj.sendWarnTcChangeReq(memLayer.ML.confReadString("_adminEmail"));
|
||||
DataLayer.obj.sendWarnTcChangeReq(memLayer.ML.CRS("_adminEmail"));
|
||||
// processo chiusura setup
|
||||
processaEvento(idxEvento, String.Format("Registrato Riattrezzaggio ODL (old: {0})", currODL), currODL);
|
||||
// sistemo buttons!
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadBool("commEnableEditDel");
|
||||
return memLayer.ML.CRB("commEnableEditDel");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@ namespace MoonProTablet.WebUserControls
|
||||
confermaPerGiorni();
|
||||
}
|
||||
// refresh tabella dati tablet...
|
||||
DataLayer.obj.taMSE.getByRefreshData(memLayer.ML.confReadInt("refrMSE_0"));
|
||||
DataLayer.obj.taMSE.getByRefreshData(memLayer.ML.CRI("refrMSE_0"));
|
||||
// mostro output
|
||||
lblOut.Text = string.Format("Confermata la produzione per {0} pezzi! (+{1} pz scarto) alle {2:yyyy-MM-dd HH:mm:ss}", numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
// cambio button conferma...
|
||||
@@ -398,14 +398,14 @@ namespace MoonProTablet.WebUserControls
|
||||
/// </summary>
|
||||
private void confermaPerGiorni()
|
||||
{
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.confReadInt("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.CRI("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua conferma per turni della produzione
|
||||
/// </summary>
|
||||
private void confermaPerTurni()
|
||||
{
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.confReadInt("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
DataLayer.obj.confermaProdMacchina(idxMacchina, memLayer.ML.CRI("modoConfProd"), numPzConfermati, numPzScarto2Rec, dtReqUpdate);
|
||||
}
|
||||
/// <summary>
|
||||
/// update post modifica pz buoni
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace MoonProTablet.WebUserControls
|
||||
private void popolaLabels()
|
||||
{
|
||||
// cambio: leggo NUOVA riga report...
|
||||
DS_ProdTempi.MappaStatoExplDataTable tabDati = DataLayer.obj.taMSE.getByRefreshData(memLayer.ML.confReadInt("refrMSE_5"));
|
||||
DS_ProdTempi.MappaStatoExplDataTable tabDati = DataLayer.obj.taMSE.getByRefreshData(memLayer.ML.CRI("refrMSE_5"));
|
||||
DS_ProdTempi.MappaStatoExplRow rigaDati = (DS_ProdTempi.MappaStatoExplRow)tabDati.Rows.Find(idxMacchina);
|
||||
// carico le info!
|
||||
lblOdl.Text = string.Format("ODL num: {0}, iniziato il {1:dd/MM/yy} alle {1:HH:mm}", rigaDati.idxODL, rigaDati.DataInizioODL);
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace MoonProTablet.WebUserControls
|
||||
// recupero data/ora evento da inserire (quella selezionata) ed AGGIUNGO 1 sec!!! così rimane traccia
|
||||
controllerMapo.scriviRigaEventoBarcode(idxMacchina, idxEvento, rigaStato.CodArticolo, commento, DataLayer.MatrOpr, rigaStato.pallet, dataOraEv.AddSeconds(1), DateTime.Now);
|
||||
// eseguo ricalcolo!
|
||||
DateTime startRicalcolo = dataOraEv.AddMinutes(memLayer.ML.confReadInt("minAnticipoRicalcolo"));
|
||||
DateTime startRicalcolo = dataOraEv.AddMinutes(memLayer.ML.CRI("minAnticipoRicalcolo"));
|
||||
|
||||
// leggo parametri x esecuzione...
|
||||
int rdm_nEvStep = memLayer.ML.CRI("rdm_nEvStep");
|
||||
@@ -163,7 +163,7 @@ namespace MoonProTablet.WebUserControls
|
||||
bool answ = true;
|
||||
try
|
||||
{
|
||||
if (Math.Abs(dataOraEv.Subtract(DateTime.Now).TotalMinutes) > memLayer.ML.confReadInt("dltMinRealtime"))
|
||||
if (Math.Abs(dataOraEv.Subtract(DateTime.Now).TotalMinutes) > memLayer.ML.CRI("dltMinRealtime"))
|
||||
{
|
||||
answ = false;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace MoonProTablet.WebUserControls
|
||||
DeviceName = Request.UserHostName;
|
||||
IPv4 = Request.UserHostName;
|
||||
// calcolo authKey MD5...
|
||||
string md5UserAuthKey = SteamCrypto.EncryptString(plainUserAuthKey, memLayer.ML.confReadString("cookieName"));
|
||||
string md5UserAuthKey = SteamCrypto.EncryptString(plainUserAuthKey, memLayer.ML.CRS("cookieName"));
|
||||
if (DataLayer.obj.taOp.getByMatrAuthKey(MatrOpr, md5UserAuthKey).Rows.Count > 0)
|
||||
{
|
||||
fatto = tryEnroll(MatrOpr, userAgent, fatto, DeviceName, IPv4, md5UserAuthKey);
|
||||
@@ -69,7 +69,7 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
if (fatto)
|
||||
{
|
||||
Response.Redirect(memLayer.ML.confReadString("mainPage"), true);
|
||||
Response.Redirect(memLayer.ML.CRS("mainPage"), true);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace MoonProTablet.WebUserControls
|
||||
fatto = DataLayer.obj.enrollDevice(UserAuthKey, IPv4, DeviceName, userAgent, MatrOpr);
|
||||
if (fatto)
|
||||
{
|
||||
Response.Redirect(memLayer.ML.confReadString("mainPage"));
|
||||
Response.Redirect(memLayer.ML.CRS("mainPage"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
// salvo!
|
||||
string idxMacchina = memLayer.ML.StringSessionObj("idxMacchina");
|
||||
int idxTipo = memLayer.ML.confReadInt("idxTipoCommento");
|
||||
int idxTipo = memLayer.ML.CRI("idxTipoCommento");
|
||||
string CodArticolo = "ND";
|
||||
try
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace MoonProTablet.WebUserControls
|
||||
public string encodeAuthKey(object plainUserAuthKey)
|
||||
{
|
||||
string answ = "";
|
||||
answ = SteamCrypto.EncryptString(plainUserAuthKey.ToString(), memLayer.ML.confReadString("cookieName"));
|
||||
answ = SteamCrypto.EncryptString(plainUserAuthKey.ToString(), memLayer.ML.CRS("cookieName"));
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace MoonProTablet.WebUserControls
|
||||
// leggo da sessione e salvo...
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.confReadBool("mostraSelOra");
|
||||
answ = memLayer.ML.CRB("mostraSelOra");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -159,7 +159,7 @@ namespace MoonProTablet.WebUserControls
|
||||
catch
|
||||
{
|
||||
_intervallo = new intervalloDate();
|
||||
_intervallo.inizio = DateTime.Now.AddDays(memLayer.ML.confReadInt("defDayFrom"));
|
||||
_intervallo.inizio = DateTime.Now.AddDays(memLayer.ML.CRI("defDayFrom"));
|
||||
_intervallo.fine = DateTime.Now.AddDays(1);
|
||||
Session["_intervallo"] = _intervallo;
|
||||
Session["_inizio"] = _intervallo.inizio;
|
||||
|
||||
+2
-2
@@ -22,11 +22,11 @@ namespace MoonProTablet
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (minuti < memLayer.ML.confReadInt("maxMinuti"))
|
||||
if (minuti < memLayer.ML.CRI("maxMinuti"))
|
||||
{
|
||||
answ = string.Format("{0}m {1}s", tempo.Minute, tempo.Second);
|
||||
}
|
||||
else if (minuti < memLayer.ML.confReadInt("maxOre"))
|
||||
else if (minuti < memLayer.ML.CRI("maxOre"))
|
||||
{
|
||||
answ = string.Format("{0}h {1}m", tempo.Hour, tempo.Minute);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user