77 lines
1.7 KiB
C#
77 lines
1.7 KiB
C#
using MapoDb;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace ES3.WebUserControls
|
|
{
|
|
public partial class cmp_machParams : System.Web.UI.UserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// Dim pagina
|
|
/// </summary>
|
|
public int pageSize
|
|
{
|
|
get
|
|
{
|
|
return grView.PageSize;
|
|
}
|
|
set
|
|
{
|
|
grView.PageSize = value;
|
|
doUpdate();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Forza update controllo
|
|
/// </summary>
|
|
public void doUpdate()
|
|
{
|
|
grView.DataBind();
|
|
}
|
|
/// <summary>
|
|
/// reset della selezione
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void btnReset_Click(object sender, EventArgs e)
|
|
{
|
|
resetSelezione();
|
|
}
|
|
/// <summary>
|
|
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
|
/// </summary>
|
|
public void resetSelezione()
|
|
{
|
|
#if false
|
|
memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
|
#endif
|
|
grView.SelectedIndex = -1;
|
|
doUpdate();
|
|
#if false
|
|
divEditQta.Visible = false;
|
|
mod_newPromessaODL.Visible = false;
|
|
lbtNewPODL.Visible = true;
|
|
lblWarning.Visible = false;
|
|
if (eh_resetSelezione != null)
|
|
{
|
|
eh_resetSelezione(this, new EventArgs());
|
|
}
|
|
#endif
|
|
}
|
|
|
|
protected void lbtAddNew_Click(object sender, EventArgs e)
|
|
{
|
|
// aggiungo macchine con parametri mancanti... MULTI --> OEE madre a 0%!!!
|
|
DataLayer.obj.taMacParams.insMissing();
|
|
doUpdate();
|
|
}
|
|
}
|
|
} |