continuato pulizia controlli + update...

This commit is contained in:
Samuele Locatelli
2017-02-11 15:22:40 +01:00
parent b20f400372
commit db3728e35e
15 changed files with 77 additions and 40 deletions
+3 -3
View File
@@ -163,7 +163,7 @@
</site>
<site name="XPS" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\XPS\XPS\XPS" />
<virtualDirectory path="/" physicalPath="C:\Users\samuele\Documents\VisualStudioProjects\XPS\XPS\XPS" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:10840:localhost" />
@@ -171,7 +171,7 @@
</site>
<site name="XPST" id="3">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\XPS\XPS\XPST" />
<virtualDirectory path="/" physicalPath="C:\Users\samuele\Documents\VisualStudioProjects\XPS\XPS\XPST" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:10915:localhost" />
@@ -179,7 +179,7 @@
</site>
<site name="Equa_Auth" id="4">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\XPS\XPS\Equa_Auth" />
<virtualDirectory path="/" physicalPath="C:\Users\samuele\Documents\VisualStudioProjects\XPS\XPS\Equa_Auth" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:49869:localhost" />
+6 -3
View File
@@ -140,8 +140,12 @@ namespace XPS.WebUserControls
base.OnInit(e);
aggiornaControlliDataGL();
_idxGridView = "CodRow";
if (!Page.IsPostBack)
{
traduciObj();
}
}
/// <summary>
/// determino se il pulsante di conferma tutto schedulato sia visibile...
/// </summary>
@@ -166,9 +170,8 @@ namespace XPS.WebUserControls
pnlSetAllSched.Visible = allSched;
}
protected override void traduciObj()
protected void traduciObj()
{
base.traduciObj();
lblULP.Text = traduci("lblULP");
lblDataPrev.Text = traduci("updateObjDueDate");
txtDueDate.Text = DateTime.Now.AddDays(memLayer.ML.confReadInt("defDayLeadTime")).ToString("dd/MM/yyyy");
+1 -2
View File
@@ -47,9 +47,8 @@ namespace XPS.WebUserControls
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected override void Page_Load(object sender, EventArgs e)
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
DetectAgent();
myInitialize();
}
+2 -2
View File
@@ -129,6 +129,7 @@ namespace XPS.WebUserControls
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
traduciObj();
aggiornaControlliDataGL();
_idxGridView = "CodRow";
updateNavBar();
@@ -159,9 +160,8 @@ namespace XPS.WebUserControls
}
}
protected override void traduciObj()
protected void traduciObj()
{
base.traduciObj();
lblRowsDDT.Text = traduci("lblRowsDDT");
}
+5 -2
View File
@@ -137,6 +137,10 @@ namespace XPS.WebUserControls
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if(!Page.IsPostBack)
{
traduciObj();
}
SetUpByUserRight();
aggiornaControlliDataGL();
_idxGridView = "CodDDT";
@@ -259,9 +263,8 @@ namespace XPS.WebUserControls
grView.DataBind();
}
protected override void traduciObj()
protected void traduciObj()
{
base.traduciObj();
btnShowNew.Text = traduci("btnShowNew");
btnNewComm.Text = traduci("btnNewComm");
lblCli.Text = traduci("lblCli");
+13 -3
View File
@@ -14,6 +14,16 @@ namespace XPS.WebUserControls
{
public partial class mod_filtro : SteamWare.UserControl
{
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if (!Page.IsPostBack)
{
traduciObj();
}
bindControlli();
}
protected ObjectDataSource _ods;
protected string _valore
{
@@ -30,7 +40,7 @@ namespace XPS.WebUserControls
protected bool _changeCheckVisible = true;
protected bool _changeSelEnabled = true;
protected string _where = "";
protected override void traduciObj()
protected void traduciObj()
{
if (_changeCheckVisible)
{
@@ -83,7 +93,7 @@ namespace XPS.WebUserControls
{
chkFilt.Visible = _changeCheckVisible;
}
protected override void bindControlli()
protected void bindControlli()
{
updateChk();
fixValore();
@@ -214,7 +224,7 @@ namespace XPS.WebUserControls
chkFilt.Checked = true;
}
}
catch(Exception exc)
catch (Exception exc)
{
logger.lg.scriviLog("Errore bind ods filtraggio");
}
+12 -7
View File
@@ -17,6 +17,14 @@ namespace XPS.WebUserControls
/// </summary>
public partial class mod_login : SteamWare.UserControl
{
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if (!Page.IsPostBack)
{
traduciObj();
}
}
#region area protected/private
#region area proprietà
@@ -42,7 +50,7 @@ namespace XPS.WebUserControls
}
}
protected override void traduciObj()
protected void traduciObj()
{
lblPwd.Text = user_std.UtSn.Traduci("lblPwd");
lblUser.Text = user_std.UtSn.Traduci("lblUser");
@@ -164,7 +172,7 @@ namespace XPS.WebUserControls
else
{
lblMessage.Text = String.Format("{0}<br>key not allowed for operation!!! operation logged!!!", user_std.UtSn.Traduci("AccessFail"));
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la sua key autorizzativa e' sbagliata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp"))));
gestEmail.geAuth.mandaEmail(email.senderEmail, email.adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la sua key autorizzativa e' sbagliata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp"))));
string _rigaLog = String.Format("User {0}\t tried to force user - wrong password - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
if (Login_Error != null)
@@ -175,7 +183,7 @@ namespace XPS.WebUserControls
}
else
{
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp"))));
gestEmail.geAuth.mandaEmail(email.senderEmail, email.adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp"))));
string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
if (Login_Error != null)
@@ -237,11 +245,8 @@ namespace XPS.WebUserControls
/// <summary>
/// avvio pagina
/// </summary>
protected override void Page_Load(object sender, EventArgs e)
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
//carico da web.config i default values
loadDefaultsWebConfig();
// procedo...
setLoginMode();
Session.RemoveAll();
+7 -1
View File
@@ -21,7 +21,7 @@ namespace XPS.WebUserControls
protected string defaultTitle;
protected string defaultBody;
protected override void traduciObj()
protected void traduciObj()
{
defaultApp = SteamWare.memLayer.ML.confReadString("defaultApp");
defaultTitle = SteamWare.memLayer.ML.confReadString("defaultTitle");
@@ -31,6 +31,12 @@ namespace XPS.WebUserControls
lblMess.Text = user_std.UtSn.Traduci(defaultBody);
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
traduciObj();
}
#endregion
#region public
+6 -2
View File
@@ -99,7 +99,7 @@ namespace XPS.WebUserControls
txtTooltip.Text = value;
}
}
protected override void bindControlli()
protected void bindControlli()
{
hlNaviga.NavigateUrl = txtLink.Text;
//mostro solo una substring: il minore tra la lungh e xx char
@@ -115,7 +115,11 @@ namespace XPS.WebUserControls
hlNaviga.ToolTip = string.Format("{0} ({1})", txtTesto.Text, txtTooltip.Text);
lblSeparatore.Text = string.Format(" {0} ", txtSeparatore.Text);
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
bindControlli();
}
/// <summary>
/// primo valore di una chiave multicampo
/// </summary>
@@ -34,9 +34,8 @@ namespace XPS.WebUserControls
#endregion
protected override void Page_Load(object sender, EventArgs e)
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
updateText();
}
/// <summary>
@@ -14,9 +14,8 @@ namespace XPS.WebUserControls
{
public partial class mod_scadenziarioCommesse : SteamWare.UserControl
{
protected override void traduciObj()
protected void traduciObj()
{
base.traduciObj();
lblFromDate.Text = traduci("lblFromDate");
txtFromDate.Text = DateTime.Now.ToString("dd/MM/yyyy");
// traduco tab panels
@@ -24,6 +23,11 @@ namespace XPS.WebUserControls
tabPnlCompletate.HeaderText = traduci("tabPnlCompletate");
tabPnlProxScadenze.HeaderText = traduci("tabPnlProxScadenze");
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
traduciObj();
}
/// <summary>
/// aggiornata data inizio riferimento
@@ -56,9 +60,8 @@ namespace XPS.WebUserControls
mod_completate1.dataRif = Convert.ToDateTime(txtFromDate.Text);
mod_completate1.doUpdate();
}
protected override void Page_Load(object sender, EventArgs e)
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
if (!Page.IsPostBack)
{
if (memLayer.ML.isInSessionObject("cicloLavSel"))
@@ -30,19 +30,18 @@ namespace XPS.WebUserControls
#region gestione pagina
protected override void Page_Load(object sender, EventArgs e)
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
updateChkOpzione();
if (!Page.IsPostBack)
{
SteamWare.memLayer.ML.emptySessionVal(searchSessionName);
memLayer.ML.emptySessionVal(searchSessionName);
traduciObj();
}
}
protected override void traduciObj()
protected void traduciObj()
{
base.traduciObj();
lblCerca.Text = traduci("lblCerca");
btnCerca.Text = traduci("search");
if (_chkVisibile)
@@ -74,7 +73,10 @@ namespace XPS.WebUserControls
}
traduciObj();
}
bindControlli();
}
public tipoVistaMod vistaModulo { get; set; }
/// <summary>
/// imposta il valore della ricerca da quello in session
/// </summary>
@@ -223,9 +225,8 @@ namespace XPS.WebUserControls
/// <summary>
/// sistemo gli ods
/// </summary>
protected override void bindControlli()
protected void bindControlli()
{
base.bindControlli();
fixChkOds();
fixOds();
}
+5 -2
View File
@@ -24,9 +24,8 @@ namespace XPS.WebUserControls
#region protected
protected override void traduciObj()
protected void traduciObj()
{
base.traduciObj();
btnNewLemma.Text = user_std.UtSn.Traduci("btnNewLemma");
txtNewLemma.Text = "";
TBW_newLemma.WatermarkText = user_std.UtSn.Traduci("insertNewLemma");
@@ -69,6 +68,10 @@ namespace XPS.WebUserControls
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if(!Page.IsPostBack)
{
traduciObj();
}
aggiornaControlliDataGL();
}
Binary file not shown.
+1
View File
@@ -184,6 +184,7 @@
</None>
</ItemGroup>
<ItemGroup>
<Content Include="ExtLib\Microsoft.ReportViewer.WinForms.dll" />
<Content Include="MDB_Data\si_dt30.mdb">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>