Aggiunta editing zone!!!

This commit is contained in:
Samuele E. Locatelli
2015-04-17 14:53:50 +02:00
parent 0dab774056
commit e81a356fa1
21 changed files with 1413 additions and 20 deletions
BIN
View File
Binary file not shown.
-5
View File
@@ -5,11 +5,6 @@
<%@ Register Src="~/WebUserControls/mod_elencoTipoInt.ascx" TagPrefix="uc1" TagName="mod_elencoTipoInt" %>
<%@ Register Src="~/WebUserControls/mod_elencoZone.ascx" TagPrefix="uc1" TagName="mod_elencoZone" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
@@ -33,7 +33,7 @@
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="Codice" SortExpression="CodSquadra">
<asp:TemplateField HeaderText="Codice" SortExpression="CodSquadra" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CodSquadra") %>'></asp:TextBox>
</EditItemTemplate>
@@ -44,7 +44,7 @@
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CodSquadra") %>'></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Descrizione" SortExpression="DescrSquadra">
<asp:TemplateField HeaderText="Descrizione" SortExpression="DescrSquadra" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("DescrSquadra") %>'></asp:TextBox>
</EditItemTemplate>
@@ -55,7 +55,7 @@
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("DescrSquadra") %>'></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Num Op." SortExpression="NumOp">
<asp:TemplateField HeaderText="Num Op." SortExpression="NumOp" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("NumOp") %>'></asp:TextBox>
</EditItemTemplate>
@@ -66,7 +66,7 @@
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("NumOp") %>'></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Elettrod" SortExpression="Elettrod" ItemStyle-HorizontalAlign="Center">
<asp:TemplateField HeaderText="Elettrod" SortExpression="Elettrod" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
<EditItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("Elettrod") %>' data-mini="true" />
</EditItemTemplate>
@@ -78,7 +78,7 @@
</FooterTemplate>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="Clima" SortExpression="Clima" ItemStyle-HorizontalAlign="Center">
<asp:TemplateField HeaderText="Clima" SortExpression="Clima" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
<EditItemTemplate>
<asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("Clima") %>' data-mini="true" />
</EditItemTemplate>
@@ -90,7 +90,7 @@
</FooterTemplate>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="Inform" SortExpression="Inform" ItemStyle-HorizontalAlign="Center">
<asp:TemplateField HeaderText="Inform" SortExpression="Inform" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
<EditItemTemplate>
<asp:CheckBox ID="CheckBox3" runat="server" Checked='<%# Bind("Inform") %>' data-mini="true" />
</EditItemTemplate>
@@ -33,6 +33,7 @@ namespace WebSCR.WebUserControls
// creo novo record e vado in editing...
DtProxy.man.taAS.InsertQuery(" -ND", "Inserire Descrizione", 0, true, false, false);
grView.EditIndex = 0;
grView.DataBind();
}
}
+68 -1
View File
@@ -1,2 +1,69 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoZone.ascx.cs" Inherits="WebSCR.WebUserControls.mod_elencoZone" %>
zone
<asp:TextBox runat="server" type="search" name="password" ID="txtSearch" value="" placeholder="Ricerca" AutoPostBack="true" />
<asp:GridView ID="grView" runat="server" DataSourceID="ods" AutoGenerateColumns="False" DataKeyNames="idxZona" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" AllowPaging="True" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnRowCommand="grView_RowCommand">
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<HeaderTemplate>
<asp:LinkButton ID="btnNew" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="New" OnClick="btnNew_Click"></asp:LinkButton>
</HeaderTemplate>
<ItemTemplate>
<div class="ui-nodisc-icon ui-alt-icon">
<asp:LinkButton ID="lbEdit" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="Edit"></asp:LinkButton>
</div>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton ID="lbUpdate" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="update" CommandName="Update" Text="Update"></asp:LinkButton>
</EditItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="idxZona" HeaderText="idxZona" InsertVisible="False" ReadOnly="True" SortExpression="idxZona" Visible="false" />
<asp:BoundField DataField="Cap" HeaderText="Cap" SortExpression="Cap" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="Localita" HeaderText="Localita" SortExpression="Localita" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="Prov" HeaderText="Prov" SortExpression="Prov" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundField DataField="Zona" HeaderText="Zona" SortExpression="Zona" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="lbDelete" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="delete" CommandName="Delete" Text="Delete" ToolTip="Elimina" OnClientClick="return confirm('Sei sicuro di voler eliminare il record?')"></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton ID="lbCancel" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-refresh ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="cancel" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
</EditItemTemplate>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagZoneTableAdapter" FilterExpression="Cap LIKE '%{0}%' OR Localita LIKE '%{0}%'" OldValuesParameterFormatString="Original_{0}" DeleteMethod="DeleteQuery" InsertMethod="InsertQuery" UpdateMethod="UpdateQuery">
<DeleteParameters>
<asp:Parameter Name="Original_idxZona" Type="Int32" />
</DeleteParameters>
<FilterParameters>
<asp:ControlParameter ControlID="txtSearch" DefaultValue="*" Type="string" />
</FilterParameters>
<InsertParameters>
<asp:Parameter Name="Cap" Type="String" />
<asp:Parameter Name="Localita" Type="String" />
<asp:Parameter Name="Prov" Type="String" />
<asp:Parameter Name="Zona" Type="Int32" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="Cap" Type="String" />
<asp:Parameter Name="Localita" Type="String" />
<asp:Parameter Name="Prov" Type="String" />
<asp:Parameter Name="Zona" Type="Int32" />
<asp:Parameter Name="Original_idxZona" Type="Int32" />
</UpdateParameters>
</asp:ObjectDataSource>
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebSCR_data;
namespace WebSCR.WebUserControls
{
@@ -13,5 +14,26 @@ namespace WebSCR.WebUserControls
{
}
protected void grView_RowCommand(object sender, GridViewCommandEventArgs e)
{
}
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
}
/// <summary>
/// crea nuovo record squadre
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNew_Click(object sender, EventArgs e)
{
// creo novo record e vado in editing...
DtProxy.man.taAZ.InsertQuery("00000", "Inserire Località", "ND", -1);
grView.EditIndex = 0;
grView.DataBind();
}
}
}
+32 -7
View File
@@ -3,15 +3,40 @@
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WebSCR.WebUserControls
{
public partial class mod_elencoZone
{
namespace WebSCR.WebUserControls {
public partial class mod_elencoZone {
/// <summary>
/// txtSearch 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.TextBox txtSearch;
/// <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;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
+144
View File
@@ -120,6 +120,117 @@ SELECT CodSquadra, DescrSquadra, NumOp, Elettrod, Clima, Inform FROM AnagSquadre
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagZoneTableAdapter" GeneratorDataComponentClassName="AnagZoneTableAdapter" Name="AnagZone" UserDataComponentName="AnagZoneTableAdapter">
<MainSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.AnagZone" 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 [AnagZone] WHERE (([idxZona] = @Original_idxZona) 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_Prov = 1 AND [Prov] IS NULL) OR ([Prov] = @Original_Prov)) AND ([Zona] = @Original_Zona))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxZona" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxZona" 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_Prov" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Prov" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Prov" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Prov" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Zona" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Zona" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [AnagZone] ([Cap], [Localita], [Prov], [Zona]) VALUES (@Cap, @Localita, @Prov, @Zona);
SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = SCOPE_IDENTITY()) ORDER BY Zona</CommandText>
<Parameters>
<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="@Prov" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Prov" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Zona" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Zona" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT idxZona, Cap, Localita, Prov, Zona
FROM AnagZone
ORDER BY Zona</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [AnagZone] SET [Cap] = @Cap, [Localita] = @Localita, [Prov] = @Prov, [Zona] = @Zona WHERE (([idxZona] = @Original_idxZona) 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_Prov = 1 AND [Prov] IS NULL) OR ([Prov] = @Original_Prov)) AND ([Zona] = @Original_Zona));
SELECT idxZona, Cap, Localita, Prov, Zona FROM AnagZone WHERE (idxZona = @idxZona) ORDER BY Zona</CommandText>
<Parameters>
<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="@Prov" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Prov" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Zona" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Zona" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxZona" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxZona" 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_Prov" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Prov" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Prov" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Prov" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Zona" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Zona" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idxZona" ColumnName="idxZona" DataSourceName="WebSCR.dbo.AnagZone" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxZona" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idxZona" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="idxZona" DataSetColumn="idxZona" />
<Mapping SourceColumn="Cap" DataSetColumn="Cap" />
<Mapping SourceColumn="Localita" DataSetColumn="Localita" />
<Mapping SourceColumn="Prov" DataSetColumn="Prov" />
<Mapping SourceColumn="Zona" DataSetColumn="Zona" />
</Mappings>
<Sources>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteQuery">
<DeleteCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AZ_DeleteQuery</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="@Original_idxZona" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</DeleteCommand>
</DbSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="InsertQuery">
<InsertCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AZ_InsertQuery</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="@Cap" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Localita" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Prov" Precision="0" ProviderType="NVarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Zona" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
</DbSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="UpdateQuery">
<UpdateCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AZ_UpdateQuery</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="@Cap" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Localita" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Prov" Precision="0" ProviderType="NVarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Zona" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxZona" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -152,11 +263,44 @@ SELECT CodSquadra, DescrSquadra, NumOp, Elettrod, Clima, Inform FROM AnagSquadre
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagZone" msprop:Generator_TableClassName="AnagZoneDataTable" msprop:Generator_TableVarName="tableAnagZone" msprop:Generator_TablePropName="AnagZone" msprop:Generator_RowDeletingName="AnagZoneRowDeleting" msprop:Generator_RowChangingName="AnagZoneRowChanging" msprop:Generator_RowEvHandlerName="AnagZoneRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagZoneRowDeleted" msprop:Generator_UserTableName="AnagZone" msprop:Generator_RowChangedName="AnagZoneRowChanged" msprop:Generator_RowEvArgName="AnagZoneRowChangeEvent" msprop:Generator_RowClassName="AnagZoneRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxZona" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxZona" msprop:Generator_ColumnPropNameInRow="idxZona" msprop:Generator_ColumnPropNameInTable="idxZonaColumn" msprop:Generator_UserColumnName="idxZona" type="xs:int" />
<xs:element name="Cap" msprop:Generator_ColumnVarNameInTable="columnCap" msprop:Generator_ColumnPropNameInRow="Cap" msprop:Generator_ColumnPropNameInTable="CapColumn" 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_ColumnVarNameInTable="columnLocalita" msprop:Generator_ColumnPropNameInRow="Localita" msprop:Generator_ColumnPropNameInTable="LocalitaColumn" msprop:Generator_UserColumnName="Localita" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Prov" msprop:Generator_ColumnVarNameInTable="columnProv" msprop:Generator_ColumnPropNameInRow="Prov" msprop:Generator_ColumnPropNameInTable="ProvColumn" msprop:Generator_UserColumnName="Prov" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Zona" msprop:Generator_ColumnVarNameInTable="columnZona" msprop:Generator_ColumnPropNameInRow="Zona" msprop:Generator_ColumnPropNameInTable="ZonaColumn" msprop:Generator_UserColumnName="Zona" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AnagSquadre" />
<xs:field xpath="mstns:CodSquadra" />
</xs:unique>
<xs:unique name="AnagZone_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AnagZone" />
<xs:field xpath="mstns:idxZona" />
</xs:unique>
</xs:element>
</xs:schema>
+2 -1
View File
@@ -6,7 +6,8 @@
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:AnagSquadre" ZOrder="1" X="201" Y="119" Height="248" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagSquadre" ZOrder="2" X="201" Y="119" Height="248" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagZone" ZOrder="1" X="556" Y="160" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
<Connectors />
</DiagramLayout>
+3
View File
@@ -30,6 +30,7 @@ namespace WebSCR_data
taRepVis = new DS_ApplicazioneTableAdapters.stp_rep_DatiFullByPazienteDataTableAdapter();
#endif
taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter();
taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter();
taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter();
}
/// <summary>
@@ -48,6 +49,7 @@ namespace WebSCR_data
taRepVis.Connection.ConnectionString = connStr;
#endif
taAS.Connection.ConnectionString = connStr;
taAZ.Connection.ConnectionString = connStr;
taFile.Connection.ConnectionString = connStrFiles;
}
@@ -64,6 +66,7 @@ namespace WebSCR_data
#endif
public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS;
public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ;
public DS_UtilityTableAdapters.tblFilesTableAdapter taFile;
public static DtProxy man = new DtProxy();
Binary file not shown.
Binary file not shown.
Binary file not shown.