creato componente x list/editing interventi
This commit is contained in:
@@ -243,6 +243,7 @@
|
||||
<Content Include="WebUserContols\mod_enrollByAuthKey.ascx" />
|
||||
<Content Include="WebUserContols\mod_enrollByEmail.ascx" />
|
||||
<Content Include="WebUserContols\mod_enrollByJumperAuthKey.ascx" />
|
||||
<Content Include="WebUserContols\mod_ER_grid.ascx" />
|
||||
<Content Include="WebUserContols\mod_F2C.ascx" />
|
||||
<Content Include="WebUserContols\mod_forn2aree.ascx" />
|
||||
<Content Include="WebUserContols\mod_graficiRow.ascx" />
|
||||
@@ -596,6 +597,13 @@
|
||||
<Compile Include="WebUserContols\mod_enrollByJumperAuthKey.ascx.designer.cs">
|
||||
<DependentUpon>mod_enrollByJumperAuthKey.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserContols\mod_ER_grid.ascx.cs">
|
||||
<DependentUpon>mod_ER_grid.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserContols\mod_ER_grid.ascx.designer.cs">
|
||||
<DependentUpon>mod_ER_grid.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserContols\mod_F2C.ascx.cs">
|
||||
<DependentUpon>mod_F2C.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_grid.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_grid" %>
|
||||
|
||||
<asp:GridView runat="server" ID="grViewElRich" AutoGenerateColumns="False" DataKeyNames="idxRichiesta" DataSourceID="odsElRich" AllowPaging="True" Width="100%" AllowSorting="True" PageSize="5" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="table table-responsive table-striped" OnRowCancelingEdit="grViewElRich_RowCancelingEdit" OnRowEditing="grViewElRich_RowEditing" OnSelectedIndexChanging="grViewElRich_SelectedIndexChanging">
|
||||
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
||||
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
||||
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
||||
<EditRowStyle BackColor="#BBDDFF" />
|
||||
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
|
||||
<EmptyDataTemplate>
|
||||
No record found
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbtReset" runat="server" CausesValidation="False" OnClick="lbtReset_Click"><i class="fa fa-sync-alt"></i></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtSel" runat="server" CausesValidation="False" CommandName="Select"><i class="fa fa-search"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit"><i class="fa fa-edit"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbtUpdate" runat="server" CausesValidation="False" CommandName="Update"><i class="fa fa-check text-success"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="lbtCancel" runat="server" CausesValidation="False" CommandName="Cancel"><i class="fa fa-ban text-danger"></i></asp:LinkButton>
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Data" SortExpression="dataRich">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("dataRich","{0:dd.MM.yyyy}") %>' />
|
||||
<br />
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("dataRich","{0:ddd HH:mm}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Richiesta">
|
||||
<ItemTemplate>
|
||||
<div class="row">
|
||||
<div class="col-6 text-primary">
|
||||
<i class="far fa-building"></i>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Eval("nom_cond") %>' />
|
||||
</div>
|
||||
<div class="col-6 text-right text-warning">
|
||||
<asp:Label ID="Label6" runat="server" Text='<%# Eval("cod_fornitore") %>' />
|
||||
<i class="fas fa-industry"></i>
|
||||
</div>
|
||||
<div class="col-6 text-secondary small">
|
||||
<i class="fas fa-phone"></i>
|
||||
<asp:Label ID="Label9" runat="server" Text='<%# Eval("telContatto") %>' />
|
||||
(<asp:Label ID="Label7" runat="server" Text='<%# Eval("genContatto") %>' />)
|
||||
</div>
|
||||
<div class="col-6 text-secondary text-right small">
|
||||
<asp:Label ID="Label8" runat="server" Text='<%# Eval("collaboratore") %>' />
|
||||
<i class="far fa-user"></i>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<%--<asp:Label ID="Label2" runat="server" CssClass="small text-truncate" Text='<%# Eval("messaggio") %>' ToolTip='<%# Bind("messaggio") %>' Width="40em"></asp:Label>--%>
|
||||
<i class="far fa-bell"></i>
|
||||
<asp:Label ID="Label10" runat="server" CssClass="small" Text='<%# Eval("messaggio") %>' ToolTip='<%# Eval("messaggio") %>' />
|
||||
</div>
|
||||
<div class="col-12 text-right">
|
||||
<asp:Label ID="Label2" runat="server" CssClass="small" Text='<%# Eval("note") %>' ToolTip='<%# Eval("note") %>' />
|
||||
<i class="far fa-comment"></i>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Stato" SortExpression="idxStato">
|
||||
<ItemTemplate>
|
||||
<div class="text-center">
|
||||
<i class='<%# Eval("cssStato") %>'></i>
|
||||
<br />
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("stato") %>'></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="odsElRich" OldValuesParameterFormatString="original_{0}" SelectMethod="getByCondStato" TypeName="Data.DS_appTableAdapters.ElencolRichTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="1" Name="idxAmm" SessionField="idxAmm" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfCondominio" DefaultValue="0" Name="idxCond" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfStatoMin" DefaultValue="0" Name="minStato" PropertyName="Value" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="hfStatoMax" DefaultValue="200" Name="maxStato" PropertyName="Value" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfCondominio" />
|
||||
<asp:HiddenField runat="server" ID="hfStatoMin" />
|
||||
<asp:HiddenField runat="server" ID="hfStatoMax" />
|
||||
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace PUB.WebUserContols
|
||||
{
|
||||
public partial class mod_ER_grid : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void lbtReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
grViewElRich.EditIndex = -1;
|
||||
grViewElRich.SelectedIndex = -1;
|
||||
grViewElRich.DataBind();
|
||||
}
|
||||
|
||||
protected void grViewElRich_RowEditing(object sender, GridViewEditEventArgs e)
|
||||
{
|
||||
// imposto selezione a riga in edit
|
||||
grViewElRich.SelectedIndex = -1;
|
||||
}
|
||||
|
||||
protected void grViewElRich_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
|
||||
{
|
||||
grViewElRich.EditIndex = -1;
|
||||
}
|
||||
|
||||
protected void grViewElRich_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
|
||||
{
|
||||
grViewElRich.EditIndex = -1;
|
||||
grViewElRich.SelectedIndex = -1;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gestione condominio
|
||||
/// </summary>
|
||||
public string idxCond
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfCondominio.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfCondominio.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Min stato filtraggio
|
||||
/// </summary>
|
||||
public string StatoMin
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfStatoMin.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfStatoMin.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Max stato filtraggio
|
||||
/// </summary>
|
||||
public string StatoMax
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfStatoMax.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfStatoMax.Value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PUB.WebUserContols {
|
||||
|
||||
|
||||
public partial class mod_ER_grid {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grViewElRich.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grViewElRich;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsElRich.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsElRich;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfCondominio.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfCondominio;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfStatoMin.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfStatoMin;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfStatoMax.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfStatoMax;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_richiesteList.ascx.cs" Inherits="PUB.WebUserContols.mod_richiesteList" %>
|
||||
<%@ Register Src="~/WebUserContols/mod_ER_grid.ascx" TagPrefix="uc1" TagName="mod_ER_grid" %>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header alert alert-danger text-uppercase align-middle">
|
||||
@@ -73,98 +75,16 @@
|
||||
<asp:ObjectDataSource runat="server" ID="odsStatoRich" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="Data.DS_appTableAdapters.AnagStatiTableAdapter"></asp:ObjectDataSource>
|
||||
<div class="col-2">Da</div>
|
||||
<div class="col-4">
|
||||
<asp:DropDownList runat="server" ID="ddlStatoMin" DataSourceID="odsStatoRich" DataTextField="stato" DataValueField="idxStato" CssClass="form-control" AutoPostBack="True"></asp:DropDownList>
|
||||
<asp:DropDownList runat="server" ID="ddlStatoMin" DataSourceID="odsStatoRich" DataTextField="stato" DataValueField="idxStato" CssClass="form-control" AutoPostBack="True" OnSelectedIndexChanged="ddlStatoMin_SelectedIndexChanged"></asp:DropDownList>
|
||||
</div>
|
||||
<div class="col-2">A</div>
|
||||
<div class="col-4">
|
||||
<asp:DropDownList runat="server" ID="ddlStatoMax" DataSourceID="odsStatoRich" DataTextField="stato" DataValueField="idxStato" CssClass="form-control" AutoPostBack="True"></asp:DropDownList>
|
||||
<asp:DropDownList runat="server" ID="ddlStatoMax" DataSourceID="odsStatoRich" DataTextField="stato" DataValueField="idxStato" CssClass="form-control" AutoPostBack="True" OnSelectedIndexChanged="ddlStatoMax_SelectedIndexChanged"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<asp:GridView runat="server" ID="grViewElRich" AutoGenerateColumns="False" DataKeyNames="idxRichiesta" DataSourceID="odsElRich" AllowPaging="True" Width="100%" AllowSorting="True" PageSize="5" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="table table-responsive table-striped" OnRowCancelingEdit="grViewElRich_RowCancelingEdit" OnRowEditing="grViewElRich_RowEditing" OnSelectedIndexChanging="grViewElRich_SelectedIndexChanging">
|
||||
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
||||
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
||||
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
||||
<EditRowStyle BackColor="#BBDDFF" />
|
||||
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
|
||||
<%--<AlternatingRowStyle BackColor="White" />
|
||||
<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" />
|
||||
--%>
|
||||
<EmptyDataTemplate>
|
||||
No record found
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbtReset" runat="server" CausesValidation="False" OnClick="lbtReset_Click"><i class="fa fa-sync-alt"></i></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtSel" runat="server" CausesValidation="False" CommandName="Select"><i class="fa fa-search"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit"><i class="fa fa-edit"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbtUpdate" runat="server" CausesValidation="False" CommandName="Update"><i class="fa fa-check text-success"></i></asp:LinkButton>
|
||||
<asp:LinkButton ID="lbtCancel" runat="server" CausesValidation="False" CommandName="Cancel"><i class="fa fa-ban text-danger"></i></asp:LinkButton>
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Data" SortExpression="dataRich">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("dataRich","{0:dd.MM.yyyy}") %>' />
|
||||
<br />
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("dataRich","{0:ddd HH:mm}") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Richiesta">
|
||||
<ItemTemplate>
|
||||
<div class="row">
|
||||
<div class="col-6 text-primary">
|
||||
<i class="far fa-building"></i>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Eval("nom_cond") %>' />
|
||||
</div>
|
||||
<div class="col-6 text-right text-warning">
|
||||
<asp:Label ID="Label6" runat="server" Text='<%# Eval("cod_fornitore") %>' />
|
||||
<i class="fas fa-industry"></i>
|
||||
</div>
|
||||
<div class="col-6 text-secondary small">
|
||||
<i class="fas fa-phone"></i>
|
||||
<asp:Label ID="Label9" runat="server" Text='<%# Eval("telContatto") %>' />
|
||||
(<asp:Label ID="Label7" runat="server" Text='<%# Eval("genContatto") %>' />)
|
||||
</div>
|
||||
<div class="col-6 text-secondary text-right small">
|
||||
<asp:Label ID="Label8" runat="server" Text='<%# Eval("collaboratore") %>' />
|
||||
<i class="far fa-user"></i>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<%--<asp:Label ID="Label2" runat="server" CssClass="small text-truncate" Text='<%# Eval("messaggio") %>' ToolTip='<%# Bind("messaggio") %>' Width="40em"></asp:Label>--%>
|
||||
<asp:Label ID="Label10" runat="server" CssClass="small" Text='<%# Eval("messaggio") %>' ToolTip='<%# Bind("messaggio") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Stato" SortExpression="idxStato">
|
||||
<ItemTemplate>
|
||||
<div class="text-center">
|
||||
<i class='<%# Eval("cssStato") %>'></i>
|
||||
<br />
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("stato") %>'></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="odsElRich" OldValuesParameterFormatString="original_{0}" SelectMethod="getByCondStato" TypeName="Data.DS_appTableAdapters.ElencolRichTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="1" Name="idxAmm" SessionField="idxAmm" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="ddlCondominio" DefaultValue="0" Name="idxCond" PropertyName="SelectedValue" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="ddlStatoMin" DefaultValue="0" Name="minStato" PropertyName="SelectedValue" Type="Int32" />
|
||||
<asp:ControlParameter ControlID="ddlStatoMax" DefaultValue="200" Name="maxStato" PropertyName="SelectedValue" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<div class="col-12">
|
||||
<uc1:mod_ER_grid runat="server" id="mod_ER_grid" />
|
||||
<ul>
|
||||
<li>Primo intervento</li>
|
||||
<li>Primo intervento</li>
|
||||
|
||||
@@ -18,13 +18,23 @@ namespace PUB.WebUserContols
|
||||
// preseleziono filtro stati da msotrare...
|
||||
ddlStatoMin.SelectedValue = memLayer.ML.CRS("minStatoER");
|
||||
ddlStatoMax.SelectedValue = memLayer.ML.CRS("maxStatoER");
|
||||
// salvo le selezioni...
|
||||
saveSelections();
|
||||
}
|
||||
}
|
||||
|
||||
private void saveSelections()
|
||||
{
|
||||
mod_ER_grid.idxCond = ddlCondominio.SelectedValue;
|
||||
mod_ER_grid.StatoMin = ddlStatoMin.SelectedValue;
|
||||
mod_ER_grid.StatoMax = ddlStatoMax.SelectedValue;
|
||||
}
|
||||
|
||||
protected void ddlCondominio_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// se la selezione c'è --> permetto AGGIUNGI
|
||||
lbtAddNew.Visible = (ddlCondominio.SelectedIndex > 0);
|
||||
saveSelections();
|
||||
}
|
||||
|
||||
protected void lbtAddNew_Click(object sender, EventArgs e)
|
||||
@@ -57,6 +67,7 @@ namespace PUB.WebUserContols
|
||||
{
|
||||
ddlFornitore.Items.Clear();
|
||||
ddlFornitore.DataBind();
|
||||
saveSelections();
|
||||
}
|
||||
|
||||
protected void chkShowAll_CheckedChanged(object sender, EventArgs e)
|
||||
@@ -89,28 +100,14 @@ namespace PUB.WebUserContols
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
|
||||
protected void lbtReset_Click(object sender, EventArgs e)
|
||||
protected void ddlStatoMin_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
grViewElRich.EditIndex = -1;
|
||||
grViewElRich.SelectedIndex = -1;
|
||||
grViewElRich.DataBind();
|
||||
saveSelections();
|
||||
}
|
||||
|
||||
protected void grViewElRich_RowEditing(object sender, GridViewEditEventArgs e)
|
||||
protected void ddlStatoMax_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// imposto selezione a riga in edit
|
||||
grViewElRich.SelectedIndex = -1;
|
||||
}
|
||||
|
||||
protected void grViewElRich_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
|
||||
{
|
||||
grViewElRich.EditIndex = -1;
|
||||
}
|
||||
|
||||
protected void grViewElRich_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
|
||||
{
|
||||
grViewElRich.EditIndex = -1;
|
||||
grViewElRich.SelectedIndex = -1;
|
||||
saveSelections();
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-11
@@ -175,21 +175,12 @@ namespace PUB.WebUserContols {
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlStatoMax;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grViewElRich.
|
||||
/// Controllo mod_ER_grid.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grViewElRich;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsElRich.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsElRich;
|
||||
protected global::PUB.WebUserContols.mod_ER_grid mod_ER_grid;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user