ok editing squadra con DropDownList...
This commit is contained in:
Binary file not shown.
@@ -1,13 +1,15 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettASSD.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettASSD" %>
|
||||
|
||||
<asp:Repeater ID="repShow" runat="server" DataSourceID="odsDip">
|
||||
<asp:Repeater ID="repShow" runat="server" DataSourceID="odsASSD">
|
||||
<ItemTemplate>
|
||||
<span style="white-space: nowrap;">
|
||||
<%# Eval("CognomeNome") %> |
|
||||
</span>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
<asp:GridView ID="grViewEdit" runat="server" AutoGenerateColumns="False" DataKeyNames="Data,Slot,CodSquadra,Matr" DataSourceID="odsDip" AllowPaging="True" AllowSorting="True" PageSize="20">
|
||||
<asp:ObjectDataSource ID="odsSquadra" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter"></asp:ObjectDataSource>
|
||||
|
||||
<asp:GridView ID="grViewEdit" runat="server" AutoGenerateColumns="False" DataKeyNames="Data,Slot,CodSquadra,Matr" DataSourceID="odsASSD" AllowPaging="True" AllowSorting="True" PageSize="20">
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
@@ -40,7 +42,8 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Squadra" SortExpression="DescrSquadra">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtCodSquadra" runat="server" Text='<%# Bind("CodSquadra") %>'></asp:TextBox>
|
||||
<asp:DropDownList ID="ddlSquadra" runat="server" DataSourceID="odsSquadra" DataTextField="DescrSquadra" DataValueField="CodSquadra" SelectedValue='<%# Bind("CodSquadra") %>'></asp:DropDownList>
|
||||
<%--<asp:TextBox ID="txtCodSquadra" runat="server" Text='<%# Bind("CodSquadra") %>'></asp:TextBox>--%>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DescrSquadra") %>'></asp:Label>
|
||||
@@ -65,7 +68,7 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsDip" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getBySlotSq" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter" UpdateMethod="updateSquadra" OnUpdated="odsDip_Updated">
|
||||
<asp:ObjectDataSource ID="odsASSD" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getBySlotSq" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter" UpdateMethod="updateSquadra" OnUpdated="odsASSD_Updated">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfCodSquadra" Name="CodSquadra" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="hfDataRif" DefaultValue="" Name="Data" PropertyName="Value" Type="DateTime" />
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace WebSCR.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
protected void odsDip_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
protected void odsASSD_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
// sollevo evento!
|
||||
reportEvent();
|
||||
|
||||
+11
-2
@@ -21,6 +21,15 @@ namespace WebSCR.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Repeater repShow;
|
||||
|
||||
/// <summary>
|
||||
/// odsSquadra 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 odsSquadra;
|
||||
|
||||
/// <summary>
|
||||
/// grViewEdit control.
|
||||
/// </summary>
|
||||
@@ -31,13 +40,13 @@ namespace WebSCR.WebUserControls {
|
||||
protected global::System.Web.UI.WebControls.GridView grViewEdit;
|
||||
|
||||
/// <summary>
|
||||
/// odsDip control.
|
||||
/// odsASSD 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 odsDip;
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsASSD;
|
||||
|
||||
/// <summary>
|
||||
/// hfDataRif control.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user