Imbastita replica kit ODL
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<div class="panel-heading">
|
||||
<b>Composizione KIT</b>
|
||||
</div>
|
||||
<div class="panel-body bg-default" >
|
||||
<div class="panel-body bg-default">
|
||||
<asp:GridView ID="grViewKit" runat="server" DataSourceID="odsKit" AutoGenerateColumns="False" DataKeyNames="CodKIT,Particolare" CssClass="table table-striped table-condensed table-responsive">
|
||||
<HeaderStyle CssClass="default" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
@@ -72,11 +72,22 @@
|
||||
<div class="col-sm-4 col-lg-3">
|
||||
<div class="panel panel-primary panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("lblQtaPart") %></b>
|
||||
<b><%: traduci("lblQtaUDC") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<asp:TextBox runat="server" ID="txtQta" Height="56px" Width="100%" Font-Size="28pt" Style="text-align: center" AutoPostBack="true" TabIndex="1" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<i class="fa fa-times fa-5x" aria-hidden="true"></i>
|
||||
</div>
|
||||
<div class="panel panel-info panel-sm">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("lblQtaKit") %></b>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<asp:TextBox runat="server" ID="txtQtaKit" Height="56px" Width="100%" Font-Size="28pt" Style="text-align: center" AutoPostBack="true" TabIndex="2" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -138,7 +138,10 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore recupero particolare UDC Anime {0}", udcReq), tipoLog.EXCEPTION);
|
||||
}
|
||||
if (fatto) MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaAL", "Ri-Stampato AL KIT Anime");
|
||||
if (fatto)
|
||||
{
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, udcReq, particolare, "stampaAL", "Ri-Stampato AL KIT Anime");
|
||||
}
|
||||
// raise dell'evento
|
||||
if (eh_reqUpdate != null)
|
||||
{
|
||||
@@ -168,8 +171,8 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
private void traduciObj()
|
||||
{
|
||||
//txtBox
|
||||
qta = pezziKitAnime;
|
||||
qtaKIT = 1;
|
||||
// buttons
|
||||
btnEmptyNote.Text = traduci("btnEmptyNote");
|
||||
}
|
||||
@@ -284,6 +287,29 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// qta KIT
|
||||
/// </summary>
|
||||
public int qtaKIT
|
||||
{
|
||||
get
|
||||
{
|
||||
int _qta = 0;
|
||||
try
|
||||
{
|
||||
_qta = Convert.ToInt32(txtQtaKit.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{
|
||||
_qta = 0;
|
||||
}
|
||||
return _qta;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtQtaKit.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// controlla se ci sia un barcode
|
||||
/// </summary>
|
||||
private void checkBarcode()
|
||||
@@ -414,7 +440,7 @@ namespace GMW.WebUserControls
|
||||
private void checkStampa()
|
||||
{
|
||||
bool stampaOk = false;
|
||||
if (currKitAnime != "" && qta > 0)
|
||||
if (currKitAnime != "" && qta > 0 && qtaKIT > 0)
|
||||
{
|
||||
stampaOk = true;
|
||||
}
|
||||
@@ -512,7 +538,7 @@ namespace GMW.WebUserControls
|
||||
if (newAL != "")
|
||||
{
|
||||
// lancio stampa
|
||||
MagClass.magazzino.stampaAL(newAL, Postazione.printer, Request.UserHostName);
|
||||
MagClass.magazzino.stampaAL(newAL, Postazione.printer, Request.UserHostName);
|
||||
// incremento timing...
|
||||
adesso = DateTime.Now;
|
||||
adesso = adesso.AddSeconds(1);
|
||||
|
||||
@@ -164,5 +164,14 @@ namespace GMW.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtQta;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtQtaKit.
|
||||
/// </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.TextBox txtQtaKit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user