avanzamento x preselezione dati filtraggio NC

This commit is contained in:
Samuele E. Locatelli
2015-06-25 17:10:14 +02:00
parent 77ddff39e1
commit bcb45d659e
15 changed files with 378 additions and 100 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4 -2
View File
@@ -9,6 +9,8 @@
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MCon" runat="server">
<uc1:mod_elencoNC runat="server" id="mod_elencoNC" />
<uc1:mod_assegnaNC runat="server" id="mod_assegnaNC" />
<div class="container-flow" style="padding: 4px 12px;">
<uc1:mod_elencoNC runat="server" ID="mod_elencoNC" />
<uc1:mod_assegnaNC runat="server" ID="mod_assegnaNC" />
</div>
</asp:Content>
+18
View File
@@ -11,7 +11,25 @@ namespace GMW
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
fixVisibCtrl();
}
mod_elencoNC.eh_selValore += mod_elencoNC_eh_selValore;
}
/// <summary>
/// evento nuovo valore IdxNC selezionato/deselezionato
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_elencoNC_eh_selValore(object sender, EventArgs e)
{
fixVisibCtrl();
}
private void fixVisibCtrl()
{
mod_assegnaNC.Visible = mod_elencoNC.idxNcSel > 0;
}
}
}
+9 -3
View File
@@ -2,13 +2,19 @@
<%@ Register Src="~/WebUserControls/mod_selPeriodo.ascx" TagPrefix="uc1" TagName="mod_selPeriodo" %>
<div class="row text-center" style="margin: 5px;">
<div class="col-xs-6">
<div class="col-xs-5">
<uc1:mod_selPeriodo runat="server" ID="mod_selPeriodo" />
</div>
<div class="col-xs-3" style="font-size: 0.8em;">
<asp:Label runat="server" ID="lblTipoUdc"><%: traduci("lblTipoUdc") %></asp:Label>
<asp:DropDownList runat="server" ID="ddlSelTipo" DataSourceID="odsTipoUdc" DataValueField="CodBilancia" DataTextField="DescrImpianto" AutoPostBack="True" OnSelectedIndexChanged="ddlSelTipo_SelectedIndexChanged" />
<asp:ObjectDataSource runat="server" ID="odsTipoUdc" OldValuesParameterFormatString="original_{0}" SelectMethod="getBilanceNC" TypeName="GMW_data.DS_ApplicazioneTableAdapters.AnagBilanceTableAdapter"></asp:ObjectDataSource>
</div>
<div class="col-xs-6">
<uc1:mod_selPeriodo runat="server" ID="mod_selPeriodo" />
<div class="col-xs-3" style="font-size: 0.8em;">
<asp:TextBox runat="server" ID="txtSearch" placeholder="ricerca note / linee" Width="100%" />
</div>
<div class="col-xs-1" style="font-size: 0.8em;">
<asp:LinkButton runat="server" ID="lbSave" Visible="true" CssClass="btn btn-default"><i class="fa fa-floppy-o fa-2x"></i> <%: traduci("btnSave") %></asp:LinkButton>
</div>
</div>
<div class="row text-center">
+39 -1
View File
@@ -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();
}
/// <summary>
/// sistema selezione da valori db della NC corrente
/// </summary>
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
{ }
}
}
/// <summary>
/// idxNC selezionato
/// </summary>
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();
+20 -2
View File
@@ -12,6 +12,15 @@ namespace GMW.WebUserControls {
public partial class mod_assegnaNC {
/// <summary>
/// mod_selPeriodo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_selPeriodo mod_selPeriodo;
/// <summary>
/// lblTipoUdc control.
/// </summary>
@@ -40,13 +49,22 @@ namespace GMW.WebUserControls {
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoUdc;
/// <summary>
/// mod_selPeriodo control.
/// txtSearch control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_selPeriodo mod_selPeriodo;
protected global::System.Web.UI.WebControls.TextBox txtSearch;
/// <summary>
/// lbSave control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbSave;
/// <summary>
/// grView control.
+33 -30
View File
@@ -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" %>
<div runat="server" id="divSelezione" class="row" style="padding: 4px 12px;">
<div runat="server" id="divSelezione" class="row">
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-addon" id="grpSel" style="min-width: 110px;">SELEZIONE</span>
<asp:label runat="server" ID="lblSel" class="form-control" aria-describedby="grpSel">Cod NC - Descrizione NC</asp:label>
<span class="input-group-btn"><asp:LinkButton runat="server" ID="lbReset" class="btn btn-default" OnClick="lbReset_Click"><i class="fa fa-close"></i> <%: traduci("Cancel") %></asp:LinkButton></span>
<asp:Label runat="server" ID="lblSel" class="form-control" aria-describedby="grpSel">Cod NC - Descrizione NC</asp:Label>
<span class="input-group-btn">
<asp:LinkButton runat="server" ID="lbReset" class="btn btn-default" OnClick="lbReset_Click"><i class="fa fa-close"></i> <%: traduci("Cancel") %></asp:LinkButton></span>
</div>
</div>
</div>
<div runat="server" id="divElenco" class="row" style="padding: 4px 12px;">
<div runat="server" id="divElenco" class="row">
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-addon" id="grpAdd" style="min-width: 110px;">RICERCA</span>
<asp:TextBox runat="server" ID="txtSearch" class="form-control" placeholder="Codice NC" aria-describedby="grpAdd" AutoPostBack="True" OnTextChanged="txtSearch_TextChanged"></asp:TextBox>
<span class="input-group-btn"><asp:LinkButton runat="server" ID="lbAdd" class="btn btn-default" OnClick="lbAdd_Click"><i class="fa fa-plus"></i> <%: traduci("AddNew") %></asp:LinkButton></span>
<span class="input-group-btn">
<asp:LinkButton runat="server" ID="lbAdd" class="btn btn-default" OnClick="lbAdd_Click"><i class="fa fa-plus"></i> <%: traduci("AddNew") %></asp:LinkButton></span>
</div>
</div>
<div class="col-xs-12">
@@ -32,52 +34,53 @@
<asp:Label runat="server" ID="lblNoRecord" Text="Nessun record trovato" />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
<EditItemTemplate>
<asp:LinkButton ID="lbUpdate" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
&nbsp;<asp:LinkButton ID="lbCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select"><i class="fa fa-search fa-2x"></i></asp:LinkButton>
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select" CssClass="fa fa-search fa-2x" />
&nbsp;
<asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Edit" CssClass="fa fa-edit fa-2x" />
</ItemTemplate>
<HeaderTemplate>
<asp:LinkButton ID="lbReset" runat="server" OnClick="btnReset_Click"><i class="fa fa-refresh fa-2x"></i></asp:LinkButton>
<div style="text-align: center; margin: auto;">
<asp:LinkButton ID="lbReset" runat="server" OnClick="btnReset_Click"><i class="fa fa-refresh fa-2x"></i></asp:LinkButton>
</div>
</HeaderTemplate>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<HeaderStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:BoundField DataField="CodNC" HeaderText="CodNC" SortExpression="CodNC" />
<asp:BoundField DataField="DescrNC" HeaderText="DescrNC" SortExpression="DescrNC" />
<asp:BoundField DataField="TipoCart" HeaderText="TipoCart" SortExpression="TipoCart" />
<asp:BoundField DataField="DataFrom" HeaderText="DataFrom" SortExpression="DataFrom" />
<asp:BoundField DataField="DataTo" HeaderText="DataTo" SortExpression="DataTo" />
<asp:BoundField DataField="SearchNote" HeaderText="SearchNote" SortExpression="SearchNote" />
<asp:BoundField DataField="DtCreaz" HeaderText="DtCreaz" SortExpression="DtCreaz" />
<asp:BoundField DataField="DtCreaz" HeaderText="Creato" SortExpression="DtCreaz" DataFormatString="{0:yyyy/MM/dd} {0:HH:mm}" ReadOnly="true" ControlStyle-Width="10em" ItemStyle-Width="10em" />
<asp:BoundField DataField="CodNC" HeaderText="Cod NC" SortExpression="CodNC" ControlStyle-Width="20em" />
<asp:BoundField DataField="DescrNC" HeaderText="Descrizione" SortExpression="DescrNC" ControlStyle-Width="50em" />
<%--<asp:BoundField DataField="TipoCart" HeaderText="TipoCart" SortExpression="TipoCart" ReadOnly="true" />--%>
<asp:TemplateField HeaderText="Criteri" SortExpression="">
<ItemTemplate>
<div>
<asp:Label ID="lblTipoCart" runat="server" Text='<%# Eval("TipoCart") + " - " + Eval("SearchNote") %>' />
</div>
<div>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DataFrom", "{0:yyyy/MM/dd} {0:HH:mm}") + " --> " + Eval("DataTo", "{0:yyyy/MM/dd} {0:HH:mm}") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getLastOnes" TypeName="GMW_data.DS_ApplicazioneTableAdapters.ElencoNCTableAdapter" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery" FilterExpression=" CodNC LIKE '%{0}%' OR DescrNC LIKE '%{0}%' OR TipoCart LIKE '%{0}%' OR SearchNote LIKE '%{0}%' ">
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getLastOnes" TypeName="GMW_data.DS_ApplicazioneTableAdapters.ElencoNCTableAdapter" DeleteMethod="deleteQuery" UpdateMethod="updNome" FilterExpression=" CodNC LIKE '%{0}%' OR DescrNC LIKE '%{0}%' OR TipoCart LIKE '%{0}%' OR SearchNote LIKE '%{0}%' ">
<FilterParameters>
<asp:ControlParameter ControlID="txtSearch" DefaultValue="*" Type="String" Name="search" PropertyName="Text" />
</FilterParameters>
<DeleteParameters>
<asp:Parameter Name="Original_IdxNC" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="CodNC" Type="String" />
<asp:Parameter Name="DescrNC" Type="String" />
<asp:Parameter Name="TipoCart" Type="String" />
<asp:Parameter Name="DataFrom" Type="DateTime" />
<asp:Parameter Name="DataTo" Type="DateTime" />
<asp:Parameter Name="SearchNote" Type="String" />
<asp:Parameter Name="DtCreaz" Type="DateTime" />
</InsertParameters>
<SelectParameters>
<asp:Parameter DefaultValue="200" Name="num2show" Type="Int32" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="CodNC" Type="String" />
<asp:Parameter Name="DescrNC" Type="String" />
<asp:Parameter Name="TipoCart" Type="String" />
<asp:Parameter Name="DataFrom" Type="DateTime" />
<asp:Parameter Name="DataTo" Type="DateTime" />
<asp:Parameter Name="SearchNote" Type="String" />
<asp:Parameter Name="DtCreaz" Type="DateTime" />
<asp:Parameter Name="Original_IdxNC" Type="Int32" />
</UpdateParameters>
</asp:ObjectDataSource>
+32 -12
View File
@@ -11,6 +11,20 @@ namespace GMW.WebUserControls
{
public partial class mod_elencoNC : System.Web.UI.UserControl
{
/// <summary>
/// evento selezione/deselezione
/// </summary>
public event EventHandler eh_selValore;
/// <summary>
/// sollevo evento selezione /deselezione
/// </summary>
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
/// <summary>
/// idxNC selezionato
/// </summary>
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();
//}
}
/// <summary>
/// resetto selezione
@@ -110,13 +124,19 @@ namespace GMW.WebUserControls
grView.SelectedIndex = -1;
grView.DataBind();
fixVisibility();
raiseEvent();
}
/// <summary>
/// selezionato valore IdxNC
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// salvo chiave IdxNC
idxNcSel = Convert.ToInt32(grView.SelectedDataKey["IdxNC"]);
fixVisibility();
raiseEvent();
}
}
BIN
View File
Binary file not shown.
Binary file not shown.
+149 -16
View File
@@ -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<int> num2show) {
public virtual DS_Applicazione.ElencoNCDataTable getByKey(global::System.Nullable<int> 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<int> 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<global::System.DateTime> DataFrom, global::System.Nullable<global::System.DateTime> DataTo, string SearchNote, global::System.Nullable<global::System.DateTime> 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<global::System.DateTime> DataFrom, global::System.Nullable<global::System.DateTime> DataTo, string SearchNote, global::System.Nullable<global::System.DateTime> DtCreaz, global::System.Nullable<int> 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<global::System.DateTime> DataFrom, global::System.Nullable<global::System.DateTime> DataTo, string SearchNote, global::System.Nullable<int> 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<int> 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;
}
}
/// <summary>
+46 -7
View File
@@ -1901,6 +1901,17 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
</DbCommand>
</DeleteCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_ENC_getByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKey" GetMethodModifier="Public" GetMethodName="getByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKey" UserSourceName="getByKey">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ENC_getByKey</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxNC" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_ENC_getLastOnes" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getLastOnes" GetMethodModifier="Public" GetMethodName="getLastOnes" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getLastOnes" UserSourceName="getLastOnes">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -1947,6 +1958,34 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
</DbCommand>
</UpdateCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_ENC_updFilt" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updFilt" Modifier="Public" Name="updFilt" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="updFilt">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ENC_updFilt</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TipoCart" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataFrom" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataTo" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@SearchNote" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_IdxNC" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_ENC_updNome" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updNome" Modifier="Public" Name="updNome" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="updNome">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ENC_updNome</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodNC" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DescrNC" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_IdxNC" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
@@ -3120,7 +3159,7 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ElencoNC" msprop:Generator_TableClassName="ElencoNCDataTable" msprop:Generator_TableVarName="tableElencoNC" msprop:Generator_TablePropName="ElencoNC" msprop:Generator_RowDeletingName="ElencoNCRowDeleting" msprop:Generator_RowChangingName="ElencoNCRowChanging" msprop:Generator_RowEvHandlerName="ElencoNCRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoNCRowDeleted" msprop:Generator_UserTableName="ElencoNC" msprop:Generator_RowChangedName="ElencoNCRowChanged" msprop:Generator_RowEvArgName="ElencoNCRowChangeEvent" msprop:Generator_RowClassName="ElencoNCRow">
<xs:element name="ElencoNC" msprop:Generator_TableClassName="ElencoNCDataTable" msprop:Generator_TableVarName="tableElencoNC" msprop:Generator_RowChangedName="ElencoNCRowChanged" msprop:Generator_TablePropName="ElencoNC" msprop:Generator_RowDeletingName="ElencoNCRowDeleting" msprop:Generator_RowChangingName="ElencoNCRowChanging" msprop:Generator_RowEvHandlerName="ElencoNCRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoNCRowDeleted" msprop:Generator_RowClassName="ElencoNCRow" msprop:Generator_UserTableName="ElencoNC" msprop:Generator_RowEvArgName="ElencoNCRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxNC" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxNC" msprop:Generator_ColumnPropNameInRow="IdxNC" msprop:Generator_ColumnPropNameInTable="IdxNCColumn" msprop:Generator_UserColumnName="IdxNC" type="xs:int" />
@@ -3241,12 +3280,12 @@ SELECT IdxNC, CodNC, DescrNC, TipoCart, DataFrom, DataTo, SearchNote, DtCreaz FR
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FK_AnagImpianti_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagImpianti" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagImpianti" msprop:Generator_ChildPropName="GetAnagImpiantiRows" msprop:Generator_UserRelationName="FK_AnagImpianti_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_AnagImpianti_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
<msdata:Relationship name="FK_ElencoCartellini_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="ElencoCartellini" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
<msdata:Relationship name="FK_ElencoCartellini_AnagStatiProdotto" msdata:parent="AnagStatiProdotto" msdata:child="ElencoCartellini" msdata:parentkey="CodStato" msdata:childkey="CodStato" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_UserParentTable="AnagStatiProdotto" msprop:Generator_ParentPropName="AnagStatiProdottoRow" />
<msdata:Relationship name="FK_AnagOperatori_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagOperatori" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagOperatori" msprop:Generator_ChildPropName="GetAnagOperatoriRows" msprop:Generator_UserRelationName="FK_AnagOperatori_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_AnagOperatori_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
<msdata:Relationship name="FK_AnagParticolari_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagParticolari" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagParticolari" msprop:Generator_ChildPropName="GetAnagParticolariRows" msprop:Generator_UserRelationName="FK_AnagParticolari_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_AnagParticolari_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
<msdata:Relationship name="FK_Soggetti2Utente_AnagOperatori" msdata:parent="AnagOperatori" msdata:child="Soggetti2Utente" msdata:parentkey="CodSoggetto" msdata:childkey="CodSoggetto" msprop:Generator_UserChildTable="Soggetti2Utente" msprop:Generator_ChildPropName="GetSoggetti2UtenteRows" msprop:Generator_UserRelationName="FK_Soggetti2Utente_AnagOperatori" msprop:Generator_RelationVarName="relationFK_Soggetti2Utente_AnagOperatori" msprop:Generator_UserParentTable="AnagOperatori" msprop:Generator_ParentPropName="AnagOperatoriRow" />
<msdata:Relationship name="FK_AnagImpianti_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagImpianti" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagImpianti" msprop:Generator_ChildPropName="GetAnagImpiantiRows" msprop:Generator_UserRelationName="FK_AnagImpianti_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_AnagImpianti_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
<msdata:Relationship name="FK_ElencoCartellini_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="ElencoCartellini" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
<msdata:Relationship name="FK_ElencoCartellini_AnagStatiProdotto" msdata:parent="AnagStatiProdotto" msdata:child="ElencoCartellini" msdata:parentkey="CodStato" msdata:childkey="CodStato" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_ParentPropName="AnagStatiProdottoRow" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_UserParentTable="AnagStatiProdotto" />
<msdata:Relationship name="FK_AnagOperatori_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagOperatori" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagOperatori" msprop:Generator_ChildPropName="GetAnagOperatoriRows" msprop:Generator_UserRelationName="FK_AnagOperatori_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_AnagOperatori_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
<msdata:Relationship name="FK_AnagParticolari_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagParticolari" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagParticolari" msprop:Generator_ChildPropName="GetAnagParticolariRows" msprop:Generator_UserRelationName="FK_AnagParticolari_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_AnagParticolari_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
<msdata:Relationship name="FK_Soggetti2Utente_AnagOperatori" msdata:parent="AnagOperatori" msdata:child="Soggetti2Utente" msdata:parentkey="CodSoggetto" msdata:childkey="CodSoggetto" msprop:Generator_UserChildTable="Soggetti2Utente" msprop:Generator_ChildPropName="GetSoggetti2UtenteRows" msprop:Generator_UserRelationName="FK_Soggetti2Utente_AnagOperatori" msprop:Generator_ParentPropName="AnagOperatoriRow" msprop:Generator_RelationVarName="relationFK_Soggetti2Utente_AnagOperatori" msprop:Generator_UserParentTable="AnagOperatori" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+28 -27
View File
@@ -4,31 +4,32 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="59" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="463" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:AnagStati" ZOrder="26" X="867" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagTipoDichiaraz" ZOrder="12" X="828" Y="719" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagStatiProdotto" ZOrder="19" X="157" Y="722" Height="134" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:RelazUDC" ZOrder="2" X="27" Y="249" Height="210" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:AnagImpianti" ZOrder="24" X="853" Y="19" Height="191" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagCompanySito" ZOrder="23" X="1129" Y="83" Height="172" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagBilance" ZOrder="1" X="858" Y="224" Height="210" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ElencoCartellini" ZOrder="3" X="464" Y="4" Height="761" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="520" />
<Shape ID="DesignTable:AnagImballi" ZOrder="21" X="72" Y="488" Height="153" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_ArtInProd" ZOrder="15" X="1181" Y="757" Height="324" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagOperatori" ZOrder="11" X="488" Y="821" Height="267" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:AnagClienti" ZOrder="20" X="792" Y="995" Height="153" Width="269" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:AnagParticolari" ZOrder="18" X="1190" Y="331" Height="210" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagFamiglie" ZOrder="16" X="1193" Y="567" Height="134" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:Soggetti2Utente" ZOrder="13" X="89" Y="880" Height="172" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_specParticolari" ZOrder="5" X="30" Y="-23" Height="267" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:ElencoPostazioni" ZOrder="8" X="1167" Y="1106" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:stp_prtCartLiquidiF10ByUDC" ZOrder="7" X="289" Y="22" Height="148" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="80" />
<Shape ID="DesignTable:stp_prtCartLiquidiF18ByUDC" ZOrder="6" X="291" Y="196" Height="147" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="79" />
<Shape ID="DesignTable:v_RapQualNote" ZOrder="4" X="85" Y="1082" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagStati" ZOrder="27" X="867" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagTipoDichiaraz" ZOrder="13" X="828" Y="719" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagStatiProdotto" ZOrder="20" X="157" Y="722" Height="134" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:RelazUDC" ZOrder="3" X="27" Y="249" Height="210" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:AnagImpianti" ZOrder="25" X="853" Y="19" Height="191" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagCompanySito" ZOrder="24" X="1129" Y="83" Height="172" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagBilance" ZOrder="2" X="858" Y="224" Height="210" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ElencoCartellini" ZOrder="4" X="464" Y="4" Height="761" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="520" />
<Shape ID="DesignTable:AnagImballi" ZOrder="22" X="72" Y="488" Height="153" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_ArtInProd" ZOrder="16" X="1181" Y="757" Height="324" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagOperatori" ZOrder="12" X="488" Y="821" Height="267" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:AnagClienti" ZOrder="21" X="461" Y="1143" Height="153" Width="269" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:AnagParticolari" ZOrder="19" X="1190" Y="331" Height="210" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagFamiglie" ZOrder="17" X="1193" Y="567" Height="134" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:Soggetti2Utente" ZOrder="14" X="89" Y="880" Height="172" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_specParticolari" ZOrder="6" X="30" Y="-23" Height="267" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:ElencoPostazioni" ZOrder="9" X="1167" Y="1106" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:stp_prtCartLiquidiF10ByUDC" ZOrder="8" X="289" Y="22" Height="148" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="80" />
<Shape ID="DesignTable:stp_prtCartLiquidiF18ByUDC" ZOrder="7" X="291" Y="196" Height="147" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="79" />
<Shape ID="DesignTable:v_RapQualNote" ZOrder="5" X="85" Y="1082" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:ElencoNC" ZOrder="1" X="811" Y="943" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_AnagImpianti_AnagCompanySito" ZOrder="25" LineWidth="11">
<Connector ID="DesignRelation:FK_AnagImpianti_AnagCompanySito" ZOrder="26" LineWidth="11">
<RoutePoints>
<Point>
<X>1129</X>
@@ -40,7 +41,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagCompanySito" ZOrder="10" LineWidth="11">
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagCompanySito" ZOrder="11" LineWidth="11">
<RoutePoints>
<Point>
<X>1170</X>
@@ -56,7 +57,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagStatiProdotto" ZOrder="22" LineWidth="11">
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagStatiProdotto" ZOrder="23" LineWidth="11">
<RoutePoints>
<Point>
<X>336</X>
@@ -72,7 +73,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_AnagOperatori_AnagCompanySito" ZOrder="9" LineWidth="11">
<Connector ID="DesignRelation:FK_AnagOperatori_AnagCompanySito" ZOrder="10" LineWidth="11">
<RoutePoints>
<Point>
<X>1154</X>
@@ -88,7 +89,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_AnagParticolari_AnagCompanySito" ZOrder="17" LineWidth="11">
<Connector ID="DesignRelation:FK_AnagParticolari_AnagCompanySito" ZOrder="18" LineWidth="11">
<RoutePoints>
<Point>
<X>1248</X>
@@ -100,7 +101,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Soggetti2Utente_AnagOperatori" ZOrder="14" LineWidth="11">
<Connector ID="DesignRelation:FK_Soggetti2Utente_AnagOperatori" ZOrder="15" LineWidth="11">
<RoutePoints>
<Point>
<X>488</X>