using SteamWare; using System; using System.Web.UI; namespace MoonPro.WebUserControls { public partial class mod_AnPro_DettGg : SteamWare.UserControl { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { mod_righePag.numRowPag = Convert.ToInt32(memLayer.ML.CRI("_righeDataGridMed") / 2); grView.PageSize = mod_righePag.numRowPag; } mod_righePag.eh_newNum += Mod_righePag_eh_newNum; } /// /// aggiorno numero righe da mostrare /// /// /// private void Mod_righePag_eh_newNum(object sender, EventArgs e) { grView.PageSize = mod_righePag.numRowPag; } /// /// aggiorna visualizzazione /// /// Macchina /// Articolo /// Si/No ODL già conclusi /// Si/No ODL in corso /// Si/No ODL da attrezzare public void doUpdate(string IdxMacchina, string CodArticolo, bool OdlChiusi, bool OdlAperti, bool OdlNew) { hfIdxMacchina.Value = IdxMacchina; hfCodArticolo.Value = CodArticolo; hfClosed.Value = OdlChiusi.ToString(); hfOpen.Value = OdlAperti.ToString(); hfNew.Value = OdlNew.ToString(); grView.DataBind(); } public string cssByStato(object stato) { return string.Format("css_{0}", stato); ; } } }