diff --git a/GMW/WebUserControls/mod_assegnaNC.ascx.cs b/GMW/WebUserControls/mod_assegnaNC.ascx.cs
index 719adf5b..b1d402f5 100644
--- a/GMW/WebUserControls/mod_assegnaNC.ascx.cs
+++ b/GMW/WebUserControls/mod_assegnaNC.ascx.cs
@@ -5,6 +5,7 @@ using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
+using GMW_data;
namespace GMW.WebUserControls
{
@@ -12,10 +13,47 @@ namespace GMW.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
- //doUpdate();
mod_selPeriodo.eh_doUpdate += mod_selPeriodo_eh_doUpdate;
+ fixSelections();
+ }
+ ///
+ /// sistema selezione da valori db della NC corrente
+ ///
+ private void fixSelections()
+ {
+ if (idxNcSel > 0)
+ {
+ try
+ {
+ // recupero dati e imposto filtri...
+ DS_Applicazione.ElencoNCRow riga = DataProxy.obj.taENC.getByKey(idxNcSel)[0];
+ txtSearch.Text = riga.SearchNote;
+ ddlSelTipo.SelectedValue = riga.TipoCart;
+ intervalloDate intervallo = new intervalloDate();
+ intervallo.inizio = riga.DataFrom;
+ intervallo.fine = riga.DataTo;
+ mod_selPeriodo.intervalloAnalisi = intervallo;
+ mod_selPeriodo.doUpdate(false);
+ }
+ catch
+ { }
+ }
}
+ ///
+ /// idxNC selezionato
+ ///
+ public int idxNcSel
+ {
+ get
+ {
+ return memLayer.ML.IntSessionObj("idxNcsel");
+ }
+ set
+ {
+ memLayer.ML.setSessionVal("idxNcsel", value);
+ }
+ }
void mod_selPeriodo_eh_doUpdate(object sender, EventArgs e)
{
doUpdate();
diff --git a/GMW/WebUserControls/mod_assegnaNC.ascx.designer.cs b/GMW/WebUserControls/mod_assegnaNC.ascx.designer.cs
index 8bb75462..a3c363f6 100644
--- a/GMW/WebUserControls/mod_assegnaNC.ascx.designer.cs
+++ b/GMW/WebUserControls/mod_assegnaNC.ascx.designer.cs
@@ -12,6 +12,15 @@ namespace GMW.WebUserControls {
public partial class mod_assegnaNC {
+ ///
+ /// mod_selPeriodo control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GMW.WebUserControls.mod_selPeriodo mod_selPeriodo;
+
///
/// lblTipoUdc control.
///
@@ -40,13 +49,22 @@ namespace GMW.WebUserControls {
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoUdc;
///
- /// mod_selPeriodo control.
+ /// txtSearch control.
///
///
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
///
- protected global::GMW.WebUserControls.mod_selPeriodo mod_selPeriodo;
+ protected global::System.Web.UI.WebControls.TextBox txtSearch;
+
+ ///
+ /// lbSave control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.LinkButton lbSave;
///
/// grView control.
diff --git a/GMW/WebUserControls/mod_elencoNC.ascx b/GMW/WebUserControls/mod_elencoNC.ascx
index 1c77cec0..8733fb8e 100644
--- a/GMW/WebUserControls/mod_elencoNC.ascx
+++ b/GMW/WebUserControls/mod_elencoNC.ascx
@@ -1,21 +1,23 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoNC.ascx.cs" Inherits="GMW.WebUserControls.mod_elencoNC" %>
<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagPrefix="uc1" TagName="mod_righePag" %>
-
+
-
+
@@ -32,52 +34,53 @@
-
+
+
+
+
+
-
+
+
+
-
+
-
-
-
-
-
-
-
+
+
+
+ <%----%>
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/GMW/WebUserControls/mod_elencoNC.ascx.cs b/GMW/WebUserControls/mod_elencoNC.ascx.cs
index 0ae78500..122a9232 100644
--- a/GMW/WebUserControls/mod_elencoNC.ascx.cs
+++ b/GMW/WebUserControls/mod_elencoNC.ascx.cs
@@ -11,6 +11,20 @@ namespace GMW.WebUserControls
{
public partial class mod_elencoNC : System.Web.UI.UserControl
{
+ ///
+ /// evento selezione/deselezione
+ ///
+ public event EventHandler eh_selValore;
+ ///
+ /// sollevo evento selezione /deselezione
+ ///
+ protected void raiseEvent()
+ {
+ if (eh_selValore != null)
+ {
+ eh_selValore(this, new EventArgs());
+ }
+ }
protected void Page_Load(object sender, EventArgs e)
{
fixVisibility();
@@ -18,7 +32,7 @@ namespace GMW.WebUserControls
///
/// idxNC selezionato
///
- protected int idxNcSel
+ public int idxNcSel
{
get
{
@@ -38,7 +52,16 @@ namespace GMW.WebUserControls
// se ho un valore NC selezionato...
if (idxNcSel > 0)
{
- lblSel.Text = string.Format("IdxNC: {0}", idxNcSel);
+ try
+ {
+ int idxNC=Convert.ToInt32(grView.SelectedDataKey["IdxNC"]);
+ DS_Applicazione.ElencoNCRow riga = DataProxy.obj.taENC.getByKey(idxNC)[0];
+ lblSel.Text = string.Format("Cod: {0} - {1} ({2:yyyy/MM/dd HH:mm})", riga.CodNC, riga.DescrNC, riga.DtCreaz);
+ }
+ catch
+ {
+ lblSel.Text = string.Format("IdxNC: {0}", idxNcSel);
+ }
showElenco = false;
fixVisibDiv(showElenco);
}
@@ -91,15 +114,6 @@ namespace GMW.WebUserControls
protected void txtSearch_TextChanged(object sender, EventArgs e)
{
resetSelezione();
- //if (txtSearch.Text != "")
- //{
- // grView.SelectedIndex = -1;
- // grView.DataBind();
- //}
- //else
- //{
- // resetSelezione();
- //}
}
///
/// resetto selezione
@@ -110,13 +124,19 @@ namespace GMW.WebUserControls
grView.SelectedIndex = -1;
grView.DataBind();
fixVisibility();
+ raiseEvent();
}
-
+ ///
+ /// selezionato valore IdxNC
+ ///
+ ///
+ ///
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// salvo chiave IdxNC
idxNcSel = Convert.ToInt32(grView.SelectedDataKey["IdxNC"]);
fixVisibility();
+ raiseEvent();
}
}
diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll
index 0dad91bc..45b2e09c 100644
Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ
diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll
index c3478f06..d1f75e95 100644
Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ
diff --git a/GMW_data/DS_Applicazione.Designer.cs b/GMW_data/DS_Applicazione.Designer.cs
index 9214077d..4ece3c0a 100644
--- a/GMW_data/DS_Applicazione.Designer.cs
+++ b/GMW_data/DS_Applicazione.Designer.cs
@@ -24986,7 +24986,7 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.ElencoNC";
@@ -24999,25 +24999,19 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxNC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
- this._commandCollection[2].CommandText = "dbo.stp_ENC_getLastOnes";
+ this._commandCollection[2].CommandText = "dbo.stp_ENC_getByKey";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@num2show", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxNC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
- this._commandCollection[3].CommandText = "dbo.stp_ENC_insertQuery";
+ this._commandCollection[3].CommandText = "dbo.stp_ENC_getLastOnes";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodNC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrNC", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoCart", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SearchNote", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtCreaz", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@num2show", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
- this._commandCollection[4].CommandText = "dbo.stp_ENC_updateQuery";
+ this._commandCollection[4].CommandText = "dbo.stp_ENC_insertQuery";
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodNC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -25027,7 +25021,37 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SearchNote", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtCreaz", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxNC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[5].Connection = this.Connection;
+ this._commandCollection[5].CommandText = "dbo.stp_ENC_updateQuery";
+ this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodNC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrNC", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoCart", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SearchNote", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtCreaz", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxNC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[6].Connection = this.Connection;
+ this._commandCollection[6].CommandText = "dbo.stp_ENC_updFilt";
+ this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoCart", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SearchNote", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxNC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[7].Connection = this.Connection;
+ this._commandCollection[7].CommandText = "dbo.stp_ENC_updNome";
+ this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodNC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrNC", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxNC", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -25058,8 +25082,25 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_Applicazione.ElencoNCDataTable getLastOnes(global::System.Nullable num2show) {
+ public virtual DS_Applicazione.ElencoNCDataTable getByKey(global::System.Nullable IdxNC) {
this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((IdxNC.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxNC.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_Applicazione.ElencoNCDataTable dataTable = new DS_Applicazione.ElencoNCDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Applicazione.ElencoNCDataTable getLastOnes(global::System.Nullable num2show) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
if ((num2show.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(num2show.Value));
}
@@ -25380,7 +25421,7 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)]
public virtual int insertQuery(string CodNC, string DescrNC, string TipoCart, global::System.Nullable DataFrom, global::System.Nullable DataTo, string SearchNote, global::System.Nullable DtCreaz) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((CodNC == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -25445,7 +25486,7 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
public virtual int updateQuery(string CodNC, string DescrNC, string TipoCart, global::System.Nullable DataFrom, global::System.Nullable DataTo, string SearchNote, global::System.Nullable DtCreaz, global::System.Nullable Original_IdxNC) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
if ((CodNC == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -25510,6 +25551,98 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
}
return returnValue;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updFilt(string TipoCart, global::System.Nullable DataFrom, global::System.Nullable DataTo, string SearchNote, global::System.Nullable Original_IdxNC) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
+ if ((TipoCart == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(TipoCart));
+ }
+ if ((DataFrom.HasValue == true)) {
+ command.Parameters[2].Value = ((System.DateTime)(DataFrom.Value));
+ }
+ else {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((DataTo.HasValue == true)) {
+ command.Parameters[3].Value = ((System.DateTime)(DataTo.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((SearchNote == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(SearchNote));
+ }
+ if ((Original_IdxNC.HasValue == true)) {
+ command.Parameters[5].Value = ((int)(Original_IdxNC.Value));
+ }
+ else {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updNome(string CodNC, string DescrNC, global::System.Nullable Original_IdxNC) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
+ if ((CodNC == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(CodNC));
+ }
+ if ((DescrNC == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(DescrNC));
+ }
+ if ((Original_IdxNC.HasValue == true)) {
+ command.Parameters[3].Value = ((int)(Original_IdxNC.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
}
///
diff --git a/GMW_data/DS_Applicazione.xsd b/GMW_data/DS_Applicazione.xsd
index 4eef9a2e..debd8d43 100644
--- a/GMW_data/DS_Applicazione.xsd
+++ b/GMW_data/DS_Applicazione.xsd
@@ -1901,6 +1901,17 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
+
+
+
+ dbo.stp_ENC_getByKey
+
+
+
+
+
+
+
@@ -1947,6 +1958,34 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
+
+
+
+ dbo.stp_ENC_updFilt
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_ENC_updNome
+
+
+
+
+
+
+
+
+
@@ -3120,7 +3159,7 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
-
+
@@ -3241,12 +3280,12 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
-
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GMW_data/DS_Applicazione.xss b/GMW_data/DS_Applicazione.xss
index efc83a24..5e5ed955 100644
--- a/GMW_data/DS_Applicazione.xss
+++ b/GMW_data/DS_Applicazione.xss
@@ -4,31 +4,32 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
1129
@@ -40,7 +41,7 @@
-
+
1170
@@ -56,7 +57,7 @@
-
+
336
@@ -72,7 +73,7 @@
-
+
1154
@@ -88,7 +89,7 @@
-
+
1248
@@ -100,7 +101,7 @@
-
+
488