refresh x vocab interno a DB principale + try/catch

This commit is contained in:
Samuele Locatelli
2017-02-12 10:56:08 +01:00
parent 56044e78d5
commit a748587c56
3 changed files with 12 additions and 15 deletions
+1 -1
View File
@@ -164,7 +164,7 @@
<add key="XPSConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="PermessiConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="UtenteCdcConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="VocabolarioConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_Vocabolario;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<add key="VocabolarioConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
<!--Area barcode-->
<add key="bCodeRetMain" value="bcex"/>
<!-- Setup link a reporting -->
+1 -1
View File
@@ -16,7 +16,7 @@ public partial class AjaxTitle : System.Web.UI.MasterPage
{
base.OnLoad(e);
Page.Title = SteamWare.memLayer.ML.confReadString("_titoloPagina");
Mod_pageTitleAndSearch1.doUpdate();
}
protected override void OnInit(EventArgs e)
@@ -14,24 +14,21 @@ namespace XPS.WebUserControls
{
public partial class mod_pageTitleAndSearch : SteamWare.UserControl
{
#region area protected
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
traduciObj();
}
protected string _titolo;
protected void traduciObj()
public void doUpdate()
{
DS_Auth.PermessiRow riga = (DS_Auth.PermessiRow)devicesAuthProxy.stObj.permessi.Select(string.Format("URL = '{0}.aspx' OR URL = '{0}'", devicesAuthProxy.pagCorrente))[0];
_titolo = riga.NOME;
try
{
DS_Auth.PermessiRow riga = (DS_Auth.PermessiRow)devicesAuthProxy.stObj.permessi.Select(string.Format("URL = '{0}.aspx' OR URL = '{0}'", devicesAuthProxy.pagCorrente))[0];
_titolo = riga.NOME;
}
catch
{
_titolo = devicesAuthProxy.pagCorrente;
}
lblTitolo.Text = traduci(_titolo);
}
#endregion
}
}