aggiunta chiave x usare db conf x tablet + alcune "trappole" x errori in pagina ODL
This commit is contained in:
@@ -24,7 +24,8 @@
|
||||
<customErrors mode="RemoteOnly" defaultRedirect="Default.aspx" />
|
||||
<compilation debug="true" targetFramework="4.6.2" />
|
||||
<globalization uiCulture="it-IT" culture="it-IT" />
|
||||
<sessionState mode="InProc" timeout="180" />
|
||||
<sessionState mode="InProc" timeout="30" />
|
||||
<!--<sessionState mode="SQLServer" sqlConnectionString="data source=WIN2016-SQL; user id=sa;password=keyhammer16" cookieless="true" timeout="20" />-->
|
||||
<httpModules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
|
||||
@@ -43,6 +44,7 @@
|
||||
<!--gestione timeout "esteso" x chiamate SQL critiche, in secondi -->
|
||||
<add key="sqlLongCommandTimeout" value="600" />
|
||||
<!--Conf generale-->
|
||||
<add key="doShrinkFolder" value="true" />
|
||||
<add key="CodModulo" value="MoonPro" />
|
||||
<!--impostazione cambio tempo calcolato tra minuti-ore-gg-->
|
||||
<add key="maxMinuti" value="60" />
|
||||
@@ -59,7 +61,7 @@
|
||||
<add key="EnableCdnAjax" value="false" />
|
||||
<add key="EnableCdnJQ" value="true" />
|
||||
<!--Gestione auth dispositivi mobile-->
|
||||
<add key="cookieName" value="AuthMoonPro" />
|
||||
<add key="cookieName" value="Auth_MP_TAB" />
|
||||
<add key="mainPage" value="~/MappaStato.aspx" />
|
||||
<add key="dominio" value="Donati" />
|
||||
<add key="user" value="Mobile" />
|
||||
@@ -95,6 +97,7 @@
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=MoonPro_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer;"/>
|
||||
<add key="DevicesConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Donati_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer;"/>-->
|
||||
<!--stringhe connessione SQL2016-->
|
||||
<add key="DbConfConnectionString" value="Data Source=WIN2016-SQL;Initial Catalog=Donati_MoonProLAV_prod;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionString" value="Data Source=WIN2016-SQL;Initial Catalog=Donati_MoonProLAV_prod;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="PermessiConnectionString" value="Data Source=WIN2016-SQL;Initial Catalog=Donati_MoonProLAV_prod;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=WIN2016-SQL;Initial Catalog=Donati_AnagraficaLAV_prod;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
|
||||
@@ -98,17 +98,28 @@ namespace MoonProTablet.WebUserControls
|
||||
chkCloseOdl.Enabled = isEnabled;
|
||||
|
||||
|
||||
// controllo se la macchina è in attrezzaggio...
|
||||
DS_applicazione.StatoMacchineRow rigaStato = DataLayer.obj.taStatoMacchine.GetDataByIdxMacchina(idxMacchina.ToString())[0];
|
||||
// condizioni booleane
|
||||
bool inAttr = (rigaStato.IdxStato == 2);
|
||||
bool inAttr = false;
|
||||
bool currHasOdl = false;
|
||||
// controllo se la macchina è in attrezzaggio...
|
||||
DS_applicazione.StatoMacchineRow rigaStato = null;
|
||||
try
|
||||
{
|
||||
rigaStato = DataLayer.obj.taStatoMacchine.GetDataByIdxMacchina(idxMacchina.ToString())[0];
|
||||
inAttr = (rigaStato.IdxStato == 2);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione in recupero dati rigaStato! {0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
try
|
||||
{
|
||||
currHasOdl = DataLayer.obj.taMSE.getByIdxMacchina(idxMacchina.ToString())[0].idxODL != 0;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione in recupero dati currHasOdl! {0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
bool hasNewOdl = DataLayer.obj.taSelOdlFree.getUnused().Rows.Count > 1;
|
||||
// sistemo buttons!
|
||||
btnStartAttr.Enabled = (isEnabled && (!inAttr && hasNewOdl));
|
||||
@@ -123,9 +134,10 @@ namespace MoonProTablet.WebUserControls
|
||||
// sistemo SOLO se non si trtta di un postback...
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
int idxOdl = DataLayer.obj.taMSE.getByIdxMacchina(idxMacchina.ToString())[0].idxODL;
|
||||
int idxOdl = 0;
|
||||
try
|
||||
{
|
||||
idxOdl = DataLayer.obj.taMSE.getByIdxMacchina(idxMacchina.ToString())[0].idxODL;
|
||||
updateTempoTc(idxOdl);
|
||||
updateNoteTC(idxOdl);
|
||||
}
|
||||
@@ -137,15 +149,17 @@ namespace MoonProTablet.WebUserControls
|
||||
}
|
||||
|
||||
// verifico se l'articolo corrente sia in revisione x mostrare conferma modifica revisione...
|
||||
if(CodArtSel!="")
|
||||
if (CodArtSel != "")
|
||||
{
|
||||
bool showWarn = false;
|
||||
try
|
||||
{
|
||||
showWarn = DataLayer.obj.taAnagArt.getByCod(CodArtSel)[0].FlagIsNew;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione in recupero dati showWarn! {0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
divWarningArt.Visible = showWarn;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user