Visualizzazione pezzi fatti/già registrati in dettaglio prod...
This commit is contained in:
@@ -21,16 +21,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row textCondens">
|
||||
<div class="col-12 py-1 text-center text-uppercase">
|
||||
<b>Dati dall'avvio produzione/ODL</b>
|
||||
<div class="col-4"></div>
|
||||
<div class="col-4 py-1 text-center text-uppercase">
|
||||
<b>Dati Globali ODL</b>
|
||||
</div>
|
||||
<div class="col-4 text-right"><sub>(Inizio ODL --> <%: dtReqUpdate.ToString() %>)</sub></div>
|
||||
<div class="col-4 pr-1 py-0 text-right">
|
||||
<div class="alert alert-info py-1">
|
||||
<div class="text-truncate">
|
||||
Pz Prodotti TOT [A+B+C]
|
||||
</div>
|
||||
<div style="font-size: 2em; font-weight: bold;" class="my-0">
|
||||
1707
|
||||
<%: datiProdAct.PzTotODL %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -40,7 +42,7 @@
|
||||
[B] Scarti GIA' scaricati
|
||||
</div>
|
||||
<div style="font-size: 2em; font-weight: bold;" class="my-0">
|
||||
15
|
||||
<%: datiProdAct.PzConfScarto %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -50,15 +52,17 @@
|
||||
[C] Pz Buoni VERSATI
|
||||
</div>
|
||||
<div style="font-size: 2em; font-weight: bold;" class="my-0">
|
||||
1510
|
||||
<%: datiProdAct.PzConfBuoni %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row textCondens text-right bg-secondary">
|
||||
<div class="col-12 py-1 text-center text-uppercase">
|
||||
<b>Incrementali (da ultima conferma)</b>
|
||||
<div class="col-4"></div>
|
||||
<div class="col-4 py-1 text-center text-uppercase">
|
||||
<b>Dati Incrementali</b>
|
||||
</div>
|
||||
<div class="col-4 text-right"><sub>(ultima conferma --> <%: dtReqUpdate.ToString() %>)</sub></div>
|
||||
<div class="col-4 pr-1">
|
||||
<asp:Label runat="server" ID="lblNumPezzi" AssociatedControlID="txtNumPezzi" Text="[A] Pz Prodotti" />
|
||||
<asp:TextBox runat="server" ID="txtNumPezzi" Font-Size="XX-Large" TextMode="Number" CssClass="form-control text-right alert alert-info py-0" Enabled="false" AutoPostBack="True" OnTextChanged="txtNumPezzi_TextChanged" />
|
||||
|
||||
@@ -20,6 +20,26 @@ namespace MoonProTablet.WebUserControls
|
||||
/// </summary>
|
||||
public event EventHandler eh_reset;
|
||||
/// <summary>
|
||||
/// Data-Ora ultimo update valori produzione
|
||||
/// </summary>
|
||||
public DateTime dtReqUpdate
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now;
|
||||
DateTime.TryParse(memLayer.ML.StringSessionObj("dtReqUpdate"), out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("dtReqUpdate", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Dati produzioen rilevati
|
||||
/// </summary>
|
||||
public DS_ProdTempi.StatoProdRow datiProdAct;
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -29,8 +49,20 @@ namespace MoonProTablet.WebUserControls
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
checkAll();
|
||||
updateProdData();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Aggiorno valori produzione...
|
||||
/// </summary>
|
||||
private void updateProdData()
|
||||
{
|
||||
dtReqUpdate = DateTime.Now;
|
||||
datiProdAct = DataLayer.obj.taStatoProd.GetData(idxMacchina, dtReqUpdate)[0];
|
||||
// aggiorno visualizzazione...
|
||||
numPzProdotti = datiProdAct.Pz2RecTot;
|
||||
numPzScarto = datiProdAct.Pz2RecScarto;
|
||||
}
|
||||
|
||||
private void checkAll()
|
||||
{
|
||||
@@ -152,11 +184,15 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
switchBtnConferma(!txtNumPezzi.Enabled);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// determina comportamento btn conferma
|
||||
/// </summary>
|
||||
private void switchBtnConferma(bool showConf)
|
||||
{
|
||||
// aggiorno valori rilevati
|
||||
updateProdData();
|
||||
// continuo update
|
||||
txtNumPezzi.Enabled = showConf;
|
||||
txtNumScarti.Enabled = showConf;
|
||||
lbtSalva.Visible = showConf;
|
||||
@@ -164,8 +200,8 @@ namespace MoonProTablet.WebUserControls
|
||||
rigaProd = DataLayer.obj.taPzProd2conf.GetData(idxMacchina)[0];
|
||||
try
|
||||
{
|
||||
txtNumPezzi.Text = rigaProd.pezziNonConfermati.ToString();
|
||||
txtNumScarti.Text = "0";
|
||||
//numPzProdotti = rigaProd.pezziNonConfermati;
|
||||
//numPzScarto = 0;
|
||||
txtPzBuoni.Text = numPzConfermati.ToString();
|
||||
// sollevo evento!
|
||||
if (eh_inserting != null)
|
||||
@@ -197,6 +233,10 @@ namespace MoonProTablet.WebUserControls
|
||||
/// </summary>
|
||||
protected int numPzProdotti
|
||||
{
|
||||
set
|
||||
{
|
||||
txtNumPezzi.Text = value.ToString();
|
||||
}
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
@@ -214,6 +254,10 @@ namespace MoonProTablet.WebUserControls
|
||||
/// </summary>
|
||||
protected int numPzScarto
|
||||
{
|
||||
set
|
||||
{
|
||||
txtNumScarti.Text = value.ToString();
|
||||
}
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
|
||||
Reference in New Issue
Block a user