CORRETTO BUG DOPPIO CLICK sulal selezione celle...
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@159 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
BIN
Binary file not shown.
@@ -134,8 +134,7 @@ namespace GMW.WebUserControls
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
traduzione();
|
||||
//pnlQta.Visible = false;
|
||||
//pnlSposta.Visible = false;
|
||||
azzeraPostUpdate();
|
||||
}
|
||||
_idxGridView = "UDC2edit";
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettCelleBlocco.ascx.cs" Inherits="GMW.WebUserControls.mod_dettCelleBlocco" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettCelleBlocco.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_dettCelleBlocco" %>
|
||||
<asp:Table runat="server" ID="tblBlocco" Width="100%" CellPadding="0" CellSpacing="0">
|
||||
</asp:Table>
|
||||
</asp:Table>
|
||||
<asp:Button runat="server" ID="btnReset" Text="reset"
|
||||
onclick="btnReset_Click" />
|
||||
@@ -163,8 +163,21 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
private void disegnaTabella()
|
||||
{
|
||||
tblBlocco.Rows.Clear();
|
||||
bool tabPresente = tblBlocco.Rows.Count > 0;
|
||||
if (tabPresente)
|
||||
{
|
||||
//foreach (TableRow riga in tblBlocco.Rows)
|
||||
//{
|
||||
// foreach (TableCell cella in riga.Cells)
|
||||
// {
|
||||
// foreach (LinkButton lnkb in cella.Controls)
|
||||
// {
|
||||
// lnkb.Click -= new EventHandler(lnkb_Click);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
tblBlocco.Rows.Clear();
|
||||
}
|
||||
// metto prima riga con indicazione valori NUMERICI delle colonne
|
||||
setupRigaConteggioX();
|
||||
// ciclo nel mio array e creo di conseguenza le celle di tabella
|
||||
@@ -219,7 +232,7 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
eh_selValore(this, new EventArgs());
|
||||
}
|
||||
disegnaTabella();
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
/// <summary>
|
||||
/// crea una cella per il numero dei livelli
|
||||
@@ -262,6 +275,17 @@ namespace GMW.WebUserControls
|
||||
// aggiungo riga!
|
||||
tblBlocco.Rows.Add(riga);
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta disegno
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("IdxCellaMag");
|
||||
memLayer.ML.emptySessionVal("CodCellaMag");
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -21,5 +21,14 @@ namespace GMW.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Table tblBlocco;
|
||||
|
||||
/// <summary>
|
||||
/// btnReset 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.Button btnReset;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,6 +66,10 @@ namespace GMW.WebUserControls
|
||||
mod_operazioniUdc1.Visible = false;
|
||||
updateControlli();
|
||||
}
|
||||
if (memLayer.ML.isInSessionObject("IdxCellaMag"))
|
||||
{
|
||||
mostraOperazioniUdc();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// nascondo dettagli UDC
|
||||
@@ -74,9 +78,11 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void mod_operazioniUdc1_eh_hidden(object sender, EventArgs e)
|
||||
{
|
||||
mod_operazioniUdc1.Visible = false;
|
||||
mod_dettCelleBlocco1.doUpdate();
|
||||
updateControlli();
|
||||
//mod_operazioniUdc1.Visible = false;
|
||||
//mod_dettCelleBlocco1.doUpdate();
|
||||
//updateControlli();
|
||||
memLayer.ML.emptySessionVal("IdxCellaMag");
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
/// <summary>
|
||||
/// eseguito all'evento update modulo operazioni UDC
|
||||
@@ -85,8 +91,9 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void mod_operazioniUdc1_eh_updated(object sender, EventArgs e)
|
||||
{
|
||||
mod_dettCelleBlocco1.doUpdate();
|
||||
mod_operazioniUdc1.doUpdate();
|
||||
//mod_dettCelleBlocco1.doUpdate();
|
||||
//mod_operazioniUdc1.doUpdate();
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -95,6 +102,11 @@ namespace GMW.WebUserControls
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_dettCelleBlocco1_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
mostraOperazioniUdc();
|
||||
}
|
||||
|
||||
private void mostraOperazioniUdc()
|
||||
{
|
||||
// mostro operazioni
|
||||
mod_operazioniUdc1.Visible = true;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user