Modifiche pesanti al db e di conseguenza alle maschere (unificata gestione tabella mapping eventi-stati)

git-svn-id: https://keyhammer.ath.cx/svn/XPS/trunk@15 43c8e981-f90d-406c-a89a-24a2c4268d51
This commit is contained in:
samuele
2008-10-10 13:42:25 +00:00
parent 647b4a85f9
commit ea357dbc86
15 changed files with 141 additions and 606 deletions
+10 -10
View File
@@ -2,7 +2,6 @@
CodeFile="AnagraficaEventi.aspx.cs" Inherits="AnagraficaEventi" Title="Untitled Page" %>
<%@ Register Src="mod_ev2stati.ascx" TagName="mod_ev2stati" TagPrefix="uc2" %>
<%@ Register Src="mod_ev2step.ascx" TagName="mod_ev2step" TagPrefix="uc3" %>
<%@ Register Src="mod_anagraficaEventi.ascx" TagName="mod_anagraficaEventi" TagPrefix="uc1" %>
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
@@ -10,10 +9,16 @@
<asp:Panel runat="server" ID="pnlDet" Visible="false" Width="100%">
<table>
<tr>
<td colspan="2">
<td>
<div class="filtro_1">
<uc4:mod_filtro ID="Mod_filtro1" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
<asp:ObjectDataSource ID="odsFiltro" runat="server" OldValuesParameterFormatString="Original_{0}"
<uc4:mod_filtro ID="Mod_filtroMappa" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
<asp:ObjectDataSource ID="odsMappa" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoMappaTableAdapter">
</asp:ObjectDataSource>
</div>
<div class="filtro_2">
<uc4:mod_filtro ID="Mod_filtroTipoObj" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
<asp:ObjectDataSource ID="odsTipoObj" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoObjTableAdapter">
</asp:ObjectDataSource>
</div>
@@ -21,12 +26,7 @@
</tr>
<tr>
<td>
Stati:
<uc2:mod_ev2stati ID="Mod_ev2stati1" runat="server" />
</td>
<td>
Steps:
<uc3:mod_ev2step ID="Mod_ev2step1" runat="server" />
<uc2:mod_ev2stati ID="Mod_ev2stati1" runat="server" />
</td>
</tr>
</table>
+30 -6
View File
@@ -15,20 +15,35 @@ public partial class AnagraficaEventi : System.Web.UI.Page
{
if (!Page.IsPostBack)
{
Mod_filtro1.ods = odsFiltro;
Mod_filtroMappa.ods = odsMappa;
Mod_filtroTipoObj.ods = odsTipoObj;
}
Mod_anagraficaEventi1.eh_selValore += new EventHandler(Mod_anagraficaEventi1_eh_selValore);
Mod_anagraficaEventi1.eh_resetSelezione += new EventHandler(Mod_anagraficaEventi1_eh_resetSelezione);
Mod_filtro1.eh_selValore += new EventHandler(Mod_filtro1_eh_selValore);
Mod_filtroMappa.eh_selValore += new EventHandler(Mod_filtroMappa_eh_selValore);
Mod_filtroTipoObj.eh_selValore += new EventHandler(Mod_filtroTipoObj_eh_selValore);
}
void Mod_filtro1_eh_selValore(object sender, EventArgs e)
void Mod_filtroTipoObj_eh_selValore(object sender, EventArgs e)
{
// salvo in session
SteamWare.memLayer.ML.setSessionVal("IdxTipoObj_sel", Mod_filtro1.valoreInt, false);
SteamWare.memLayer.ML.setSessionVal("CodMappa_sel", Mod_filtroMappa.valore, false);
#if false
// update!
//Mod_ev2stati1.doUpdate();
Mod_ev2step1.doUpdate();
//Mod_ev2step1.doUpdate();
#endif
}
void Mod_filtroMappa_eh_selValore(object sender, EventArgs e)
{
// salvo in session
SteamWare.memLayer.ML.setSessionVal("IdxTipoObj_sel", Mod_filtroTipoObj.valoreInt, false);
#if false
// update!
//Mod_ev2stati1.doUpdate();
//Mod_ev2step1.doUpdate();
#endif
}
void Mod_anagraficaEventi1_eh_resetSelezione(object sender, EventArgs e)
@@ -40,7 +55,16 @@ public partial class AnagraficaEventi : System.Web.UI.Page
{
pnlDet.Visible = true;
// salvo valore iniziale filtro...
SteamWare.memLayer.ML.setSessionVal("IdxTipoObj_sel", Mod_filtro1.valoreInt, false);
SteamWare.memLayer.ML.setSessionVal("CodMappa_sel", Mod_filtroMappa.valore, false);
SteamWare.memLayer.ML.setSessionVal("IdxTipoObj_sel", Mod_filtroTipoObj.valoreInt, false);
}
protected override void OnUnload(EventArgs e)
{
base.OnUnload(e);
Mod_anagraficaEventi1.eh_selValore -= new EventHandler(Mod_anagraficaEventi1_eh_selValore);
Mod_anagraficaEventi1.eh_resetSelezione -= new EventHandler(Mod_anagraficaEventi1_eh_resetSelezione);
Mod_filtroMappa.eh_selValore -= new EventHandler(Mod_filtroMappa_eh_selValore);
Mod_filtroTipoObj.eh_selValore -= new EventHandler(Mod_filtroTipoObj_eh_selValore);
}
}
+9
View File
@@ -0,0 +1,9 @@
<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="AnagraficaMappe.aspx.cs" Inherits="AnagraficaMappe" Title="Untitled Page" %>
<%@ Register Src="mod_anagraficaMappe.ascx" TagName="mod_anagraficaMappe" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<a href="AnagraficaMappe.aspx"></a>
<uc1:mod_anagraficaMappe ID="Mod_anagraficaMappe1" runat="server" />
<a href="AnagraficaMappe.aspx"></a>
</asp:Content>
@@ -9,7 +9,7 @@ using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class AnagraficaStep : System.Web.UI.Page
public partial class AnagraficaMappe : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
-7
View File
@@ -1,7 +0,0 @@
<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="AnagraficaStep.aspx.cs" Inherits="AnagraficaStep" Title="Untitled Page" %>
<%@ Register Src="mod_anagraficaStep.ascx" TagName="mod_anagraficaStep" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<uc1:mod_anagraficaStep ID="Mod_anagraficaStep1" runat="server" />
</asp:Content>
+1 -1
View File
@@ -21,7 +21,7 @@
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="false" />
Visible="true" />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
+9 -9
View File
@@ -42,17 +42,17 @@
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="IdxTipoEvento" SortExpression="IdxTipoEvento">
<asp:TemplateField HeaderText="CodTipoEvento" SortExpression="CodTipoEvento">
<EditItemTemplate>
<asp:DropDownList ID="dlIdxTipoEvento" runat="server" DataSourceID="odsTipoEvento" DataTextField="label"
DataValueField="value" SelectedValue='<%# Bind("IdxTipoEvento") %>' /></EditItemTemplate>
<asp:DropDownList ID="dlCodTipoEvento" runat="server" DataSourceID="odsTipoEvento" DataTextField="label"
DataValueField="value" SelectedValue='<%# Bind("CodTipoEvento") %>' /></EditItemTemplate>
<ItemTemplate>
<asp:DropDownList ID="dlIdxTipoEvento" runat="server" DataSourceID="odsTipoEvento" DataTextField="label"
DataValueField="value" SelectedValue='<%# Bind("IdxTipoEvento") %>' Enabled="false" />
<asp:DropDownList ID="dlCodTipoEvento" runat="server" DataSourceID="odsTipoEvento" DataTextField="label"
DataValueField="value" SelectedValue='<%# Bind("CodTipoEvento") %>' Enabled="false" />
</ItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="dlIdxTipoEvento" runat="server" DataSourceID="odsTipoEvento" DataTextField="label"
DataValueField="value" SelectedValue='<%# Bind("IdxTipoEvento") %>' /></FooterTemplate>
<asp:DropDownList ID="dlCodTipoEvento" runat="server" DataSourceID="odsTipoEvento" DataTextField="label"
DataValueField="value" SelectedValue='<%# Bind("CodTipoEvento") %>' /></FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="IdxEvento" SortExpression="IdxEvento">
<EditItemTemplate>
@@ -116,12 +116,12 @@
<UpdateParameters>
<asp:Parameter Name="IdxEvento" Type="Int32" />
<asp:Parameter Name="DescrEvento" Type="String" />
<asp:Parameter Name="IdxTipoEvento" Type="String" />
<asp:Parameter Name="CodTipoEvento" Type="String" />
<asp:Parameter Name="Original_IdxEvento" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="IdxEvento" Type="Int32" />
<asp:Parameter Name="IdxTipoEvento" Type="String" />
<asp:Parameter Name="CodTipoEvento" Type="String" />
<asp:Parameter Name="DescrEvento" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
@@ -1,16 +1,10 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_anagraficaStep.ascx.cs" Inherits="mod_anagraficaStep" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_anagraficaMappe.ascx.cs"
Inherits="mod_anagraficaMappe" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
<div class="filtro_1">
<uc1:mod_filtro ID="Mod_filtro1" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
<asp:ObjectDataSource ID="odsFiltro" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoObjTableAdapter">
</asp:ObjectDataSource>
</div>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="IdxTipoObj,IdxStep" DataSourceID="ods">
DataKeyNames="CodMappa" DataSourceID="ods">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -27,7 +21,7 @@
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="false" />
Visible="true" />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
@@ -49,26 +43,26 @@
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="IdxStep" SortExpression="IdxStep">
<asp:TemplateField HeaderText="CodMappa" SortExpression="CodMappa">
<EditItemTemplate>
<asp:TextBox ID="txtIdxStep" runat="server" Text='<%# Bind("IdxStep") %>'></asp:TextBox>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CodMappa") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblIdxStep" runat="server" Text='<%# Bind("IdxStep") %>'></asp:Label>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("CodMappa") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtIdxStep" runat="server" Text='<%# Bind("IdxStep") %>'></asp:TextBox>
<asp:TextBox ID="txtCodMappa" runat="server" Text='<%# Bind("CodMappa") %>'></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DescrStep" SortExpression="DescrStep">
<asp:TemplateField HeaderText="DescrMappa" SortExpression="DescrMappa">
<EditItemTemplate>
<asp:TextBox ID="txtDescrStep" runat="server" Text='<%# Bind("DescrStep") %>'></asp:TextBox>
<asp:TextBox ID="txtDescrMappa" runat="server" Text='<%# Bind("DescrMappa") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblDescrStep" runat="server" Text='<%# Bind("DescrStep") %>'></asp:Label>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("DescrMappa") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtDescrStep" runat="server" Text='<%# Bind("DescrStep") %>'></asp:TextBox>
<asp:TextBox ID="txtDescrMappa" runat="server" Text='<%# Bind("DescrMappa") %>'></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
@@ -99,28 +93,23 @@
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByTipoObj" TypeName="DS_XPSTableAdapters.StepTableAdapter" OnInserting="recuperaFooter"
FilterExpression=" DescrStep LIKE '%{0}%'" DeleteMethod="DeleteQuery" InsertMethod="Insert" UpdateMethod="UpdateQuery">
SelectMethod="GetData" TypeName="DS_XPSTableAdapters.AnagMappeTableAdapter" OnInserting="recuperaFooter"
FilterExpression=" CodMappa LIKE '%{0}%' OR DescrMappa LIKE '%{0}%' " DeleteMethod="DeleteQuery" InsertMethod="Insert"
UpdateMethod="UpdateQuery">
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
</FilterParameters>
<DeleteParameters>
<asp:Parameter Name="Original_IdxTipoObj" Type="Int32" />
<asp:Parameter Name="Original_IdxStep" Type="Int32" />
<asp:Parameter Name="Original_CodMappa" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="IdxStep" Type="Int32" />
<asp:Parameter Name="DescrStep" Type="String" />
<asp:Parameter Name="Original_IdxTipoObj" Type="Int32" />
<asp:Parameter Name="Original_IdxStep" Type="Int32" />
<asp:Parameter Name="CodMappa" Type="String" />
<asp:Parameter Name="DescrMappa" Type="String" />
<asp:Parameter Name="Original_CodMappa" Type="String" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="Mod_filtro1" Type="Int32" Name="IdxTipoObj" PropertyName="valore" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="IdxTipoObj" Type="Int32" />
<asp:Parameter Name="IdxStep" Type="Int32" />
<asp:Parameter Name="DescrStep" Type="String" />
<asp:Parameter Name="CodMappa" Type="String" />
<asp:Parameter Name="DescrMappa" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label><br />
@@ -10,7 +10,7 @@ using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SteamWare;
public partial class mod_ev2step : ApplicationUserControl
public partial class mod_anagraficaMappe : ApplicationUserControl
{
#region area da NON modificare
@@ -184,17 +184,17 @@ public partial class mod_ev2step : ApplicationUserControl
#endregion
#region area codice variabile
/// <summary>
/// elenco colonne del datagrid
/// </summary>
/// <returns></returns>
protected DataColumnCollection colonneObj()
{
DS_XPS.v_ev2stepDataTable tabella = new DS_XPS.v_ev2stepDataTable();
DS_XPS.AnagMappeDataTable tabella = new DS_XPS.AnagMappeDataTable();
DataColumnCollection colonne = tabella.Columns;
return colonne;
}
/// <summary>
/// inizializzazione valori di default
/// </summary>
@@ -202,7 +202,7 @@ public partial class mod_ev2step : ApplicationUserControl
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
_idxGridView = "IdxStep";
_idxGridView = "CodMappe";
}
void Mod_filtro1_eh_selValore(object sender, EventArgs e)
{
@@ -215,6 +215,17 @@ public partial class mod_ev2step : ApplicationUserControl
/// <param name="e"></param>
protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
{
// se riga di dati...
if (e.Row.RowType == DataControlRowType.DataRow)
{
// ottengo la riga tipizzata...
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
DS_XPS.AnagMappeRow riga = (DS_XPS.AnagMappeRow)_drv.Row;
if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.CodMappa.ToString())
{
grView.SelectedIndex = e.Row.RowIndex;
}
}
}
/// <summary>
/// gestione evento inserimento nuovo record standard (se ZERO presenti)
@@ -225,9 +236,9 @@ public partial class mod_ev2step : ApplicationUserControl
{
// reset selezione...
resetSelezione();
DS_XPSTableAdapters.v_ev2stepTableAdapter taEv2Step = new DS_XPSTableAdapters.v_ev2stepTableAdapter();
DS_XPSTableAdapters.AnagMappeTableAdapter taMappe = new DS_XPSTableAdapters.AnagMappeTableAdapter();
// creo 1 obj vuoto...
taEv2Step.InsertQuery(memLayer.ML.IntSessionObj("IdxTipoObj_sel"), 0, memLayer.ML.IntSessionObj("IdxEvento_sel"), 0);
taMappe.Insert("--", "Nuova mappa");
grView.DataBind();
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
@@ -288,8 +299,6 @@ public partial class mod_ev2step : ApplicationUserControl
}
tipoColonna = "";
}
e.InputParameters["IdxTipoObj"] = memLayer.ML.IntSessionObj("IdxTipoObj_sel");
e.InputParameters["IdxEvento"] = memLayer.ML.IntSessionObj("IdxEvento_sel");
}
#endregion
+35 -15
View File
@@ -4,14 +4,21 @@
<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
<div class="filtro_1">
<uc1:mod_filtro ID="Mod_filtro1" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
<asp:ObjectDataSource ID="odsFiltro" runat="server" OldValuesParameterFormatString="Original_{0}"
<uc1:mod_filtro id="Mod_filtroMappa" runat="server" changecheckenabled="false" changecheckvisible="false" />
<asp:ObjectDataSource ID="odsMappa" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoMappaTableAdapter">
</asp:ObjectDataSource>
</div>
<div class="filtro_2">
<uc1:mod_filtro id="Mod_filtroTipoObj" runat="server" changecheckenabled="false"
changecheckvisible="false" />
<asp:ObjectDataSource ID="odsTipoObj" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoObjTableAdapter">
</asp:ObjectDataSource>
</div>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="IdxTipoObj,IdxStato" DataSourceID="ods">
DataKeyNames="CodMappa,IdxTipoObj,CodStato" DataSourceID="ods">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -50,15 +57,15 @@
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="IdxStato" SortExpression="IdxStato">
<asp:TemplateField HeaderText="CodStato" SortExpression="CodStato">
<EditItemTemplate>
<asp:TextBox ID="txtIdxStato" runat="server" Text='<%# Bind("IdxStato") %>'></asp:TextBox>
<asp:TextBox ID="txtCodStato" runat="server" Text='<%# Bind("CodStato") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblIdxStato" runat="server" Text='<%# Bind("IdxStato") %>'></asp:Label>
<asp:Label ID="lblCodStato" runat="server" Text='<%# Bind("CodStato") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtIdxStato" runat="server" Text='<%# Bind("IdxStato") %>'></asp:TextBox>
<asp:TextBox ID="txtCodStato" runat="server" Text='<%# Bind("CodStato") %>'></asp:TextBox>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DescrStato" SortExpression="DescrStato">
@@ -99,29 +106,42 @@
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getByTipoObj" TypeName="DS_XPSTableAdapters.StatiTableAdapter" OnInserting="recuperaFooter"
FilterExpression=" DescrStato LIKE '%{0}%'" DeleteMethod="DeleteQuery" InsertMethod="Insert" UpdateMethod="UpdateQuery">
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByMappaTipoObj" TypeName="DS_XPSTableAdapters.StatiTableAdapter"
OnInserting="recuperaFooter" FilterExpression=" DescrStato LIKE '%{0}%'" DeleteMethod="DeleteQuery"
InsertMethod="Insert" UpdateMethod="UpdateQuery">
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
</FilterParameters>
<DeleteParameters>
<asp:Parameter Name="Original_CodMappa" Type="String" />
<asp:Parameter Name="Original_CodStato" Type="String" />
<asp:Parameter Name="Original_IdxTipoObj" Type="Int32" />
<asp:Parameter Name="Original_IdxStato" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="IdxStato" Type="Int32" />
<asp:Parameter Name="CodStato" Type="String" />
<asp:Parameter Name="DescrStato" Type="String" />
<asp:Parameter Name="PlugIn" Type="String" />
<asp:Parameter Name="Valore" Type="String" />
<asp:Parameter Name="IdxUM" Type="String" />
<asp:Parameter Name="Original_CodMappa" Type="String" />
<asp:Parameter Name="Original_CodStato" Type="String" />
<asp:Parameter Name="Original_IdxTipoObj" Type="Int32" />
<asp:Parameter Name="Original_IdxStato" Type="Int32" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="Mod_filtro1" Type="Int32" Name="IdxTipoObj" PropertyName="valore" />
<asp:ControlParameter ControlID="Mod_filtroTipoObj" Type="Int32" Name="IdxTipoObj" PropertyName="valore"
DefaultValue="0" />
<asp:ControlParameter ControlID="Mod_filtroMappa" Type="string" Name="CodMappa" PropertyName="valore"
DefaultValue="" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="CodMappa" Type="String" />
<asp:Parameter Name="CodStato" Type="String" />
<asp:Parameter Name="IdxTipoObj" Type="Int32" />
<asp:Parameter Name="IdxStato" Type="Int32" />
<asp:Parameter Name="DescrStato" Type="String" />
<asp:Parameter Name="PlugIn" Type="String" />
<asp:Parameter Name="Valore" Type="String" />
<asp:Parameter Name="IdxUM" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label><br />
+7 -5
View File
@@ -243,10 +243,11 @@ public partial class mod_anagraficaStati : ApplicationUserControl
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
_idxGridView = "IdxStato";
_idxGridView = "CodStato";
if (!Page.IsPostBack)
{
Mod_filtro1.ods = odsFiltro;
Mod_filtroMappa.ods = odsMappa;
Mod_filtroTipoObj.ods = odsTipoObj;
}
}
void Mod_filtro1_eh_selValore(object sender, EventArgs e)
@@ -266,7 +267,7 @@ public partial class mod_anagraficaStati : ApplicationUserControl
// ottengo la riga tipizzata...
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
DS_XPS.StatiRow riga = (DS_XPS.StatiRow)_drv.Row;
if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.IdxStato.ToString())
if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.CodStato.ToString())
{
grView.SelectedIndex = e.Row.RowIndex;
}
@@ -283,7 +284,7 @@ public partial class mod_anagraficaStati : ApplicationUserControl
resetSelezione();
DS_XPSTableAdapters.StatiTableAdapter taStati = new DS_XPSTableAdapters.StatiTableAdapter();
// creo 1 obj vuoto...
taStati.Insert(Mod_filtro1.valoreInt, 1, "Nuovo stato");
taStati.Insert(Mod_filtroMappa.valore, "-", Mod_filtroTipoObj.valoreInt, "Nuovo stato", "", "", "");
grView.DataBind();
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
@@ -344,7 +345,8 @@ public partial class mod_anagraficaStati : ApplicationUserControl
}
tipoColonna = "";
}
e.InputParameters["IdxTipoObj"] = Mod_filtro1.valore;
e.InputParameters["CodMappa"] = Mod_filtroMappa.valore;
e.InputParameters["IdxTipoObj"] = Mod_filtroTipoObj.valore;
}
#endregion
-351
View File
@@ -1,351 +0,0 @@
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SteamWare;
public partial class mod_anagraficaStep : ApplicationUserControl
{
#region area da NON modificare
#region area protected
protected string _idxGridView;
protected bool _showNewBtn = true;
/// <summary>
/// imposta errore non cancellabilità per record correlati
/// </summary>
protected void setNoDeletableErrorMessage()
{
// mostro avviso di non cancellabilità...
lblWarning.Text = traduci("notDeletable_hasChild");
lblWarning.Visible = true;
grView.DataBind();
}
/// <summary>
/// esegue cancellazione record
/// </summary>
protected void doDelete()
{
// posso cancellare...
lblWarning.Visible = false;
ods.Delete();
}
/// <summary>
/// Valida la cancellazione per i dati mostrati dal gridView
/// richiede sia preventivamentedichiarato _idxGridView
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected virtual void validaDelete(object sender, ObjectDataSourceMethodEventArgs e)
{
int idx = Convert.ToInt32(e.InputParameters[string.Format("Original_{0}", _idxGridView)]);
if (objIsNotRelated(idx))
{
// annullo cancellazione...
e.Cancel = true;
// seleziono record... metto in session valore idx e poi ridisegno...
SteamWare.memLayer.ML.setSessionVal(_idxGridView, idx);
setNoDeletableErrorMessage();
}
else
{
doDelete();
}
}
/// <summary>
/// inserisce nuovo valore da footer
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lblIns_click(object sender, EventArgs e)
{
// click su inserimento, chiamo il metodo insert dell'ObjectDataSource
ods.Insert();
}
/// <summary>
/// annulla inserimento nuovo valore da footer
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lblCanc_click(object sender, EventArgs e)
{
// annullo inserimento: nascondo footer, bind controlli...
grView.FooterRow.Visible = false;
}
/// <summary>
/// aggiorna controlli datagrid e numero righe in pagina
/// </summary>
protected override void aggiornaControlliDataGL()
{
base.aggiornaControlliDataGL();
grView.PageSize = _righeDataGridMed;
}
/// <summary>
/// traduce gli header delle colonne
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_DataBound(object sender, EventArgs e)
{
if (grView.Rows.Count > 0)
{
LinkButton lb;
// aggiorno gli headers
foreach (TableCell cella in grView.HeaderRow.Cells)
{
try
{
lb = (LinkButton)cella.Controls[0];
lb.Text = traduci(lb.Text);
}
catch
{ }
}
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
}
else
{
lblNumRec.Text = "";
}
}
/// <summary>
/// resetta la selezione dei valori in caso di modifiche su altri controlli
/// </summary>
public void resetSelezione()
{
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
grView.SelectedIndex = -1;
grView.DataBind();
lblWarning.Visible = false;
if (eh_resetSelezione != null)
{
eh_resetSelezione(this, new EventArgs());
}
}
/// <summary>
/// gestione evento richeista nuovo valore (mostra footer, ...)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNew_Click(object sender, EventArgs e)
{
// reset selezione...
resetSelezione();
// mostro il footer oppure la riga dei dettagli x nuovo...
if (grView.FooterRow != null)
{
grView.FooterRow.Visible = true;
}
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
}
/// <summary>
/// reset della selezione
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnReset_Click(object sender, EventArgs e)
{
resetSelezione();
}
/// <summary>
/// gestione cambio selezione valore
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// salvo in session il valore selezionato...
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue);
// sollevo evento nuovo valore...
if (eh_selValore != null)
{
eh_selValore(this, new EventArgs());
}
}
#endregion
#region gestione eventi
public event EventHandler eh_resetSelezione;
public event EventHandler eh_nuovoValore;
public event EventHandler eh_selValore;
#endregion
#region public
/// <summary>
/// definisce visibilità btnNew
/// </summary>
public bool showNewBtn
{
get
{
return _showNewBtn;
}
set
{
_showNewBtn = value;
}
}
/// <summary>
/// effettua update del modulo
/// </summary>
public void doUpdate()
{
resetSelezione();
}
#endregion
#endregion
#region area codice variabile
/// <summary>
/// verifica complessiva non esistenza record child
/// </summary>
/// <param name="idxObj"></param>
/// <returns></returns>
protected bool objIsNotRelated(object idxObj)
{
// !!! FARE vero controllo cancellazione?
return false;// (taRouteVersion.getByOggetti(idxObj.ToString(), vers.ToString()).Rows.Count == 0);
}
/// <summary>
/// elenco colonne del datagrid
/// </summary>
/// <returns></returns>
protected DataColumnCollection colonneObj()
{
DS_XPS.StepDataTable tabella = new DS_XPS.StepDataTable();
DataColumnCollection colonne = tabella.Columns;
return colonne;
}
/// <summary>
/// inizializzazione valori di default
/// </summary>
/// <param name="e"></param>
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
_idxGridView = "IdxStep";
if (!Page.IsPostBack)
{
Mod_filtro1.ods = odsFiltro;
}
}
void Mod_filtro1_eh_selValore(object sender, EventArgs e)
{
// ridisegno
}
/// <summary>
/// setta selected alla riga il cui valore key è in session
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
{
// se riga di dati...
if (e.Row.RowType == DataControlRowType.DataRow)
{
// ottengo la riga tipizzata...
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
DS_XPS.StepRow riga = (DS_XPS.StepRow)_drv.Row;
if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.IdxStep.ToString())
{
grView.SelectedIndex = e.Row.RowIndex;
}
}
}
/// <summary>
/// gestione evento inserimento nuovo record standard (se ZERO presenti)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
{
// reset selezione...
resetSelezione();
DS_XPSTableAdapters.StepTableAdapter taStep= new DS_XPSTableAdapters.StepTableAdapter();
// creo 1 obj vuoto...
taStep.Insert(Mod_filtro1.valoreInt, 1, "Nuovo step");
grView.DataBind();
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
}
/// <summary>
/// recupera i dati di un nuovo record contenuti nel footer di un gridView;
/// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
{
//recupero la riga footer...
DataColumnCollection colonne = colonneObj();
string nomeCol;
string tipoColonna = "";
foreach (DataColumn colonna in colonne)
{
nomeCol = colonna.ColumnName;
// cerco un textbox o quello che sia...
if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
{
tipoColonna = "textBox";
}
else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
{
tipoColonna = "dropDownList";
}
else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
{
tipoColonna = "checkBox";
}
else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
{
tipoColonna = "selAjax";
}
// in base al tipo salvo negli inputparameters dell'ODS
switch (tipoColonna)
{
case "textBox":
e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
break;
case "dropDownList":
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
break;
case "checkBox":
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
break;
case "selAjax":
e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
break;
default:
break;
}
tipoColonna = "";
}
e.InputParameters["IdxTipoObj"] = Mod_filtro1.valore;
}
#endregion
}
+1 -1
View File
@@ -227,7 +227,7 @@ public partial class mod_ev2stati : ApplicationUserControl
resetSelezione();
DS_XPSTableAdapters.v_ev2statiTableAdapter taEv2Stato = new DS_XPSTableAdapters.v_ev2statiTableAdapter();
// creo 1 obj vuoto...
taEv2Stato.InsertQuery(memLayer.ML.IntSessionObj("IdxTipoObj_sel"), 0, memLayer.ML.IntSessionObj("IdxEvento_sel"), 0);
taEv2Stato.InsertQuery(memLayer.ML.StringSessionObj("CodMappa_sel"),"0",memLayer.ML.IntSessionObj("IdxTipoObj_sel"), memLayer.ML.IntSessionObj("IdxEvento_sel"), "0");
grView.DataBind();
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
-160
View File
@@ -1,160 +0,0 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_ev2step.ascx.cs" Inherits="mod_ev2step" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="IdxTipoObj,IdxStep,IdxEvento" DataSourceID="ods">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
<SelectedRowStyle CssClass="ctrSelRowStyle" />
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="false" />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma , SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
</EditItemTemplate>
<FooterTemplate>
<asp:ImageButton ID="imgInsert" runat="server" CausesValidation="False" CommandName="Insert"
ToolTip='<%# traduci("Insert") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.nuovo , SteamWare.dimImg.small) %>'
OnClick="lblIns_click" />
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DescrObj" SortExpression="DescrObj">
<EditItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DescrObj") %>'></asp:Label>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("DescrObj") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:Label ID="Label1" runat="server" Text="="></asp:Label>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DescrEvento" SortExpression="DescrEvento">
<EditItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("DescrEvento") %>'></asp:Label>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("DescrEvento") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:Label ID="Label3" runat="server" Text="="></asp:Label>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="StepCurr" SortExpression="StepCurr">
<EditItemTemplate>
<asp:DropDownList ID="dlIdxStep" runat="server" DataSourceID="odsStep" DataTextField="DescrStep"
DataValueField="IdxStep" SelectedValue='<%# Bind("IdxStep") %>'>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("StepCurr") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="dlIdxStep" runat="server" DataSourceID="odsStep" DataTextField="DescrStep"
DataValueField="IdxStep" SelectedValue='<%# Bind("IdxStep") %>'>
</asp:DropDownList>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="StepNext" SortExpression="StepNext">
<EditItemTemplate>
<asp:DropDownList ID="dlNextIdxStep" runat="server" DataSourceID="odsStep" DataTextField="DescrStep"
DataValueField="IdxStep" SelectedValue='<%# Bind("NextIdxStep") %>'>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# Bind("StepNext") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="dlNextIdxStep" runat="server" DataSourceID="odsStep" DataTextField="DescrStep"
DataValueField="IdxStep" SelectedValue='<%# Bind("NextIdxStep") %>'>
</asp:DropDownList>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>' />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
ToolTip='<%# traduci("Delete") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina , SteamWare.dimImg.small) %>' />
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
TargetControlID="imgDelete">
</cc1:ConfirmButtonExtender>
</ItemTemplate>
<EditItemTemplate>
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma , SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
</EditItemTemplate>
<FooterTemplate>
<asp:ImageButton ID="imgInsert2" runat="server" CausesValidation="False" CommandName="Insert"
ToolTip='<%# traduci("Insert") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.nuovo , SteamWare.dimImg.small) %>'
OnClick="lblIns_click" />
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
</FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getFiltered" TypeName="DS_XPSTableAdapters.v_ev2stepTableAdapter"
OnInserting="recuperaFooter" DeleteMethod="DeleteQuery" InsertMethod="InsertQuery"
UpdateMethod="UpdateQuery">
<SelectParameters>
<asp:SessionParameter DefaultValue="0" Name="IdxTipoObj" SessionField="IdxTipoObj_sel"
Type="Int32" />
<asp:SessionParameter DefaultValue="0" Name="IdxEvento" SessionField="IdxEvento_sel"
Type="Int32" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="Original_IdxTipoObj" Type="Int32" />
<asp:Parameter Name="Original_IdxStep" Type="Int32" />
<asp:Parameter Name="Original_IdxEvento" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="IdxStep" Type="Int32" />
<asp:Parameter Name="NextIdxStep" Type="Int32" />
<asp:Parameter Name="Original_IdxTipoObj" Type="Int32" />
<asp:Parameter Name="Original_IdxStep" Type="Int32" />
<asp:Parameter Name="Original_IdxEvento" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="IdxTipoObj" Type="Int32" />
<asp:Parameter Name="IdxStep" Type="Int32" />
<asp:Parameter Name="IdxEvento" Type="Int32" />
<asp:Parameter Name="NextIdxStep" Type="Int32" />
</InsertParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label><br />
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
<asp:ObjectDataSource ID="odsStep" runat="server" SelectMethod="getByTipoObj" TypeName="DS_XPSTableAdapters.StepTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="0" Name="IdxTipoObj" SessionField="IdxTipoObj_sel"
Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
Binary file not shown.