continuo traduzione della parte info aggiuntive
This commit is contained in:
@@ -38,14 +38,14 @@
|
||||
<div class="col-4 pr-1">
|
||||
<div class="card">
|
||||
<div class="card-header p-1">
|
||||
<h4>Stato Macchina</h4>
|
||||
<h4><%: traduci("MachineCurrState") %></h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div id="alto1">
|
||||
<uc3:mod_immagineStato ID="Mod_immagineStato1" runat="server" />
|
||||
</div>
|
||||
<div id="medio1">
|
||||
<asp:CheckBox ID="chkHideSpenta" runat="server" AutoPostBack="True" OnCheckedChanged="chkHideSpenta_CheckedChanged" Text="Nascondi spenta" />
|
||||
<asp:CheckBox ID="chkHideSpenta" runat="server" AutoPostBack="True" OnCheckedChanged="chkHideSpenta_CheckedChanged" Text='<%# traduci("HideOff") %>' />
|
||||
</div>
|
||||
<div id="basso1">
|
||||
<asp:UpdatePanel ID="UpdatePanel3" runat="server" RenderMode="Block" UpdateMode="Always">
|
||||
@@ -60,7 +60,7 @@
|
||||
<div class="col-8 pl-1">
|
||||
<div class="card">
|
||||
<div class="card-header p-1">
|
||||
<h4>Dati Produzione</h4>
|
||||
<h4><%: traduci("ProductionData") %></h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Block" UpdateMode="Always">
|
||||
|
||||
@@ -6,9 +6,29 @@ namespace MP_SITE
|
||||
{
|
||||
public partial class DettaglioMacchina : BasePage
|
||||
{
|
||||
protected resoconti _resoconti;
|
||||
protected string idxMacchina;
|
||||
#region Protected Fields
|
||||
|
||||
protected intervalloDate _intervalloAnalisi;
|
||||
protected resoconti _resoconti;
|
||||
protected int durataMin;
|
||||
protected string idxMacchina;
|
||||
protected long standardZoom = 3;
|
||||
|
||||
#endregion Protected Fields
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
protected bool graphDataRefresh
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj("graphDataRefresh");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("graphDataRefresh", value);
|
||||
}
|
||||
}
|
||||
|
||||
protected intervalloDate intervalloAnalisi
|
||||
{
|
||||
@@ -65,61 +85,9 @@ namespace MP_SITE
|
||||
}
|
||||
}
|
||||
|
||||
protected int durataMin;
|
||||
protected long standardZoom = 3;
|
||||
#endregion Protected Properties
|
||||
|
||||
protected bool graphDataRefresh
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj("graphDataRefresh");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("graphDataRefresh", value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// al primo caricamento imposto il refresh obbligatorio
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
graphDataRefresh = true;
|
||||
}
|
||||
Mod_periodoAnalisi1.eh_doUpdate += new EventHandler(Mod_periodoAnalisi1_eh_doUpdate);
|
||||
Mod_listaStatiEventi1.eh_doUpdate += new EventHandler(Mod_listaStatiEventi1_eh_doUpdate);
|
||||
Mod_sequencerStati1.eh_richiestaZoom += new EventHandler(Mod_sequencerStati1_eh_richiestaZoom);
|
||||
mod_sequencerTempiCiclo1.eh_richiestaZoom += new EventHandler(mod_sequencerTempiCiclo1_eh_richiestaZoom);
|
||||
_resoconti = new resoconti();
|
||||
idxMacchina = memLayer.ML.QSS("IdxMacchina");
|
||||
intervalloAnalisi = (intervalloDate)memLayer.ML.objSessionObj("_intervallo");
|
||||
durataMin = memLayer.ML.IntSessionObj("_durataMin");
|
||||
// chiamo routine disegno
|
||||
impostaGrafici();
|
||||
}
|
||||
|
||||
private void mod_sequencerTempiCiclo1_eh_richiestaZoom(object sender, EventArgs e)
|
||||
{
|
||||
updateDaZoom();
|
||||
}
|
||||
|
||||
private void Mod_sequencerStati1_eh_richiestaZoom(object sender, EventArgs e)
|
||||
{
|
||||
updateDaZoom();
|
||||
}
|
||||
|
||||
private void updateDaZoom()
|
||||
{
|
||||
graphDataRefresh = true;
|
||||
// chiamo procedura zoom in controllo periodo
|
||||
Mod_periodoAnalisi1.dateZoom();
|
||||
}
|
||||
#region Private Methods
|
||||
|
||||
private void Mod_listaStatiEventi1_eh_doUpdate(object sender, EventArgs e)
|
||||
{
|
||||
@@ -135,6 +103,63 @@ namespace MP_SITE
|
||||
Mod_listaStatiEventi1.aggiornamento();
|
||||
}
|
||||
|
||||
private void Mod_sequencerStati1_eh_richiestaZoom(object sender, EventArgs e)
|
||||
{
|
||||
updateDaZoom();
|
||||
}
|
||||
|
||||
private void mod_sequencerTempiCiclo1_eh_richiestaZoom(object sender, EventArgs e)
|
||||
{
|
||||
updateDaZoom();
|
||||
}
|
||||
|
||||
private void setTC()
|
||||
{
|
||||
// procedo SOLO SE ho dei dati...
|
||||
bool datiOk = false;
|
||||
objTempiCiclo datiTC;
|
||||
try
|
||||
{
|
||||
datiTC = _resoconti.tempiCiclo(idxMacchina, intervalloAnalisi, 0);
|
||||
datiOk = (datiTC.serieDati != null);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in recupero seq TC {0}{1}{2}", idxMacchina, Environment.NewLine, exc));
|
||||
datiTC = new objTempiCiclo();
|
||||
}
|
||||
// procedo SE ho dati...
|
||||
if (datiOk)
|
||||
{
|
||||
mod_sequencerTempiCiclo1.larghezza = memLayer.ML.IntSessionObj("WindowWidth") - 2;
|
||||
mod_sequencerTempiCiclo1.plotReversed = true;
|
||||
mod_sequencerTempiCiclo1.graphHeight = 100;
|
||||
mod_sequencerTempiCiclo1.numSplit = 600;
|
||||
mod_sequencerTempiCiclo1.grafico = datiTC;
|
||||
mod_sequencerTempiCiclo1.doUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
private void updateDaZoom()
|
||||
{
|
||||
graphDataRefresh = true;
|
||||
// chiamo procedura zoom in controllo periodo
|
||||
Mod_periodoAnalisi1.dateZoom();
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void chkHideSpenta_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
// in base a quello ridisegno la torta...
|
||||
graphDataRefresh = true;
|
||||
impostaGrafici();
|
||||
//setTorta();
|
||||
up_grafici.Update();
|
||||
}
|
||||
|
||||
protected void impostaGrafici()
|
||||
{
|
||||
if (graphDataRefresh)
|
||||
@@ -168,31 +193,29 @@ namespace MP_SITE
|
||||
}
|
||||
}
|
||||
|
||||
private void setTC()
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// procedo SOLO SE ho dei dati...
|
||||
bool datiOk = false;
|
||||
objTempiCiclo datiTC;
|
||||
try
|
||||
// al primo caricamento imposto il refresh obbligatorio
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
datiTC = _resoconti.tempiCiclo(idxMacchina, intervalloAnalisi, 0);
|
||||
datiOk = (datiTC.serieDati != null);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in recupero seq TC {0}{1}{2}", idxMacchina, Environment.NewLine, exc));
|
||||
datiTC = new objTempiCiclo();
|
||||
}
|
||||
// procedo SE ho dati...
|
||||
if (datiOk)
|
||||
{
|
||||
mod_sequencerTempiCiclo1.larghezza = memLayer.ML.IntSessionObj("WindowWidth") - 2;
|
||||
mod_sequencerTempiCiclo1.plotReversed = true;
|
||||
mod_sequencerTempiCiclo1.graphHeight = 100;
|
||||
mod_sequencerTempiCiclo1.numSplit = 600;
|
||||
mod_sequencerTempiCiclo1.grafico = datiTC;
|
||||
mod_sequencerTempiCiclo1.doUpdate();
|
||||
chkHideSpenta.DataBind();
|
||||
graphDataRefresh = true;
|
||||
}
|
||||
Mod_periodoAnalisi1.eh_doUpdate += new EventHandler(Mod_periodoAnalisi1_eh_doUpdate);
|
||||
Mod_listaStatiEventi1.eh_doUpdate += new EventHandler(Mod_listaStatiEventi1_eh_doUpdate);
|
||||
Mod_sequencerStati1.eh_richiestaZoom += new EventHandler(Mod_sequencerStati1_eh_richiestaZoom);
|
||||
mod_sequencerTempiCiclo1.eh_richiestaZoom += new EventHandler(mod_sequencerTempiCiclo1_eh_richiestaZoom);
|
||||
_resoconti = new resoconti();
|
||||
idxMacchina = memLayer.ML.QSS("IdxMacchina");
|
||||
intervalloAnalisi = (intervalloDate)memLayer.ML.objSessionObj("_intervallo");
|
||||
durataMin = memLayer.ML.IntSessionObj("_durataMin");
|
||||
// chiamo routine disegno
|
||||
impostaGrafici();
|
||||
}
|
||||
|
||||
protected void setSequencer()
|
||||
@@ -227,13 +250,6 @@ namespace MP_SITE
|
||||
Mod_grafico2.graficoTorta.serie = _resoconti.tortaStati(idxMacchina, intervalloAnalisi, durataMin, chkHideSpenta.Checked);
|
||||
}
|
||||
|
||||
protected void chkHideSpenta_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
// in base a quello ridisegno la torta...
|
||||
graphDataRefresh = true;
|
||||
impostaGrafici();
|
||||
//setTorta();
|
||||
up_grafici.Update();
|
||||
}
|
||||
#endregion Protected Methods
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace MP_SITE.WebUserControls
|
||||
@@ -45,6 +46,13 @@ namespace MP_SITE.WebUserControls
|
||||
{
|
||||
urlMacc = "~/images/macchine/Steamware.png";
|
||||
}
|
||||
|
||||
string fullPath = Server.MapPath(urlMacc);
|
||||
if (!File.Exists(fullPath))
|
||||
{
|
||||
// metto default Steamware
|
||||
urlMacc = "~/images/macchine/Steamware.png";
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
@@ -1,177 +1,206 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_infoAggiuntive.ascx.cs"
|
||||
Inherits="MP_SITE.WebUserControls.mod_infoAggiuntive" %>
|
||||
<div id="InfoAggiuntive small">
|
||||
<%--Tabella dati ODL--%>
|
||||
<table cellpadding="3" cellspacing="0" style="border: solid 1px #666666;">
|
||||
<tr>
|
||||
<td colspan="4" style="width: 500px; color: White; background-color: #333333;">
|
||||
<asp:Label runat="server" ID="lblOdl" Font-Bold="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="background-color: #CDCDEF; color: Black; text-align: center; font-size: x-small">
|
||||
<td>Cod articolo
|
||||
</td>
|
||||
<td>Nr pezzi lanciati
|
||||
</td>
|
||||
<td>Nr pezzi confermati
|
||||
</td>
|
||||
<td>Nr pezzi fatti
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-weight: bold;">
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblCodArticolo" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblNumPzLanciati" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblNumPzConf" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblNumPzFatti" Font-Bold="false" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="background-color: #CDCDEF; color: Black; text-align: center;">
|
||||
<td>Nr pezzi restanti
|
||||
</td>
|
||||
<td>T. disp. impiegato
|
||||
</td>
|
||||
<td>T. rimanente
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblPezziRestantiConf" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblPezziRestanti" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTDispImpiegatoConf" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTDispImpiegato" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTRimanenteConf" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTRimanente" />
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr style="background-color: #CDCDEF; color: Black; text-align: center;">
|
||||
<td colspan="1">Efficienza Globale (V+G+R)
|
||||
</td>
|
||||
<td colspan="1">Efficienza Lavoro (V+G)
|
||||
</td>
|
||||
<td colspan="1">Efficienza Teorica (V)
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1">
|
||||
<asp:Label runat="server" ID="lblEfficienzaTot" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblEfficienzaTotRT" />
|
||||
</td>
|
||||
<td colspan="1">
|
||||
<asp:Label runat="server" ID="lblEfficienzaLavoro" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblEfficienzaLavoroRT" />
|
||||
</td>
|
||||
<td colspan="1">
|
||||
<asp:Label runat="server" ID="lblEfficienzaEff" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblEfficienzaEffRT" />
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr style="background-color: #CDCDEF; color: Black; text-align: center;">
|
||||
<td>Tc Medio (V+G+R)
|
||||
</td>
|
||||
<td>Tc Lavoro (V+G)
|
||||
</td>
|
||||
<td>Tc Tecnico (V)
|
||||
</td>
|
||||
<td>Tc impostato
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-weight: bold;">
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTcMedio" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTcMedioRT" Font-Bold="false" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTcLavoro" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTcLavoroRT" Font-Bold="false" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTcEffettivo" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTcEffettivoRT" Font-Bold="false" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTcImpostato" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<%--Tabella dati Periodo visualizzato--%>
|
||||
<table cellpadding="3" cellspacing="0" style="border: solid 1px #666666; background-color: #ABABEF; color: White;">
|
||||
<tr>
|
||||
<td colspan="4" style="width: 500px; color: White; background-color: #333333;">
|
||||
<asp:Label runat="server" ID="lblPeriodo" Font-Bold="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="background-color: #CDCDEF; color: Black; text-align: center;">
|
||||
<td colspan="1">Efficienza Globale (V+G+R)
|
||||
</td>
|
||||
<td colspan="1">Efficienza Lavoro (V+G)
|
||||
</td>
|
||||
<td colspan="1">Efficienza Teorica (V)
|
||||
</td>
|
||||
<td>Nr pezzi fatti
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1">
|
||||
<asp:Label runat="server" ID="lblEfficienzaTotPerRT" />
|
||||
</td>
|
||||
<td colspan="1">
|
||||
<asp:Label runat="server" ID="lblEfficienzaLavoroPerRT" />
|
||||
</td>
|
||||
<td colspan="1">
|
||||
<asp:Label runat="server" ID="lblEfficienzaEffPerRT" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblNumPzFattiPer" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="background-color: #CDCDEF; color: Black; text-align: center;">
|
||||
<td>Tc Medio (V+G+R)
|
||||
</td>
|
||||
<td>Tc Lavoro (V+G)
|
||||
</td>
|
||||
<td>Tc Tecnico (V)
|
||||
</td>
|
||||
<td>Tc impostato
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-weight: bold;">
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTcMedioPerRT" Font-Bold="false" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTcLavoroPerRT" Font-Bold="false" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTcEffettivoPerRT" Font-Bold="false" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Label runat="server" ID="lblTcImpostatoPerRT" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
Inherits="MP_SITE.WebUserControls.mod_infoAggiuntive" %>
|
||||
<div id="InfoAggiuntive" class="row small">
|
||||
<div class="col-12 col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-header bg-dark text-light py-1">
|
||||
<asp:Label runat="server" ID="lblOdl" Font-Bold="true" />
|
||||
</div>
|
||||
<div class="card-body py-1">
|
||||
<div class="row table-secondary">
|
||||
<div class="col-3"><%: traduci("OeeGlobal") %></div>
|
||||
<div class="col-3"><%: traduci("OeeWork") %></div>
|
||||
<div class="col-3"><%: traduci("OeeTeor") %></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<asp:Label runat="server" ID="lblEfficienzaTot" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblEfficienzaTotRT" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:Label runat="server" ID="lblEfficienzaLavoro" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblEfficienzaLavoroRT" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:Label runat="server" ID="lblEfficienzaEff" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblEfficienzaEffRT" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row table-secondary">
|
||||
<div class="col-3"><%: traduci("TCMedio") %></div>
|
||||
<div class="col-3"><%: traduci("TCWork") %></div>
|
||||
<div class="col-3"><%: traduci("TCTec") %></div>
|
||||
<div class="col-3"><%: traduci("TCStd") %></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblTcMedio" /></b>
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTcMedioRT" Font-Bold="false" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblTcLavoro" /></b>
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTcLavoroRT" Font-Bold="false" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblTcEffettivo" /></b>
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTcEffettivoRT" Font-Bold="false" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblTcImpostato" /></b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row table-secondary">
|
||||
<div class="col-3"><%: traduci("CodArt") %></div>
|
||||
<div class="col-3"><%: traduci("NumPezzi") %></div>
|
||||
<div class="col-3"><%: traduci("NumPezziConf") %></div>
|
||||
<div class="col-3"><%: traduci("NumPezziFatti") %></div>
|
||||
</div>
|
||||
<div class="row font-weight-bold">
|
||||
<div class="col-3">
|
||||
<asp:Label runat="server" ID="lblCodArticolo" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:Label runat="server" ID="lblNumPzLanciati" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:Label runat="server" ID="lblNumPzConf" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:Label runat="server" ID="lblNumPzFatti" Font-Bold="false" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row table-secondary">
|
||||
<div class="col-4"><%: traduci("NumPezziRest") %></div>
|
||||
<div class="col-4"><%: traduci("TimeDone") %></div>
|
||||
<div class="col-4"><%: traduci("TimeRem") %></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<asp:Label runat="server" ID="lblPezziRestantiConf" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblPezziRestanti" />
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<asp:Label runat="server" ID="lblTDispImpiegatoConf" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTDispImpiegato" />
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<asp:Label runat="server" ID="lblTRimanenteConf" Font-Bold="true" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblTRimanente" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer py-1 text-left small">
|
||||
<i><%: traduci("Legenda") %></i>
|
||||
<ul>
|
||||
<li><%: traduci("calc4Odl") %></li>
|
||||
<li><%: traduci("dataUnconfInPar") %></li>
|
||||
<li><b><%: traduci("OeeGlobal") %></b>: <%: traduci("OeeGlobalExpl") %></li>
|
||||
<li><b><%: traduci("OeeWork") %></b>: <%: traduci("OeeWorkExpl") %></li>
|
||||
<li><b><%: traduci("OeeTeor") %></b>: <%: traduci("OeeTeorExpl") %></li>
|
||||
<li><b><%: traduci("TCMedio") %></b>: <%: traduci("TCMedioExpl") %></li>
|
||||
<li><b><%: traduci("TCWork") %></b>: <%: traduci("TCWorkExpl") %></li>
|
||||
<li><b><%: traduci("TCTec") %></b>: <%: traduci("TCTecExpl") %></li>
|
||||
<li><b><%: traduci("TCStd") %></b>: <%: traduci("TCStdExpl") %></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-header bg-dark text-light py-1">
|
||||
<asp:Label runat="server" ID="lblPeriodo" Font-Bold="true" />
|
||||
</div>
|
||||
<div class="card-body py-1">
|
||||
<%--Tabella dati Periodo visualizzato--%>
|
||||
<div class="row table-secondary">
|
||||
<div class="col-3"><%: traduci("OeeGlobal") %></div>
|
||||
<div class="col-3"><%: traduci("OeeWork") %></div>
|
||||
<div class="col-3"><%: traduci("OeeTeor") %></div>
|
||||
<div class="col-3"><%: traduci("NumPezziFatti") %></div>
|
||||
</div>
|
||||
<div class="row font-weight-bold">
|
||||
<div class="col-3">
|
||||
-<br />
|
||||
<asp:Label runat="server" ID="lblEfficienzaTotPerRT" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
-<br />
|
||||
<asp:Label runat="server" ID="lblEfficienzaLavoroPerRT" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
-<br />
|
||||
<asp:Label runat="server" ID="lblEfficienzaEffPerRT" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
-<br />
|
||||
<asp:Label runat="server" ID="lblNumPzFattiPer" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row table-secondary">
|
||||
<div class="col-3"><%: traduci("TCMedio") %></div>
|
||||
<div class="col-3"><%: traduci("TCWork") %></div>
|
||||
<div class="col-3"><%: traduci("TCTec") %></div>
|
||||
<div class="col-3"><%: traduci("TCStd") %></div>
|
||||
</div>
|
||||
<div class="row font-weight-bold">
|
||||
<div class="col-3">
|
||||
-<br />
|
||||
<asp:Label runat="server" ID="lblTcMedioPerRT" Font-Bold="false" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
-<br />
|
||||
<asp:Label runat="server" ID="lblTcLavoroPerRT" Font-Bold="false" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
-<br />
|
||||
<asp:Label runat="server" ID="lblTcEffettivoPerRT" Font-Bold="false" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<asp:Label runat="server" ID="lblTcImpostatoPerRT" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row table-secondary">
|
||||
<div class="col-12">-</div>
|
||||
</div>
|
||||
<div class="row font-weight-bold">
|
||||
<div class="col-12">-</div>
|
||||
</div>
|
||||
<div class="row table-secondary">
|
||||
<div class="col-12">-</div>
|
||||
</div>
|
||||
<div class="row font-weight-bold">
|
||||
<div class="col-12">
|
||||
-<br />
|
||||
-
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer py-1 text-left small">
|
||||
<i><%: traduci("Legenda") %></i>
|
||||
<ul>
|
||||
<li><%: traduci("calc4SelPer") %></li>
|
||||
<li><%: traduci("dataUnconfInPar") %></li>
|
||||
<li><b><%: traduci("OeeWork") %></b>: <%: traduci("OeeWorkExpl") %></li>
|
||||
<li><b><%: traduci("OeeTeor") %></b>: <%: traduci("OeeTeorExpl") %></li>
|
||||
<li><b><%: traduci("TCMedio") %></b>: <%: traduci("TCMedioExpl") %></li>
|
||||
<li><b><%: traduci("TCWork") %></b>: <%: traduci("TCWorkExpl") %></li>
|
||||
<li><b><%: traduci("TCTec") %></b>: <%: traduci("TCTecExpl") %></li>
|
||||
<li><b><%: traduci("TCStd") %></b>: <%: traduci("TCStdExpl") %></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -4,273 +4,294 @@ using System;
|
||||
|
||||
namespace MP_SITE.WebUserControls
|
||||
{
|
||||
public partial class mod_infoAggiuntive : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
/// <summary>
|
||||
/// load pagina con info
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_infoAggiuntive : baseUserControl
|
||||
{
|
||||
popolaLabels();
|
||||
}
|
||||
#region Private Fields
|
||||
|
||||
/// <summary>
|
||||
/// popola le labels
|
||||
/// </summary>
|
||||
private void popolaLabels()
|
||||
{
|
||||
// popolo labels sezione ODL
|
||||
setLabelsODL();
|
||||
// popolo labels sezione periodo selezionato
|
||||
setLabelsPeriodo();
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta le labels sezione "ODL"
|
||||
/// </summary>
|
||||
/// <param name="odl"></param>
|
||||
/// <param name="dataFrom"></param>
|
||||
private void setLabelsODL()
|
||||
{
|
||||
int odl = 0;
|
||||
DateTime dataFrom = DateTime.Now;
|
||||
DateTime dataTo = DateTime.Now;
|
||||
// label ODL
|
||||
try
|
||||
{
|
||||
DS_ProdTempi.ODLRow rigaOdl = DataLayerObj.taODL.getByMacchina(idxMacchina)[0];
|
||||
odl = rigaOdl.IdxODL;
|
||||
dataFrom = rigaOdl.DataInizio;
|
||||
lblOdl.Text = string.Format("ODL num: {0}, iniziato il {1:dd/MM/yy} alle {1:HH:mm}", odl, dataFrom);
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblOdl.Text = "n/a";
|
||||
}
|
||||
/************************************
|
||||
* data la postazione corrente decide cosa mostrare e come
|
||||
************************************/
|
||||
MapoDb.DS_ProdTempi.stp_repDonati_getDatiProdMacchinaRow rigaProd = DataLayerObj.taDatiProdMacch.GetData(idxMacchina)[0];
|
||||
lblCodArticolo.Text = rigaProd.CodArticolo;
|
||||
lblNumPzLanciati.Text = string.Format("{0} pz.", rigaProd.PezziLanciati);
|
||||
lblNumPzConf.Text = string.Format("{0} pz.", rigaProd.PezziConf);
|
||||
lblNumPzFatti.Text = string.Format("({0} pz.)", rigaProd.PezziProd);
|
||||
int pezziRimConf = rigaProd.PezziLanciati - rigaProd.PezziConf;
|
||||
int pezziRim = rigaProd.PezziLanciati - rigaProd.PezziProd;
|
||||
if (pezziRimConf > 0)
|
||||
{
|
||||
lblPezziRestantiConf.Text = string.Format("{0} pz.", pezziRimConf);
|
||||
}
|
||||
else
|
||||
{
|
||||
pezziRim = 0;
|
||||
lblPezziRestantiConf.Text = string.Format("!!! {0} !!!", pezziRimConf);
|
||||
lblPezziRestantiConf.ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
if (pezziRim > 0)
|
||||
{
|
||||
lblPezziRestanti.Text = string.Format("({0} pz.)", pezziRim);
|
||||
}
|
||||
else
|
||||
{
|
||||
pezziRim = 0;
|
||||
lblPezziRestanti.Text = string.Format("!!! {0} !!!", pezziRim);
|
||||
lblPezziRestanti.ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
/************************************
|
||||
* imposto i TEMPI impiegati/rimanenti
|
||||
************************************/
|
||||
lblTDispImpiegatoConf.Text = string.Format("{0:0.0} h", rigaProd.PezziConf * rigaProd.TCAssegnato / 60);
|
||||
lblTDispImpiegato.Text = string.Format("({0:0.0} h)", rigaProd.PezziProd * rigaProd.TCAssegnato / 60);
|
||||
lblTRimanenteConf.Text = string.Format("{0:0.0} h", pezziRimConf * rigaProd.TCAssegnato / 60);
|
||||
lblTRimanente.Text = string.Format("({0:0.0} h)", pezziRim * rigaProd.TCAssegnato / 60);
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
private DataLayer DataLayerObj = new DataLayer();
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
/************************************
|
||||
* calcolo efficienza totale
|
||||
* se il calcolo non è possibile mette n/a
|
||||
************************************/
|
||||
decimal tempoProd = rigaProd.TCAssegnato * rigaProd.PezziConf;
|
||||
try
|
||||
{
|
||||
lblEfficienzaTot.Text = Convert.ToString(String.Format("{0:p2}", tempoProd / rigaProd.TempoOn / 100));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaTot.Text = "n/a";
|
||||
}
|
||||
// calcolo efficienza lavoro - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaLavoro.Text = Convert.ToString(String.Format("{0:p2}", tempoProd / rigaProd.TempoAuto / 100));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaLavoro.Text = "n/a";
|
||||
#region Public Properties
|
||||
|
||||
}
|
||||
// calcolo efficienza Teorica - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaEff.Text = Convert.ToString(String.Format("{0:p2}", tempoProd / rigaProd.TempoRun / 100));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaEff.Text = "n/a";
|
||||
}
|
||||
|
||||
/************************************
|
||||
* imposto i TEMPI CICLO
|
||||
************************************/
|
||||
// riporto Tempo ciclo impostato
|
||||
lblTcImpostato.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCAssegnato));
|
||||
// riporto Tempo ciclo medio
|
||||
lblTcMedio.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCMedio));
|
||||
lblTcMedioRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCMedioRT));
|
||||
// riporto Tempo ciclo lavoro
|
||||
lblTcLavoro.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCLav));
|
||||
lblTcLavoroRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCLavRT));
|
||||
// riporto Tempo ciclo effettivo/tecnico, come media dei 10 migliori delle ultime 8 ore
|
||||
lblTcEffettivo.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCEff));
|
||||
lblTcEffettivoRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCEffRT));
|
||||
|
||||
/************************************
|
||||
* Sistemo efficienze RT da tempi ciclo
|
||||
************************************/
|
||||
try
|
||||
{
|
||||
lblEfficienzaTotRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCMedioRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaTotRT.Text = "n/a";
|
||||
}
|
||||
// calcolo efficienza lavoro - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaLavoroRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCLavRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaLavoroRT.Text = "n/a";
|
||||
|
||||
}
|
||||
// calcolo efficienza Teorica - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaEffRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCEffRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaEffRT.Text = "n/a";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta le labels sezione "Periodo"
|
||||
/// </summary>
|
||||
/// <param name="odl"></param>
|
||||
/// <param name="dataFrom"></param>
|
||||
private void setLabelsPeriodo()
|
||||
{
|
||||
DateTime dataFrom = Convert.ToDateTime(memLayer.ML.objSessionObj("_inizio"));
|
||||
DateTime dataTo = Convert.ToDateTime(memLayer.ML.objSessionObj("_fine"));
|
||||
lblPeriodo.Text = string.Format("Periodo: {0:dd/MM/yy HH:mm} --> {1:dd/MM/yy HH:mm}", dataFrom, dataTo);
|
||||
|
||||
/************************************
|
||||
* recupero dati macchina / periodo
|
||||
************************************/
|
||||
MapoDb.DS_ProdTempi.stp_repDonati_getDatiProdMacchinaPeriodoRow rigaProd = DataLayerObj.taDatiProdMacchPer.GetData(idxMacchina, dataFrom, dataTo)[0];
|
||||
|
||||
/************************************
|
||||
* calcolo pezzi fatti periodo
|
||||
************************************/
|
||||
int pezziFatti = 0;
|
||||
try
|
||||
{
|
||||
pezziFatti = rigaProd.PezziProd;
|
||||
}
|
||||
catch
|
||||
{
|
||||
pezziFatti = DataLayerObj.taTempiCicloRilevati.getByMacchinaPeriodo(idxMacchina, dataFrom, dataTo).Rows.Count;
|
||||
}
|
||||
lblNumPzFattiPer.Text = string.Format("({0} pz.)", pezziFatti);
|
||||
|
||||
/************************************
|
||||
* imposto i TEMPI CICLO
|
||||
************************************/
|
||||
// riporto Tempo ciclo impostato
|
||||
lblTcImpostatoPerRT.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCAssegnato));
|
||||
// riporto Tempo ciclo medio
|
||||
lblTcMedioPerRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCMedioRT));
|
||||
// riporto Tempo ciclo lavoro
|
||||
lblTcLavoroPerRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCLavRT));
|
||||
// riporto Tempo ciclo effettivo/tecnico, come media dei 10 migliori delle ultime 8 ore
|
||||
lblTcEffettivoPerRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCEffRT));
|
||||
|
||||
/************************************
|
||||
* Sistemo efficienze RT da tempi ciclo
|
||||
************************************/
|
||||
try
|
||||
{
|
||||
lblEfficienzaTotPerRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCMedioRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaTotPerRT.Text = "n/a";
|
||||
}
|
||||
// calcolo efficienza lavoro - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaLavoroPerRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCLavRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaLavoroPerRT.Text = "n/a";
|
||||
|
||||
}
|
||||
// calcolo efficienza Teorica - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaEffPerRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCEffRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaEffPerRT.Text = "n/a";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// idx della macchina da mostrare
|
||||
/// </summary>
|
||||
public string idxMacchina
|
||||
{
|
||||
get
|
||||
{
|
||||
string idxMacchina = "1";
|
||||
try
|
||||
/// <summary>
|
||||
/// idx della macchina da mostrare
|
||||
/// </summary>
|
||||
public string idxMacchina
|
||||
{
|
||||
idxMacchina = memLayer.ML.StringSessionObj("IdxMacchina");
|
||||
get
|
||||
{
|
||||
string idxMacchina = "1";
|
||||
try
|
||||
{
|
||||
idxMacchina = memLayer.ML.StringSessionObj("IdxMacchina");
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return idxMacchina;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("IdxMacchina", value);
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// popola le labels
|
||||
/// </summary>
|
||||
private void popolaLabels()
|
||||
{
|
||||
// popolo labels sezione ODL
|
||||
setLabelsODL();
|
||||
// popolo labels sezione periodo selezionato
|
||||
setLabelsPeriodo();
|
||||
}
|
||||
return idxMacchina;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("IdxMacchina", value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// imposta le labels sezione "ODL"
|
||||
/// </summary>
|
||||
/// <param name="odl"></param>
|
||||
/// <param name="dataFrom"></param>
|
||||
private void setLabelsODL()
|
||||
{
|
||||
int odl = 0;
|
||||
DateTime dataFrom = DateTime.Now;
|
||||
DateTime dataTo = DateTime.Now;
|
||||
// label ODL
|
||||
try
|
||||
{
|
||||
DS_ProdTempi.ODLRow rigaOdl = DataLayerObj.taODL.getByMacchina(idxMacchina)[0];
|
||||
odl = rigaOdl.IdxODL;
|
||||
dataFrom = rigaOdl.DataInizio;
|
||||
lblOdl.Text = string.Format("ODL num: {0}, iniziato il {1:dd/MM/yy} alle {1:HH:mm}", odl, dataFrom);
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblOdl.Text = "n/a";
|
||||
}
|
||||
/************************************
|
||||
* data la postazione corrente decide cosa mostrare e come
|
||||
************************************/
|
||||
MapoDb.DS_ProdTempi.stp_repDonati_getDatiProdMacchinaRow rigaProd = DataLayerObj.taDatiProdMacch.GetData(idxMacchina)[0];
|
||||
lblCodArticolo.Text = rigaProd.CodArticolo;
|
||||
lblNumPzLanciati.Text = string.Format("{0} pz.", rigaProd.PezziLanciati);
|
||||
lblNumPzConf.Text = string.Format("{0} pz.", rigaProd.PezziConf);
|
||||
lblNumPzFatti.Text = string.Format("({0} pz.)", rigaProd.PezziProd);
|
||||
int pezziRimConf = rigaProd.PezziLanciati - rigaProd.PezziConf;
|
||||
int pezziRim = rigaProd.PezziLanciati - rigaProd.PezziProd;
|
||||
if (pezziRimConf > 0)
|
||||
{
|
||||
lblPezziRestantiConf.Text = string.Format("{0} pz.", pezziRimConf);
|
||||
}
|
||||
else
|
||||
{
|
||||
pezziRim = 0;
|
||||
lblPezziRestantiConf.Text = string.Format("!!! {0} !!!", pezziRimConf);
|
||||
lblPezziRestantiConf.ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
if (pezziRim > 0)
|
||||
{
|
||||
lblPezziRestanti.Text = string.Format("({0} pz.)", pezziRim);
|
||||
}
|
||||
else
|
||||
{
|
||||
pezziRim = 0;
|
||||
lblPezziRestanti.Text = string.Format("!!! {0} !!!", pezziRim);
|
||||
lblPezziRestanti.ForeColor = System.Drawing.Color.Red;
|
||||
}
|
||||
/************************************
|
||||
* imposto i TEMPI impiegati/rimanenti
|
||||
************************************/
|
||||
lblTDispImpiegatoConf.Text = string.Format("{0:0.0} h", rigaProd.PezziConf * rigaProd.TCAssegnato / 60);
|
||||
lblTDispImpiegato.Text = string.Format("({0:0.0} h)", rigaProd.PezziProd * rigaProd.TCAssegnato / 60);
|
||||
lblTRimanenteConf.Text = string.Format("{0:0.0} h", pezziRimConf * rigaProd.TCAssegnato / 60);
|
||||
lblTRimanente.Text = string.Format("({0:0.0} h)", pezziRim * rigaProd.TCAssegnato / 60);
|
||||
|
||||
/************************************
|
||||
* calcolo efficienza totale
|
||||
* se il calcolo non è possibile mette n/a
|
||||
************************************/
|
||||
decimal tempoProd = rigaProd.TCAssegnato * rigaProd.PezziConf;
|
||||
try
|
||||
{
|
||||
lblEfficienzaTot.Text = Convert.ToString(String.Format("{0:p2}", tempoProd / rigaProd.TempoOn / 100));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaTot.Text = "n/a";
|
||||
}
|
||||
// calcolo efficienza lavoro - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaLavoro.Text = Convert.ToString(String.Format("{0:p2}", tempoProd / rigaProd.TempoAuto / 100));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaLavoro.Text = "n/a";
|
||||
}
|
||||
// calcolo efficienza Teorica - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaEff.Text = Convert.ToString(String.Format("{0:p2}", tempoProd / rigaProd.TempoRun / 100));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaEff.Text = "n/a";
|
||||
}
|
||||
|
||||
/************************************
|
||||
* imposto i TEMPI CICLO
|
||||
************************************/
|
||||
// riporto Tempo ciclo impostato
|
||||
lblTcImpostato.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCAssegnato));
|
||||
// riporto Tempo ciclo medio
|
||||
lblTcMedio.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCMedio));
|
||||
lblTcMedioRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCMedioRT));
|
||||
// riporto Tempo ciclo lavoro
|
||||
lblTcLavoro.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCLav));
|
||||
lblTcLavoroRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCLavRT));
|
||||
// riporto Tempo ciclo effettivo/tecnico, come media dei 10 migliori delle ultime 8 ore
|
||||
lblTcEffettivo.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCEff));
|
||||
lblTcEffettivoRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCEffRT));
|
||||
|
||||
/************************************
|
||||
* Sistemo efficienze RT da tempi ciclo
|
||||
************************************/
|
||||
try
|
||||
{
|
||||
lblEfficienzaTotRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCMedioRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaTotRT.Text = "n/a";
|
||||
}
|
||||
// calcolo efficienza lavoro - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaLavoroRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCLavRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaLavoroRT.Text = "n/a";
|
||||
}
|
||||
// calcolo efficienza Teorica - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaEffRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCEffRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaEffRT.Text = "n/a";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// imposta le labels sezione "Periodo"
|
||||
/// </summary>
|
||||
/// <param name="odl"></param>
|
||||
/// <param name="dataFrom"></param>
|
||||
private void setLabelsPeriodo()
|
||||
{
|
||||
DateTime dataFrom = Convert.ToDateTime(memLayer.ML.objSessionObj("_inizio"));
|
||||
DateTime dataTo = Convert.ToDateTime(memLayer.ML.objSessionObj("_fine"));
|
||||
lblPeriodo.Text = string.Format("Periodo: {0:dd/MM/yy HH:mm} --> {1:dd/MM/yy HH:mm}", dataFrom, dataTo);
|
||||
|
||||
/************************************
|
||||
* recupero dati macchina / periodo
|
||||
************************************/
|
||||
MapoDb.DS_ProdTempi.stp_repDonati_getDatiProdMacchinaPeriodoRow rigaProd = DataLayerObj.taDatiProdMacchPer.GetData(idxMacchina, dataFrom, dataTo)[0];
|
||||
|
||||
/************************************
|
||||
* calcolo pezzi fatti periodo
|
||||
************************************/
|
||||
int pezziFatti = 0;
|
||||
try
|
||||
{
|
||||
pezziFatti = rigaProd.PezziProd;
|
||||
}
|
||||
catch
|
||||
{
|
||||
pezziFatti = DataLayerObj.taTempiCicloRilevati.getByMacchinaPeriodo(idxMacchina, dataFrom, dataTo).Rows.Count;
|
||||
}
|
||||
lblNumPzFattiPer.Text = string.Format("({0} pz.)", pezziFatti);
|
||||
|
||||
/************************************
|
||||
* imposto i TEMPI CICLO
|
||||
************************************/
|
||||
// riporto Tempo ciclo impostato
|
||||
lblTcImpostatoPerRT.Text = Convert.ToString(String.Format("{0:0.###}", rigaProd.TCAssegnato));
|
||||
// riporto Tempo ciclo medio
|
||||
lblTcMedioPerRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCMedioRT));
|
||||
// riporto Tempo ciclo lavoro
|
||||
lblTcLavoroPerRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCLavRT));
|
||||
// riporto Tempo ciclo effettivo/tecnico, come media dei 10 migliori delle ultime 8 ore
|
||||
lblTcEffettivoPerRT.Text = Convert.ToString(String.Format("({0:0.###})", rigaProd.TCEffRT));
|
||||
|
||||
/************************************
|
||||
* Sistemo efficienze RT da tempi ciclo
|
||||
************************************/
|
||||
try
|
||||
{
|
||||
lblEfficienzaTotPerRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCMedioRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaTotPerRT.Text = "n/a";
|
||||
}
|
||||
// calcolo efficienza lavoro - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaLavoroPerRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCLavRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaLavoroPerRT.Text = "n/a";
|
||||
}
|
||||
// calcolo efficienza Teorica - se il calcolo non è possibile mette n/a
|
||||
try
|
||||
{
|
||||
lblEfficienzaEffPerRT.Text = Convert.ToString(String.Format("({0:p2})", rigaProd.TCAssegnato / rigaProd.TCEffRT));
|
||||
}
|
||||
catch
|
||||
{
|
||||
lblEfficienzaEffPerRT.Text = "n/a";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
/// <summary>
|
||||
/// load pagina con info
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
popolaLabels();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// aggiorna visualizzazione
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
popolaLabels();
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna visualizzazione
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
popolaLabels();
|
||||
}
|
||||
}
|
||||
}
|
||||
+193
-191
@@ -1,311 +1,313 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_SITE.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_infoAggiuntive {
|
||||
|
||||
namespace MP_SITE.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_infoAggiuntive
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblOdl.
|
||||
/// lblOdl control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblOdl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblCodArticolo.
|
||||
/// lblEfficienzaTot control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblCodArticolo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumPzLanciati.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumPzLanciati;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumPzConf.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumPzConf;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumPzFatti.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumPzFatti;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblPezziRestantiConf.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPezziRestantiConf;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblPezziRestanti.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPezziRestanti;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTDispImpiegatoConf.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTDispImpiegatoConf;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTDispImpiegato.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTDispImpiegato;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTRimanenteConf.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTRimanenteConf;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTRimanente.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTRimanente;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEfficienzaTot.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEfficienzaTot;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEfficienzaTotRT.
|
||||
/// lblEfficienzaTotRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEfficienzaTotRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEfficienzaLavoro.
|
||||
/// lblEfficienzaLavoro control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEfficienzaLavoro;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEfficienzaLavoroRT.
|
||||
/// lblEfficienzaLavoroRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEfficienzaLavoroRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEfficienzaEff.
|
||||
/// lblEfficienzaEff control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEfficienzaEff;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEfficienzaEffRT.
|
||||
/// lblEfficienzaEffRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEfficienzaEffRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcMedio.
|
||||
/// lblTcMedio control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcMedio;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcMedioRT.
|
||||
/// lblTcMedioRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcMedioRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcLavoro.
|
||||
/// lblTcLavoro control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcLavoro;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcLavoroRT.
|
||||
/// lblTcLavoroRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcLavoroRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcEffettivo.
|
||||
/// lblTcEffettivo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcEffettivo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcEffettivoRT.
|
||||
/// lblTcEffettivoRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcEffettivoRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcImpostato.
|
||||
/// lblTcImpostato control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcImpostato;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblPeriodo.
|
||||
/// lblCodArticolo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblCodArticolo;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumPzLanciati control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumPzLanciati;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumPzConf control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumPzConf;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumPzFatti control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumPzFatti;
|
||||
|
||||
/// <summary>
|
||||
/// lblPezziRestantiConf control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPezziRestantiConf;
|
||||
|
||||
/// <summary>
|
||||
/// lblPezziRestanti control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPezziRestanti;
|
||||
|
||||
/// <summary>
|
||||
/// lblTDispImpiegatoConf control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTDispImpiegatoConf;
|
||||
|
||||
/// <summary>
|
||||
/// lblTDispImpiegato control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTDispImpiegato;
|
||||
|
||||
/// <summary>
|
||||
/// lblTRimanenteConf control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTRimanenteConf;
|
||||
|
||||
/// <summary>
|
||||
/// lblTRimanente control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTRimanente;
|
||||
|
||||
/// <summary>
|
||||
/// lblPeriodo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPeriodo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEfficienzaTotPerRT.
|
||||
/// lblEfficienzaTotPerRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEfficienzaTotPerRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEfficienzaLavoroPerRT.
|
||||
/// lblEfficienzaLavoroPerRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEfficienzaLavoroPerRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEfficienzaEffPerRT.
|
||||
/// lblEfficienzaEffPerRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEfficienzaEffPerRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumPzFattiPer.
|
||||
/// lblNumPzFattiPer control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumPzFattiPer;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcMedioPerRT.
|
||||
/// lblTcMedioPerRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcMedioPerRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcLavoroPerRT.
|
||||
/// lblTcLavoroPerRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcLavoroPerRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcEffettivoPerRT.
|
||||
/// lblTcEffettivoPerRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcEffettivoPerRT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTcImpostatoPerRT.
|
||||
/// lblTcImpostatoPerRT control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTcImpostatoPerRT;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="MP_SITE.WebUserControls.mod_listaStatiEventi"
|
||||
CodeBehind="mod_listaStatiEventi.ascx.cs" %>
|
||||
CodeBehind="mod_listaStatiEventi.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_infoAggiuntive.ascx" TagName="mod_infoAggiuntive" TagPrefix="uc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_datiConfermati.ascx" TagName="mod_datiConfermati" TagPrefix="uc2" %>
|
||||
@@ -10,82 +10,102 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_logFluxData.ascx" TagPrefix="uc1" TagName="mod_logFluxData" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_logTC.ascx" TagPrefix="uc1" TagName="mod_logTC" %>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<asp:TabContainer ID="TabContLogs" runat="server" ScrollBars="Auto" Visible="True" ActiveTabIndex="0">
|
||||
<asp:TabPanel ID="TabProduzione" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
Produzione
|
||||
</HeaderTemplate>
|
||||
<ContentTemplate>
|
||||
<uc1:mod_infoAggiuntive ID="mod_infoAggiuntive1" runat="server"></uc1:mod_infoAggiuntive>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabDatiConfermati" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
Dati Confermati
|
||||
</HeaderTemplate>
|
||||
<ContentTemplate>
|
||||
<uc2:mod_datiConfermati ID="mod_datiConfermati1" runat="server" />
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabTC" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
Log Tempi Ciclo
|
||||
</HeaderTemplate>
|
||||
<ContentTemplate>
|
||||
<div class="px-1">
|
||||
<uc1:mod_logTC runat="server" ID="mod_logTC" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabLogStati" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
Log Stati
|
||||
</HeaderTemplate>
|
||||
<ContentTemplate>
|
||||
<uc1:mod_logStati runat="server" ID="mod_logStati" />
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabLogEventi" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
Log Eventi
|
||||
</HeaderTemplate>
|
||||
<ContentTemplate>
|
||||
<uc1:mod_logEventi runat="server" ID="mod_logEventi" />
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabLogControlli" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
Log Controlli
|
||||
</HeaderTemplate>
|
||||
<ContentTemplate>
|
||||
<div class="px-1">
|
||||
<uc1:mod_logControlli runat="server" ID="mod_logControlli" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabLogScarti" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
Log Scarti
|
||||
</HeaderTemplate>
|
||||
<ContentTemplate>
|
||||
<div class="px-1">
|
||||
<uc1:mod_logScarti runat="server" ID="mod_logScarti" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabFluxLog" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
Log FlussoDati
|
||||
</HeaderTemplate>
|
||||
<ContentTemplate>
|
||||
<div class="px-1">
|
||||
<uc1:mod_logFluxData runat="server" ID="mod_logFluxData" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
</asp:TabContainer>
|
||||
<asp:TabPanel ID="TabProduzione" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
<%: traduci("Produzione") %>
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
<uc1:mod_infoAggiuntive ID="mod_infoAggiuntive1" runat="server"></uc1:mod_infoAggiuntive>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabDatiConfermati" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
<%: traduci("DatiConfermati") %>
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<uc2:mod_datiConfermati ID="mod_datiConfermati1" runat="server" />
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabTC" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
|
||||
<%: traduci("LogTempiCiclo") %>
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="px-1">
|
||||
|
||||
<uc1:mod_logTC runat="server" ID="mod_logTC" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabLogStati" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
|
||||
<%: traduci("LogStati") %>
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<uc1:mod_logStati runat="server" ID="mod_logStati" />
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabLogEventi" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
|
||||
<%: traduci("LogEventi") %>
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<uc1:mod_logEventi runat="server" ID="mod_logEventi" />
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabLogControlli" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
|
||||
<%: traduci("LogControlli") %>
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="px-1">
|
||||
|
||||
<uc1:mod_logControlli runat="server" ID="mod_logControlli" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabLogScarti" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
|
||||
<%: traduci("LogScarti") %>
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="px-1">
|
||||
|
||||
<uc1:mod_logScarti runat="server" ID="mod_logScarti" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
<asp:TabPanel ID="TabFluxLog" runat="server" ScrollBars="Auto">
|
||||
<HeaderTemplate>
|
||||
|
||||
<%: traduci("LogFluxData") %>
|
||||
</HeaderTemplate>
|
||||
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="px-1">
|
||||
|
||||
<uc1:mod_logFluxData runat="server" ID="mod_logFluxData" />
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:TabPanel>
|
||||
</asp:TabContainer>
|
||||
@@ -4,146 +4,163 @@ using System.Web.UI;
|
||||
|
||||
namespace MP_SITE.WebUserControls
|
||||
{
|
||||
public partial class mod_listaStatiEventi : System.Web.UI.UserControl
|
||||
{
|
||||
#region area protected
|
||||
|
||||
protected resoconti _resoconti;
|
||||
protected int _numRighe = 17;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_listaStatiEventi : baseUserControl
|
||||
{
|
||||
_resoconti = new resoconti();
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
aggiornamento();
|
||||
}
|
||||
mod_logStati.eh_doUpdate += Mod_logStati_eh_doUpdate;
|
||||
}
|
||||
#region Protected Fields
|
||||
|
||||
private void Mod_logStati_eh_doUpdate(object sender, EventArgs e)
|
||||
{
|
||||
reportUpdate();
|
||||
}
|
||||
protected int _numRighe = 17;
|
||||
protected resoconti _resoconti;
|
||||
|
||||
protected void reportUpdate()
|
||||
{
|
||||
// alzo l'evento d update/inserimento e ricarico cache...
|
||||
if (eh_doUpdate != null)
|
||||
{
|
||||
eh_doUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
#endregion Protected Fields
|
||||
|
||||
#endregion
|
||||
protected void txtRighe_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
//numRighe = Convert.ToInt32(txtRighe.Text);
|
||||
aggiornamento();
|
||||
}
|
||||
#region Public Events
|
||||
|
||||
#region area public
|
||||
public event EventHandler eh_doUpdate;
|
||||
|
||||
#region gestione eventi
|
||||
#endregion Public Events
|
||||
|
||||
public event EventHandler eh_doUpdate;
|
||||
#region Public Properties
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// idx della macchina da mostrare
|
||||
/// </summary>
|
||||
public string idxMacchina
|
||||
{
|
||||
get
|
||||
{
|
||||
string idxMacchina = "1";
|
||||
try
|
||||
/// <summary>
|
||||
/// idx della macchina da mostrare
|
||||
/// </summary>
|
||||
public string idxMacchina
|
||||
{
|
||||
idxMacchina = memLayer.ML.StringSessionObj("IdxMacchina");
|
||||
get
|
||||
{
|
||||
string idxMacchina = "1";
|
||||
try
|
||||
{
|
||||
idxMacchina = memLayer.ML.StringSessionObj("IdxMacchina");
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return idxMacchina;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("IdxMacchina", value);
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
||||
public int numRighe
|
||||
{
|
||||
get
|
||||
{
|
||||
return _numRighe;
|
||||
}
|
||||
set
|
||||
{
|
||||
_numRighe = value;
|
||||
}
|
||||
}
|
||||
return idxMacchina;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("IdxMacchina", value);
|
||||
}
|
||||
}
|
||||
public string statoDaIdx(object idx)
|
||||
{
|
||||
return _resoconti.statoDaIdx(Convert.ToInt32(idx));
|
||||
}
|
||||
public string operatoreDaMatr(object matricola)
|
||||
{
|
||||
int matr = 0;
|
||||
try
|
||||
{
|
||||
matr = Convert.ToInt32(matricola);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return _resoconti.oprDaMatr(matr);
|
||||
}
|
||||
public string tipoDaIdx(object idx)
|
||||
{
|
||||
return _resoconti.tipoDaIdx(Convert.ToInt32(idx));
|
||||
}
|
||||
public void aggiornamento()
|
||||
{
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("inizio caricamento dati", SteamWare.tipoLog.INFO);
|
||||
}
|
||||
mod_datiConfermati1.doUpdate();
|
||||
mod_infoAggiuntive1.doUpdate();
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
SteamWare.logger.lg.scriviLog("fine caricamento dati", SteamWare.tipoLog.INFO);
|
||||
}
|
||||
}
|
||||
public void reportUpdt(object sender, EventArgs e)
|
||||
{
|
||||
reportUpdate();
|
||||
}
|
||||
|
||||
public int numRighe
|
||||
{
|
||||
get
|
||||
{
|
||||
return _numRighe;
|
||||
}
|
||||
set
|
||||
{
|
||||
_numRighe = value;
|
||||
}
|
||||
#endregion Public Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Mod_logStati_eh_doUpdate(object sender, EventArgs e)
|
||||
{
|
||||
reportUpdate();
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
_resoconti = new resoconti();
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
aggiornamento();
|
||||
}
|
||||
mod_logStati.eh_doUpdate += Mod_logStati_eh_doUpdate;
|
||||
}
|
||||
|
||||
protected void reportUpdate()
|
||||
{
|
||||
// alzo l'evento d update/inserimento e ricarico cache...
|
||||
if (eh_doUpdate != null)
|
||||
{
|
||||
eh_doUpdate(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
protected void txtRighe_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
//numRighe = Convert.ToInt32(txtRighe.Text);
|
||||
aggiornamento();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public void aggiornamento()
|
||||
{
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
logger.lg.scriviLog("inizio caricamento dati", SteamWare.tipoLog.INFO);
|
||||
}
|
||||
mod_datiConfermati1.doUpdate();
|
||||
mod_infoAggiuntive1.doUpdate();
|
||||
if (memLayer.ML.CRI("_logLevel") > 5)
|
||||
{
|
||||
SteamWare.logger.lg.scriviLog("fine caricamento dati", SteamWare.tipoLog.INFO);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// restituisce stringa formattata in HH:mm
|
||||
/// </summary>
|
||||
/// <param name="durataMinuti"></param>
|
||||
/// <returns></returns>
|
||||
public string durataEvento(object durataMinuti)
|
||||
{
|
||||
//string durataFormattata = "";
|
||||
//try
|
||||
//{
|
||||
// DateTime tempo = new DateTime();
|
||||
// tempo = tempo.AddMinutes((double)durataMinuti);
|
||||
// durataFormattata = string.Format("{0:00}:{1:00}:{2:00}", tempo.Hour, tempo.Minute, tempo.Second);
|
||||
//}
|
||||
//catch
|
||||
//{
|
||||
// logger.lg.scriviLog(string.Format("errore calcolo durata: durataMinuti {0}", durataMinuti), tipoLog.EXCEPTION);
|
||||
//}
|
||||
//return durataFormattata;
|
||||
return utility.durataEventoHMS((double)durataMinuti);
|
||||
}
|
||||
|
||||
public string operatoreDaMatr(object matricola)
|
||||
{
|
||||
int matr = 0;
|
||||
try
|
||||
{
|
||||
matr = Convert.ToInt32(matricola);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return _resoconti.oprDaMatr(matr);
|
||||
}
|
||||
|
||||
public void reportUpdt(object sender, EventArgs e)
|
||||
{
|
||||
reportUpdate();
|
||||
}
|
||||
|
||||
public string statoDaIdx(object idx)
|
||||
{
|
||||
return _resoconti.statoDaIdx(Convert.ToInt32(idx));
|
||||
}
|
||||
|
||||
public string tipoDaIdx(object idx)
|
||||
{
|
||||
return _resoconti.tipoDaIdx(Convert.ToInt32(idx));
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// restituisce stringa formattata in HH:mm
|
||||
/// </summary>
|
||||
/// <param name="durataMinuti"></param>
|
||||
/// <returns></returns>
|
||||
public string durataEvento(object durataMinuti)
|
||||
{
|
||||
//string durataFormattata = "";
|
||||
//try
|
||||
//{
|
||||
// DateTime tempo = new DateTime();
|
||||
// tempo = tempo.AddMinutes((double)durataMinuti);
|
||||
// durataFormattata = string.Format("{0:00}:{1:00}:{2:00}", tempo.Hour, tempo.Minute, tempo.Second);
|
||||
//}
|
||||
//catch
|
||||
//{
|
||||
// logger.lg.scriviLog(string.Format("errore calcolo durata: durataMinuti {0}", durataMinuti), tipoLog.EXCEPTION);
|
||||
//}
|
||||
//return durataFormattata;
|
||||
return utility.durataEventoHMS((double)durataMinuti);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
+79
-77
@@ -1,167 +1,169 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_SITE.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_listaStatiEventi {
|
||||
|
||||
namespace MP_SITE.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_listaStatiEventi
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TabContLogs.
|
||||
/// TabContLogs control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.TabContainer TabContLogs;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TabProduzione.
|
||||
/// TabProduzione control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.TabPanel TabProduzione;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_infoAggiuntive1.
|
||||
/// mod_infoAggiuntive1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MP_SITE.WebUserControls.mod_infoAggiuntive mod_infoAggiuntive1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TabDatiConfermati.
|
||||
/// TabDatiConfermati control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.TabPanel TabDatiConfermati;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_datiConfermati1.
|
||||
/// mod_datiConfermati1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MP_SITE.WebUserControls.mod_datiConfermati mod_datiConfermati1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TabTC.
|
||||
/// TabTC control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.TabPanel TabTC;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_logTC.
|
||||
/// mod_logTC control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MP_SITE.WebUserControls.mod_logTC mod_logTC;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TabLogStati.
|
||||
/// TabLogStati control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.TabPanel TabLogStati;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_logStati.
|
||||
/// mod_logStati control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MP_SITE.WebUserControls.mod_logStati mod_logStati;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TabLogEventi.
|
||||
/// TabLogEventi control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.TabPanel TabLogEventi;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_logEventi.
|
||||
/// mod_logEventi control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MP_SITE.WebUserControls.mod_logEventi mod_logEventi;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TabLogControlli.
|
||||
/// TabLogControlli control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.TabPanel TabLogControlli;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_logControlli.
|
||||
/// mod_logControlli control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MP_SITE.WebUserControls.mod_logControlli mod_logControlli;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TabLogScarti.
|
||||
/// TabLogScarti control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.TabPanel TabLogScarti;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_logScarti.
|
||||
/// mod_logScarti control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MP_SITE.WebUserControls.mod_logScarti mod_logScarti;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TabFluxLog.
|
||||
/// TabFluxLog control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.TabPanel TabFluxLog;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_logFluxData.
|
||||
/// mod_logFluxData control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MP_SITE.WebUserControls.mod_logFluxData mod_logFluxData;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<nav class="navbar navbar-expand fixed-top navbar-dark bg-black text-light titleBlock pt-0 topTitle">
|
||||
<div class="row" style="width: 100%;">
|
||||
<div class="col-3 text-left">
|
||||
<asp:LinkButton ID="btnUpdate" runat="server" CssClass="dxButtonClass" OnClick="btnUpdate_Click" cla=""></asp:LinkButton>
|
||||
<asp:LinkButton ID="btnUpdate" runat="server" CssClass="btn btn-outline-warning btn-sm" OnClick="btnUpdate_Click" cla=""></asp:LinkButton>
|
||||
<span>
|
||||
<asp:Label runat="server" ID="lastUpdate" CssClass="dateTimeSmall"><% =scriviOra() %></asp:Label>
|
||||
</span>
|
||||
|
||||
+1055
-937
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user