bozza gestione elenco squadre

This commit is contained in:
Samuele E. Locatelli
2015-04-17 11:25:36 +02:00
parent e03f59b284
commit fc989030f5
19 changed files with 1499 additions and 26 deletions
BIN
View File
Binary file not shown.
+29 -1
View File
@@ -1,2 +1,30 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoSquadre.ascx.cs" Inherits="WebSCR.WebUserControls.mod_elencoSquadre" %>
elenco squadre
<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="CodSquadra" 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:BoundField DataField="CodSquadra" HeaderText="CodSquadra" ReadOnly="True" SortExpression="CodSquadra" />
<asp:BoundField DataField="DescrSquadra" HeaderText="DescrSquadra" SortExpression="DescrSquadra" />
<asp:BoundField DataField="NumOp" HeaderText="NumOp" SortExpression="NumOp" />
<asp:CheckBoxField DataField="Elettrod" HeaderText="Elettrod" SortExpression="Elettrod" />
<asp:CheckBoxField DataField="Clima" HeaderText="Clima" SortExpression="Clima" />
<asp:CheckBoxField DataField="Inform" HeaderText="Inform" SortExpression="Inform" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter" FilterExpression="CodSquadra LIKE '%{0}%' OR DescrSquadra LIKE '%{0}%'" OldValuesParameterFormatString="Original_{0}">
<FilterParameters>
<asp:ControlParameter ControlID="txtSearch" DefaultValue="*" Type="string" />
</FilterParameters>
</asp:ObjectDataSource>
@@ -13,5 +13,15 @@ namespace WebSCR.WebUserControls
{
}
protected void grView_RowCommand(object sender, GridViewCommandEventArgs e)
{
}
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
}
+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_elencoSquadre
{
namespace WebSCR.WebUserControls {
public partial class mod_elencoSquadre {
/// <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
+9 -1
View File
@@ -1 +1,9 @@

<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings />
</DataSetUISetting>
+117 -16
View File
@@ -1,16 +1,117 @@
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="DS_Applicazione"
targetNamespace="http://tempuri.org/DS_Applicazione.xsd"
elementFormDefault="qualified"
attributeFormDefault="qualified"
xmlns="http://tempuri.org/DS_Applicazione.xsd"
xmlns:mstns="http://tempuri.org/DS_Applicazione.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
<xs:element name="DS_Applicazione" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded"></xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DS_Applicazione" targetNamespace="http://tempuri.org/DS_Applicazione.xsd" xmlns:mstns="http://tempuri.org/DS_Applicazione.xsd" xmlns="http://tempuri.org/DS_Applicazione.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="WebSCRConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="WebSCRConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WebSCR_data.Properties.Settings.GlobalReference.Default.WebSCRConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagSquadreTableAdapter" GeneratorDataComponentClassName="AnagSquadreTableAdapter" Name="AnagSquadre" UserDataComponentName="AnagSquadreTableAdapter">
<MainSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.AnagSquadre" 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 [dbo].[AnagSquadre] WHERE (([CodSquadra] = @Original_CodSquadra) AND ([DescrSquadra] = @Original_DescrSquadra) AND ([NumOp] = @Original_NumOp) AND ([Elettrod] = @Original_Elettrod) AND ([Clima] = @Original_Clima) AND ([Inform] = @Original_Inform))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSquadra" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescrSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrSquadra" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NumOp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumOp" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Elettrod" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Elettrod" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Clima" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Clima" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Inform" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Inform" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[AnagSquadre] ([CodSquadra], [DescrSquadra], [NumOp], [Elettrod], [Clima], [Inform]) VALUES (@CodSquadra, @DescrSquadra, @NumOp, @Elettrod, @Clima, @Inform);
SELECT CodSquadra, DescrSquadra, NumOp, Elettrod, Clima, Inform FROM AnagSquadre WHERE (CodSquadra = @CodSquadra)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSquadra" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DescrSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrSquadra" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NumOp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumOp" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Elettrod" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Elettrod" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Clima" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Clima" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Inform" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Inform" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CodSquadra, DescrSquadra, NumOp, Elettrod, Clima, Inform FROM dbo.AnagSquadre</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[AnagSquadre] SET [CodSquadra] = @CodSquadra, [DescrSquadra] = @DescrSquadra, [NumOp] = @NumOp, [Elettrod] = @Elettrod, [Clima] = @Clima, [Inform] = @Inform WHERE (([CodSquadra] = @Original_CodSquadra) AND ([DescrSquadra] = @Original_DescrSquadra) AND ([NumOp] = @Original_NumOp) AND ([Elettrod] = @Original_Elettrod) AND ([Clima] = @Original_Clima) AND ([Inform] = @Original_Inform));
SELECT CodSquadra, DescrSquadra, NumOp, Elettrod, Clima, Inform FROM AnagSquadre WHERE (CodSquadra = @CodSquadra)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSquadra" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DescrSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrSquadra" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NumOp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumOp" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Elettrod" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Elettrod" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Clima" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Clima" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Inform" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Inform" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSquadra" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescrSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescrSquadra" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NumOp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumOp" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Elettrod" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Elettrod" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Clima" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Clima" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Inform" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Inform" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="CodSquadra" DataSetColumn="CodSquadra" />
<Mapping SourceColumn="DescrSquadra" DataSetColumn="DescrSquadra" />
<Mapping SourceColumn="NumOp" DataSetColumn="NumOp" />
<Mapping SourceColumn="Elettrod" DataSetColumn="Elettrod" />
<Mapping SourceColumn="Clima" DataSetColumn="Clima" />
<Mapping SourceColumn="Inform" DataSetColumn="Inform" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DS_Applicazione" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Applicazione" msprop:Generator_UserDSName="DS_Applicazione">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="AnagSquadre" msprop:Generator_TableClassName="AnagSquadreDataTable" msprop:Generator_TableVarName="tableAnagSquadre" msprop:Generator_TablePropName="AnagSquadre" msprop:Generator_RowDeletingName="AnagSquadreRowDeleting" msprop:Generator_RowChangingName="AnagSquadreRowChanging" msprop:Generator_RowEvHandlerName="AnagSquadreRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagSquadreRowDeleted" msprop:Generator_UserTableName="AnagSquadre" msprop:Generator_RowChangedName="AnagSquadreRowChanged" msprop:Generator_RowEvArgName="AnagSquadreRowChangeEvent" msprop:Generator_RowClassName="AnagSquadreRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodSquadra" msprop:Generator_ColumnVarNameInTable="columnCodSquadra" msprop:Generator_ColumnPropNameInRow="CodSquadra" msprop:Generator_ColumnPropNameInTable="CodSquadraColumn" msprop:Generator_UserColumnName="CodSquadra">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescrSquadra" msprop:Generator_ColumnVarNameInTable="columnDescrSquadra" msprop:Generator_ColumnPropNameInRow="DescrSquadra" msprop:Generator_ColumnPropNameInTable="DescrSquadraColumn" msprop:Generator_UserColumnName="DescrSquadra">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NumOp" msprop:Generator_ColumnVarNameInTable="columnNumOp" msprop:Generator_ColumnPropNameInRow="NumOp" msprop:Generator_ColumnPropNameInTable="NumOpColumn" msprop:Generator_UserColumnName="NumOp" type="xs:int" />
<xs:element name="Elettrod" msprop:Generator_ColumnVarNameInTable="columnElettrod" msprop:Generator_ColumnPropNameInRow="Elettrod" msprop:Generator_ColumnPropNameInTable="ElettrodColumn" msprop:Generator_UserColumnName="Elettrod" type="xs:boolean" />
<xs:element name="Clima" msprop:Generator_ColumnVarNameInTable="columnClima" msprop:Generator_ColumnPropNameInRow="Clima" msprop:Generator_ColumnPropNameInTable="ClimaColumn" msprop:Generator_UserColumnName="Clima" type="xs:boolean" />
<xs:element name="Inform" msprop:Generator_ColumnVarNameInTable="columnInform" msprop:Generator_ColumnPropNameInRow="Inform" msprop:Generator_ColumnPropNameInTable="InformColumn" msprop:Generator_UserColumnName="Inform" type="xs:boolean" />
</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:element>
</xs:schema>
+12 -1
View File
@@ -1 +1,12 @@

<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
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="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="191" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
</Shapes>
<Connectors />
</DiagramLayout>
Binary file not shown.
Binary file not shown.
Binary file not shown.