49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using SteamWare;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace ES3
|
|
{
|
|
public partial class MachineParams : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
cmp_numRowConfWeek.numRowPag = memLayer.ML.CRI("_righeDataGridShort");
|
|
cmp_numRowParams.numRowPag = memLayer.ML.CRI("_righeDataGridLong");
|
|
// sistemo i DataGrid...
|
|
cmp_confWeek.pageSize = cmp_numRowConfWeek.numRowPag;
|
|
cmp_machParams.pageSize = cmp_numRowParams.numRowPag;
|
|
}
|
|
cmp_numRowConfWeek.eh_newNum += Cmp_numRowConfWeek_eh_newNum;
|
|
cmp_numRowParams.eh_newNum += Cmp_numRowParams_eh_newNum;
|
|
cmp_machParams.eh_selected += Cmp_machParams_eh_selected;
|
|
cmp_machParams.eh_reset += Cmp_machParams_eh_reset;
|
|
}
|
|
|
|
private void Cmp_machParams_eh_reset(object sender, EventArgs e)
|
|
{
|
|
cmp_machStats.idxMacchinaSel = "";
|
|
}
|
|
|
|
private void Cmp_machParams_eh_selected(object sender, EventArgs e)
|
|
{
|
|
cmp_machStats.idxMacchinaSel = cmp_machParams.idxMacchinaSel;
|
|
}
|
|
|
|
private void Cmp_numRowParams_eh_newNum(object sender, EventArgs e)
|
|
{
|
|
cmp_machParams.pageSize = cmp_numRowParams.numRowPag;
|
|
}
|
|
|
|
private void Cmp_numRowConfWeek_eh_newNum(object sender, EventArgs e)
|
|
{
|
|
cmp_confWeek.pageSize = cmp_numRowConfWeek.numRowPag;
|
|
}
|
|
}
|
|
} |