Update parziale con NUOVI metodi x creaz lotti + UDC
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
<%@ Register Src="~/WebUserControls/cmp_prtFiniti.ascx" TagPrefix="uc1" TagName="cmp_prtFiniti" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<uc1:cmp_prtFiniti runat="server" id="cmp_prtFiniti" tipoStampa="FINITI" tipoLotto="M" codStato="FIN" Origine="INT" />
|
||||
<uc1:cmp_prtFiniti runat="server" id="cmp_prtFiniti" tipoStampa="FINITI" tipoLotto="M" codStatoIN="SL" codStatoOUT="FIN" Origine="INT" />
|
||||
</asp:Content>
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
<%@ Register Src="~/WebUserControls/cmp_prtSemilav.ascx" TagPrefix="uc1" TagName="cmp_prtSemilav" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<uc1:cmp_prtSemilav runat="server" ID="cmp_prtSemilav" tipoStampa="SEMILAVORATI" tipoLotto="M" codStato="SL" Origine="INT" />
|
||||
<uc1:cmp_prtSemilav runat="server" ID="cmp_prtSemilav" tipoStampa="SEMILAVORATI" tipoLotto="M" codStatoIN="MP" codStatoOUT="SL" Origine="INT" />
|
||||
</asp:Content>
|
||||
|
||||
@@ -8,21 +8,9 @@
|
||||
</div>
|
||||
<div class="card-body p-1">
|
||||
<div class="row">
|
||||
<div class="col-6 mt-2">
|
||||
num UDC:
|
||||
</div>
|
||||
<div class="col-6 mt-2">
|
||||
<asp:TextBox runat="server" ID="txtNumUDC" />
|
||||
</div>
|
||||
<div class="col-6 mt-2">
|
||||
qta tot:
|
||||
</div>
|
||||
<div class="col-6 mt-2">
|
||||
<asp:TextBox runat="server" ID="txtQtaOrig" />
|
||||
</div>
|
||||
<div class="col-12 mt-2">
|
||||
<i>Creazione nuovo lotto dai <b>Lotti IN</b> selezionati</i>
|
||||
<asp:LinkButton runat="server" ID="lbtPrintSemilav" CssClass="btn btn-block btn-warning text-light" OnClick="lbtPrintSemilav_Click"><i class="fas fa-plus fa-2x"></i> Crea Lotto</asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtCreaLotto" CssClass="btn btn-block btn-warning text-light" OnClick="lbtCreaLotto_Click"><i class="fas fa-plus fa-2x"></i> Crea Lotto</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -14,31 +14,11 @@ namespace MP_MAG.WebUserControls
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Num ODC richeisti
|
||||
/// Evento richiesta creazione lotto
|
||||
/// </summary>
|
||||
public int numUdc
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(txtNumUDC.Text, out answ);
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Qta Originale richiesta
|
||||
/// </summary>
|
||||
public int qtaOrig
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(txtQtaOrig.Text, out answ);
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected void lbtPrintSemilav_Click(object sender, EventArgs e)
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtCreaLotto_Click(object sender, EventArgs e)
|
||||
{
|
||||
// sollevo evento richiesta...
|
||||
raiseEvent();
|
||||
|
||||
+2
-20
@@ -15,30 +15,12 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtNumUDC.
|
||||
/// Controllo lbtCreaLotto.
|
||||
/// </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 txtNumUDC;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtQtaOrig.
|
||||
/// </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 txtQtaOrig;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtPrintSemilav.
|
||||
/// </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.LinkButton lbtPrintSemilav;
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtCreaLotto;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,14 +7,20 @@
|
||||
<div class="card-body p-1">
|
||||
<div class="row">
|
||||
<div class="col-6 mt-2">
|
||||
num:
|
||||
# UDC:
|
||||
</div>
|
||||
<div class="col-6 mt-2">
|
||||
<asp:TextBox runat="server" ID="txtNumPrint" />
|
||||
<asp:TextBox runat="server" ID="txtNumUDC" ToolTip="Numero totale cartellini da stampare" />
|
||||
</div>
|
||||
<div class="col-6 mt-2">
|
||||
qta tot:
|
||||
</div>
|
||||
<div class="col-6 mt-2">
|
||||
<asp:TextBox runat="server" ID="txtQtaTot" ToolTip="Quantità totale da suddividere negli UDC" />
|
||||
</div>
|
||||
<div class="col-12 mt-2">
|
||||
<i>Indicare il num di cartellini da stampare</i>
|
||||
<asp:LinkButton runat="server" ID="lbtPrintSemilav" CssClass="btn btn-block btn-success" OnClick="lbtPrintSemilav_Click"><i class="fas fa-print fa-2x"></i> PRINT</asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtPrintOUT" CssClass="btn btn-block btn-success" OnClick="lbtPrintOUT_Click"><i class="fas fa-print fa-2x"></i> PRINT</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -14,18 +14,30 @@ namespace MP_MAG.WebUserControls
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Num etichette richieste
|
||||
/// Num ODC richiesti
|
||||
/// </summary>
|
||||
public int num2print
|
||||
public int numUdc
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(txtNumPrint.Text, out answ);
|
||||
int.TryParse(txtNumUDC.Text, out answ);
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
protected void lbtPrintSemilav_Click(object sender, EventArgs e)
|
||||
/// <summary>
|
||||
/// Qta Totale richiesta (per il totale UDC)
|
||||
/// </summary>
|
||||
public int qtaTot
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(txtQtaTot.Text, out answ);
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
protected void lbtPrintOUT_Click(object sender, EventArgs e)
|
||||
{
|
||||
// sollevo evento richiesta...
|
||||
raiseEvent();
|
||||
|
||||
+13
-4
@@ -15,21 +15,30 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtNumPrint.
|
||||
/// Controllo txtNumUDC.
|
||||
/// </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 txtNumPrint;
|
||||
protected global::System.Web.UI.WebControls.TextBox txtNumUDC;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtPrintSemilav.
|
||||
/// Controllo txtQtaTot.
|
||||
/// </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.LinkButton lbtPrintSemilav;
|
||||
protected global::System.Web.UI.WebControls.TextBox txtQtaTot;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtPrintOUT.
|
||||
/// </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.LinkButton lbtPrintOUT;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
|
||||
<asp:HiddenField runat="server" ID="hfPrintQueue" />
|
||||
<asp:HiddenField runat="server" ID="hfTipoLotto" />
|
||||
<asp:HiddenField runat="server" ID="hfCodStato" />
|
||||
<asp:HiddenField runat="server" ID="hfCodStatoOUT" />
|
||||
<asp:HiddenField runat="server" ID="hfCodStatoIN" />
|
||||
<asp:HiddenField runat="server" ID="hfOrigine" />
|
||||
<asp:HiddenField runat="server" ID="hfLastBCode" />
|
||||
<asp:HiddenField runat="server" ID="hfLastValidBCode" />
|
||||
|
||||
@@ -78,15 +78,29 @@ namespace MP_MAG.WebUserControls
|
||||
/// <summary>
|
||||
/// Cod Stato
|
||||
/// </summary>
|
||||
public string codStato
|
||||
public string codStatoOUT
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfCodStato.Value;
|
||||
return hfCodStatoOUT.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfCodStato.Value = value;
|
||||
hfCodStatoOUT.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Cod Stato
|
||||
/// </summary>
|
||||
public string codStatoIN
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfCodStatoIN.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfCodStatoIN.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -136,7 +150,7 @@ namespace MP_MAG.WebUserControls
|
||||
cmp_LottiOut.lottiSel = value;
|
||||
cmp_ArtOut.lottiSel = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Caricamento pagina
|
||||
/// </summary>
|
||||
@@ -175,11 +189,13 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
MagDataLayer.man.taPJQ.insertQuery(keyParam, printQueue);
|
||||
}
|
||||
// nascondo creazione...
|
||||
showCreaStampa(false, false);
|
||||
}
|
||||
|
||||
private void Cmp_creaLottoOUT_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
MagDataLayer.man.taEL.insertQuery(tipoLotto, cmp_ArtOut.CodArtSel, codStato, origine, "", cmp_creaLottoOUT.qtaOrig, cmp_creaLottoOUT.numUdc, RifExt, cmp_LottiIn.elLotti);
|
||||
MagDataLayer.man.taEL.insertQuery(tipoLotto, cmp_ArtOut.CodArtSel, codStatoOUT, origine, "", RifExt, cmp_LottiIn.elLotti);
|
||||
cmp_LottiOut.doUpdate();
|
||||
}
|
||||
|
||||
@@ -230,8 +246,6 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
cmp_creaLottoOUT.Visible = showCrea;
|
||||
cmp_printLottoOUT.Visible = showPrint;
|
||||
//if (!showCrea) cmp_LottiOut.deSelect();
|
||||
//if (!showPrint) cmp_ArtOut.deSelect();
|
||||
}
|
||||
|
||||
private void cmp_LottiIn_eh_doReset(object sender, EventArgs e)
|
||||
@@ -246,8 +260,6 @@ namespace MP_MAG.WebUserControls
|
||||
|
||||
private void Cmp_barcode_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
bool doRaiseEv = false;
|
||||
// processo evento..
|
||||
lastCmd = cmp_barcode.inputAcquired.ToUpper();
|
||||
@@ -343,7 +355,7 @@ namespace MP_MAG.WebUserControls
|
||||
case codeType.Lotto:
|
||||
// IN PRIMIS cerco lotto valido
|
||||
DS_Mag.ElencoLottiDataTable tabLotti;
|
||||
tabLotti = MagDataLayer.man.taEL.getByKey(rawData, "E");
|
||||
tabLotti = MagDataLayer.man.taEL.getByKey(rawData, "*", codStatoIN);
|
||||
if (tabLotti.Count == 1)
|
||||
{
|
||||
// se trovato cerco in elenco --> aggiungo in lista se non c'è
|
||||
|
||||
+11
-2
@@ -33,13 +33,22 @@ namespace MP_MAG.WebUserControls
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfTipoLotto;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfCodStato.
|
||||
/// Controllo hfCodStatoOUT.
|
||||
/// </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.HiddenField hfCodStato;
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfCodStatoOUT;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfCodStatoIN.
|
||||
/// </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.HiddenField hfCodStatoIN;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfOrigine.
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
|
||||
<asp:HiddenField runat="server" ID="hfPrintQueue" />
|
||||
<asp:HiddenField runat="server" ID="hfTipoLotto" />
|
||||
<asp:HiddenField runat="server" ID="hfCodStato" />
|
||||
<asp:HiddenField runat="server" ID="hfCodStatoOUT" />
|
||||
<asp:HiddenField runat="server" ID="hfCodStatoIN" />
|
||||
<asp:HiddenField runat="server" ID="hfOrigine" />
|
||||
<asp:HiddenField runat="server" ID="hfLastBCode" />
|
||||
<asp:HiddenField runat="server" ID="hfLastValidBCode" />
|
||||
|
||||
@@ -77,17 +77,31 @@ namespace MP_MAG.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Cod Stato
|
||||
/// Cod Stato in uscita
|
||||
/// </summary>
|
||||
public string codStato
|
||||
public string codStatoOUT
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfCodStato.Value;
|
||||
return hfCodStatoOUT.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfCodStato.Value = value;
|
||||
hfCodStatoOUT.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Cod Stato materiale in ingresso
|
||||
/// </summary>
|
||||
public string codStatoIN
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfCodStatoIN.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfCodStatoIN.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -170,17 +184,27 @@ namespace MP_MAG.WebUserControls
|
||||
private void Cmp_printLottoOUT_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
// salvo richiesta stampa della quantità richiesta
|
||||
int num2print = cmp_printLottoOUT.num2print;
|
||||
string keyParam = cmp_LottiOut.lottoSel;
|
||||
for (int i = 0; i < num2print; i++)
|
||||
int numUdc = cmp_printLottoOUT.numUdc;
|
||||
decimal qtaTot = cmp_printLottoOUT.qtaTot;
|
||||
if (numUdc > 0)
|
||||
{
|
||||
MagDataLayer.man.taPJQ.insertQuery(keyParam, printQueue);
|
||||
decimal qtaUdc = qtaTot / numUdc;
|
||||
string keyParam = cmp_LottiOut.lottoSel;
|
||||
for (int i = 0; i < numUdc; i++)
|
||||
{
|
||||
// creo UDC x semilavorato..
|
||||
MagDataLayer.man.taEUdc.insertQuery()
|
||||
// cheo stampa per chiave lotto...
|
||||
MagDataLayer.man.taPJQ.insertQuery(keyParam, printQueue);
|
||||
}
|
||||
}
|
||||
// nascondo creazione...
|
||||
showCreaStampa(false, false);
|
||||
}
|
||||
|
||||
private void Cmp_creaLottoOUT_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
MagDataLayer.man.taEL.insertQuery(tipoLotto, cmp_ArtOut.CodArtSel, codStato, origine, "", cmp_creaLottoOUT.qtaOrig, cmp_creaLottoOUT.numUdc, RifExt, cmp_LottiIn.elLotti);
|
||||
MagDataLayer.man.taEL.insertQuery(tipoLotto, cmp_ArtOut.CodArtSel, codStatoOUT, origine, "", RifExt, cmp_LottiIn.elLotti);
|
||||
cmp_LottiOut.doUpdate();
|
||||
}
|
||||
|
||||
@@ -231,8 +255,6 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
cmp_creaLottoOUT.Visible = showCrea;
|
||||
cmp_printLottoOUT.Visible = showPrint;
|
||||
//if (!showCrea) cmp_LottiOut.deSelect();
|
||||
//if (!showPrint) cmp_ArtOut.deSelect();
|
||||
}
|
||||
|
||||
private void cmp_LottiIn_eh_doReset(object sender, EventArgs e)
|
||||
@@ -247,8 +269,6 @@ namespace MP_MAG.WebUserControls
|
||||
|
||||
private void Cmp_barcode_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
bool doRaiseEv = false;
|
||||
// processo evento..
|
||||
lastCmd = cmp_barcode.inputAcquired.ToUpper();
|
||||
@@ -344,7 +364,7 @@ namespace MP_MAG.WebUserControls
|
||||
case codeType.Lotto:
|
||||
// IN PRIMIS cerco lotto valido
|
||||
DS_Mag.ElencoLottiDataTable tabLotti;
|
||||
tabLotti = MagDataLayer.man.taEL.getByKey(rawData, "E");
|
||||
tabLotti = MagDataLayer.man.taEL.getByKey(rawData, "*", codStatoIN);
|
||||
if (tabLotti.Count == 1)
|
||||
{
|
||||
// se trovato cerco in elenco --> aggiungo in lista se non c'è
|
||||
|
||||
+11
-2
@@ -33,13 +33,22 @@ namespace MP_MAG.WebUserControls
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfTipoLotto;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfCodStato.
|
||||
/// Controllo hfCodStatoOUT.
|
||||
/// </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.HiddenField hfCodStato;
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfCodStatoOUT;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfCodStatoIN.
|
||||
/// </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.HiddenField hfCodStatoIN;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfOrigine.
|
||||
|
||||
Generated
+132
-21
@@ -4257,6 +4257,7 @@ namespace MagData.DS_MagTableAdapters {
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lotto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoLotto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStato", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_EL_getBySearch";
|
||||
@@ -4273,8 +4274,6 @@ namespace MagData.DS_MagTableAdapters {
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStato", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Origine", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaOrig", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 9, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumUdc", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RifExt", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@elLotti", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
|
||||
@@ -4366,7 +4365,7 @@ namespace MagData.DS_MagTableAdapters {
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_Mag.ElencoLottiDataTable getByKey(string Lotto, string TipoLotto) {
|
||||
public virtual DS_Mag.ElencoLottiDataTable getByKey(string Lotto, string TipoLotto, string CodStato) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[4];
|
||||
if ((Lotto == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -4380,6 +4379,12 @@ namespace MagData.DS_MagTableAdapters {
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(TipoLotto));
|
||||
}
|
||||
if ((CodStato == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(CodStato));
|
||||
}
|
||||
DS_Mag.ElencoLottiDataTable dataTable = new DS_Mag.ElencoLottiDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
@@ -4405,7 +4410,7 @@ namespace MagData.DS_MagTableAdapters {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int insertQuery(string TipoLotto, string CodArt, string CodStato, string Origine, string Note, global::System.Nullable<decimal> QtaOrig, global::System.Nullable<int> NumUdc, string RifExt, string elLotti) {
|
||||
public virtual int insertQuery(string TipoLotto, string CodArt, string CodStato, string Origine, string Note, string RifExt, string elLotti) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
||||
if ((TipoLotto == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -4437,29 +4442,17 @@ namespace MagData.DS_MagTableAdapters {
|
||||
else {
|
||||
command.Parameters[5].Value = ((string)(Note));
|
||||
}
|
||||
if ((QtaOrig.HasValue == true)) {
|
||||
command.Parameters[6].Value = ((decimal)(QtaOrig.Value));
|
||||
}
|
||||
else {
|
||||
if ((RifExt == null)) {
|
||||
command.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((NumUdc.HasValue == true)) {
|
||||
command.Parameters[7].Value = ((int)(NumUdc.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((RifExt == null)) {
|
||||
command.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[8].Value = ((string)(RifExt));
|
||||
command.Parameters[6].Value = ((string)(RifExt));
|
||||
}
|
||||
if ((elLotti == null)) {
|
||||
command.Parameters[9].Value = global::System.DBNull.Value;
|
||||
command.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[9].Value = ((string)(elLotti));
|
||||
command.Parameters[7].Value = ((string)(elLotti));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
@@ -4682,7 +4675,7 @@ namespace MagData.DS_MagTableAdapters {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_ElencoUdc";
|
||||
@@ -4693,6 +4686,24 @@ namespace MagData.DS_MagTableAdapters {
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "dbo.stp_EU_InsertQuery";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lotto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodPost", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 9, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumCont", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoTot", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PesoCad", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tara", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -4735,6 +4746,106 @@ namespace MagData.DS_MagTableAdapters {
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int insertQuery(string Lotto, string Flusso, string CodCliente, string CodPost, global::System.Nullable<decimal> Qta, global::System.Nullable<int> NumCont, string CodSoggetto, global::System.Nullable<double> PesoTot, global::System.Nullable<double> PesoCad, global::System.Nullable<double> Tara, string CodImballo, global::System.Nullable<int> IdxPosizione, string Note) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
|
||||
if ((Lotto == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(Lotto));
|
||||
}
|
||||
if ((Flusso == null)) {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[2].Value = ((string)(Flusso));
|
||||
}
|
||||
if ((CodCliente == null)) {
|
||||
command.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[3].Value = ((string)(CodCliente));
|
||||
}
|
||||
if ((CodPost == null)) {
|
||||
command.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[4].Value = ((string)(CodPost));
|
||||
}
|
||||
if ((Qta.HasValue == true)) {
|
||||
command.Parameters[5].Value = ((decimal)(Qta.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((NumCont.HasValue == true)) {
|
||||
command.Parameters[6].Value = ((int)(NumCont.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((CodSoggetto == null)) {
|
||||
command.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[7].Value = ((string)(CodSoggetto));
|
||||
}
|
||||
if ((PesoTot.HasValue == true)) {
|
||||
command.Parameters[8].Value = ((double)(PesoTot.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((PesoCad.HasValue == true)) {
|
||||
command.Parameters[9].Value = ((double)(PesoCad.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[9].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Tara.HasValue == true)) {
|
||||
command.Parameters[10].Value = ((double)(Tara.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[10].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((CodImballo == null)) {
|
||||
command.Parameters[11].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[11].Value = ((string)(CodImballo));
|
||||
}
|
||||
if ((IdxPosizione.HasValue == true)) {
|
||||
command.Parameters[12].Value = ((int)(IdxPosizione.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[12].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Note == null)) {
|
||||
command.Parameters[13].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[13].Value = ((string)(Note));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+29
-7
@@ -79,6 +79,7 @@ FROM V_ElencoLotti
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Lotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TipoLotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodStato" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -105,8 +106,6 @@ FROM V_ElencoLotti
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodStato" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Origine" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="decimal" DbType="Decimal" Direction="Input" ParameterName="@QtaOrig" Precision="18" ProviderType="Decimal" Scale="9" Size="9" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NumUdc" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@RifExt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@elLotti" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
@@ -183,6 +182,29 @@ FROM dbo.v_ElencoUdc</CommandText>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.stp_EU_InsertQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="insertQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_EU_InsertQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Lotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Flusso" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodPost" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="decimal" DbType="Decimal" Direction="Input" ParameterName="@Qta" Precision="18" ProviderType="Decimal" Scale="9" Size="9" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NumCont" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodSoggetto" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@PesoTot" Precision="53" ProviderType="Float" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@PesoCad" Precision="53" ProviderType="Float" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@Tara" Precision="53" ProviderType="Float" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodImballo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxPosizione" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagArtTableAdapter" GeneratorDataComponentClassName="AnagArtTableAdapter" Name="AnagArt" UserDataComponentName="AnagArtTableAdapter">
|
||||
@@ -314,7 +336,7 @@ FROM dbo.ElencoPost2Queue
|
||||
<xs:element name="DS_Mag" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Mag" msprop:Generator_UserDSName="DS_Mag">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="ElencoLotti" msprop:Generator_TableClassName="ElencoLottiDataTable" msprop:Generator_TableVarName="tableElencoLotti" msprop:Generator_RowChangedName="ElencoLottiRowChanged" msprop:Generator_TablePropName="ElencoLotti" msprop:Generator_RowDeletingName="ElencoLottiRowDeleting" msprop:Generator_RowChangingName="ElencoLottiRowChanging" msprop:Generator_RowEvHandlerName="ElencoLottiRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoLottiRowDeleted" msprop:Generator_RowClassName="ElencoLottiRow" msprop:Generator_UserTableName="ElencoLotti" msprop:Generator_RowEvArgName="ElencoLottiRowChangeEvent">
|
||||
<xs:element name="ElencoLotti" msprop:Generator_TableClassName="ElencoLottiDataTable" msprop:Generator_TableVarName="tableElencoLotti" msprop:Generator_TablePropName="ElencoLotti" msprop:Generator_RowDeletingName="ElencoLottiRowDeleting" msprop:Generator_RowChangingName="ElencoLottiRowChanging" msprop:Generator_RowEvHandlerName="ElencoLottiRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoLottiRowDeleted" msprop:Generator_UserTableName="ElencoLotti" msprop:Generator_RowChangedName="ElencoLottiRowChanged" msprop:Generator_RowEvArgName="ElencoLottiRowChangeEvent" msprop:Generator_RowClassName="ElencoLottiRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Lotto" msprop:Generator_ColumnVarNameInTable="columnLotto" msprop:Generator_ColumnPropNameInRow="Lotto" msprop:Generator_ColumnPropNameInTable="LottoColumn" msprop:Generator_UserColumnName="Lotto">
|
||||
@@ -389,7 +411,7 @@ FROM dbo.ElencoPost2Queue
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="ElencoUdc" msprop:Generator_TableClassName="ElencoUdcDataTable" msprop:Generator_TableVarName="tableElencoUdc" msprop:Generator_TablePropName="ElencoUdc" msprop:Generator_RowDeletingName="ElencoUdcRowDeleting" msprop:Generator_RowChangingName="ElencoUdcRowChanging" msprop:Generator_RowEvHandlerName="ElencoUdcRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoUdcRowDeleted" msprop:Generator_UserTableName="ElencoUdc" msprop:Generator_RowChangedName="ElencoUdcRowChanged" msprop:Generator_RowEvArgName="ElencoUdcRowChangeEvent" msprop:Generator_RowClassName="ElencoUdcRow">
|
||||
<xs:element name="ElencoUdc" msprop:Generator_TableClassName="ElencoUdcDataTable" msprop:Generator_TableVarName="tableElencoUdc" msprop:Generator_RowChangedName="ElencoUdcRowChanged" msprop:Generator_TablePropName="ElencoUdc" msprop:Generator_RowDeletingName="ElencoUdcRowDeleting" msprop:Generator_RowChangingName="ElencoUdcRowChanging" msprop:Generator_RowEvHandlerName="ElencoUdcRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoUdcRowDeleted" msprop:Generator_RowClassName="ElencoUdcRow" msprop:Generator_UserTableName="ElencoUdc" msprop:Generator_RowEvArgName="ElencoUdcRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnPropNameInTable="UDCColumn" msprop:Generator_UserColumnName="UDC">
|
||||
@@ -544,7 +566,7 @@ FROM dbo.ElencoPost2Queue
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagArt" msprop:Generator_TableClassName="AnagArtDataTable" msprop:Generator_TableVarName="tableAnagArt" msprop:Generator_RowChangedName="AnagArtRowChanged" msprop:Generator_TablePropName="AnagArt" msprop:Generator_RowDeletingName="AnagArtRowDeleting" msprop:Generator_RowChangingName="AnagArtRowChanging" msprop:Generator_RowEvHandlerName="AnagArtRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagArtRowDeleted" msprop:Generator_RowClassName="AnagArtRow" msprop:Generator_UserTableName="AnagArt" msprop:Generator_RowEvArgName="AnagArtRowChangeEvent">
|
||||
<xs:element name="AnagArt" msprop:Generator_TableClassName="AnagArtDataTable" msprop:Generator_TableVarName="tableAnagArt" msprop:Generator_TablePropName="AnagArt" msprop:Generator_RowDeletingName="AnagArtRowDeleting" msprop:Generator_RowChangingName="AnagArtRowChanging" msprop:Generator_RowEvHandlerName="AnagArtRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagArtRowDeleted" msprop:Generator_UserTableName="AnagArt" msprop:Generator_RowChangedName="AnagArtRowChanged" msprop:Generator_RowEvArgName="AnagArtRowChangeEvent" msprop:Generator_RowClassName="AnagArtRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodArt" msprop:Generator_ColumnVarNameInTable="columnCodArt" msprop:Generator_ColumnPropNameInRow="CodArt" msprop:Generator_ColumnPropNameInTable="CodArtColumn" msprop:Generator_UserColumnName="CodArt">
|
||||
@@ -571,7 +593,7 @@ FROM dbo.ElencoPost2Queue
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="ODL" msprop:Generator_TableClassName="ODLDataTable" msprop:Generator_TableVarName="tableODL" msprop:Generator_TablePropName="ODL" msprop:Generator_RowDeletingName="ODLRowDeleting" msprop:Generator_RowChangingName="ODLRowChanging" msprop:Generator_RowEvHandlerName="ODLRowChangeEventHandler" msprop:Generator_RowDeletedName="ODLRowDeleted" msprop:Generator_UserTableName="ODL" msprop:Generator_RowChangedName="ODLRowChanged" msprop:Generator_RowEvArgName="ODLRowChangeEvent" msprop:Generator_RowClassName="ODLRow">
|
||||
<xs:element name="ODL" msprop:Generator_TableClassName="ODLDataTable" msprop:Generator_TableVarName="tableODL" msprop:Generator_RowChangedName="ODLRowChanged" msprop:Generator_TablePropName="ODL" msprop:Generator_RowDeletingName="ODLRowDeleting" msprop:Generator_RowChangingName="ODLRowChanging" msprop:Generator_RowEvHandlerName="ODLRowChangeEventHandler" msprop:Generator_RowDeletedName="ODLRowDeleted" msprop:Generator_RowClassName="ODLRow" msprop:Generator_UserTableName="ODL" msprop:Generator_RowEvArgName="ODLRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="IdxODL" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxODL" msprop:Generator_ColumnPropNameInRow="IdxODL" msprop:Generator_ColumnPropNameInTable="IdxODLColumn" msprop:Generator_UserColumnName="IdxODL" type="xs:int" />
|
||||
@@ -631,7 +653,7 @@ FROM dbo.ElencoPost2Queue
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Elencopost2Queue" msprop:Generator_TableClassName="Elencopost2QueueDataTable" msprop:Generator_TableVarName="tableElencopost2Queue" msprop:Generator_TablePropName="Elencopost2Queue" msprop:Generator_RowDeletingName="Elencopost2QueueRowDeleting" msprop:Generator_RowChangingName="Elencopost2QueueRowChanging" msprop:Generator_RowEvHandlerName="Elencopost2QueueRowChangeEventHandler" msprop:Generator_RowDeletedName="Elencopost2QueueRowDeleted" msprop:Generator_UserTableName="Elencopost2Queue" msprop:Generator_RowChangedName="Elencopost2QueueRowChanged" msprop:Generator_RowEvArgName="Elencopost2QueueRowChangeEvent" msprop:Generator_RowClassName="Elencopost2QueueRow">
|
||||
<xs:element name="Elencopost2Queue" msprop:Generator_TableClassName="Elencopost2QueueDataTable" msprop:Generator_TableVarName="tableElencopost2Queue" msprop:Generator_RowChangedName="Elencopost2QueueRowChanged" msprop:Generator_TablePropName="Elencopost2Queue" msprop:Generator_RowDeletingName="Elencopost2QueueRowDeleting" msprop:Generator_RowChangingName="Elencopost2QueueRowChanging" msprop:Generator_RowEvHandlerName="Elencopost2QueueRowChangeEventHandler" msprop:Generator_RowDeletedName="Elencopost2QueueRowDeleted" msprop:Generator_RowClassName="Elencopost2QueueRow" msprop:Generator_UserTableName="Elencopost2Queue" msprop:Generator_RowEvArgName="Elencopost2QueueRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CodPost" msprop:Generator_ColumnVarNameInTable="columnCodPost" msprop:Generator_ColumnPropNameInRow="CodPost" msprop:Generator_ColumnPropNameInTable="CodPostColumn" msprop:Generator_UserColumnName="CodPost">
|
||||
|
||||
+4
-4
@@ -7,10 +7,10 @@
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoLotti" ZOrder="3" X="213" Y="99" Height="595" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="375" />
|
||||
<Shape ID="DesignTable:ElencoUdc" ZOrder="5" X="564" Y="100" Height="388" Width="240" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:AnagArt" ZOrder="4" X="565" Y="517" Height="204" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:ODL" ZOrder="2" X="847" Y="102" Height="526" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="444" />
|
||||
<Shape ID="DesignTable:Elencopost2Queue" ZOrder="1" X="1134" Y="210" Height="158" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:ElencoUdc" ZOrder="1" X="554" Y="91" Height="411" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:AnagArt" ZOrder="5" X="564" Y="536" Height="204" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:ODL" ZOrder="2" X="885" Y="112" Height="526" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="444" />
|
||||
<Shape ID="DesignTable:Elencopost2Queue" ZOrder="4" X="1134" Y="210" Height="158" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
@@ -297,11 +297,11 @@ namespace MagData
|
||||
answ.codeInt = codeInt;
|
||||
answ.description = $"UDC Odette: {answ.code}";
|
||||
}
|
||||
else if (bcValue.Length == 7 || bcValue.Length == 6)
|
||||
else if (bcValue.Length >= 6 && bcValue.Length <= 7)
|
||||
{
|
||||
// cerco x lotto SOLO Ext (M=INT, E=Ext)
|
||||
DS_Mag.ElencoLottiDataTable tabLotti;
|
||||
tabLotti = taEL.getByKey(bcValue, "E");
|
||||
tabLotti = taEL.getByKey(bcValue, "*", "*");
|
||||
if (tabLotti.Count > 0)
|
||||
{
|
||||
var riga = tabLotti[0];
|
||||
|
||||
Reference in New Issue
Block a user