Files
SSC/CMS_SC/DettScheda.aspx.cs
Samuele E. Locatelli f833a73e43 continuo fix userAdmin
2018-02-15 17:15:32 +01:00

68 lines
1.8 KiB
C#

using SteamWare;
using System;
using System.Web.UI;
namespace CMS_SC
{
public partial class DettScheda : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
((Bootstrap)this.Master).showSearch = true;
mod_righePag.numRowPag = 20;
mod_DettScheda.pageSize = mod_righePag.numRowPag;
updateControls();
}
mod_righePag.eh_newNum += mod_righePag_eh_newNum;
mod_DettScheda.eh_selezioneValore += mod_DettScheda_eh_selezioneValore;
mod_DettScheda.eh_reqSave += Mod_DettScheda_eh_reqSave;
}
/// <summary>
/// richiedo salvataggio x scheda dettaglio
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Mod_DettScheda_eh_reqSave(object sender, EventArgs e)
{
mod_validVal.trySaveEdit();
}
/// <summary>
/// se c'è selezione valore MOSTROschema parametri validazione
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_DettScheda_eh_selezioneValore(object sender, EventArgs e)
{
updateControls();
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
private void updateControls()
{
if (mod_DettScheda.CodMisuraSel != "")
{
mod_validVal.Visible = true;
mod_validVal.CodMisuraSel = mod_DettScheda.CodMisuraSel;
}
else
{
mod_validVal.Visible = false;
}
}
void mod_righePag_eh_newNum(object sender, EventArgs e)
{
mod_DettScheda.pageSize = mod_righePag.numRowPag;
}
}
}