Update x trad prod in SITE con errori, vers 1327
This commit is contained in:
@@ -1,24 +1,39 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
|
||||
namespace MP_SITE.WebUserControls
|
||||
{
|
||||
public class baseProdControl : System.Web.UI.UserControl
|
||||
{
|
||||
protected int _numRighe = 17;
|
||||
|
||||
protected resoconti _resoconti;
|
||||
#region Private Fields
|
||||
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
private DataLayer DataLayerObj = new DataLayer();
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Protected Fields
|
||||
|
||||
protected int _numRighe = 17;
|
||||
|
||||
protected resoconti _resoconti;
|
||||
|
||||
#endregion Protected Fields
|
||||
|
||||
#region Public Events
|
||||
|
||||
/// <summary>
|
||||
/// evento update
|
||||
/// </summary>
|
||||
public event EventHandler eh_doUpdate;
|
||||
|
||||
#endregion Public Events
|
||||
|
||||
#region Public Properties
|
||||
|
||||
public int numRighe
|
||||
{
|
||||
get
|
||||
@@ -31,18 +46,9 @@ namespace MP_SITE.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void aggiornamento()
|
||||
{
|
||||
}
|
||||
#endregion Public Properties
|
||||
|
||||
public void reportUpdate()
|
||||
{
|
||||
// alzo l'evento d update/inserimento e ricarico cache...
|
||||
if (eh_doUpdate != null)
|
||||
{
|
||||
eh_doUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
|
||||
@@ -62,5 +68,44 @@ namespace MP_SITE.WebUserControls
|
||||
aggiornamento();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public virtual void aggiornamento()
|
||||
{
|
||||
}
|
||||
|
||||
public void reportUpdate()
|
||||
{
|
||||
// alzo l'evento d update/inserimento e ricarico cache...
|
||||
if (eh_doUpdate != null)
|
||||
{
|
||||
eh_doUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua traduzione in inglese del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduciEn(string lemma)
|
||||
{
|
||||
return user_std.UtSn.TraduciEn(lemma);
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
@@ -6,15 +6,8 @@ namespace MP_SITE.WebUserControls
|
||||
{
|
||||
public partial class mod_AnPro_DettArt : baseProdControl
|
||||
{
|
||||
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;
|
||||
}
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// aggiorno numero righe da mostrare
|
||||
/// </summary>
|
||||
@@ -24,23 +17,30 @@ namespace MP_SITE.WebUserControls
|
||||
{
|
||||
grView.PageSize = mod_righePag.numRowPag;
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna visualizzazione
|
||||
/// </summary>
|
||||
/// <param name="IdxMacchina">Macchina</param>
|
||||
/// <param name="CodArticolo">Articolo</param>
|
||||
/// <param name="OdlChiusi">Si/No ODL già conclusi</param>
|
||||
/// <param name="OdlAperti">Si/No ODL in corso</param>
|
||||
/// <param name="OdlNew">Si/No ODL da attrezzare</param>
|
||||
public void doUpdate(string IdxMacchina, string CodArticolo, bool OdlChiusi, bool OdlAperti, bool OdlNew)
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
hfIdxMacchina.Value = IdxMacchina;
|
||||
hfCodArticolo.Value = CodArticolo;
|
||||
hfClosed.Value = OdlChiusi.ToString();
|
||||
hfOpen.Value = OdlAperti.ToString();
|
||||
hfNew.Value = OdlNew.ToString();
|
||||
grView.DataBind();
|
||||
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;
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public string cssByStato(object stato)
|
||||
{
|
||||
return string.Format("css_{0}", stato); ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// formato grafico post verifica qta > 0
|
||||
/// </summary>
|
||||
@@ -60,9 +60,24 @@ namespace MP_SITE.WebUserControls
|
||||
return answ;
|
||||
}
|
||||
|
||||
public string cssByStato(object stato)
|
||||
/// <summary>
|
||||
/// aggiorna visualizzazione
|
||||
/// </summary>
|
||||
/// <param name="IdxMacchina">Macchina</param>
|
||||
/// <param name="CodArticolo">Articolo</param>
|
||||
/// <param name="OdlChiusi">Si/No ODL già conclusi</param>
|
||||
/// <param name="OdlAperti">Si/No ODL in corso</param>
|
||||
/// <param name="OdlNew">Si/No ODL da attrezzare</param>
|
||||
public void doUpdate(string IdxMacchina, string CodArticolo, bool OdlChiusi, bool OdlAperti, bool OdlNew)
|
||||
{
|
||||
return string.Format("css_{0}", stato); ;
|
||||
hfIdxMacchina.Value = IdxMacchina;
|
||||
hfCodArticolo.Value = CodArticolo;
|
||||
hfClosed.Value = OdlChiusi.ToString();
|
||||
hfOpen.Value = OdlAperti.ToString();
|
||||
hfNew.Value = OdlNew.ToString();
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user