Bozza sel dettaglio destinazioni cliente

This commit is contained in:
Samuele Locatelli
2022-04-08 10:47:41 +02:00
parent 3404caaa2a
commit c7fbfff64f
9 changed files with 1723 additions and 130 deletions
+8
View File
@@ -490,6 +490,13 @@
<Compile Include="WebUserControls\cmp_currODL.ascx.designer.cs">
<DependentUpon>cmp_currODL.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_destClienti.ascx.cs">
<DependentUpon>cmp_destClienti.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\cmp_destClienti.ascx.designer.cs">
<DependentUpon>cmp_destClienti.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\cmp_dettLotti.ascx.cs">
<DependentUpon>cmp_dettLotti.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -936,6 +943,7 @@
<Content Include="SMART\prtSemilav.aspx" />
<Content Include="WebUserControls\cmp_creaLottoOUT.ascx" />
<Content Include="WebUserControls\cmp_currODL.ascx" />
<Content Include="WebUserControls\cmp_destClienti.ascx" />
<Content Include="WebUserControls\cmp_dettLotti.ascx" />
<Content Include="WebUserControls\cmp_elencoLotti.ascx" />
<Content Include="WebUserControls\cmp_elencoPedane.ascx" />
+139 -130
View File
@@ -1,5 +1,7 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_AnagCliFor.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_AnagCliFor" %>
<%@ Register Src="~/WebUserControls/cmp_numRow.ascx" TagPrefix="uc1" TagName="cmp_numRow" %>
<%@ Register Src="~/WebUserControls/cmp_destClienti.ascx" TagPrefix="uc1" TagName="cmp_destClienti" %>
<div class="card">
<div class="card-header">
@@ -16,136 +18,143 @@
</div>
</div>
<div class="card-body">
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="CodCliente" DataSourceID="ods" CssClass="table table-sm table-striped small" AllowPaging="True" OnRowDeleted="grView_RowDeleted" OnRowEditing="grView_RowEditing">
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="table-info" />
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:LinkButton ID="lbtReset" runat="server" OnClick="lbtReset_Click" CssClass="btn btn-primary btn-sm" Visible="true" ToolTip="Reset"><i class="fas fa-sync-alt"></i></asp:LinkButton>
</HeaderTemplate>
<EditItemTemplate>
<div class="text-nowrap">
<asp:LinkButton ID="lbtUpdate1" runat="server" CausesValidation="True" CommandName="Update" Text="Update" CssClass="btn btn-sm btn-success"><i class="fas fa-check-circle"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtCancel1" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-sm btn-warning"><i class="fas fa-ban"></i></asp:LinkButton>
</div>
</EditItemTemplate>
<ItemTemplate>
<div class="text-nowrap">
<asp:LinkButton ID="lbtSel" runat="server" CausesValidation="False" CommandName="Select" Text="Select" CssClass="btn btn-sm btn-info"><i class="fa fa-search"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" CssClass="btn btn-sm btn-primary"><i class="fa fa-edit"></i></asp:LinkButton>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CodCliente" SortExpression="CodCliente">
<EditItemTemplate>
<asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("CodCliente") %>' Width="10em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label7" runat="server" Text='<%# Eval("CodCliente") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="RagSociale" SortExpression="RagSociale">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RagSociale") %>' Width="20em"/>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("RagSociale") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Indirizzo" SortExpression="Indirizzo">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Indirizzo") %>' Width="15em"/>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("Indirizzo") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Localita" SortExpression="Localita">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Localita") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Localita") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Cap" SortExpression="Cap">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Cap") %>' Width="5em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Cap") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Provincia" SortExpression="Provincia">
<EditItemTemplate>
<asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Provincia") %>' Width="5em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label5" runat="server" Text='<%# Eval("Provincia") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Nazione" SortExpression="Nazione">
<EditItemTemplate>
<asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Nazione") %>' Width="2em"/>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label6" runat="server" Text='<%# Eval("Nazione") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:CheckBoxField DataField="IsCli" HeaderText="IsCli" SortExpression="IsCli" />
<asp:CheckBoxField DataField="IsFor" HeaderText="IsFor" SortExpression="IsFor" />
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:LinkButton ID="lbtAddNew" runat="server" OnClick="lbtAddNew_Click" CssClass="btn btn-success btn-sm" Visible="true" ToolTip="Add New" OnClientClick="return confirm('Sicuro di voler inserire un nuovo record?');"><i class="fas fa-plus"></i></asp:LinkButton>
</HeaderTemplate>
<EditItemTemplate>
<div class="text-nowrap">
<asp:LinkButton ID="lbtUpdate2" runat="server" CausesValidation="True" CommandName="Update" Text="Update" CssClass="btn btn-sm btn-success"><i class="fas fa-check-circle"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtCancel2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-sm btn-warning"><i class="fas fa-ban"></i></asp:LinkButton>
</div>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" OnClientClick="return confirm('Sicuro di voler procedere con eliminazione?');" CssClass="btn btn-sm btn-danger"><i class="fas fa-trash"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="Original_{0}" SelectMethod="getBySearch" TypeName="MagData.DS_MagTableAdapters.AnagClientiTableAdapter" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery">
<DeleteParameters>
<asp:Parameter Name="Original_CodCliente" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="CodCliente" Type="String" />
<asp:Parameter Name="RagSociale" Type="String" />
<asp:Parameter Name="Indirizzo" Type="String" />
<asp:Parameter Name="Localita" Type="String" />
<asp:Parameter Name="Cap" Type="String" />
<asp:Parameter Name="Provincia" Type="String" />
<asp:Parameter Name="Nazione" Type="String" />
<asp:Parameter Name="IsCli" Type="Boolean" />
<asp:Parameter Name="IsFor" Type="Boolean" />
</InsertParameters>
<SelectParameters>
<asp:SessionParameter DefaultValue="" Name="searchVal" SessionField="valoreSearch" Type="String" />
<asp:ControlParameter ControlID="chkShowCli" DefaultValue="true" Name="showCli" PropertyName="Checked" Type="Boolean" />
<asp:ControlParameter ControlID="chkShoFor" DefaultValue="true" Name="showFor" PropertyName="Checked" Type="Boolean" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="CodCliente" Type="String" />
<asp:Parameter Name="RagSociale" Type="String" />
<asp:Parameter Name="Indirizzo" Type="String" />
<asp:Parameter Name="Localita" Type="String" />
<asp:Parameter Name="Cap" Type="String" />
<asp:Parameter Name="Provincia" Type="String" />
<asp:Parameter Name="Nazione" Type="String" />
<asp:Parameter Name="IsCli" Type="Boolean" />
<asp:Parameter Name="IsFor" Type="Boolean" />
<asp:Parameter Name="Original_CodCliente" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
<div class="row">
<div runat="server" id="divMain" class="col-12">
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="CodCliente" DataSourceID="ods" CssClass="table table-sm table-striped small" AllowPaging="True" OnRowDeleted="grView_RowDeleted" OnRowEditing="grView_RowEditing" OnSelectedIndexChanging="grView_SelectedIndexChanging">
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="table-info" />
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:LinkButton ID="lbtReset" runat="server" OnClick="lbtReset_Click" CssClass="btn btn-primary btn-sm" Visible="true" ToolTip="Reset"><i class="fas fa-sync-alt"></i></asp:LinkButton>
</HeaderTemplate>
<EditItemTemplate>
<div class="text-nowrap">
<asp:LinkButton ID="lbtUpdate1" runat="server" CausesValidation="True" CommandName="Update" Text="Update" CssClass="btn btn-sm btn-success"><i class="fas fa-check-circle"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtCancel1" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-sm btn-warning"><i class="fas fa-ban"></i></asp:LinkButton>
</div>
</EditItemTemplate>
<ItemTemplate>
<div class="text-nowrap">
<asp:LinkButton ID="lbtSel" runat="server" CausesValidation="False" CommandName="Select" Text="Select" CssClass="btn btn-sm btn-info"><i class="fa fa-search"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" CssClass="btn btn-sm btn-primary"><i class="fa fa-edit"></i></asp:LinkButton>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CodCliente" SortExpression="CodCliente">
<EditItemTemplate>
<asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("CodCliente") %>' Width="10em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label7" runat="server" Text='<%# Eval("CodCliente") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="RagSociale" SortExpression="RagSociale">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RagSociale") %>' Width="20em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("RagSociale") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Indirizzo" SortExpression="Indirizzo">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Indirizzo") %>' Width="15em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("Indirizzo") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Localita" SortExpression="Localita">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Localita") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Localita") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Cap" SortExpression="Cap">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Cap") %>' Width="5em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Cap") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Provincia" SortExpression="Provincia">
<EditItemTemplate>
<asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Provincia") %>' Width="5em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label5" runat="server" Text='<%# Eval("Provincia") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Nazione" SortExpression="Nazione">
<EditItemTemplate>
<asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Nazione") %>' Width="2em" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label6" runat="server" Text='<%# Eval("Nazione") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:CheckBoxField DataField="IsCli" HeaderText="IsCli" SortExpression="IsCli" />
<asp:CheckBoxField DataField="IsFor" HeaderText="IsFor" SortExpression="IsFor" />
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:LinkButton ID="lbtAddNew" runat="server" OnClick="lbtAddNew_Click" CssClass="btn btn-success btn-sm" Visible="true" ToolTip="Add New" OnClientClick="return confirm('Sicuro di voler inserire un nuovo record?');"><i class="fas fa-plus"></i></asp:LinkButton>
</HeaderTemplate>
<EditItemTemplate>
<div class="text-nowrap">
<asp:LinkButton ID="lbtUpdate2" runat="server" CausesValidation="True" CommandName="Update" Text="Update" CssClass="btn btn-sm btn-success"><i class="fas fa-check-circle"></i></asp:LinkButton>
&nbsp;<asp:LinkButton ID="lbtCancel2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-sm btn-warning"><i class="fas fa-ban"></i></asp:LinkButton>
</div>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" OnClientClick="return confirm('Sicuro di voler procedere con eliminazione?');" CssClass="btn btn-sm btn-danger"><i class="fas fa-trash"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="Original_{0}" SelectMethod="getBySearch" TypeName="MagData.DS_MagTableAdapters.AnagClientiTableAdapter" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery">
<DeleteParameters>
<asp:Parameter Name="Original_CodCliente" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="CodCliente" Type="String" />
<asp:Parameter Name="RagSociale" Type="String" />
<asp:Parameter Name="Indirizzo" Type="String" />
<asp:Parameter Name="Localita" Type="String" />
<asp:Parameter Name="Cap" Type="String" />
<asp:Parameter Name="Provincia" Type="String" />
<asp:Parameter Name="Nazione" Type="String" />
<asp:Parameter Name="IsCli" Type="Boolean" />
<asp:Parameter Name="IsFor" Type="Boolean" />
</InsertParameters>
<SelectParameters>
<asp:SessionParameter DefaultValue="" Name="searchVal" SessionField="valoreSearch" Type="String" />
<asp:ControlParameter ControlID="chkShowCli" DefaultValue="true" Name="showCli" PropertyName="Checked" Type="Boolean" />
<asp:ControlParameter ControlID="chkShoFor" DefaultValue="true" Name="showFor" PropertyName="Checked" Type="Boolean" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="CodCliente" Type="String" />
<asp:Parameter Name="RagSociale" Type="String" />
<asp:Parameter Name="Indirizzo" Type="String" />
<asp:Parameter Name="Localita" Type="String" />
<asp:Parameter Name="Cap" Type="String" />
<asp:Parameter Name="Provincia" Type="String" />
<asp:Parameter Name="Nazione" Type="String" />
<asp:Parameter Name="IsCli" Type="Boolean" />
<asp:Parameter Name="IsFor" Type="Boolean" />
<asp:Parameter Name="Original_CodCliente" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
</div>
<div runat="server" id="divDetail" class="col-4">
<uc1:cmp_destClienti runat="server" ID="cmp_destClienti" />
</div>
</div>
</div>
<div class="card-footer text-right py-1">
<uc1:cmp_numRow runat="server" ID="cmp_numRow" />
@@ -43,6 +43,7 @@ namespace MP_MAG.WebUserControls
if (!Page.IsPostBack)
{
grView.PageSize = cmp_numRow.numRow;
fixDetailView(false);
}
cmp_numRow.eh_doRefresh += Cmp_numRow_eh_doRefresh;
}
@@ -55,6 +56,7 @@ namespace MP_MAG.WebUserControls
{
grView.SelectedIndex = -1;
grView.DataBind();
fixDetailView(false);
}
#endregion Public Methods
@@ -68,5 +70,20 @@ namespace MP_MAG.WebUserControls
{
grView.SelectedIndex = e.NewEditIndex;
}
protected void grView_SelectedIndexChanging(object sender, System.Web.UI.WebControls.GridViewSelectEventArgs e)
{
cmp_destClienti.codCli = $"{grView.SelectedValue}";
fixDetailView(true);
}
protected void fixDetailView(bool showDetail)
{
divMain.Visible = true;
divDetail.Visible = showDetail;
string mainCss = showDetail? "col-8": "col-12";
divMain.Attributes.Remove("class");
divMain.Attributes.Add("class", mainCss);
}
}
}
+27
View File
@@ -32,6 +32,15 @@ namespace MP_MAG.WebUserControls
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkShoFor;
/// <summary>
/// divMain control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMain;
/// <summary>
/// grView control.
/// </summary>
@@ -50,6 +59,24 @@ namespace MP_MAG.WebUserControls
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// divDetail control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDetail;
/// <summary>
/// cmp_destClienti control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::MP_MAG.WebUserControls.cmp_destClienti cmp_destClienti;
/// <summary>
/// cmp_numRow control.
/// </summary>
@@ -0,0 +1,23 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_destClienti.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_destClienti" %>
<asp:HiddenField runat="server" ID="hfCodCli" />
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="CodCliente,CodDestinazione" DataSourceID="ods" CssClass="table table-sm table-striped small" AllowPaging="True">
<Columns>
<asp:BoundField DataField="CodCliente" HeaderText="CodCliente" ReadOnly="True" SortExpression="CodCliente" />
<asp:BoundField DataField="CodDestinazione" HeaderText="CodDestinazione" ReadOnly="True" SortExpression="CodDestinazione" />
<asp:BoundField DataField="DescDestinazione" HeaderText="DescDestinazione" SortExpression="DescDestinazione" />
<asp:BoundField DataField="Indirizzo" HeaderText="Indirizzo" SortExpression="Indirizzo" />
<asp:BoundField DataField="Cap" HeaderText="Cap" SortExpression="Cap" />
<asp:BoundField DataField="Localita" HeaderText="Localita" SortExpression="Localita" />
<asp:BoundField DataField="Provincia" HeaderText="Provincia" SortExpression="Provincia" />
<asp:BoundField DataField="Nazione" HeaderText="Nazione" SortExpression="Nazione" />
</Columns>
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="table-info" />
</asp:GridView>
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="original_{0}" SelectMethod="getByCodCli" TypeName="MagData.DS_MagTableAdapters.AnagDestinClientiTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfCodCli" DefaultValue="###" Name="CodCliente" PropertyName="Value" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MP_MAG.WebUserControls
{
public partial class cmp_destClienti : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
public string codCli
{
get
{
return hfCodCli.Value;
}
set
{
hfCodCli.Value = value;
}
}
}
}
+44
View File
@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MP_MAG.WebUserControls
{
public partial class cmp_destClienti
{
/// <summary>
/// hfCodCli 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.HiddenField hfCodCli;
/// <summary>
/// grView 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.GridView grView;
/// <summary>
/// ods 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.ObjectDataSource ods;
}
}
+1268
View File
File diff suppressed because it is too large Load Diff
+168
View File
@@ -820,6 +820,107 @@ FROM dbo.v_Macchine
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagDestinClientiTableAdapter" GeneratorDataComponentClassName="AnagDestinClientiTableAdapter" Name="AnagDestinClienti" UserDataComponentName="AnagDestinClientiTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.AnagDestinClienti" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [AnagDestinClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ([CodDestinazione] = @Original_CodDestinazione) AND ([DescDestinazione] = @Original_DescDestinazione) AND ((@IsNull_Indirizzo = 1 AND [Indirizzo] IS NULL) OR ([Indirizzo] = @Original_Indirizzo)) AND ((@IsNull_Cap = 1 AND [Cap] IS NULL) OR ([Cap] = @Original_Cap)) AND ((@IsNull_Localita = 1 AND [Localita] IS NULL) OR ([Localita] = @Original_Localita)) AND ((@IsNull_Provincia = 1 AND [Provincia] IS NULL) OR ([Provincia] = @Original_Provincia)) AND ((@IsNull_Nazione = 1 AND [Nazione] IS NULL) OR ([Nazione] = @Original_Nazione)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCliente" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodDestinazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodDestinazione" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescDestinazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescDestinazione" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Indirizzo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Indirizzo" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Indirizzo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Indirizzo" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Cap" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Cap" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Cap" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Cap" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Localita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Localita" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Localita" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Localita" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Provincia" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Provincia" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Provincia" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Provincia" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Nazione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Nazione" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Nazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazione" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagSociale], [Indirizzo], [Localita], [Cap], [Provincia], [Nazione], [IsCli], [IsFor]) VALUES (@CodCliente, @RagSociale, @Indirizzo, @Localita, @Cap, @Provincia, @Nazione, @IsCli, @IsFor);
SELECT CodCliente, RagSociale, Indirizzo, Localita, Cap, Provincia, Nazione, IsCli, IsFor FROM AnagClienti WHERE (CodCliente = @CodCliente)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCliente" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@RagSociale" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RagSociale" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Indirizzo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Indirizzo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Localita" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Localita" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Cap" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Cap" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Provincia" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Provincia" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Nazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsCli" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsCli" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsFor" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsFor" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT * FROM AnagDestinClienti</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [AnagDestinClienti] SET [CodCliente] = @CodCliente, [CodDestinazione] = @CodDestinazione, [DescDestinazione] = @DescDestinazione, [Indirizzo] = @Indirizzo, [Cap] = @Cap, [Localita] = @Localita, [Provincia] = @Provincia, [Nazione] = @Nazione WHERE (([CodCliente] = @Original_CodCliente) AND ([CodDestinazione] = @Original_CodDestinazione) AND ([DescDestinazione] = @Original_DescDestinazione) AND ((@IsNull_Indirizzo = 1 AND [Indirizzo] IS NULL) OR ([Indirizzo] = @Original_Indirizzo)) AND ((@IsNull_Cap = 1 AND [Cap] IS NULL) OR ([Cap] = @Original_Cap)) AND ((@IsNull_Localita = 1 AND [Localita] IS NULL) OR ([Localita] = @Original_Localita)) AND ((@IsNull_Provincia = 1 AND [Provincia] IS NULL) OR ([Provincia] = @Original_Provincia)) AND ((@IsNull_Nazione = 1 AND [Nazione] IS NULL) OR ([Nazione] = @Original_Nazione)));
SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita, Provincia, Nazione FROM AnagDestinClienti WHERE (CodCliente = @CodCliente) AND (CodDestinazione = @CodDestinazione)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCliente" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodDestinazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodDestinazione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DescDestinazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescDestinazione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Indirizzo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Indirizzo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Cap" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Cap" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Localita" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Localita" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Provincia" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Provincia" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Nazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodCliente" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodDestinazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodDestinazione" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescDestinazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescDestinazione" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Indirizzo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Indirizzo" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Indirizzo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Indirizzo" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Cap" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Cap" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Cap" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Cap" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Localita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Localita" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Localita" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Localita" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Provincia" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Provincia" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Provincia" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Provincia" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Nazione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Nazione" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Nazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Nazione" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="CodCliente" DataSetColumn="CodCliente" />
<Mapping SourceColumn="CodDestinazione" DataSetColumn="CodDestinazione" />
<Mapping SourceColumn="DescDestinazione" DataSetColumn="DescDestinazione" />
<Mapping SourceColumn="Indirizzo" DataSetColumn="Indirizzo" />
<Mapping SourceColumn="Cap" DataSetColumn="Cap" />
<Mapping SourceColumn="Localita" DataSetColumn="Localita" />
<Mapping SourceColumn="Provincia" DataSetColumn="Provincia" />
<Mapping SourceColumn="Nazione" DataSetColumn="Nazione" />
</Mappings>
<Sources>
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.stp_ADC_getByCodCli" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCodCli" GetMethodModifier="Public" GetMethodName="getByCodCli" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCodCli" UserSourceName="getByCodCli">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ADC_getByCodCli</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="@CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -1406,6 +1507,68 @@ FROM dbo.v_Macchine
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagDestinClienti" msprop:Generator_RowEvHandlerName="AnagDestinClientiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagDestinClientiRowDeleted" msprop:Generator_RowDeletingName="AnagDestinClientiRowDeleting" msprop:Generator_RowEvArgName="AnagDestinClientiRowChangeEvent" msprop:Generator_TablePropName="AnagDestinClienti" msprop:Generator_RowChangedName="AnagDestinClientiRowChanged" msprop:Generator_RowChangingName="AnagDestinClientiRowChanging" msprop:Generator_TableClassName="AnagDestinClientiDataTable" msprop:Generator_RowClassName="AnagDestinClientiRow" msprop:Generator_TableVarName="tableAnagDestinClienti" msprop:Generator_UserTableName="AnagDestinClienti">
<xs:complexType>
<xs:sequence>
<xs:element name="CodCliente" msprop:Generator_ColumnPropNameInRow="CodCliente" msprop:Generator_ColumnPropNameInTable="CodClienteColumn" msprop:Generator_ColumnVarNameInTable="columnCodCliente" msprop:Generator_UserColumnName="CodCliente">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodDestinazione" msprop:Generator_ColumnPropNameInRow="CodDestinazione" msprop:Generator_ColumnPropNameInTable="CodDestinazioneColumn" msprop:Generator_ColumnVarNameInTable="columnCodDestinazione" msprop:Generator_UserColumnName="CodDestinazione">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescDestinazione" msprop:Generator_ColumnPropNameInRow="DescDestinazione" msprop:Generator_ColumnPropNameInTable="DescDestinazioneColumn" msprop:Generator_ColumnVarNameInTable="columnDescDestinazione" msprop:Generator_UserColumnName="DescDestinazione">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Indirizzo" msprop:Generator_ColumnPropNameInRow="Indirizzo" msprop:Generator_ColumnPropNameInTable="IndirizzoColumn" msprop:Generator_ColumnVarNameInTable="columnIndirizzo" msprop:Generator_UserColumnName="Indirizzo" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Cap" msprop:Generator_ColumnPropNameInRow="Cap" msprop:Generator_ColumnPropNameInTable="CapColumn" msprop:Generator_ColumnVarNameInTable="columnCap" msprop:Generator_UserColumnName="Cap" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Localita" msprop:Generator_ColumnPropNameInRow="Localita" msprop:Generator_ColumnPropNameInTable="LocalitaColumn" msprop:Generator_ColumnVarNameInTable="columnLocalita" msprop:Generator_UserColumnName="Localita" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Provincia" msprop:Generator_ColumnPropNameInRow="Provincia" msprop:Generator_ColumnPropNameInTable="ProvinciaColumn" msprop:Generator_ColumnVarNameInTable="columnProvincia" msprop:Generator_UserColumnName="Provincia" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Nazione" msprop:Generator_ColumnPropNameInRow="Nazione" msprop:Generator_ColumnPropNameInTable="NazioneColumn" msprop:Generator_ColumnVarNameInTable="columnNazione" msprop:Generator_UserColumnName="Nazione" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -1449,5 +1612,10 @@ FROM dbo.v_Macchine
<xs:selector xpath=".//mstns:Macchine" />
<xs:field xpath="mstns:IdxMacchina" />
</xs:unique>
<xs:unique name="AnagDestinClienti_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AnagDestinClienti" />
<xs:field xpath="mstns:CodCliente" />
<xs:field xpath="mstns:CodDestinazione" />
</xs:unique>
</xs:element>
</xs:schema>