inizio modifica x pezzi confermati vs ordinati
This commit is contained in:
@@ -36,13 +36,23 @@
|
||||
<li class="list-group-item">
|
||||
<div class="row">
|
||||
<div class="col-6 text-left">
|
||||
# pezzi
|
||||
# pezzi ordinati
|
||||
</div>
|
||||
<div class="col-6 text-right font-weight-bold">
|
||||
<div class="col-6 text-right font-weight-bold text-secondary">
|
||||
<%: currData.QtaOdl %>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<div class="row">
|
||||
<div class="col-6 text-left">
|
||||
# pezzi confermati
|
||||
</div>
|
||||
<div class="col-6 text-right font-weight-bold text-success">
|
||||
<%: currData.QtaConf%>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,6 +25,7 @@ namespace MP_MAG.WebUserControls
|
||||
string CliCod = "";
|
||||
string CliDescr = "";
|
||||
string OrdRifExt = "";
|
||||
int QtaConf = 0;
|
||||
int QtaOdl = 0;
|
||||
string Lotto = "";
|
||||
string CodPost = IdxMacchina;
|
||||
@@ -42,7 +43,13 @@ namespace MP_MAG.WebUserControls
|
||||
ArtCod = tabArt[0].CodArt;
|
||||
ArtDesc = tabArt[0].DescrArt;
|
||||
QtaOdl = tabOdl[0].NumPezzi;
|
||||
// cerco qta confermata
|
||||
|
||||
var tabDatiProdAct = DataLayerObj.taStatoProd.GetData(IdxMacchina, DateTime.Now);
|
||||
if (tabDatiProdAct.Rows.Count > 0)
|
||||
{
|
||||
QtaConf = tabDatiProdAct[0].PzConfBuoni;
|
||||
}
|
||||
var tabAA2C = MagDataLayerObj.taAA2C.getByCodArt(ArtCod);
|
||||
if (tabAA2C.Rows.Count > 0)
|
||||
{
|
||||
@@ -50,7 +57,7 @@ namespace MP_MAG.WebUserControls
|
||||
}
|
||||
}
|
||||
}
|
||||
MagData.prodPrintData newProdPrintData = new MagData.prodPrintData(MatrOpr, IdxODL, IdxMacchina, QtaUdc, isFinito, ArtCod, ArtDesc, CliCod, CliDescr, OrdRifExt, QtaOdl, Lotto, CodPost);
|
||||
MagData.prodPrintData newProdPrintData = new MagData.prodPrintData(MatrOpr, IdxODL, IdxMacchina, QtaUdc, isFinito, ArtCod, ArtDesc, CliCod, CliDescr, OrdRifExt, QtaConf, QtaOdl, Lotto, CodPost);
|
||||
// salvo in oggetto dedicato...
|
||||
MagData.MagDataLayer.man.currProdPrintData = newProdPrintData;
|
||||
string tgtPage = "";
|
||||
|
||||
+9
-1
@@ -118,10 +118,11 @@ namespace MagData
|
||||
/// <param name="CliCod"></param>
|
||||
/// <param name="CliDescr"></param>
|
||||
/// <param name="OrdRifExt"></param>
|
||||
/// <param name="QtaConf"></param>
|
||||
/// <param name="QtaOdl"></param>
|
||||
/// <param name="Lotto"></param>
|
||||
/// <param name="CodPost"></param>
|
||||
public prodPrintData(int MatrOpr, int IdxOdl, string IdxMacchina, int QtaUdc, bool isProdFinito, string ArtCod, string ArtDesc, string CliCod, string CliDescr, string OrdRifExt, int QtaOdl, string Lotto, string CodPost)
|
||||
public prodPrintData(int MatrOpr, int IdxOdl, string IdxMacchina, int QtaUdc, bool isProdFinito, string ArtCod, string ArtDesc, string CliCod, string CliDescr, string OrdRifExt, int QtaConf, int QtaOdl, string Lotto, string CodPost)
|
||||
{
|
||||
this.ArtCod = ArtCod;
|
||||
this.ArtDesc = ArtDesc;
|
||||
@@ -134,6 +135,7 @@ namespace MagData
|
||||
this.Lotto = Lotto;
|
||||
this.MatrOpr = MatrOpr;
|
||||
this.OrdRifExt = OrdRifExt;
|
||||
this.QtaConf = QtaConf;
|
||||
this.QtaOdl = QtaOdl;
|
||||
this.QtaUdc = QtaUdc;
|
||||
}
|
||||
@@ -151,6 +153,7 @@ namespace MagData
|
||||
this.Lotto = "";
|
||||
this.MatrOpr = 0;
|
||||
this.OrdRifExt = "";
|
||||
this.QtaConf = 0;
|
||||
this.QtaOdl = 1;
|
||||
this.QtaUdc = 1;
|
||||
}
|
||||
@@ -219,6 +222,11 @@ namespace MagData
|
||||
/// </summary>
|
||||
public string PrintQueue { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Quantità Prodotta/confermata x ODL
|
||||
/// </summary>
|
||||
public int QtaConf { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Quantità ordinata ODL
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user