54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
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;
|
|
mod_validVal.pageSize = mod_righePag.numRowPag;
|
|
}
|
|
mod_righePag.eh_newNum += mod_righePag_eh_newNum;
|
|
mod_DettScheda.eh_selezioneValore += mod_DettScheda_eh_selezioneValore;
|
|
updateControls();
|
|
}
|
|
/// <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();
|
|
}
|
|
|
|
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;
|
|
mod_validVal.pageSize = mod_righePag.numRowPag;
|
|
}
|
|
}
|
|
} |