Fix errore post udpate dett intervento x allegati
forza il reload pagina
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -165,7 +165,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" numIntMtz='<%# Eval("numIntMtz") %>' />
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" numIntMtz='<%# Eval("numIntMtz") %>' enableMod="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -38,22 +38,36 @@ public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
|
||||
{
|
||||
refreshPostUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// URL corrente completo (pagina + parametri...)
|
||||
/// </summary>
|
||||
protected string currUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = string.Format("{0}?numIntMtz={1}", devicesAuthProxy.pagCorrente, memLayer.ML.QSI("numIntMtz"));
|
||||
}
|
||||
catch
|
||||
{
|
||||
answ = Request.Url.ToString();
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
private void refreshPostUpdate()
|
||||
{
|
||||
mod_dettInt_default.currMode = FormViewMode.ReadOnly;
|
||||
mod_dettInt_default.Visible = true;
|
||||
mod_dettInt_full.Visible = false;
|
||||
mod_dettInt_default.doUpdate();
|
||||
btnCancel.Visible = false;
|
||||
Response.Redirect(currUrl);
|
||||
}
|
||||
|
||||
private void Mod_dettInt_default_eh_updated(object sender, EventArgs e)
|
||||
{
|
||||
//refreshPostUpdate();
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
Response.Redirect(currUrl);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// setup iniziale e di reset dei controlli
|
||||
/// </summary>
|
||||
@@ -164,15 +178,7 @@ public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
|
||||
/// <param name="e"></param>
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
#if false
|
||||
mod_dettInt_default.currMode = FormViewMode.ReadOnly;
|
||||
mod_dettInt_default.Visible = true;
|
||||
mod_dettInt_full.Visible = false;
|
||||
btnCancel.Visible = false;
|
||||
mod_dettInt_default.doUpdate();
|
||||
mod_dettInt_full.doUpdate();
|
||||
#endif
|
||||
Response.Redirect(currUrl);
|
||||
}
|
||||
/// <summary>
|
||||
/// chiude la parte di editing
|
||||
@@ -186,5 +192,5 @@ public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
|
||||
eh_chiudi(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user