diff --git a/project/XPS_deploy/Release/mod_vocabolario.ascx b/project/XPS_deploy/Release/mod_vocabolario.ascx
index ab9b7b3..7ed02e4 100644
--- a/project/XPS_deploy/Release/mod_vocabolario.ascx
+++ b/project/XPS_deploy/Release/mod_vocabolario.ascx
@@ -1,4 +1,4 @@
-<%@ control language="C#" autoeventwireup="true" inherits="mod_vocabolario, XPS_deploy" %>
+<%@ control language="C#" autoeventwireup="true" inherits="mod_vocabolario, XPS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
+
+
+
+
diff --git a/project/XPS_deploy/Source/Portable.master.cs b/project/XPS_deploy/Source/Portable.master.cs
new file mode 100644
index 0000000..48ade21
--- /dev/null
+++ b/project/XPS_deploy/Source/Portable.master.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+
+public partial class Portable : System.Web.UI.MasterPage
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
diff --git a/project/XPS_deploy/Source/Standard.master b/project/XPS_deploy/Source/Standard.master
new file mode 100644
index 0000000..efc3596
--- /dev/null
+++ b/project/XPS_deploy/Source/Standard.master
@@ -0,0 +1,17 @@
+<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Standard.master.cs" Inherits="MasterPage" %>
+
+
+
+
+
+ {1} DDT {2} del {3:dd MMM yyyy} {4} colli ({5} kg) {6}", riga.Cod, riga.Cliente, riga.DDT, riga.DataDDT, riga.Colli, riga.Peso, riga.Stato, riga.CodCli)); + } + // ora aggiungo i singoli ULP... + DS_applicazioneTableAdapters.v_ULPTableAdapter taULP = new DS_applicazioneTableAdapters.v_ULPTableAdapter(); + DS_applicazione.v_ULPDataTable _tabUlp = taULP.GetData(); + // aggiungo colli (ULP)... + foreach (DS_applicazione.v_ULPRow riga in _tabUlp) + { + // QUI formattazione campi mostrati a barcode + valori.Add(riga.Cod.ToString(), string.Format("{0} - {7} {1} DDT {2} del {3:dd MMM yyyy} nr {4} items ({5} kg) {6}", riga.Cod, riga.Cliente, riga.DDT, riga.DataDDT, riga.Qta, riga.Peso, riga.Stato, riga.CodCli)); + } + // assegno valori al barcode... + mod_barcode1.tabValori = valori; + } + ///
+
+
+
++
+
+
+
+ +
+
+
+
++ + + +
+
+
+
++ +
+
diff --git a/project/XPS_deploy/Source/mod_barcode.ascx.cs b/project/XPS_deploy/Source/mod_barcode.ascx.cs
new file mode 100644
index 0000000..12c6bbe
--- /dev/null
+++ b/project/XPS_deploy/Source/mod_barcode.ascx.cs
@@ -0,0 +1,236 @@
+using System;
+using System.Collections.Generic;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using SteamWare;
+
+public partial class mod_barcode : ApplicationUserControl
+{
+ #region area protected
+
+ ///
+
+
+
+
+
+
+
+
-->
+ +
+
+
+
+
+
+ Scarica l'elenco in formato pdf
++ + Scarica il font per visualizzare correttamente i + barcode + + + Per installare il font: +![]() + Esci
+
+
+
+
+
+
+
+
+
+ -->
+
+
+
++
+
+
+
+ +
+
+
+
+
+
+ +
+
+ + +
+
diff --git a/project/XPS_deploy/Source/mod_logStati.ascx.cs b/project/XPS_deploy/Source/mod_logStati.ascx.cs
new file mode 100644
index 0000000..23f71ea
--- /dev/null
+++ b/project/XPS_deploy/Source/mod_logStati.ascx.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using SteamWare;
+
+public partial class mod_logStati : System.Web.UI.UserControl
+{
+ public string idxObj
+ {
+ get
+ {
+ return txtSelObj.Text;
+ }
+ set
+ {
+ txtSelObj.Text = value;
+ }
+ }
+}
diff --git a/project/XPS_deploy/Source/mod_login.ascx b/project/XPS_deploy/Source/mod_login.ascx
new file mode 100644
index 0000000..b8c8eed
--- /dev/null
+++ b/project/XPS_deploy/Source/mod_login.ascx
@@ -0,0 +1,55 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_login.ascx.cs" Inherits="mod_login" %>
+
+
There are some problems instatiating user: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]); + SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, problemi ad istanziare l'utente {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.ERROR); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + } + } + else + { + lblMessage.Text = String.Format("{0} user not allowed: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]); + SteamWare.logger.lg.scriviLog(String.Format("Utente non autorizzato: {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.WARNING); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + } + } + else + { + lblMessage.Text = user_std.UtSn.Traduci("AccessFail") + user_std.UtSn.Traduci("UsrNotAuth"); + SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, utente non autenticato"), SteamWare.tipoLog.WARNING); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + } + } + + /// 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! 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) + { + Login_Error(this, new EventArgs()); + } + } + } + else + { + mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato! 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) + { + Login_Error(this, new EventArgs()); + } + } + } + else + { + lblMessage.Text = string.Format("{0} user not authenticated! ", user_std.UtSn.Traduci("AccessFail")); + if (Login_Error != null) + { + Login_Error(this, new EventArgs()); + } + string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text); + SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING); + } + } + + protected void btnOk_Click(object sender, EventArgs e) + { + ForceUserIdentity(); + } + + #endregion + + #endregion + + #region area public + + #region eventi pubblici esposti + + public event EventHandler Login_ok; + public event EventHandler Login_Error; + + #endregion + + #region area proprietà + + ///
+
+
diff --git a/project/XPS_deploy/Source/mod_pageTitleAndSearch.ascx.cs b/project/XPS_deploy/Source/mod_pageTitleAndSearch.ascx.cs
new file mode 100644
index 0000000..4d66a9b
--- /dev/null
+++ b/project/XPS_deploy/Source/mod_pageTitleAndSearch.ascx.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+public partial class mod_pageTitleAndSearch : ApplicationUserControl
+{
+ #region area protected
+
+ protected string _titolo;
+ protected override void traduciObj()
+ {
+ DataLayer_AnagGen.PermessiRow riga = (DataLayer_AnagGen.PermessiRow)user_std.UtSn.permessi.Select(string.Format("URL = '{0}'", _paginaCorrente))[0];
+ _titolo = riga.NOME;
+ lblTitolo.Text = traduci(_titolo);
+ }
+
+
+ #endregion
+
+}
diff --git a/project/XPS_deploy/Source/mod_ricercaGenerica.ascx b/project/XPS_deploy/Source/mod_ricercaGenerica.ascx
new file mode 100644
index 0000000..2f355b1
--- /dev/null
+++ b/project/XPS_deploy/Source/mod_ricercaGenerica.ascx
@@ -0,0 +1,6 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_ricercaGenerica.ascx.cs"
+ Inherits="mod_ricercaGenerica" %>
+
+
diff --git a/project/XPS_deploy/Source/mod_ricercaGenerica.ascx.cs b/project/XPS_deploy/Source/mod_ricercaGenerica.ascx.cs
new file mode 100644
index 0000000..8362fd4
--- /dev/null
+++ b/project/XPS_deploy/Source/mod_ricercaGenerica.ascx.cs
@@ -0,0 +1,181 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+public partial class mod_ricercaGenerica : ApplicationUserControl
+{
+
+ #region gestione eventi
+
+ public event EventHandler eh_nuovaRicerca;
+
+ #endregion
+
+ # region area protected
+
+ #region area ricerche dettaglio specifiche
+
+ protected bool _cercaMatricole = false;
+ protected bool _cercaUsername = false;
+ //protected bool _cercaManufacturer = false;
+ //protected bool _cercaCategorie = false;
+ protected bool _cercaModelli = false;
+ protected bool _cercaMag = false;
+
+ #endregion
+
+ protected override void Page_Load(object sender, EventArgs e)
+ {
+ base.Page_Load(sender, e);
+ updateText();
+ }
+ ///
+
+
+
+
+
+
+
+
diff --git a/project/XPS_deploy/Source/mod_scadenziarioCommesse.ascx.cs b/project/XPS_deploy/Source/mod_scadenziarioCommesse.ascx.cs
new file mode 100644
index 0000000..fd619fb
--- /dev/null
+++ b/project/XPS_deploy/Source/mod_scadenziarioCommesse.ascx.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+using SteamWare;
+
+public partial class mod_scadenziarioCommesse : ApplicationUserControl
+{
+ protected override void traduciObj()
+ {
+ base.traduciObj();
+ lblFromDate.Text = traduci("lblFromDate");
+ txtFromDate.Text = DateTime.Now.ToString("dd/MM/yyyy");
+ }
+
+ ///
+
+ +
+
+
+ \ No newline at end of file diff --git a/project/XPS_deploy/Source/mod_titlePortable.ascx.cs b/project/XPS_deploy/Source/mod_titlePortable.ascx.cs new file mode 100644 index 0000000..96da0ac --- /dev/null +++ b/project/XPS_deploy/Source/mod_titlePortable.ascx.cs @@ -0,0 +1,18 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class mod_titleMini : System.Web.UI.UserControl +{ + protected void Page_Load(object sender, EventArgs e) + { + lblTitle.Text = string.Format("{0} {1}", ConfigurationManager.AppSettings.Get("portableAppName"), ConfigurationManager.AppSettings.Get("portableAppVersion")); + } +} diff --git a/project/XPS_deploy/Source/mod_unauthorized.ascx b/project/XPS_deploy/Source/mod_unauthorized.ascx new file mode 100644 index 0000000..4c04c8f --- /dev/null +++ b/project/XPS_deploy/Source/mod_unauthorized.ascx @@ -0,0 +1,16 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_unauthorized.ascx.cs" Inherits="mod_unauthorized" %> +
| |||||||||||||||||||||||||||||||||||||||||||||||||||||