-
-
- Anagrafica VAT
-
-
-
-
-
+
+
+
diff --git a/MedAP/VAT.aspx.cs b/MedAP/VAT.aspx.cs
index 2707a99..4d1238c 100644
--- a/MedAP/VAT.aspx.cs
+++ b/MedAP/VAT.aspx.cs
@@ -8,36 +8,36 @@ using System.Web.UI.WebControls;
namespace MedAP
{
- public partial class VAT : System.Web.UI.Page
+ public partial class VAT : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
{
- protected void Page_Load(object sender, EventArgs e)
- {
- mod_searchBase.eh_ucev += Mod_searchBase_eh_ucev;
- }
-
- private void Mod_searchBase_eh_ucev(object sender, EventArgs e)
- {
- // se trovo evento select/reset mostro/nascondo dettagli...
- ucEvent evento = (ucEvent)e;
- switch (evento.tipoEvento)
- {
- case ucEvType.Delete:
- break;
- case ucEvType.Edit:
- break;
- case ucEvType.New:
- break;
- case ucEvType.Reset:
- break;
- case ucEvType.ReqUpdateParent:
- mod_VAT.searchVal = mod_searchBase.searchVal;
- mod_VAT.doUpdate();
- break;
- case ucEvType.Selected:
- break;
- default:
- break;
- }
- }
+ mod_searchBase.eh_ucev += Mod_searchBase_eh_ucev;
}
+
+ private void Mod_searchBase_eh_ucev(object sender, EventArgs e)
+ {
+ // se trovo evento select/reset mostro/nascondo dettagli...
+ ucEvent evento = (ucEvent)e;
+ switch (evento.tipoEvento)
+ {
+ case ucEvType.Delete:
+ break;
+ case ucEvType.Edit:
+ break;
+ case ucEvType.New:
+ break;
+ case ucEvType.Reset:
+ break;
+ case ucEvType.ReqUpdateParent:
+ mod_VAT.searchVal = mod_searchBase.searchVal;
+ mod_VAT.doUpdate();
+ break;
+ case ucEvType.Selected:
+ break;
+ default:
+ break;
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/MedAP/VAT.aspx.designer.cs b/MedAP/VAT.aspx.designer.cs
index 15d71bb..5ed0102 100644
--- a/MedAP/VAT.aspx.designer.cs
+++ b/MedAP/VAT.aspx.designer.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
namespace MedAP {
@@ -13,29 +13,29 @@ namespace MedAP {
public partial class VAT {
///
- /// mod_searchBase control.
+ /// Controllo mod_searchBase.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::MedAP.WebUserControls.mod_searchBase mod_searchBase;
///
- /// divElenco control.
+ /// Controllo divElenco.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divElenco;
///
- /// mod_VAT control.
+ /// Controllo mod_VAT.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::MedAP.WebUserControls.mod_VAT mod_VAT;
}
diff --git a/MedAP/WebUserControl/mod_Clients.ascx b/MedAP/WebUserControl/mod_Clients.ascx
index e1c0c75..a7261a9 100644
--- a/MedAP/WebUserControl/mod_Clients.ascx
+++ b/MedAP/WebUserControl/mod_Clients.ascx
@@ -14,7 +14,6 @@
-
@@ -61,7 +60,6 @@
-
diff --git a/MedAP/WebUserControl/mod_Clients.ascx.designer.cs b/MedAP/WebUserControl/mod_Clients.ascx.designer.cs
index e60beff..229dbac 100644
--- a/MedAP/WebUserControl/mod_Clients.ascx.designer.cs
+++ b/MedAP/WebUserControl/mod_Clients.ascx.designer.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
namespace MedAP.WebUserControl {
@@ -13,29 +13,29 @@ namespace MedAP.WebUserControl {
public partial class mod_Clients {
///
- /// grView control.
+ /// Controllo grView.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.GridView grView;
///
- /// ods control.
+ /// Controllo ods.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
///
- /// hfSearch control.
+ /// Controllo hfSearch.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.HiddenField hfSearch;
}
diff --git a/MedAP/WebUserControl/mod_VAT.ascx b/MedAP/WebUserControl/mod_VAT.ascx
index 445754b..a4b7eef 100644
--- a/MedAP/WebUserControl/mod_VAT.ascx
+++ b/MedAP/WebUserControl/mod_VAT.ascx
@@ -1,57 +1,44 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_VAT.ascx.cs" Inherits="MedAP.WebUserControls.mod_VAT" %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ <%----%>
+
diff --git a/MedAP/WebUserControl/mod_VAT.ascx.cs b/MedAP/WebUserControl/mod_VAT.ascx.cs
index e97c388..f5a05e2 100644
--- a/MedAP/WebUserControl/mod_VAT.ascx.cs
+++ b/MedAP/WebUserControl/mod_VAT.ascx.cs
@@ -4,53 +4,56 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
+using MedAP_data;
using SteamWare;
namespace MedAP.WebUserControls
{
- public partial class mod_VAT : System.Web.UI.UserControl
+ public partial class mod_VAT : System.Web.UI.UserControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
{
- protected void Page_Load(object sender, EventArgs e)
- {
- }
-
- public void doUpdate()
- {
- grView.DataBind();
- }
-
- public string searchVal
- {
- get
- {
- return hfSearch.Value;
- }
- set
- {
- hfSearch.Value = value;
- }
- }
- protected void btnNew_Click(object sender, EventArgs e)
- {
- // aggiungo nuovo record...50% iva così è primo...
- BillingProxy.man.taVAT.Insert(0.5, "NUOVA VAT", true, false);
- grView.DataBind();
- }
-
- public bool isUnused(object cIva)
- {
- bool answ = false;
- int c_iva = 0;
- try
- {
- c_iva = Convert.ToInt16(cIva);
- }
- catch
- { }
- // verifico NON sia utilizzato...
- answ = BillingProxy.man.taRows.getByC_iva(c_iva).Count == 0;
- return answ;
- }
}
+
+ public void doUpdate()
+ {
+ grView.DataBind();
+ }
+
+ public string searchVal
+ {
+ get
+ {
+ return hfSearch.Value;
+ }
+ set
+ {
+ hfSearch.Value = value;
+ }
+ }
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ // aggiungo nuovo record...50% iva così è primo...
+ BillingProxy.man.taVAT.Insert(0.5, "NUOVA VAT", true, false);
+ grView.DataBind();
+ }
+
+ public bool isUnused(object cIva)
+ {
+ bool answ = false;
+ int c_iva = 0;
+ try
+ {
+ c_iva = Convert.ToInt16(cIva);
+ }
+ catch
+ { }
+ // verifico NON sia utilizzato...
+ //answ = BillingProxy.man.taRows.getByC_iva(c_iva).Count == 0;
+ var result = MedAPModel.VatSel(c_iva);
+ answ = (result != null);
+ return answ;
+ }
+ }
}
\ No newline at end of file
diff --git a/MedAP/WebUserControl/mod_VAT.ascx.designer.cs b/MedAP/WebUserControl/mod_VAT.ascx.designer.cs
index e9eb1c4..6bdba37 100644
--- a/MedAP/WebUserControl/mod_VAT.ascx.designer.cs
+++ b/MedAP/WebUserControl/mod_VAT.ascx.designer.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
+//
+// Codice generato da uno strumento.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
+// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
+// il codice viene rigenerato.
+//
//------------------------------------------------------------------------------
namespace MedAP.WebUserControls {
@@ -13,29 +13,29 @@ namespace MedAP.WebUserControls {
public partial class mod_VAT {
///
- /// grView control.
+ /// Controllo grView.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.GridView grView;
///
- /// ods control.
+ /// Controllo ods.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
///
- /// hfSearch control.
+ /// Controllo hfSearch.
///
///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.HiddenField hfSearch;
}
diff --git a/MedAP/WebUserControl/mod_testata.ascx b/MedAP/WebUserControl/mod_testata.ascx
index e473600..7f283ac 100644
--- a/MedAP/WebUserControl/mod_testata.ascx
+++ b/MedAP/WebUserControl/mod_testata.ascx
@@ -24,7 +24,7 @@
diff --git a/MedAP/WebUserControl/mod_testata.ascx.cs b/MedAP/WebUserControl/mod_testata.ascx.cs
index adafc00..96894d2 100644
--- a/MedAP/WebUserControl/mod_testata.ascx.cs
+++ b/MedAP/WebUserControl/mod_testata.ascx.cs
@@ -65,6 +65,40 @@ namespace MedAP.WebUserControls
}
}
///
+ public string CognomeNome
+ {
+ get
+ {
+ string answ = "-";
+ try
+ {
+ answ = SteamWare.devicesAuthProxy.stObj.CognomeNome;
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ ///
+ public string currentIP
+ {
+ get
+ {
+ string answ = "0.0.0.0";
+ try
+ {
+ answ = Request.UserHostAddress;
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ ///
public string fullVers
diff --git a/MedAP/WebUserControl/mod_testata.ascx.designer.cs b/MedAP/WebUserControl/mod_testata.ascx.designer.cs
index b86f7fe..5af0fa0 100644
--- a/MedAP/WebUserControl/mod_testata.ascx.designer.cs
+++ b/MedAP/WebUserControl/mod_testata.ascx.designer.cs
@@ -92,5 +92,32 @@ namespace MedAP.WebUserControls {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
///
protected global::System.Web.UI.WebControls.XmlDataSource XmlMenu;
+
+ ///
+ protected global::System.Web.UI.WebControls.Image logoSW;
+
+ ///
+ protected global::System.Web.UI.WebControls.Image testoSW;
+
+ ///
+ protected global::System.Web.UI.WebControls.HyperLink hlUserAdmin;
}
}
diff --git a/MedAP/menu.aspx b/MedAP/menu.aspx
index 7d6b29a..b33e1f1 100644
--- a/MedAP/menu.aspx
+++ b/MedAP/menu.aspx
@@ -17,7 +17,7 @@