inserita gestione limitazione qtaMax UDC da anagrafica (sia modifica, sia sparando datamatrix)

This commit is contained in:
Samuele E. Locatelli
2017-05-25 12:35:36 +02:00
parent 64f4109a93
commit e8aaa6d4e2
4 changed files with 152 additions and 133 deletions
+49 -78
View File
@@ -155,9 +155,6 @@ namespace GMW.WebUserControls
{
fixCssAL("success");
}
lbtPrendeCaricoAL.Visible = showBtn;
// X btn chiusura: solo chiudo SOLO se c'è AL in carico..
lbtChiudiAL.Visible = (currAL != "");
// ora controllo btn quantità
showBtn = false;
if (grViewDest.SelectedIndex >= 0)
@@ -537,7 +534,6 @@ namespace GMW.WebUserControls
// crea UDC DEST...
udcDest = checkCreaUDC();
}
procDtx(udcDest);
checkUpdateTablet(udcDest);
}
@@ -548,68 +544,6 @@ namespace GMW.WebUserControls
}
}
}
#if false
// verifico DTX sia in quelli dell'AL sorgente
if (DataMatrix.mgr.taDtx2UDC.getByDtxAl(sourceAL, barcodeIn).Rows.Count > 0)
{
// cerco se ci sia UDC di destinazione
DateTime adesso = DateTime.Now;
try
{
OldUDC = DataMatrix.mgr.taDtx2UDC.getByDtxAl(sourceAL, barcodeIn)[0].UDC;
IdxPosizione = MagClass.magazzino.taCartellini.getByUdc(OldUDC)[0].IdxPosizione;
currParticolare = MagClass.magazzino.taCartellini.getByUdc(OldUDC)[0].Particolare;
}
catch
{
currParticolare = "";
}
if (currParticolare != "")
{
try
{
NewUDC = MagClass.magazzino.taCartellini.getByParticolareAL(currParticolare, destAL)[0].UDC;
}
catch
{
NewUDC = "";
}
if (NewUDC == "")
{
// CASO 01: DTX in AL sorgente, particolare OK, NON C'E' UDC dest
procDtx_Caso01(ref OldUDC, ref NewUDC, adesso);
}
else
{
// CASO 02: DTX in AL sorgente, particolare OK, C'E' UDC dest
OldUDC = procDtx_Caso02(OldUDC, NewUDC);
}
checkUpdateTablet(NewUDC);
}
else
{
Postazione.messaggiText = barcodeIn;
Postazione.warningText = traduci("UdcNonTrovato");
Postazione.CssClass = cssErr;
}
}
// se non lo trovo in AL sorgente...
else
{
// faccio ulteriore verifica: se il datamatrix sia "libero" o già tra i "Missing In Action"..
if (DataMatrix.mgr.taDtxAvailFree.GetData(barcodeIn).Rows.Count > 0)
{
// CASO 03: DTX NON in sorgente ma libero/missing in action
NewUDC = procDtx_Caso03(NewUDC);
}
else
{
// CASO 04: DTX NON in sorgente e NON libero/missing in action
procDTX_Caso04(ref OldUDC, ref IdxPosizione, ref NewUDC);
}
}
#endif
}
break;
default:
@@ -625,6 +559,24 @@ namespace GMW.WebUserControls
#region metodi processing DataMatrix letto da BarCode
/// <summary>
/// max quantità da anagrafica...
/// </summary>
public int maxQta
{
get
{
int answ = 0;
// calcola qtaMax da particoalre corrente...
try
{
answ = DataProxy.obj.taAnagPartImb.getByStatoParticolare(CodCs, statoUDC, currParticolare)[0].QtaStd;
}
catch
{ }
return answ;
}
}
/// <summary>
/// processo DTX...
/// </summary>
@@ -636,7 +588,7 @@ namespace GMW.WebUserControls
// verifico se sia modalità "rimozione" datamatrix x cui tolgo i datamatrix dall'UDC finale..
if (chkDtxMode.Checked)
{
// verifico che sia nell'AL DEST x ptoer rimuovere...
// verifico che sia nell'AL DEST x poter rimuovere...
if (DataMatrix.mgr.taDtx2UDC.getByDtxAl(destAL, barcodeIn).Rows.Count != 1)
{
Postazione.warningText = traduci("ERR-DTX-018");
@@ -654,21 +606,30 @@ namespace GMW.WebUserControls
}
else
{
// verifico che sia nell'AL DEST x ptoer rimuovere...
if (DataMatrix.mgr.taDtx2UDC.getByDtxAl(destAL, barcodeIn).Rows.Count == 1)
// verifico qtaMax NON sia superata...
if (MagClass.magazzino.taA2U2D.getByUDC(udcDest)[0].QtaDtx >= maxQta)
{
Postazione.warningText = traduci("ERR-DTX-006");
Postazione.CssClass = cssAtt;
Postazione.warningText = traduci("ERR-UDC-DTX-005");
Postazione.CssClass = cssErr;
}
else
{
// se lo trovo chiamo procedura di spostamento Dtx tra UDC sorgente --> dest (con eventuale creazione dest)
DataMatrix.mgr.taDtx2UDC.UpdateUDC(udcDest, barcodeIn, statoUDC, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false, false);
// fix messaggi
Postazione.messaggiText += " " + traduci("ConfermatoDtx");
Postazione.warningText = "";
Postazione.CssClass = cssAtt;
fatto = true;
// verifico che NON sia nell'AL DEST x poter aggiungere...
if (DataMatrix.mgr.taDtx2UDC.getByDtxAl(destAL, barcodeIn).Rows.Count == 1)
{
Postazione.warningText = traduci("ERR-DTX-006");
Postazione.CssClass = cssAtt;
}
else
{
// se lo trovo chiamo procedura di spostamento Dtx tra UDC sorgente --> dest (con eventuale creazione dest)
DataMatrix.mgr.taDtx2UDC.UpdateUDC(udcDest, barcodeIn, statoUDC, DateTime.Now, MagClass.magazzino.CodSoggCurrUser, false, false);
// fix messaggi
Postazione.messaggiText += " " + traduci("ConfermatoDtx");
Postazione.warningText = "";
Postazione.CssClass = cssAtt;
fatto = true;
}
}
}
return fatto;
@@ -883,6 +844,16 @@ namespace GMW.WebUserControls
doUpdate();
}
/// <summary>
/// Metodo aggiornamento qta
/// </summary>
public override void aggiornaQta()
{
// verifico NON sia superata la quantità MAX permessa...
qta = qta > maxQta ? maxQta : qta;
// eseguo metodo base!
base.aggiornaQta();
}
/// <summary>
/// verifica visibilità btn stampa UDC
/// </summary>
private void verificaBtnStampa()
+27 -14
View File
@@ -2446,6 +2446,19 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</DbCommand>
</DeleteCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_API_getByStatoPart" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByStatoParticolare" GetMethodModifier="Public" GetMethodName="getByStatoParticolare" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByStatoParticolare" UserSourceName="getByStatoParticolare">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_API_getByStatoPart</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="nchar" DbType="StringFixedLength" Direction="Input" ParameterName="@CodCS" Precision="0" ProviderType="NChar" Scale="0" Size="2" 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" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Particolare" Precision="0" ProviderType="NVarChar" Scale="0" Size="15" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="UpdateQuery">
<UpdateCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -3616,7 +3629,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ElencoNC" msprop:Generator_TableClassName="ElencoNCDataTable" msprop:Generator_TableVarName="tableElencoNC" msprop:Generator_TablePropName="ElencoNC" msprop:Generator_RowDeletingName="ElencoNCRowDeleting" msprop:Generator_RowChangingName="ElencoNCRowChanging" msprop:Generator_RowEvHandlerName="ElencoNCRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoNCRowDeleted" msprop:Generator_UserTableName="ElencoNC" msprop:Generator_RowChangedName="ElencoNCRowChanged" msprop:Generator_RowEvArgName="ElencoNCRowChangeEvent" msprop:Generator_RowClassName="ElencoNCRow">
<xs:element name="ElencoNC" msprop:Generator_TableClassName="ElencoNCDataTable" msprop:Generator_TableVarName="tableElencoNC" msprop:Generator_RowChangedName="ElencoNCRowChanged" msprop:Generator_TablePropName="ElencoNC" msprop:Generator_RowDeletingName="ElencoNCRowDeleting" msprop:Generator_RowChangingName="ElencoNCRowChanging" msprop:Generator_RowEvHandlerName="ElencoNCRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoNCRowDeleted" msprop:Generator_RowClassName="ElencoNCRow" msprop:Generator_UserTableName="ElencoNC" msprop:Generator_RowEvArgName="ElencoNCRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxNC" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxNC" msprop:Generator_ColumnPropNameInRow="IdxNC" msprop:Generator_ColumnPropNameInTable="IdxNCColumn" msprop:Generator_UserColumnName="IdxNC" type="xs:int" />
@@ -3662,7 +3675,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UDC_NC" msprop:Generator_TableClassName="UDC_NCDataTable" msprop:Generator_TableVarName="tableUDC_NC" msprop:Generator_RowChangedName="UDC_NCRowChanged" msprop:Generator_TablePropName="UDC_NC" msprop:Generator_RowDeletingName="UDC_NCRowDeleting" msprop:Generator_RowChangingName="UDC_NCRowChanging" msprop:Generator_RowEvHandlerName="UDC_NCRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_NCRowDeleted" msprop:Generator_RowClassName="UDC_NCRow" msprop:Generator_UserTableName="UDC_NC" msprop:Generator_RowEvArgName="UDC_NCRowChangeEvent">
<xs:element name="UDC_NC" msprop:Generator_TableClassName="UDC_NCDataTable" msprop:Generator_TableVarName="tableUDC_NC" msprop:Generator_TablePropName="UDC_NC" msprop:Generator_RowDeletingName="UDC_NCRowDeleting" msprop:Generator_RowChangingName="UDC_NCRowChanging" msprop:Generator_RowEvHandlerName="UDC_NCRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_NCRowDeleted" msprop:Generator_UserTableName="UDC_NC" msprop:Generator_RowChangedName="UDC_NCRowChanged" msprop:Generator_RowEvArgName="UDC_NCRowChangeEvent" msprop:Generator_RowClassName="UDC_NCRow">
<xs:complexType>
<xs:sequence>
<xs:element name="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnPropNameInTable="UDCColumn" msprop:Generator_UserColumnName="UDC">
@@ -3720,7 +3733,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UNC_tree" msprop:Generator_TableClassName="UNC_treeDataTable" msprop:Generator_TableVarName="tableUNC_tree" msprop:Generator_RowChangedName="UNC_treeRowChanged" msprop:Generator_TablePropName="UNC_tree" msprop:Generator_RowDeletingName="UNC_treeRowDeleting" msprop:Generator_RowChangingName="UNC_treeRowChanging" msprop:Generator_RowEvHandlerName="UNC_treeRowChangeEventHandler" msprop:Generator_RowDeletedName="UNC_treeRowDeleted" msprop:Generator_RowClassName="UNC_treeRow" msprop:Generator_UserTableName="UNC_tree" msprop:Generator_RowEvArgName="UNC_treeRowChangeEvent">
<xs:element name="UNC_tree" msprop:Generator_TableClassName="UNC_treeDataTable" msprop:Generator_TableVarName="tableUNC_tree" msprop:Generator_TablePropName="UNC_tree" msprop:Generator_RowDeletingName="UNC_treeRowDeleting" msprop:Generator_RowChangingName="UNC_treeRowChanging" msprop:Generator_RowEvHandlerName="UNC_treeRowChangeEventHandler" msprop:Generator_RowDeletedName="UNC_treeRowDeleted" msprop:Generator_UserTableName="UNC_tree" msprop:Generator_RowChangedName="UNC_treeRowChanged" msprop:Generator_RowEvArgName="UNC_treeRowChangeEvent" msprop:Generator_RowClassName="UNC_treeRow">
<xs:complexType>
<xs:sequence>
<xs:element name="UDC" msdata:ReadOnly="true" msprop:nullValue="_throw" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInTable="UDCColumn" msprop:Generator_UserColumnName="UDC">
@@ -3741,7 +3754,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TrascCodSogg" msprop:Generator_TableClassName="TrascCodSoggDataTable" msprop:Generator_TableVarName="tableTrascCodSogg" msprop:Generator_TablePropName="TrascCodSogg" msprop:Generator_RowDeletingName="TrascCodSoggRowDeleting" msprop:Generator_RowChangingName="TrascCodSoggRowChanging" msprop:Generator_RowEvHandlerName="TrascCodSoggRowChangeEventHandler" msprop:Generator_RowDeletedName="TrascCodSoggRowDeleted" msprop:Generator_UserTableName="TrascCodSogg" msprop:Generator_RowChangedName="TrascCodSoggRowChanged" msprop:Generator_RowEvArgName="TrascCodSoggRowChangeEvent" msprop:Generator_RowClassName="TrascCodSoggRow">
<xs:element name="TrascCodSogg" msprop:Generator_TableClassName="TrascCodSoggDataTable" msprop:Generator_TableVarName="tableTrascCodSogg" msprop:Generator_RowChangedName="TrascCodSoggRowChanged" msprop:Generator_TablePropName="TrascCodSogg" msprop:Generator_RowDeletingName="TrascCodSoggRowDeleting" msprop:Generator_RowChangingName="TrascCodSoggRowChanging" msprop:Generator_RowEvHandlerName="TrascCodSoggRowChangeEventHandler" msprop:Generator_RowDeletedName="TrascCodSoggRowDeleted" msprop:Generator_RowClassName="TrascCodSoggRow" msprop:Generator_UserTableName="TrascCodSogg" msprop:Generator_RowEvArgName="TrascCodSoggRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="CodSoggetto" msprop:Generator_ColumnVarNameInTable="columnCodSoggetto" msprop:Generator_ColumnPropNameInRow="CodSoggetto" msprop:Generator_ColumnPropNameInTable="CodSoggettoColumn" msprop:Generator_UserColumnName="CodSoggetto">
@@ -3776,7 +3789,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UDC_DelLogNc" msprop:Generator_TableClassName="UDC_DelLogNcDataTable" msprop:Generator_TableVarName="tableUDC_DelLogNc" msprop:Generator_RowChangedName="UDC_DelLogNcRowChanged" msprop:Generator_TablePropName="UDC_DelLogNc" msprop:Generator_RowDeletingName="UDC_DelLogNcRowDeleting" msprop:Generator_RowChangingName="UDC_DelLogNcRowChanging" msprop:Generator_RowEvHandlerName="UDC_DelLogNcRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_DelLogNcRowDeleted" msprop:Generator_RowClassName="UDC_DelLogNcRow" msprop:Generator_UserTableName="UDC_DelLogNc" msprop:Generator_RowEvArgName="UDC_DelLogNcRowChangeEvent">
<xs:element name="UDC_DelLogNc" msprop:Generator_TableClassName="UDC_DelLogNcDataTable" msprop:Generator_TableVarName="tableUDC_DelLogNc" msprop:Generator_TablePropName="UDC_DelLogNc" msprop:Generator_RowDeletingName="UDC_DelLogNcRowDeleting" msprop:Generator_RowChangingName="UDC_DelLogNcRowChanging" msprop:Generator_RowEvHandlerName="UDC_DelLogNcRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_DelLogNcRowDeleted" msprop:Generator_UserTableName="UDC_DelLogNc" msprop:Generator_RowChangedName="UDC_DelLogNcRowChanged" msprop:Generator_RowEvArgName="UDC_DelLogNcRowChangeEvent" msprop:Generator_RowClassName="UDC_DelLogNcRow">
<xs:complexType>
<xs:sequence>
<xs:element name="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnPropNameInTable="UDCColumn" msprop:Generator_UserColumnName="UDC">
@@ -3856,7 +3869,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UDC_checkDL" msprop:Generator_TableClassName="UDC_checkDLDataTable" msprop:Generator_TableVarName="tableUDC_checkDL" msprop:Generator_TablePropName="UDC_checkDL" msprop:Generator_RowDeletingName="UDC_checkDLRowDeleting" msprop:Generator_RowChangingName="UDC_checkDLRowChanging" msprop:Generator_RowEvHandlerName="UDC_checkDLRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_checkDLRowDeleted" msprop:Generator_UserTableName="UDC_checkDL" msprop:Generator_RowChangedName="UDC_checkDLRowChanged" msprop:Generator_RowEvArgName="UDC_checkDLRowChangeEvent" msprop:Generator_RowClassName="UDC_checkDLRow">
<xs:element name="UDC_checkDL" msprop:Generator_TableClassName="UDC_checkDLDataTable" msprop:Generator_TableVarName="tableUDC_checkDL" msprop:Generator_RowChangedName="UDC_checkDLRowChanged" msprop:Generator_TablePropName="UDC_checkDL" msprop:Generator_RowDeletingName="UDC_checkDLRowDeleting" msprop:Generator_RowChangingName="UDC_checkDLRowChanging" msprop:Generator_RowEvHandlerName="UDC_checkDLRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_checkDLRowDeleted" msprop:Generator_RowClassName="UDC_checkDLRow" msprop:Generator_UserTableName="UDC_checkDL" msprop:Generator_RowEvArgName="UDC_checkDLRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnPropNameInTable="UDCColumn" msprop:Generator_UserColumnName="UDC">
@@ -3924,7 +3937,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UDC_obsoleti" msprop:Generator_TableClassName="UDC_obsoletiDataTable" msprop:Generator_TableVarName="tableUDC_obsoleti" msprop:Generator_TablePropName="UDC_obsoleti" msprop:Generator_RowDeletingName="UDC_obsoletiRowDeleting" msprop:Generator_RowChangingName="UDC_obsoletiRowChanging" msprop:Generator_RowEvHandlerName="UDC_obsoletiRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_obsoletiRowDeleted" msprop:Generator_UserTableName="UDC_obsoleti" msprop:Generator_RowChangedName="UDC_obsoletiRowChanged" msprop:Generator_RowEvArgName="UDC_obsoletiRowChangeEvent" msprop:Generator_RowClassName="UDC_obsoletiRow">
<xs:element name="UDC_obsoleti" msprop:Generator_TableClassName="UDC_obsoletiDataTable" msprop:Generator_TableVarName="tableUDC_obsoleti" msprop:Generator_RowChangedName="UDC_obsoletiRowChanged" msprop:Generator_TablePropName="UDC_obsoleti" msprop:Generator_RowDeletingName="UDC_obsoletiRowDeleting" msprop:Generator_RowChangingName="UDC_obsoletiRowChanging" msprop:Generator_RowEvHandlerName="UDC_obsoletiRowChangeEventHandler" msprop:Generator_RowDeletedName="UDC_obsoletiRowDeleted" msprop:Generator_RowClassName="UDC_obsoletiRow" msprop:Generator_UserTableName="UDC_obsoleti" msprop:Generator_RowEvArgName="UDC_obsoletiRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="UDC" msprop:Generator_ColumnVarNameInTable="columnUDC" msprop:Generator_ColumnPropNameInRow="UDC" msprop:Generator_ColumnPropNameInTable="UDCColumn" msprop:Generator_UserColumnName="UDC">
@@ -4031,7 +4044,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagParticolariImballi" msprop:Generator_TableClassName="AnagParticolariImballiDataTable" msprop:Generator_TableVarName="tableAnagParticolariImballi" msprop:Generator_TablePropName="AnagParticolariImballi" msprop:Generator_RowDeletingName="AnagParticolariImballiRowDeleting" msprop:Generator_RowChangingName="AnagParticolariImballiRowChanging" msprop:Generator_RowEvHandlerName="AnagParticolariImballiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagParticolariImballiRowDeleted" msprop:Generator_UserTableName="AnagParticolariImballi" msprop:Generator_RowChangedName="AnagParticolariImballiRowChanged" msprop:Generator_RowEvArgName="AnagParticolariImballiRowChangeEvent" msprop:Generator_RowClassName="AnagParticolariImballiRow">
<xs:element name="AnagParticolariImballi" msprop:Generator_TableClassName="AnagParticolariImballiDataTable" msprop:Generator_TableVarName="tableAnagParticolariImballi" msprop:Generator_RowChangedName="AnagParticolariImballiRowChanged" msprop:Generator_TablePropName="AnagParticolariImballi" msprop:Generator_RowDeletingName="AnagParticolariImballiRowDeleting" msprop:Generator_RowChangingName="AnagParticolariImballiRowChanging" msprop:Generator_RowEvHandlerName="AnagParticolariImballiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagParticolariImballiRowDeleted" msprop:Generator_RowClassName="AnagParticolariImballiRow" msprop:Generator_UserTableName="AnagParticolariImballi" msprop:Generator_RowEvArgName="AnagParticolariImballiRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn" msprop:Generator_UserColumnName="CodCS">
@@ -4180,12 +4193,12 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FK_AnagImpianti_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagImpianti" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagImpianti" msprop:Generator_ChildPropName="GetAnagImpiantiRows" msprop:Generator_UserRelationName="FK_AnagImpianti_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_AnagImpianti_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
<msdata:Relationship name="FK_ElencoCartellini_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="ElencoCartellini" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
<msdata:Relationship name="FK_ElencoCartellini_AnagStatiProdotto" msdata:parent="AnagStatiProdotto" msdata:child="ElencoCartellini" msdata:parentkey="CodStato" msdata:childkey="CodStato" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_UserParentTable="AnagStatiProdotto" msprop:Generator_ParentPropName="AnagStatiProdottoRow" />
<msdata:Relationship name="FK_AnagOperatori_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagOperatori" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagOperatori" msprop:Generator_ChildPropName="GetAnagOperatoriRows" msprop:Generator_UserRelationName="FK_AnagOperatori_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_AnagOperatori_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
<msdata:Relationship name="FK_AnagParticolari_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagParticolari" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagParticolari" msprop:Generator_ChildPropName="GetAnagParticolariRows" msprop:Generator_UserRelationName="FK_AnagParticolari_AnagCompanySito" msprop:Generator_RelationVarName="relationFK_AnagParticolari_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" />
<msdata:Relationship name="FK_Soggetti2Utente_AnagOperatori" msdata:parent="AnagOperatori" msdata:child="Soggetti2Utente" msdata:parentkey="CodSoggetto" msdata:childkey="CodSoggetto" msprop:Generator_UserChildTable="Soggetti2Utente" msprop:Generator_ChildPropName="GetSoggetti2UtenteRows" msprop:Generator_UserRelationName="FK_Soggetti2Utente_AnagOperatori" msprop:Generator_RelationVarName="relationFK_Soggetti2Utente_AnagOperatori" msprop:Generator_UserParentTable="AnagOperatori" msprop:Generator_ParentPropName="AnagOperatoriRow" />
<msdata:Relationship name="FK_AnagImpianti_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagImpianti" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagImpianti" msprop:Generator_ChildPropName="GetAnagImpiantiRows" msprop:Generator_UserRelationName="FK_AnagImpianti_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_AnagImpianti_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
<msdata:Relationship name="FK_ElencoCartellini_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="ElencoCartellini" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
<msdata:Relationship name="FK_ElencoCartellini_AnagStatiProdotto" msdata:parent="AnagStatiProdotto" msdata:child="ElencoCartellini" msdata:parentkey="CodStato" msdata:childkey="CodStato" msprop:Generator_UserChildTable="ElencoCartellini" msprop:Generator_ChildPropName="GetElencoCartelliniRows" msprop:Generator_UserRelationName="FK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_ParentPropName="AnagStatiProdottoRow" msprop:Generator_RelationVarName="relationFK_ElencoCartellini_AnagStatiProdotto" msprop:Generator_UserParentTable="AnagStatiProdotto" />
<msdata:Relationship name="FK_AnagOperatori_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagOperatori" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagOperatori" msprop:Generator_ChildPropName="GetAnagOperatoriRows" msprop:Generator_UserRelationName="FK_AnagOperatori_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_AnagOperatori_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
<msdata:Relationship name="FK_AnagParticolari_AnagCompanySito" msdata:parent="AnagCompanySito" msdata:child="AnagParticolari" msdata:parentkey="CodCS" msdata:childkey="CodCS" msprop:Generator_UserChildTable="AnagParticolari" msprop:Generator_ChildPropName="GetAnagParticolariRows" msprop:Generator_UserRelationName="FK_AnagParticolari_AnagCompanySito" msprop:Generator_ParentPropName="AnagCompanySitoRow" msprop:Generator_RelationVarName="relationFK_AnagParticolari_AnagCompanySito" msprop:Generator_UserParentTable="AnagCompanySito" />
<msdata:Relationship name="FK_Soggetti2Utente_AnagOperatori" msdata:parent="AnagOperatori" msdata:child="Soggetti2Utente" msdata:parentkey="CodSoggetto" msdata:childkey="CodSoggetto" msprop:Generator_UserChildTable="Soggetti2Utente" msprop:Generator_ChildPropName="GetSoggetti2UtenteRows" msprop:Generator_UserRelationName="FK_Soggetti2Utente_AnagOperatori" msprop:Generator_ParentPropName="AnagOperatoriRow" msprop:Generator_RelationVarName="relationFK_Soggetti2Utente_AnagOperatori" msprop:Generator_UserParentTable="AnagOperatori" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+25 -25
View File
@@ -4,22 +4,22 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-1" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:AnagStati" ZOrder="34" X="867" Y="533" Height="115" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagTipoDichiaraz" ZOrder="25" X="828" Y="719" Height="115" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagStatiProdotto" ZOrder="15" X="243" Y="639" Height="134" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:RelazUDC" ZOrder="19" X="27" Y="249" Height="210" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:AnagImpianti" ZOrder="32" X="853" Y="19" Height="191" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagCompanySito" ZOrder="5" X="1175" Y="155" Height="172" Width="253" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagCompanySito" ZOrder="2" X="1173" Y="209" Height="203" Width="253" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="123" />
<Shape ID="DesignTable:AnagBilance" ZOrder="6" X="858" Y="224" Height="229" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ElencoCartellini" ZOrder="12" X="524" Y="-13" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagImballi" ZOrder="30" X="72" Y="488" Height="153" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_ArtInProd" ZOrder="27" X="1181" Y="757" Height="324" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagOperatori" ZOrder="24" X="488" Y="821" Height="267" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:AnagClienti" ZOrder="29" X="817" Y="1304" Height="153" Width="278" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:AnagParticolari" ZOrder="4" X="1288" Y="353" Height="229" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagFamiglie" ZOrder="2" X="1186" Y="613" Height="134" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:AnagParticolari" ZOrder="3" X="1288" Y="353" Height="229" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagFamiglie" ZOrder="5" X="1186" Y="613" Height="134" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:Soggetti2Utente" ZOrder="9" X="200" Y="879" Height="172" Width="189" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:v_specParticolari" ZOrder="21" X="30" Y="-23" Height="267" Width="253" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:ElencoPostazioni" ZOrder="22" X="1167" Y="1106" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
@@ -33,34 +33,34 @@
<Shape ID="DesignTable:UDC_DelLogNc" ZOrder="13" X="73" Y="1441" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:UDC_checkDL" ZOrder="8" X="423" Y="1484" Height="305" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:UDC_obsoleti" ZOrder="7" X="804" Y="1503" Height="305" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagParticolariImballi" ZOrder="3" X="1225" Y="-35" Height="210" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagParticolariImballi" ZOrder="1" X="1225" Y="-35" Height="273" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_AnagImpianti_AnagCompanySito" ZOrder="33" LineWidth="11">
<RoutePoints>
<Point>
<X>1175</X>
<Y>190</Y>
<X>1173</X>
<Y>227</Y>
</Point>
<Point>
<X>1077</X>
<Y>190</Y>
<X>1060</X>
<Y>227</Y>
</Point>
<Point>
<X>1060</X>
<Y>210</Y>
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagCompanySito" ZOrder="23" LineWidth="11">
<RoutePoints>
<Point>
<X>1216</X>
<Y>327</Y>
</Point>
<Point>
<X>1216</X>
<Y>368</Y>
<X>1173</X>
<Y>288</Y>
</Point>
<Point>
<X>824</X>
<Y>368</Y>
<Y>288</Y>
</Point>
</RoutePoints>
</Connector>
@@ -80,15 +80,15 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_AnagOperatori_AnagCompanySito" ZOrder="1" LineWidth="11">
<Connector ID="DesignRelation:FK_AnagOperatori_AnagCompanySito" ZOrder="4" LineWidth="11">
<RoutePoints>
<Point>
<X>1175</X>
<Y>327</Y>
<X>1173</X>
<Y>381</Y>
</Point>
<Point>
<X>1153</X>
<Y>327</Y>
<Y>381</Y>
</Point>
<Point>
<X>1153</X>
@@ -103,16 +103,16 @@
<Connector ID="DesignRelation:FK_AnagParticolari_AnagCompanySito" ZOrder="28" LineWidth="11">
<RoutePoints>
<Point>
<X>1262</X>
<Y>327</Y>
<X>1260</X>
<Y>412</Y>
</Point>
<Point>
<X>1262</X>
<Y>419</Y>
<X>1260</X>
<Y>420</Y>
</Point>
<Point>
<X>1288</X>
<Y>419</Y>
<Y>420</Y>
</Point>
</RoutePoints>
</Connector>
+51 -16
View File
@@ -10,10 +10,9 @@
#pragma warning disable 1591
namespace GMW_data
{
namespace GMW_data {
/// <summary>
///Represents a strongly typed in-memory cache of data.
///</summary>
@@ -20091,10 +20090,9 @@ namespace GMW_data
}
}
}
namespace GMW_data.DS_ApplicazioneTableAdapters
{
namespace GMW_data.DS_ApplicazioneTableAdapters {
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
@@ -32942,7 +32940,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM dbo.AnagParticolariI" +
@@ -32958,16 +32956,24 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 15, 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_API_UpdateQuery";
this._commandCollection[2].CommandText = "dbo.stp_API_getByStatoPart";
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("@CodCS", global::System.Data.SqlDbType.NChar, 2, 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("@CodStato", 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("@Particolare", global::System.Data.SqlDbType.NVarChar, 15, 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("@CodImballo", global::System.Data.SqlDbType.NVarChar, 15, 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("@QtaStd", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 2, 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("@Original_CodStato", 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("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "dbo.stp_API_UpdateQuery";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].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[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaStd", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCS", global::System.Data.SqlDbType.NChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodStato", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -32994,6 +33000,35 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Applicazione.AnagParticolariImballiDataTable getByStatoParticolare(string CodCS, string CodStato, string Particolare) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((CodCS == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
}
if ((CodStato == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodStato));
}
if ((Particolare == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Particolare));
}
DS_Applicazione.AnagParticolariImballiDataTable dataTable = new DS_Applicazione.AnagParticolariImballiDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
@@ -33240,7 +33275,7 @@ SELECT CodCS, CodStato, Particolare, CodImballo, QtaStd FROM AnagParticolariImba
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
public virtual int UpdateQuery(string CodStato, string Particolare, string CodImballo, global::System.Nullable<decimal> QtaStd, string Original_CodCS, string Original_CodStato, string Original_Particolare) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((CodStato == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}