diff --git a/GMW/GMW/WS/bilance.asmx.cs b/GMW/GMW/WS/bilance.asmx.cs
index f5f3e247..fe7ebd5e 100644
--- a/GMW/GMW/WS/bilance.asmx.cs
+++ b/GMW/GMW/WS/bilance.asmx.cs
@@ -155,7 +155,7 @@ namespace GMW.WS
catch
{ }
return answ;
- }
+ }
///
/// Restituisce l'elenco degli UDC parent di quello specificato
///
@@ -202,8 +202,7 @@ namespace GMW.WS
{
GMW.Type.Cartellino answ = new GMW.Type.Cartellino(DataProxy.obj.taCartellini.stp_getByUdc(UDC)[0]);
return answ;
- }
-#if false
+ }
///
/// Controlla che il codice imballo inviato sia valido (pre creazione TARA)
///
@@ -222,6 +221,8 @@ namespace GMW.WS
{ }
return answ;
}
+#if false
+
///
/// Fornisce l'elenco degli articoli attualmente in produzione per impianto, data e turno
///
@@ -280,49 +281,45 @@ namespace GMW.WS
// output risultato
return answ;
}
-#if false
-
///
/// Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati
///
/// codice anagrafico della bilanca che effettua la richiesta (codice della pesa)
- /// peso in kg (0 se non noto) da associare all'UDC come tara del contenitore
- /// codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)
- /// tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)
- /// codice dell'operatore
- /// codice dell'UDC parent (tara)
+ /// codice anagrafico del cliente
/// codice del particolare (articolo) - da anagrafica!
+ /// Codice dell'impianto
+ /// Codice dello stampo
+ /// codice dell'esponente dello stampo
+ /// Codice figura
+ /// Data di rif per la dichiarazione
+ /// Turno di rif per la dichiarazione
+ /// codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)
+ /// codice dell'operatore
+ /// codice dell'UDC parent (UDC della tara)
+ /// peso in kg (0 se non noto) da associare all'UDC come tara del contenitore
+ /// tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)
/// numero pezzi associati all'UDC
/// Peso totale rilevato
/// Peso unitario rilevato
- /// Codice dell'impianto
- /// Data di rif per la dichiarazione
- /// Turno di rif per la dichiarazione
- /// Codice dello stato del pezzo (da anagrafica: sabbiato, ...)
- /// Codice dello stampo
- /// Codice figura
- /// Codice figura incisa
+ /// Codice dello stato del pezzo (da anagrafica: sabbiato, ...)
/// UDC del nuovo cartellino
[WebMethod(Description = "Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati")]
- public string UdcCall_GetNew_Pesa(string CodBilancia, double Tara, string CodImballo, string CodTipoDichiarazione, string CodOperatore, string UDC_Parent, string Particolare, int qta, float PesoTot, float PesoCad, string CodImpianto, DateTime DataRif, int TurnoRif, string CodStatoProd, string CodStampo, string Figura, string FiguraIncisa)
+ public string UdcCall_GetNew_Pesa(string CodBilancia, string CodCliente, string Particolare, string CodImpianto, string CodStampo, string Esponente, string Figura, string UDC_Parent, double Tara, string CodImballo, string CodTipoDichiarazione, string CodSoggetto, int qta, float PesoTot, float PesoCad, DateTime DataRif, int TurnoRif, string CodStato)
{
// ricavo cod company...
- string CodCompany = "ND";
- string CodSito = "ND";
+ string CodCS = "ND";
string answ = "NA";
try
{
- CodCompany = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodCompany;
- CodSito = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodSito;
+ CodCS = DataProxy.obj.taAnagBil.stp_getByCodBilancia(CodBilancia)[0].CodCS;
}
catch
{
- CodCompany = DataProxy.obj.taAnagBil.GetData()[0].CodCompany;
- CodSito = DataProxy.obj.taAnagBil.GetData()[0].CodSito;
+ CodCS = memLayer.ML.confReadString("CodCS");
}
- int IdxStato = 20; // hard coded: è la postazione POST fusione di ambivere!!!
+ int IdxPosizione = 20; // hard coded: è la postazione POST fusione di ambivere!!!
// faccio update!
- DS_Applicazione.TabCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), Tara, IdxStato, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_PESA", qta, PesoTot, PesoCad, Particolare, CodStatoProd, CodStampo, Figura, FiguraIncisa); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
+ DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilancia, string.Format("{0:yy}", DateTime.Now), CodCliente, Particolare, CodImpianto, CodStampo, Esponente, Figura, DataRif, TurnoRif, CodImballo, CodSoggetto, Tara, IdxPosizione, CodTipoDichiarazione, "UDC_PESA", qta, PesoTot, PesoCad, CodStato, UDC_Parent); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
// leggo la riga
try
{
@@ -334,21 +331,21 @@ namespace GMW.WS
{ }
return answ;
}
-
-#endif
+
///
/// Annulla un dato UDC (se permesso)
///
/// codice dell'UDC)
+ /// codice dell'operatore
/// restituisce true/false a seconda che sia riuscito ad annullare l'UDC
[WebMethod(Description = "Annulla un dato UDC (se permesso)")]
- public bool UdcCall_annullaUDC(string UDC_req)
+ public bool UdcCall_annullaUDC(string UDC_req, string CodSoggetto)
{
// init
bool answ = false;
try
{
- GMW_data.DataProxy.obj.taCartellini.stp_annullaUDC(UDC_req);
+ GMW_data.DataProxy.obj.taCartellini.stp_annullaUDC(UDC_req, CodSoggetto);
answ = true;
}
catch
@@ -360,10 +357,11 @@ namespace GMW.WS
/// Sblocca un dato UDC (se la chiave passata è valida)
///
/// codice dell'UDC che si vuole sbloccare
+ /// codice dell'operatore
/// parola chiave x effettuare lo sblocco
/// restituisce true/false a seconda che sia riuscito ad annullare l'UDC
[WebMethod(Description = "Annulla un dato UDC (se permesso)")]
- public bool UdcCall_sbloccaUDC(string UDC_req, string passkey)
+ public bool UdcCall_sbloccaUDC(string UDC_req, string CodSoggetto, string passkey)
{
// init
bool answ = false;
@@ -371,13 +369,13 @@ namespace GMW.WS
string passkeyOk = memLayer.ML.confReadString("passkey");
if (passkeyOk == passkey)
{
- GMW_data.DataProxy.obj.taCartellini.stp_sbloccaUdc(UDC_req);
+ GMW_data.DataProxy.obj.taCartellini.stp_sbloccaUdc(UDC_req, CodSoggetto);
answ = true;
}
return answ;
}
- #endregion
+ #endregion
#if false
#region area stampe
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index 79a5a3f5..75d0464e 100644
Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ
diff --git a/GMW/GMW/bin/GMW_data.dll b/GMW/GMW/bin/GMW_data.dll
index aca6eed1..54dc0a4f 100644
Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ
diff --git a/GMW/GMW/bin/SteamWare.dll b/GMW/GMW/bin/SteamWare.dll
index 2a90c2c0..6980cf83 100644
Binary files a/GMW/GMW/bin/SteamWare.dll and b/GMW/GMW/bin/SteamWare.dll differ
diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll
index 79a5a3f5..402f4411 100644
Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ
diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache
index 54e4da5d..e0759345 100644
Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW/obj/Debug/build.force b/GMW/GMW/obj/Debug/build.force
new file mode 100644
index 00000000..e69de29b
diff --git a/GMW/GMW/obj/Release/GMW.dll b/GMW/GMW/obj/Release/GMW.dll
index 3134ec53..75d0464e 100644
Binary files a/GMW/GMW/obj/Release/GMW.dll and b/GMW/GMW/obj/Release/GMW.dll differ
diff --git a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache
index 2a791a6d..079a38a7 100644
Binary files a/GMW/GMW/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_data/DS_Applicazione.Designer.cs b/GMW/GMW_data/DS_Applicazione.Designer.cs
index a58cfa02..7f7ed588 100644
--- a/GMW/GMW_data/DS_Applicazione.Designer.cs
+++ b/GMW/GMW_data/DS_Applicazione.Designer.cs
@@ -31,8 +31,6 @@ namespace GMW_data {
private AnagStatiProdottoDataTable tableAnagStatiProdotto;
- private AnagImballiDataTable tableAnagImballi;
-
private AnagArticoliDataTable tableAnagArticoli;
private Impianti2ArticoliDataTable tableImpianti2Articoli;
@@ -51,6 +49,8 @@ namespace GMW_data {
private ElencoCartelliniDataTable tableElencoCartellini;
+ private AnagImballiDataTable tableAnagImballi;
+
private global::System.Data.DataRelation relationFK_Impianti2Articoli_AnagArticoli1;
private global::System.Data.DataRelation relationFK_StoricoEventi_AnagTipoDichiaraz;
@@ -98,9 +98,6 @@ namespace GMW_data {
if ((ds.Tables["AnagStatiProdotto"] != null)) {
base.Tables.Add(new AnagStatiProdottoDataTable(ds.Tables["AnagStatiProdotto"]));
}
- if ((ds.Tables["AnagImballi"] != null)) {
- base.Tables.Add(new AnagImballiDataTable(ds.Tables["AnagImballi"]));
- }
if ((ds.Tables["AnagArticoli"] != null)) {
base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
}
@@ -128,6 +125,9 @@ namespace GMW_data {
if ((ds.Tables["ElencoCartellini"] != null)) {
base.Tables.Add(new ElencoCartelliniDataTable(ds.Tables["ElencoCartellini"]));
}
+ if ((ds.Tables["AnagImballi"] != null)) {
+ base.Tables.Add(new AnagImballiDataTable(ds.Tables["AnagImballi"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -173,15 +173,6 @@ namespace GMW_data {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
- public AnagImballiDataTable AnagImballi {
- get {
- return this.tableAnagImballi;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
@@ -263,6 +254,15 @@ namespace GMW_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public AnagImballiDataTable AnagImballi {
+ get {
+ return this.tableAnagImballi;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
@@ -331,9 +331,6 @@ namespace GMW_data {
if ((ds.Tables["AnagStatiProdotto"] != null)) {
base.Tables.Add(new AnagStatiProdottoDataTable(ds.Tables["AnagStatiProdotto"]));
}
- if ((ds.Tables["AnagImballi"] != null)) {
- base.Tables.Add(new AnagImballiDataTable(ds.Tables["AnagImballi"]));
- }
if ((ds.Tables["AnagArticoli"] != null)) {
base.Tables.Add(new AnagArticoliDataTable(ds.Tables["AnagArticoli"]));
}
@@ -361,6 +358,9 @@ namespace GMW_data {
if ((ds.Tables["ElencoCartellini"] != null)) {
base.Tables.Add(new ElencoCartelliniDataTable(ds.Tables["ElencoCartellini"]));
}
+ if ((ds.Tables["AnagImballi"] != null)) {
+ base.Tables.Add(new AnagImballiDataTable(ds.Tables["AnagImballi"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -409,12 +409,6 @@ namespace GMW_data {
this.tableAnagStatiProdotto.InitVars();
}
}
- this.tableAnagImballi = ((AnagImballiDataTable)(base.Tables["AnagImballi"]));
- if ((initTable == true)) {
- if ((this.tableAnagImballi != null)) {
- this.tableAnagImballi.InitVars();
- }
- }
this.tableAnagArticoli = ((AnagArticoliDataTable)(base.Tables["AnagArticoli"]));
if ((initTable == true)) {
if ((this.tableAnagArticoli != null)) {
@@ -469,6 +463,12 @@ namespace GMW_data {
this.tableElencoCartellini.InitVars();
}
}
+ this.tableAnagImballi = ((AnagImballiDataTable)(base.Tables["AnagImballi"]));
+ if ((initTable == true)) {
+ if ((this.tableAnagImballi != null)) {
+ this.tableAnagImballi.InitVars();
+ }
+ }
this.relationFK_Impianti2Articoli_AnagArticoli1 = this.Relations["FK_Impianti2Articoli_AnagArticoli1"];
this.relationFK_StoricoEventi_AnagTipoDichiaraz = this.Relations["FK_StoricoEventi_AnagTipoDichiaraz"];
this.relationFK_Impianti2Articoli_AnagImpianti = this.Relations["FK_Impianti2Articoli_AnagImpianti"];
@@ -490,8 +490,6 @@ namespace GMW_data {
base.Tables.Add(this.tableAnagTipoDichiaraz);
this.tableAnagStatiProdotto = new AnagStatiProdottoDataTable();
base.Tables.Add(this.tableAnagStatiProdotto);
- this.tableAnagImballi = new AnagImballiDataTable();
- base.Tables.Add(this.tableAnagImballi);
this.tableAnagArticoli = new AnagArticoliDataTable();
base.Tables.Add(this.tableAnagArticoli);
this.tableImpianti2Articoli = new Impianti2ArticoliDataTable();
@@ -510,6 +508,8 @@ namespace GMW_data {
base.Tables.Add(this.tableAnagBilance);
this.tableElencoCartellini = new ElencoCartelliniDataTable();
base.Tables.Add(this.tableElencoCartellini);
+ this.tableAnagImballi = new AnagImballiDataTable();
+ base.Tables.Add(this.tableAnagImballi);
this.relationFK_Impianti2Articoli_AnagArticoli1 = new global::System.Data.DataRelation("FK_Impianti2Articoli_AnagArticoli1", new global::System.Data.DataColumn[] {
this.tableAnagArticoli.ParticolareColumn}, new global::System.Data.DataColumn[] {
this.tableImpianti2Articoli.ParticolareColumn}, false);
@@ -551,11 +551,6 @@ namespace GMW_data {
return false;
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeAnagImballi() {
- return false;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeAnagArticoli() {
return false;
@@ -601,6 +596,11 @@ namespace GMW_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private bool ShouldSerializeAnagImballi() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
@@ -660,8 +660,6 @@ namespace GMW_data {
public delegate void AnagStatiProdottoRowChangeEventHandler(object sender, AnagStatiProdottoRowChangeEvent e);
- public delegate void AnagImballiRowChangeEventHandler(object sender, AnagImballiRowChangeEvent e);
-
public delegate void AnagArticoliRowChangeEventHandler(object sender, AnagArticoliRowChangeEvent e);
public delegate void Impianti2ArticoliRowChangeEventHandler(object sender, Impianti2ArticoliRowChangeEvent e);
@@ -680,6 +678,8 @@ namespace GMW_data {
public delegate void ElencoCartelliniRowChangeEventHandler(object sender, ElencoCartelliniRowChangeEvent e);
+ public delegate void AnagImballiRowChangeEventHandler(object sender, AnagImballiRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -1423,254 +1423,6 @@ namespace GMW_data {
}
}
- ///
- ///Represents the strongly named DataTable class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.Serializable()]
- [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class AnagImballiDataTable : global::System.Data.TypedTableBase {
-
- private global::System.Data.DataColumn columnCodImballo;
-
- private global::System.Data.DataColumn columnDescImballo;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiDataTable() {
- this.TableName = "AnagImballi";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagImballiDataTable(global::System.Data.DataTable table) {
- this.TableName = table.TableName;
- if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
- this.CaseSensitive = table.CaseSensitive;
- }
- if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
- this.Locale = table.Locale;
- }
- if ((table.Namespace != table.DataSet.Namespace)) {
- this.Namespace = table.Namespace;
- }
- this.Prefix = table.Prefix;
- this.MinimumCapacity = table.MinimumCapacity;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected AnagImballiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn CodImballoColumn {
- get {
- return this.columnCodImballo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataColumn DescImballoColumn {
- get {
- return this.columnDescImballo;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiRow this[int index] {
- get {
- return ((AnagImballiRow)(this.Rows[index]));
- }
- }
-
- public event AnagImballiRowChangeEventHandler AnagImballiRowChanging;
-
- public event AnagImballiRowChangeEventHandler AnagImballiRowChanged;
-
- public event AnagImballiRowChangeEventHandler AnagImballiRowDeleting;
-
- public event AnagImballiRowChangeEventHandler AnagImballiRowDeleted;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddAnagImballiRow(AnagImballiRow row) {
- this.Rows.Add(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiRow AddAnagImballiRow(string CodImballo, string DescImballo) {
- AnagImballiRow rowAnagImballiRow = ((AnagImballiRow)(this.NewRow()));
- object[] columnValuesArray = new object[] {
- CodImballo,
- DescImballo};
- rowAnagImballiRow.ItemArray = columnValuesArray;
- this.Rows.Add(rowAnagImballiRow);
- return rowAnagImballiRow;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiRow FindByCodImballo(string CodImballo) {
- return ((AnagImballiRow)(this.Rows.Find(new object[] {
- CodImballo})));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override global::System.Data.DataTable Clone() {
- AnagImballiDataTable cln = ((AnagImballiDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataTable CreateInstance() {
- return new AnagImballiDataTable();
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnCodImballo = base.Columns["CodImballo"];
- this.columnDescImballo = base.Columns["DescImballo"];
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCodImballo);
- this.columnDescImballo = new global::System.Data.DataColumn("DescImballo", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnDescImballo);
- this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
- this.columnCodImballo}, true));
- this.columnCodImballo.AllowDBNull = false;
- this.columnCodImballo.Unique = true;
- this.columnCodImballo.MaxLength = 50;
- this.columnDescImballo.MaxLength = 50;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiRow NewAnagImballiRow() {
- return ((AnagImballiRow)(this.NewRow()));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
- return new AnagImballiRow(builder);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override global::System.Type GetRowType() {
- return typeof(AnagImballiRow);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.AnagImballiRowChanged != null)) {
- this.AnagImballiRowChanged(this, new AnagImballiRowChangeEvent(((AnagImballiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.AnagImballiRowChanging != null)) {
- this.AnagImballiRowChanging(this, new AnagImballiRowChangeEvent(((AnagImballiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.AnagImballiRowDeleted != null)) {
- this.AnagImballiRowDeleted(this, new AnagImballiRowChangeEvent(((AnagImballiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.AnagImballiRowDeleting != null)) {
- this.AnagImballiRowDeleting(this, new AnagImballiRowChangeEvent(((AnagImballiRow)(e.Row)), e.Action));
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveAnagImballiRow(AnagImballiRow row) {
- this.Rows.Remove(row);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
- global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
- global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
- DS_Applicazione ds = new DS_Applicazione();
- global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
- any1.Namespace = "http://www.w3.org/2001/XMLSchema";
- any1.MinOccurs = new decimal(0);
- any1.MaxOccurs = decimal.MaxValue;
- any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any1);
- global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
- any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- any2.MinOccurs = new decimal(1);
- any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
- sequence.Items.Add(any2);
- global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute1.Name = "namespace";
- attribute1.FixedValue = ds.Namespace;
- type.Attributes.Add(attribute1);
- global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
- attribute2.Name = "tableTypeName";
- attribute2.FixedValue = "AnagImballiDataTable";
- type.Attributes.Add(attribute2);
- type.Particle = sequence;
- global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
- if (xs.Contains(dsSchema.TargetNamespace)) {
- global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
- global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
- try {
- global::System.Xml.Schema.XmlSchema schema = null;
- dsSchema.Write(s1);
- for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
- schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
- s2.SetLength(0);
- schema.Write(s2);
- if ((s1.Length == s2.Length)) {
- s1.Position = 0;
- s2.Position = 0;
- for (; ((s1.Position != s1.Length)
- && (s1.ReadByte() == s2.ReadByte())); ) {
- ;
- }
- if ((s1.Position == s1.Length)) {
- return type;
- }
- }
- }
- }
- finally {
- if ((s1 != null)) {
- s1.Close();
- }
- if ((s2 != null)) {
- s2.Close();
- }
- }
- }
- xs.Add(dsSchema);
- return type;
- }
- }
-
///
///Represents the strongly named DataTable class.
///
@@ -4752,6 +4504,268 @@ namespace GMW_data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class AnagImballiDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnCodImballo;
+
+ private global::System.Data.DataColumn columnClasseArticolo;
+
+ private global::System.Data.DataColumn columnDescImballo;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImballiDataTable() {
+ this.TableName = "AnagImballi";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagImballiDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected AnagImballiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodImballoColumn {
+ get {
+ return this.columnCodImballo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn ClasseArticoloColumn {
+ get {
+ return this.columnClasseArticolo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn DescImballoColumn {
+ get {
+ return this.columnDescImballo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImballiRow this[int index] {
+ get {
+ return ((AnagImballiRow)(this.Rows[index]));
+ }
+ }
+
+ public event AnagImballiRowChangeEventHandler AnagImballiRowChanging;
+
+ public event AnagImballiRowChangeEventHandler AnagImballiRowChanged;
+
+ public event AnagImballiRowChangeEventHandler AnagImballiRowDeleting;
+
+ public event AnagImballiRowChangeEventHandler AnagImballiRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void AddAnagImballiRow(AnagImballiRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImballiRow AddAnagImballiRow(string CodImballo, string ClasseArticolo, string DescImballo) {
+ AnagImballiRow rowAnagImballiRow = ((AnagImballiRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ CodImballo,
+ ClasseArticolo,
+ DescImballo};
+ rowAnagImballiRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowAnagImballiRow);
+ return rowAnagImballiRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImballiRow FindByCodImballo(string CodImballo) {
+ return ((AnagImballiRow)(this.Rows.Find(new object[] {
+ CodImballo})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public override global::System.Data.DataTable Clone() {
+ AnagImballiDataTable cln = ((AnagImballiDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new AnagImballiDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal void InitVars() {
+ this.columnCodImballo = base.Columns["CodImballo"];
+ this.columnClasseArticolo = base.Columns["ClasseArticolo"];
+ this.columnDescImballo = base.Columns["DescImballo"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitClass() {
+ this.columnCodImballo = new global::System.Data.DataColumn("CodImballo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodImballo);
+ this.columnClasseArticolo = new global::System.Data.DataColumn("ClasseArticolo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnClasseArticolo);
+ this.columnDescImballo = new global::System.Data.DataColumn("DescImballo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnDescImballo);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnCodImballo}, true));
+ this.columnCodImballo.AllowDBNull = false;
+ this.columnCodImballo.Unique = true;
+ this.columnCodImballo.MaxLength = 15;
+ this.columnClasseArticolo.MaxLength = 1;
+ this.columnDescImballo.MaxLength = 30;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImballiRow NewAnagImballiRow() {
+ return ((AnagImballiRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new AnagImballiRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override global::System.Type GetRowType() {
+ return typeof(AnagImballiRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.AnagImballiRowChanged != null)) {
+ this.AnagImballiRowChanged(this, new AnagImballiRowChangeEvent(((AnagImballiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.AnagImballiRowChanging != null)) {
+ this.AnagImballiRowChanging(this, new AnagImballiRowChangeEvent(((AnagImballiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.AnagImballiRowDeleted != null)) {
+ this.AnagImballiRowDeleted(this, new AnagImballiRowChangeEvent(((AnagImballiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.AnagImballiRowDeleting != null)) {
+ this.AnagImballiRowDeleting(this, new AnagImballiRowChangeEvent(((AnagImballiRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void RemoveAnagImballiRow(AnagImballiRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_Applicazione ds = new DS_Applicazione();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "AnagImballiDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
///
///Represents strongly named DataRow class.
///
@@ -4923,56 +4937,6 @@ namespace GMW_data {
}
}
- ///
- ///Represents strongly named DataRow class.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public partial class AnagImballiRow : global::System.Data.DataRow {
-
- private AnagImballiDataTable tableAnagImballi;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal AnagImballiRow(global::System.Data.DataRowBuilder rb) :
- base(rb) {
- this.tableAnagImballi = ((AnagImballiDataTable)(this.Table));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string CodImballo {
- get {
- return ((string)(this[this.tableAnagImballi.CodImballoColumn]));
- }
- set {
- this[this.tableAnagImballi.CodImballoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public string DescImballo {
- get {
- try {
- return ((string)(this[this.tableAnagImballi.DescImballoColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'DescImballo\' in table \'AnagImballi\' is DBNull.", e);
- }
- }
- set {
- this[this.tableAnagImballi.DescImballoColumn] = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool IsDescImballoNull() {
- return this.IsNull(this.tableAnagImballi.DescImballoColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void SetDescImballoNull() {
- this[this.tableAnagImballi.DescImballoColumn] = global::System.Convert.DBNull;
- }
- }
-
///
///Represents strongly named DataRow class.
///
@@ -6838,6 +6802,81 @@ namespace GMW_data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public partial class AnagImballiRow : global::System.Data.DataRow {
+
+ private AnagImballiDataTable tableAnagImballi;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal AnagImballiRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableAnagImballi = ((AnagImballiDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodImballo {
+ get {
+ return ((string)(this[this.tableAnagImballi.CodImballoColumn]));
+ }
+ set {
+ this[this.tableAnagImballi.CodImballoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string ClasseArticolo {
+ get {
+ try {
+ return ((string)(this[this.tableAnagImballi.ClasseArticoloColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'ClasseArticolo\' in table \'AnagImballi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagImballi.ClasseArticoloColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string DescImballo {
+ get {
+ try {
+ return ((string)(this[this.tableAnagImballi.DescImballoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'DescImballo\' in table \'AnagImballi\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagImballi.DescImballoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsClasseArticoloNull() {
+ return this.IsNull(this.tableAnagImballi.ClasseArticoloColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetClasseArticoloNull() {
+ this[this.tableAnagImballi.ClasseArticoloColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsDescImballoNull() {
+ return this.IsNull(this.tableAnagImballi.DescImballoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetDescImballoNull() {
+ this[this.tableAnagImballi.DescImballoColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Row event argument class
///
@@ -6931,37 +6970,6 @@ namespace GMW_data {
}
}
- ///
- ///Row event argument class
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AnagImballiRowChangeEvent : global::System.EventArgs {
-
- private AnagImballiRow eventRow;
-
- private global::System.Data.DataRowAction eventAction;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiRowChangeEvent(AnagImballiRow row, global::System.Data.DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiRow Row {
- get {
- return this.eventRow;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public global::System.Data.DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
-
///
///Row event argument class
///
@@ -7240,6 +7248,37 @@ namespace GMW_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ public class AnagImballiRowChangeEvent : global::System.EventArgs {
+
+ private AnagImballiRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImballiRowChangeEvent(AnagImballiRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImballiRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace GMW_data.DS_ApplicazioneTableAdapters {
@@ -8213,357 +8252,6 @@ SELECT CodStato, DescStato FROM AnagStatiProdotto WHERE (CodStato = @CodStato)";
}
}
- ///
- ///Represents the connection and commands used to retrieve and save data.
- ///
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [global::System.ComponentModel.DesignerCategoryAttribute("code")]
- [global::System.ComponentModel.ToolboxItem(true)]
- [global::System.ComponentModel.DataObjectAttribute(true)]
- [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
- ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public partial class AnagImballiTableAdapter : global::System.ComponentModel.Component {
-
- private global::System.Data.SqlClient.SqlDataAdapter _adapter;
-
- private global::System.Data.SqlClient.SqlConnection _connection;
-
- private global::System.Data.SqlClient.SqlTransaction _transaction;
-
- private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
-
- private bool _clearBeforeFill;
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagImballiTableAdapter() {
- this.ClearBeforeFill = true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
- get {
- if ((this._adapter == null)) {
- this.InitAdapter();
- }
- return this._adapter;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlConnection Connection {
- get {
- if ((this._connection == null)) {
- this.InitConnection();
- }
- return this._connection;
- }
- set {
- this._connection = value;
- if ((this.Adapter.InsertCommand != null)) {
- this.Adapter.InsertCommand.Connection = value;
- }
- if ((this.Adapter.DeleteCommand != null)) {
- this.Adapter.DeleteCommand.Connection = value;
- }
- if ((this.Adapter.UpdateCommand != null)) {
- this.Adapter.UpdateCommand.Connection = value;
- }
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- if ((this.CommandCollection[i] != null)) {
- ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
- }
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal global::System.Data.SqlClient.SqlTransaction Transaction {
- get {
- return this._transaction;
- }
- set {
- this._transaction = value;
- for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
- this.CommandCollection[i].Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.DeleteCommand != null))) {
- this.Adapter.DeleteCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.InsertCommand != null))) {
- this.Adapter.InsertCommand.Transaction = this._transaction;
- }
- if (((this.Adapter != null)
- && (this.Adapter.UpdateCommand != null))) {
- this.Adapter.UpdateCommand.Transaction = this._transaction;
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
- get {
- if ((this._commandCollection == null)) {
- this.InitCommandCollection();
- }
- return this._commandCollection;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public bool ClearBeforeFill {
- get {
- return this._clearBeforeFill;
- }
- set {
- this._clearBeforeFill = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitAdapter() {
- this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
- global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
- tableMapping.SourceTable = "Table";
- tableMapping.DataSetTable = "AnagImballi";
- tableMapping.ColumnMappings.Add("CodImballo", "CodImballo");
- tableMapping.ColumnMappings.Add("DescImballo", "DescImballo");
- this._adapter.TableMappings.Add(tableMapping);
- this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagImballi] WHERE (([CodImballo] = @Original_CodImballo) AND " +
- "((@IsNull_DescImballo = 1 AND [DescImballo] IS NULL) OR ([DescImballo] = @Origin" +
- "al_DescImballo)))";
- this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagImballi] ([CodImballo], [DescImballo]) VALUES (@CodImballo" +
- ", @DescImballo);\r\nSELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImba" +
- "llo = @CodImballo)";
- this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
- this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagImballi] SET [CodImballo] = @CodImballo, [DescImballo] = @DescImballo WHERE (([CodImballo] = @Original_CodImballo) AND ((@IsNull_DescImballo = 1 AND [DescImballo] IS NULL) OR ([DescImballo] = @Original_DescImballo)));
-SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)";
- this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
- this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitConnection() {
- this._connection = new global::System.Data.SqlClient.SqlConnection();
- this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
- this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT CodImballo, DescImballo FROM dbo.AnagImballi";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
- this._commandCollection[1].Connection = this.Connection;
- this._commandCollection[1].CommandText = "dbo.stp_getImballoByCod";
- 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("@CodImballo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(DS_Applicazione.AnagImballiDataTable dataTable) {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((this.ClearBeforeFill == true)) {
- dataTable.Clear();
- }
- int returnValue = this.Adapter.Fill(dataTable);
- return returnValue;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual DS_Applicazione.AnagImballiDataTable GetData() {
- this.Adapter.SelectCommand = this.CommandCollection[0];
- DS_Applicazione.AnagImballiDataTable dataTable = new DS_Applicazione.AnagImballiDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_Applicazione.AnagImballiDataTable stp_getImballoByCod(string CodImballo) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
- if ((CodImballo == null)) {
- this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodImballo));
- }
- DS_Applicazione.AnagImballiDataTable dataTable = new DS_Applicazione.AnagImballiDataTable();
- this.Adapter.Fill(dataTable);
- return dataTable;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione.AnagImballiDataTable dataTable) {
- return this.Adapter.Update(dataTable);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(DS_Applicazione dataSet) {
- return this.Adapter.Update(dataSet, "AnagImballi");
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow dataRow) {
- return this.Adapter.Update(new global::System.Data.DataRow[] {
- dataRow});
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int Update(global::System.Data.DataRow[] dataRows) {
- return this.Adapter.Update(dataRows);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodImballo, string Original_DescImballo) {
- if ((Original_CodImballo == null)) {
- throw new global::System.ArgumentNullException("Original_CodImballo");
- }
- else {
- this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImballo));
- }
- if ((Original_DescImballo == null)) {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
- this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
- this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DescImballo));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
- if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.DeleteCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.DeleteCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodImballo, string DescImballo) {
- if ((CodImballo == null)) {
- throw new global::System.ArgumentNullException("CodImballo");
- }
- else {
- this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImballo));
- }
- if ((DescImballo == null)) {
- this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DescImballo));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
- if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.InsertCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.InsertCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodImballo, string DescImballo, string Original_CodImballo, string Original_DescImballo) {
- if ((CodImballo == null)) {
- throw new global::System.ArgumentNullException("CodImballo");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImballo));
- }
- if ((DescImballo == null)) {
- this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DescImballo));
- }
- if ((Original_CodImballo == null)) {
- throw new global::System.ArgumentNullException("Original_CodImballo");
- }
- else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodImballo));
- }
- if ((Original_DescImballo == null)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DescImballo));
- }
- global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
- if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
- != global::System.Data.ConnectionState.Open)) {
- this.Adapter.UpdateCommand.Connection.Open();
- }
- try {
- int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
- return returnValue;
- }
- finally {
- if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
- this.Adapter.UpdateCommand.Connection.Close();
- }
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string DescImballo, string Original_CodImballo, string Original_DescImballo) {
- return this.Update(Original_CodImballo, DescImballo, Original_CodImballo, Original_DescImballo);
- }
- }
-
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -12587,6 +12275,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
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.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 16, 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_getCartellinoByUdc";
@@ -12615,20 +12304,15 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Flusso", global::System.Data.SqlDbType.VarChar, 2, 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("@Anno", global::System.Data.SqlDbType.VarChar, 2, 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("@CodCliente", global::System.Data.SqlDbType.VarChar, 6, 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("@RagSociale", global::System.Data.SqlDbType.VarChar, 35, 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("@Particolare", global::System.Data.SqlDbType.VarChar, 15, 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("@DescParticolare", global::System.Data.SqlDbType.VarChar, 30, 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("@DisegnoGrezzo", global::System.Data.SqlDbType.VarChar, 30, 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("@Esponente", global::System.Data.SqlDbType.VarChar, 6, 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("@CodImpianto", global::System.Data.SqlDbType.VarChar, 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("@DescImpianto", global::System.Data.SqlDbType.VarChar, 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("@CodStampo", global::System.Data.SqlDbType.VarChar, 8, 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("@Esponente", global::System.Data.SqlDbType.VarChar, 6, 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("@Figura", global::System.Data.SqlDbType.VarChar, 4, 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("@DataFus", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TurnoFus", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.VarChar, 15, 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("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 16, 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("@NumCont", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].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[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -12637,12 +12321,14 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
this._commandCollection[4].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[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStato", global::System.Data.SqlDbType.VarChar, 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("@UDC_parent", global::System.Data.SqlDbType.VarChar, 20, 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_sbloccaUdc";
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 16, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -12749,20 +12435,15 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
string Flusso,
string Anno,
string CodCliente,
- string RagSociale,
string Particolare,
- string DescParticolare,
- string DisegnoGrezzo,
- string Esponente,
string CodImpianto,
- string DescImpianto,
string CodStampo,
+ string Esponente,
string Figura,
global::System.Nullable DataFus,
global::System.Nullable TurnoFus,
string CodImballo,
string CodSoggetto,
- global::System.Nullable NumCont,
global::System.Nullable Tara,
global::System.Nullable IdxPosizione,
string CodTipoDichiaraz,
@@ -12770,7 +12451,8 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
global::System.Nullable Qta,
global::System.Nullable PesoTot,
global::System.Nullable PesoCad,
- string CodStato) {
+ string CodStato,
+ string UDC_parent) {
this.Adapter.SelectCommand = this.CommandCollection[4];
if ((CodCS == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
@@ -12796,137 +12478,113 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
else {
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodCliente));
}
- if ((RagSociale == null)) {
+ if ((Particolare == null)) {
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[5].Value = ((string)(RagSociale));
+ this.Adapter.SelectCommand.Parameters[5].Value = ((string)(Particolare));
}
- if ((Particolare == null)) {
+ if ((CodImpianto == null)) {
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[6].Value = ((string)(Particolare));
+ this.Adapter.SelectCommand.Parameters[6].Value = ((string)(CodImpianto));
}
- if ((DescParticolare == null)) {
+ if ((CodStampo == null)) {
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[7].Value = ((string)(DescParticolare));
+ this.Adapter.SelectCommand.Parameters[7].Value = ((string)(CodStampo));
}
- if ((DisegnoGrezzo == null)) {
+ if ((Esponente == null)) {
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[8].Value = ((string)(DisegnoGrezzo));
+ this.Adapter.SelectCommand.Parameters[8].Value = ((string)(Esponente));
}
- if ((Esponente == null)) {
+ if ((Figura == null)) {
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[9].Value = ((string)(Esponente));
+ this.Adapter.SelectCommand.Parameters[9].Value = ((string)(Figura));
}
- if ((CodImpianto == null)) {
+ if ((DataFus.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[10].Value = ((System.DateTime)(DataFus.Value));
+ }
+ else {
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[10].Value = ((string)(CodImpianto));
+ if ((TurnoFus.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[11].Value = ((int)(TurnoFus.Value));
}
- if ((DescImpianto == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[11].Value = ((string)(DescImpianto));
- }
- if ((CodStampo == null)) {
+ if ((CodImballo == null)) {
this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[12].Value = ((string)(CodStampo));
+ this.Adapter.SelectCommand.Parameters[12].Value = ((string)(CodImballo));
}
- if ((Figura == null)) {
+ if ((CodSoggetto == null)) {
this.Adapter.SelectCommand.Parameters[13].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[13].Value = ((string)(Figura));
+ this.Adapter.SelectCommand.Parameters[13].Value = ((string)(CodSoggetto));
}
- if ((DataFus.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[14].Value = ((System.DateTime)(DataFus.Value));
+ if ((Tara.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[14].Value = ((double)(Tara.Value));
}
else {
this.Adapter.SelectCommand.Parameters[14].Value = global::System.DBNull.Value;
}
- if ((TurnoFus.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[15].Value = ((int)(TurnoFus.Value));
+ if ((IdxPosizione.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[15].Value = ((int)(IdxPosizione.Value));
}
else {
this.Adapter.SelectCommand.Parameters[15].Value = global::System.DBNull.Value;
}
- if ((CodImballo == null)) {
+ if ((CodTipoDichiaraz == null)) {
this.Adapter.SelectCommand.Parameters[16].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[16].Value = ((string)(CodImballo));
+ this.Adapter.SelectCommand.Parameters[16].Value = ((string)(CodTipoDichiaraz));
}
- if ((CodSoggetto == null)) {
+ if ((CodEvento == null)) {
this.Adapter.SelectCommand.Parameters[17].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[17].Value = ((string)(CodSoggetto));
+ this.Adapter.SelectCommand.Parameters[17].Value = ((string)(CodEvento));
}
- if ((NumCont.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[18].Value = ((int)(NumCont.Value));
+ if ((Qta.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[18].Value = ((decimal)(Qta.Value));
}
else {
this.Adapter.SelectCommand.Parameters[18].Value = global::System.DBNull.Value;
}
- if ((Tara.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[19].Value = ((double)(Tara.Value));
+ if ((PesoTot.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[19].Value = ((double)(PesoTot.Value));
}
else {
this.Adapter.SelectCommand.Parameters[19].Value = global::System.DBNull.Value;
}
- if ((IdxPosizione.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[20].Value = ((int)(IdxPosizione.Value));
+ if ((PesoCad.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[20].Value = ((double)(PesoCad.Value));
}
else {
this.Adapter.SelectCommand.Parameters[20].Value = global::System.DBNull.Value;
}
- if ((CodTipoDichiaraz == null)) {
+ if ((CodStato == null)) {
this.Adapter.SelectCommand.Parameters[21].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[21].Value = ((string)(CodTipoDichiaraz));
+ this.Adapter.SelectCommand.Parameters[21].Value = ((string)(CodStato));
}
- if ((CodEvento == null)) {
+ if ((UDC_parent == null)) {
this.Adapter.SelectCommand.Parameters[22].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.SelectCommand.Parameters[22].Value = ((string)(CodEvento));
- }
- if ((Qta.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[23].Value = ((decimal)(Qta.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[23].Value = global::System.DBNull.Value;
- }
- if ((PesoTot.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[24].Value = ((double)(PesoTot.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[24].Value = global::System.DBNull.Value;
- }
- if ((PesoCad.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[25].Value = ((double)(PesoCad.Value));
- }
- else {
- this.Adapter.SelectCommand.Parameters[25].Value = global::System.DBNull.Value;
- }
- if ((CodStato == null)) {
- this.Adapter.SelectCommand.Parameters[26].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.SelectCommand.Parameters[26].Value = ((string)(CodStato));
+ this.Adapter.SelectCommand.Parameters[22].Value = ((string)(UDC_parent));
}
DS_Applicazione.ElencoCartelliniDataTable dataTable = new DS_Applicazione.ElencoCartelliniDataTable();
this.Adapter.Fill(dataTable);
@@ -13872,7 +13530,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int stp_annullaUDC(string UDC) {
+ public virtual int stp_annullaUDC(string UDC, string CodSoggetto) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((UDC == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
@@ -13880,6 +13538,12 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
else {
command.Parameters[1].Value = ((string)(UDC));
}
+ if ((CodSoggetto == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(CodSoggetto));
+ }
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -13899,7 +13563,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int stp_sbloccaUdc(string UDC) {
+ public virtual int stp_sbloccaUdc(string UDC, string CodSoggetto) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
if ((UDC == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
@@ -13907,6 +13571,12 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
else {
command.Parameters[1].Value = ((string)(UDC));
}
+ if ((CodSoggetto == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(CodSoggetto));
+ }
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -13925,6 +13595,390 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class AnagImballiTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public AnagImballiTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "AnagImballi";
+ tableMapping.ColumnMappings.Add("CodImballo", "CodImballo");
+ tableMapping.ColumnMappings.Add("ClasseArticolo", "ClasseArticolo");
+ tableMapping.ColumnMappings.Add("DescImballo", "DescImballo");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [RilPro].[AnagImballi] WHERE (([CodImballo] = @Original_CodImballo) AND ((@IsNull_ClasseArticolo = 1 AND [ClasseArticolo] IS NULL) OR ([ClasseArticolo] = @Original_ClasseArticolo)) AND ((@IsNull_DescImballo = 1 AND [DescImballo] IS NULL) OR ([DescImballo] = @Original_DescImballo)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClasseArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClasseArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = "INSERT INTO [RilPro].[AnagImballi] ([CodImballo], [ClasseArticolo], [DescImballo]" +
+ ") VALUES (@CodImballo, @ClasseArticolo, @DescImballo);\r\nSELECT CodImballo, Class" +
+ "eArticolo, DescImballo FROM RilPro.AnagImballi WHERE (CodImballo = @CodImballo)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClasseArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [RilPro].[AnagImballi] SET [CodImballo] = @CodImballo, [ClasseArticolo] = @ClasseArticolo, [DescImballo] = @DescImballo WHERE (([CodImballo] = @Original_CodImballo) AND ((@IsNull_ClasseArticolo = 1 AND [ClasseArticolo] IS NULL) OR ([ClasseArticolo] = @Original_ClasseArticolo)) AND ((@IsNull_DescImballo = 1 AND [DescImballo] IS NULL) OR ([DescImballo] = @Original_DescImballo)));
+SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (CodImballo = @CodImballo)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClasseArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClasseArticolo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseArticolo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClasseArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClasseArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DescImballo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DescImballo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DescImballo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_getImballoByCod";
+ 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("@CodImballo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(DS_Applicazione.AnagImballiDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Applicazione.AnagImballiDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.AnagImballiDataTable dataTable = new DS_Applicazione.AnagImballiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Applicazione.AnagImballiDataTable stp_getImballoByCod(string CodImballo) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodImballo == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodImballo));
+ }
+ DS_Applicazione.AnagImballiDataTable dataTable = new DS_Applicazione.AnagImballiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione.AnagImballiDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_Applicazione dataSet) {
+ return this.Adapter.Update(dataSet, "AnagImballi");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(string Original_CodImballo, string Original_ClasseArticolo, string Original_DescImballo) {
+ if ((Original_CodImballo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodImballo");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CodImballo));
+ }
+ if ((Original_ClasseArticolo == null)) {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ClasseArticolo));
+ }
+ if ((Original_DescImballo == null)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_DescImballo));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string CodImballo, string ClasseArticolo, string DescImballo) {
+ if ((CodImballo == null)) {
+ throw new global::System.ArgumentNullException("CodImballo");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodImballo));
+ }
+ if ((ClasseArticolo == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ClasseArticolo));
+ }
+ if ((DescImballo == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DescImballo));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string CodImballo, string ClasseArticolo, string DescImballo, string Original_CodImballo, string Original_ClasseArticolo, string Original_DescImballo) {
+ if ((CodImballo == null)) {
+ throw new global::System.ArgumentNullException("CodImballo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodImballo));
+ }
+ if ((ClasseArticolo == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ClasseArticolo));
+ }
+ if ((DescImballo == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DescImballo));
+ }
+ if ((Original_CodImballo == null)) {
+ throw new global::System.ArgumentNullException("Original_CodImballo");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodImballo));
+ }
+ if ((Original_ClasseArticolo == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_ClasseArticolo));
+ }
+ if ((Original_DescImballo == null)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_DescImballo));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string ClasseArticolo, string DescImballo, string Original_CodImballo, string Original_ClasseArticolo, string Original_DescImballo) {
+ return this.Update(Original_CodImballo, ClasseArticolo, DescImballo, Original_CodImballo, Original_ClasseArticolo, Original_DescImballo);
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -13944,8 +13998,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
private AnagStatiProdottoTableAdapter _anagStatiProdottoTableAdapter;
- private AnagImballiTableAdapter _anagImballiTableAdapter;
-
private AnagArticoliTableAdapter _anagArticoliTableAdapter;
private Impianti2ArticoliTableAdapter _impianti2ArticoliTableAdapter;
@@ -13962,6 +14014,8 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
private ElencoCartelliniTableAdapter _elencoCartelliniTableAdapter;
+ private AnagImballiTableAdapter _anagImballiTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -14015,19 +14069,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
- "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
- "", "System.Drawing.Design.UITypeEditor")]
- public AnagImballiTableAdapter AnagImballiTableAdapter {
- get {
- return this._anagImballiTableAdapter;
- }
- set {
- this._anagImballiTableAdapter = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
@@ -14132,6 +14173,19 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" +
+ "", "System.Drawing.Design.UITypeEditor")]
+ public AnagImballiTableAdapter AnagImballiTableAdapter {
+ get {
+ return this._anagImballiTableAdapter;
+ }
+ set {
+ this._anagImballiTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool BackupDataSetBeforeUpdate {
get {
@@ -14161,10 +14215,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
&& (this._anagStatiProdottoTableAdapter.Connection != null))) {
return this._anagStatiProdottoTableAdapter.Connection;
}
- if (((this._anagImballiTableAdapter != null)
- && (this._anagImballiTableAdapter.Connection != null))) {
- return this._anagImballiTableAdapter.Connection;
- }
if (((this._anagArticoliTableAdapter != null)
&& (this._anagArticoliTableAdapter.Connection != null))) {
return this._anagArticoliTableAdapter.Connection;
@@ -14197,6 +14247,10 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
&& (this._elencoCartelliniTableAdapter.Connection != null))) {
return this._elencoCartelliniTableAdapter.Connection;
}
+ if (((this._anagImballiTableAdapter != null)
+ && (this._anagImballiTableAdapter.Connection != null))) {
+ return this._anagImballiTableAdapter.Connection;
+ }
return null;
}
set {
@@ -14218,9 +14272,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
if ((this._anagStatiProdottoTableAdapter != null)) {
count = (count + 1);
}
- if ((this._anagImballiTableAdapter != null)) {
- count = (count + 1);
- }
if ((this._anagArticoliTableAdapter != null)) {
count = (count + 1);
}
@@ -14245,6 +14296,9 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
if ((this._elencoCartelliniTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._anagImballiTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -14273,6 +14327,15 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._anagStatiProdottoTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._anagStatiProdottoTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
if ((this._anagArticoliTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -14291,21 +14354,12 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagStatiProdottoTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._anagImballiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._anagStatiProdottoTableAdapter.Update(updatedRows));
- allChangedRows.AddRange(updatedRows);
- }
- }
- if ((this._relazUDCTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
- updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
- if (((updatedRows != null)
- && (0 < updatedRows.Length))) {
- result = (result + this._relazUDCTableAdapter.Update(updatedRows));
+ result = (result + this._anagImballiTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -14327,12 +14381,12 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._anagImballiTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._impianti2ArticoliTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._anagImballiTableAdapter.Update(updatedRows));
+ result = (result + this._impianti2ArticoliTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -14345,12 +14399,12 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allChangedRows.AddRange(updatedRows);
}
}
- if ((this._impianti2ArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] updatedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ if ((this._relazUDCTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
- result = (result + this._impianti2ArticoliTableAdapter.Update(updatedRows));
+ result = (result + this._relazUDCTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -14388,6 +14442,14 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._anagStatiProdottoTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._anagStatiProdottoTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
if ((this._anagArticoliTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagArticoli.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -14404,19 +14466,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagStatiProdottoTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._anagImballiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._anagStatiProdottoTableAdapter.Update(addedRows));
- allAddedRows.AddRange(addedRows);
- }
- }
- if ((this._relazUDCTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Added);
- if (((addedRows != null)
- && (0 < addedRows.Length))) {
- result = (result + this._relazUDCTableAdapter.Update(addedRows));
+ result = (result + this._anagImballiTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -14436,11 +14490,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allAddedRows.AddRange(addedRows);
}
}
- if ((this._anagImballiTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._impianti2ArticoliTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._anagImballiTableAdapter.Update(addedRows));
+ result = (result + this._impianti2ArticoliTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -14452,11 +14506,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allAddedRows.AddRange(addedRows);
}
}
- if ((this._impianti2ArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] addedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if ((this._relazUDCTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
- result = (result + this._impianti2ArticoliTableAdapter.Update(addedRows));
+ result = (result + this._relazUDCTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -14485,11 +14539,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._impianti2ArticoliTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._relazUDCTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._impianti2ArticoliTableAdapter.Update(deletedRows));
+ result = (result + this._relazUDCTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -14501,11 +14555,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._anagImballiTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._impianti2ArticoliTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Impianti2Articoli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._anagImballiTableAdapter.Update(deletedRows));
+ result = (result + this._impianti2ArticoliTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -14525,19 +14579,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allChangedRows.AddRange(deletedRows);
}
}
- if ((this._relazUDCTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.RelazUDC.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if ((this._anagImballiTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
- result = (result + this._relazUDCTableAdapter.Update(deletedRows));
- allChangedRows.AddRange(deletedRows);
- }
- }
- if ((this._anagStatiProdottoTableAdapter != null)) {
- global::System.Data.DataRow[] deletedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
- if (((deletedRows != null)
- && (0 < deletedRows.Length))) {
- result = (result + this._anagStatiProdottoTableAdapter.Update(deletedRows));
+ result = (result + this._anagImballiTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -14557,6 +14603,14 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
allChangedRows.AddRange(deletedRows);
}
}
+ if ((this._anagStatiProdottoTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.AnagStatiProdotto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._anagStatiProdottoTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._anagImpiantiTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagImpianti.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -14625,11 +14679,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
- if (((this._anagImballiTableAdapter != null)
- && (this.MatchTableAdapterConnection(this._anagImballiTableAdapter.Connection) == false))) {
- throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
- "tring.");
- }
if (((this._anagArticoliTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._anagArticoliTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
@@ -14670,6 +14719,11 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._anagImballiTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._anagImballiTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -14729,15 +14783,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
adaptersWithAcceptChangesDuringUpdate.Add(this._anagStatiProdottoTableAdapter.Adapter);
}
}
- if ((this._anagImballiTableAdapter != null)) {
- revertConnections.Add(this._anagImballiTableAdapter, this._anagImballiTableAdapter.Connection);
- this._anagImballiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
- this._anagImballiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
- if (this._anagImballiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
- this._anagImballiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
- adaptersWithAcceptChangesDuringUpdate.Add(this._anagImballiTableAdapter.Adapter);
- }
- }
if ((this._anagArticoliTableAdapter != null)) {
revertConnections.Add(this._anagArticoliTableAdapter, this._anagArticoliTableAdapter.Connection);
this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -14810,6 +14855,15 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
adaptersWithAcceptChangesDuringUpdate.Add(this._elencoCartelliniTableAdapter.Adapter);
}
}
+ if ((this._anagImballiTableAdapter != null)) {
+ revertConnections.Add(this._anagImballiTableAdapter, this._anagImballiTableAdapter.Connection);
+ this._anagImballiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._anagImballiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._anagImballiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._anagImballiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._anagImballiTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -14880,10 +14934,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
this._anagStatiProdottoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagStatiProdottoTableAdapter]));
this._anagStatiProdottoTableAdapter.Transaction = null;
}
- if ((this._anagImballiTableAdapter != null)) {
- this._anagImballiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImballiTableAdapter]));
- this._anagImballiTableAdapter.Transaction = null;
- }
if ((this._anagArticoliTableAdapter != null)) {
this._anagArticoliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagArticoliTableAdapter]));
this._anagArticoliTableAdapter.Transaction = null;
@@ -14916,6 +14966,10 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
this._elencoCartelliniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoCartelliniTableAdapter]));
this._elencoCartelliniTableAdapter.Transaction = null;
}
+ if ((this._anagImballiTableAdapter != null)) {
+ this._anagImballiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagImballiTableAdapter]));
+ this._anagImballiTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/GMW/GMW_data/DS_Applicazione.xsd b/GMW/GMW_data/DS_Applicazione.xsd
index 70b54c28..3b9a8bd7 100644
--- a/GMW/GMW_data/DS_Applicazione.xsd
+++ b/GMW/GMW_data/DS_Applicazione.xsd
@@ -157,68 +157,6 @@ SELECT CodStato, DescStato FROM AnagStatiProdotto WHERE (CodStato = @CodStato)
-
-
-
-
-
- DELETE FROM [dbo].[AnagImballi] WHERE (([CodImballo] = @Original_CodImballo) AND ((@IsNull_DescImballo = 1 AND [DescImballo] IS NULL) OR ([DescImballo] = @Original_DescImballo)))
-
-
-
-
-
-
-
-
-
- INSERT INTO [dbo].[AnagImballi] ([CodImballo], [DescImballo]) VALUES (@CodImballo, @DescImballo);
-SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
-
-
-
-
-
-
-
-
- SELECT CodImballo, DescImballo FROM dbo.AnagImballi
-
-
-
-
-
- UPDATE [dbo].[AnagImballi] SET [CodImballo] = @CodImballo, [DescImballo] = @DescImballo WHERE (([CodImballo] = @Original_CodImballo) AND ((@IsNull_DescImballo = 1 AND [DescImballo] IS NULL) OR ([DescImballo] = @Original_DescImballo)));
-SELECT CodImballo, DescImballo FROM AnagImballi WHERE (CodImballo = @CodImballo)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- dbo.stp_getImballoByCod
-
-
-
-
-
-
-
-
-
@@ -1087,6 +1025,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
+
@@ -1130,20 +1069,15 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
-
-
-
-
-
+
-
@@ -1152,6 +1086,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
+
@@ -1163,6 +1098,76 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
+
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM [RilPro].[AnagImballi] WHERE (([CodImballo] = @Original_CodImballo) AND ((@IsNull_ClasseArticolo = 1 AND [ClasseArticolo] IS NULL) OR ([ClasseArticolo] = @Original_ClasseArticolo)) AND ((@IsNull_DescImballo = 1 AND [DescImballo] IS NULL) OR ([DescImballo] = @Original_DescImballo)))
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [RilPro].[AnagImballi] ([CodImballo], [ClasseArticolo], [DescImballo]) VALUES (@CodImballo, @ClasseArticolo, @DescImballo);
+SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (CodImballo = @CodImballo)
+
+
+
+
+
+
+
+
+
+ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi
+
+
+
+
+
+ UPDATE [RilPro].[AnagImballi] SET [CodImballo] = @CodImballo, [ClasseArticolo] = @ClasseArticolo, [DescImballo] = @DescImballo WHERE (([CodImballo] = @Original_CodImballo) AND ((@IsNull_ClasseArticolo = 1 AND [ClasseArticolo] IS NULL) OR ([ClasseArticolo] = @Original_ClasseArticolo)) AND ((@IsNull_DescImballo = 1 AND [DescImballo] IS NULL) OR ([DescImballo] = @Original_DescImballo)));
+SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (CodImballo = @CodImballo)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_getImballoByCod
+
+
+
@@ -1231,26 +1236,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1723,6 +1708,33 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1737,10 +1749,6 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
-
-
-
-
@@ -1782,6 +1790,10 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
+
+
+
+
diff --git a/GMW/GMW_data/DS_Applicazione.xss b/GMW/GMW_data/DS_Applicazione.xss
index d56b0358..07cea6a5 100644
--- a/GMW/GMW_data/DS_Applicazione.xss
+++ b/GMW/GMW_data/DS_Applicazione.xss
@@ -7,21 +7,21 @@
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
385
@@ -33,7 +33,7 @@
-
+
1185
@@ -49,7 +49,7 @@
-
+
853
@@ -61,7 +61,7 @@
-
+
1156
@@ -73,7 +73,7 @@
-
+
1173
@@ -89,7 +89,7 @@
-
+
336
diff --git a/GMW/GMW_data/bin/Debug/GMW_data.dll b/GMW/GMW_data/bin/Debug/GMW_data.dll
index aca6eed1..01d44050 100644
Binary files a/GMW/GMW_data/bin/Debug/GMW_data.dll and b/GMW/GMW_data/bin/Debug/GMW_data.dll differ
diff --git a/GMW/GMW_data/bin/Release/GMW_data.dll b/GMW/GMW_data/bin/Release/GMW_data.dll
index 1e2c3406..54dc0a4f 100644
Binary files a/GMW/GMW_data/bin/Release/GMW_data.dll and b/GMW/GMW_data/bin/Release/GMW_data.dll differ
diff --git a/GMW/GMW_data/obj/Debug/GMW_data.dll b/GMW/GMW_data/obj/Debug/GMW_data.dll
index aca6eed1..01d44050 100644
Binary files a/GMW/GMW_data/obj/Debug/GMW_data.dll and b/GMW/GMW_data/obj/Debug/GMW_data.dll differ
diff --git a/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll b/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll
index 1d9a9476..4f10610b 100644
Binary files a/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ
diff --git a/GMW/GMW_data/obj/Debug/build.force b/GMW/GMW_data/obj/Debug/build.force
new file mode 100644
index 00000000..e69de29b
diff --git a/GMW/GMW_data/obj/Release/GMW_data.dll b/GMW/GMW_data/obj/Release/GMW_data.dll
index 1e2c3406..54dc0a4f 100644
Binary files a/GMW/GMW_data/obj/Release/GMW_data.dll and b/GMW/GMW_data/obj/Release/GMW_data.dll differ
diff --git a/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll b/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll
index c8483383..8db95ede 100644
Binary files a/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll and b/GMW/GMW_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll differ
diff --git a/GMW/GMW_deploy/Release/GMW.csproj b/GMW/GMW_deploy/Release/GMW.csproj
index bee800a4..c8f31803 100644
--- a/GMW/GMW_deploy/Release/GMW.csproj
+++ b/GMW/GMW_deploy/Release/GMW.csproj
@@ -77,12 +77,13 @@
+
-
+
bilance.asmx
Component
diff --git a/GMW/GMW_deploy/Release/bin/GMW.dll b/GMW/GMW_deploy/Release/bin/GMW.dll
index 3134ec53..75d0464e 100644
Binary files a/GMW/GMW_deploy/Release/bin/GMW.dll and b/GMW/GMW_deploy/Release/bin/GMW.dll differ
diff --git a/GMW/GMW_deploy/Release/bin/GMW_data.dll b/GMW/GMW_deploy/Release/bin/GMW_data.dll
index 1e2c3406..54dc0a4f 100644
Binary files a/GMW/GMW_deploy/Release/bin/GMW_data.dll and b/GMW/GMW_deploy/Release/bin/GMW_data.dll differ
diff --git a/GMW/GMW_deploy/Release/obj/Debug/GMW.dll b/GMW/GMW_deploy/Release/obj/Debug/GMW.dll
index ec31daec..402f4411 100644
Binary files a/GMW/GMW_deploy/Release/obj/Debug/GMW.dll and b/GMW/GMW_deploy/Release/obj/Debug/GMW.dll differ
diff --git a/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache
index 6c3af270..e0759345 100644
Binary files a/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Release/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_deploy/Release/obj/Release/GMW.dll b/GMW/GMW_deploy/Release/obj/Release/GMW.dll
index 3134ec53..75d0464e 100644
Binary files a/GMW/GMW_deploy/Release/obj/Release/GMW.dll and b/GMW/GMW_deploy/Release/obj/Release/GMW.dll differ
diff --git a/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache
index 2a791a6d..079a38a7 100644
Binary files a/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Release/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_deploy/Source/GMW.csproj b/GMW/GMW_deploy/Source/GMW.csproj
index bee800a4..c8f31803 100644
--- a/GMW/GMW_deploy/Source/GMW.csproj
+++ b/GMW/GMW_deploy/Source/GMW.csproj
@@ -77,12 +77,13 @@
+
-
+
bilance.asmx
Component
diff --git a/GMW/GMW_deploy/Source/Type/Bilancia.cs b/GMW/GMW_deploy/Source/Type/Bilancia.cs
index 50ec3a18..49b8361e 100644
--- a/GMW/GMW_deploy/Source/Type/Bilancia.cs
+++ b/GMW/GMW_deploy/Source/Type/Bilancia.cs
@@ -15,8 +15,7 @@ namespace GMW.Type
{
CodBilancia = riga.CodBilancia;
DescrBilancia = riga.DescrImpianto;
- CodCompany = riga.CodCompany;
- CodSito = riga.CodSito;
+ CodCS = riga.CodCS;
}
///
@@ -28,13 +27,9 @@ namespace GMW.Type
///
public string DescrBilancia { get; set; }
///
- /// Codice COmpany
+ /// Codice Company/Sito
///
- public string CodCompany { get; set; }
- ///
- /// Codice sito
- ///
- public string CodSito { get; set; }
+ public string CodCS { get; set; }
///
/// inizializza a partire da una riga bilancia tipizzata
///
@@ -43,8 +38,7 @@ namespace GMW.Type
{
CodBilancia = riga.CodBilancia;
DescrBilancia = riga.DescrImpianto;
- CodCompany = riga.CodCompany;
- CodSito = riga.CodSito;
+ CodCS = riga.CodCS;
}
}
}
diff --git a/GMW/GMW_deploy/Source/Type/Impianto.cs b/GMW/GMW_deploy/Source/Type/Impianto.cs
index bdb16f33..456d0a65 100644
--- a/GMW/GMW_deploy/Source/Type/Impianto.cs
+++ b/GMW/GMW_deploy/Source/Type/Impianto.cs
@@ -14,9 +14,10 @@ namespace GMW.Type
public Impianto(DS_Applicazione.AnagImpiantiRow riga)
{
CodImpianto = riga.CodImpianto;
- DescrImpianto = riga.DescrImpianto;
- CodCompany = riga.CodCompany;
- CodSito = riga.CodSito;
+ DescImpianto = riga.DescImpianto;
+ CodCS = riga.CodCS;
+ Campionatura = riga.Campionatura;
+ TipoLinea = riga.TipoLinea;
}
///
@@ -26,15 +27,19 @@ namespace GMW.Type
///
/// Descrizione impianto
///
- public string DescrImpianto { get; set; }
+ public string DescImpianto { get; set; }
///
- /// Codice COmpany
+ /// Codice CompanySito
///
- public string CodCompany { get; set; }
+ public string CodCS { get; set; }
///
- /// Codice sito
+ /// Campionatura
///
- public string CodSito { get; set; }
+ public string Campionatura { get; set; }
+ ///
+ /// Tipo di linea
+ ///
+ public string TipoLinea { get; set; }
///
/// inizializza a partire da una riga impianto tipizzata
///
@@ -42,9 +47,10 @@ namespace GMW.Type
public void setFromTabRow(DS_Applicazione.AnagImpiantiRow riga)
{
CodImpianto = riga.CodImpianto;
- DescrImpianto = riga.DescrImpianto;
- CodCompany = riga.CodCompany;
- CodSito= riga.CodSito;
+ DescImpianto = riga.DescImpianto;
+ CodCS = riga.CodCS;
+ Campionatura = riga.Campionatura;
+ TipoLinea = riga.TipoLinea;
}
}
diff --git a/GMW/GMW_deploy/Source/Type/elenchi.cs b/GMW/GMW_deploy/Source/Type/elenchi.cs
index 59eacf54..9d1f6e43 100644
--- a/GMW/GMW_deploy/Source/Type/elenchi.cs
+++ b/GMW/GMW_deploy/Source/Type/elenchi.cs
@@ -80,6 +80,41 @@ namespace GMW.Type
#endregion
+ #region area Company Sito
+
+
+ protected CompanySito[] _elencoCompanySito;
+
+ ///
+ /// legge una tab di tipo AnagArticoli e la converte ad un array di tipo Articolo[]
+ ///
+ ///
+ public void caricaCompanySito(DS_Applicazione.AnagCompanySitoDataTable tabCS)
+ {
+ // conto quanti elementi ha la tab x inizializzare l'array...
+ int numRighe = tabCS.Rows.Count;
+ _elencoCompanySito = new CompanySito[numRighe];
+ // prendo un obj impianto da valorizzare di volta in volta...
+ CompanySito obj;
+ for (int i = 0; i < numRighe; i++)
+ {
+ obj = new CompanySito(tabCS[i]);
+ _elencoCompanySito[i] = obj;
+ }
+ }
+ ///
+ /// Elenco Company/Sito
+ ///
+ public CompanySito[] elencoCompanySito
+ {
+ get
+ {
+ return _elencoCompanySito;
+ }
+ }
+
+ #endregion
+
#region area articoli
@@ -217,39 +252,35 @@ namespace GMW.Type
#endregion
- #region area UDC
+ #region area Cartellino
- protected UDC[] _elencoUDC;
+ protected Cartellino[] _elencoCartellini;
///
/// legge una tab di tipo TabStatoOdpUdc e la converte ad un array di tipo UDC[]
///
///
- public void caricaUDC(DS_Applicazione.Impianti2ArticoliDataTable tabArt2Imp)
+ public void caricaCartellini(DS_Applicazione.ElencoCartelliniDataTable tabArt2Imp)
{
-
-#if false
// conto quanti elementi ha la tab x inizializzare l'array...
int numRighe = tabArt2Imp.Rows.Count;
- _elencoArtInProd = new ArtInProd[numRighe];
+ _elencoCartellini = new Cartellino[numRighe];
// prendo un obj impianto da valorizzare di volta in volta...
- ArtInProd obj;
+ Cartellino obj;
for (int i = 0; i < numRighe; i++)
{
- obj = new ArtInProd();
- obj.setFromTabRow(tabArt2Imp[i]);
- _elencoArtInProd[i] = obj;
+ obj = new Cartellino(tabArt2Imp[i]);
+ _elencoCartellini[i] = obj;
}
-#endif
}
///
/// Elenco UDC
///
- public UDC[] elencoUDC
+ public Cartellino[] elencoCartellini
{
get
{
- return _elencoUDC;
+ return _elencoCartellini;
}
}
diff --git a/GMW/GMW_deploy/Source/WS/bilance.asmx.cs b/GMW/GMW_deploy/Source/WS/bilance.asmx.cs
index fbf243dc..fe7ebd5e 100644
--- a/GMW/GMW_deploy/Source/WS/bilance.asmx.cs
+++ b/GMW/GMW_deploy/Source/WS/bilance.asmx.cs
@@ -36,7 +36,17 @@ namespace GMW.WS
#region area anagrafiche
+ ///
+ /// Elenco anagrafico combinazioni company/sito
+ ///
+ [WebMethod(Description = "Elenco anagrafico combinazioni company/sito")]
+ public GMW.Type.CompanySito[] ElencoCompanySito()
+ {
+ gestEl.caricaCompanySito(DataProxy.obj.taAnagCS.GetData());
+ return gestEl.elencoCompanySito;
+ }
+#if false
///
/// fornisce l'anagrafica articoli
///
@@ -46,7 +56,8 @@ namespace GMW.WS
gestEl.caricaArticoli(DataProxy.obj.taAnagArt.GetData());
return gestEl.elencoArticoli;
- }
+ }
+#endif
///
/// Fornisce l'elenco dei tipi di dichiarazione ammessi
///
@@ -79,10 +90,12 @@ namespace GMW.WS
///
/// Elenco anagrafica impianti dati codice company e sito (no dataset)
///
- [WebMethod(Description = "Elenco anagrafica impianti dati codice company e sito (no dataset)")]
- public GMW.Type.Impianto[] ElencoImpiantiByCompanySito(string CodCompany, string CodSito)
+ /// Codice company/sito
+ ///
+ [WebMethod(Description = "Elenco anagrafica impianti dati codice company/sito (no dataset)")]
+ public GMW.Type.Impianto[] ElencoImpiantiByCompanySito(string CodCS)
{
- gestEl.caricaImpianti(DataProxy.obj.taAnagImp.getByCompanySito(CodCompany, CodSito));
+ gestEl.caricaImpianti(DataProxy.obj.taAnagImp.stp_getByCodCS(CodCS));
return gestEl.elencoImpianti;
}
@@ -95,15 +108,20 @@ namespace GMW.WS
gestEl.caricaBilance(DataProxy.obj.taAnagBil.GetData());
return gestEl.elencoBilance;
}
+#if false
///
/// fornisce l'anagrafica bilance dati codice company e sito
///
+ /// Codice company/sito
+ ///
[WebMethod(Description = "Elenco anagrafico Bilance dati codice company e sito")]
- public GMW.Type.Bilancia[] ElencoBilanceByCompanySito(string CodCompany, string CodSito)
+ public GMW.Type.Bilancia[] ElencoBilanceByCompanySito(string CodCS)
{
gestEl.caricaBilance(DataProxy.obj.taAnagBil.getByCompanySito(CodCompany, CodSito));
return gestEl.elencoBilance;
- }
+ }
+#endif
+#if false
///
/// fornisce l'elenco di impianti ed articoli attualmente in produzione (per codice anagrafico)
///
@@ -113,13 +131,13 @@ namespace GMW.WS
gestEl.caricaArtInProd(DataProxy.obj.taArtInProd.GetData());
return gestEl.elencoArtInProd;
}
-
+
+#endif
#endregion
- #region area gestione stati & UDC
-
+ #region gestione UDC: metodi di controllo (info)
///
/// Richiede la tara per l'UDC indicato
@@ -132,7 +150,7 @@ namespace GMW.WS
double answ = 0;
try
{
- answ = DataProxy.obj.taStatoOdpUdc.stp_getStatoByUdc(UDC)[0].Tara;
+ answ = DataProxy.obj.taCartellini.stp_getByUdc(UDC)[0].Tara;
}
catch
{ }
@@ -144,11 +162,16 @@ namespace GMW.WS
/// codice dell'UDC
///
[WebMethod(Description = "Restituisce l'elenco degli UDC parent di quello specificato")]
- public string[] UdcInfo_GetParentUdcList(string UDC_rich)
+ public string[] UdcInfo_GetUdcParentList(string UDC)
{
- int numRec = 1; //calcolare!
+ GMW_data.DS_Applicazione.RelazUDCDataTable tabRelUdc = DataProxy.obj.taRelazUDC.stp_getParent(UDC);
+ int numRec = tabRelUdc.Rows.Count;
string[] answ = new string[numRec];
// caricare dati!
+ for (int i = 0; i < numRec; i++)
+ {
+ answ[i] = tabRelUdc[i].UDC_parent;
+ }
return answ;
}
///
@@ -157,11 +180,16 @@ namespace GMW.WS
/// codice dell'UDC
///
[WebMethod(Description = "Restituisce l'elenco degli UDC child di quello specificato")]
- public string[] UdcInfo_GetChildUdcList(string UDC_rich)
+ public string[] UdcInfo_GetUdcChildList(string UDC)
{
- int numRec = 1; //calcolare!
+ GMW_data.DS_Applicazione.RelazUDCDataTable tabRelUdc = DataProxy.obj.taRelazUDC.stp_getChild(UDC);
+ int numRec = tabRelUdc.Rows.Count;
string[] answ = new string[numRec];
- // caricare dati!!!
+ // caricare dati!
+ for (int i = 0; i < numRec; i++)
+ {
+ answ[i] = tabRelUdc[i].UDC_child;
+ }
return answ;
}
///
@@ -170,10 +198,9 @@ namespace GMW.WS
/// codice dell'UDC
///
[WebMethod(Description = "Restituisce tutti i dati dell'UDC indicato")]
- public GMW.Type.UDC UdcInfo_GetFullData(string UDC_rich)
+ public GMW.Type.Cartellino UdcInfo_GetFullData(string UDC)
{
- GMW.Type.UDC answ = new GMW.Type.UDC();
- // caricare dati!!!
+ GMW.Type.Cartellino answ = new GMW.Type.Cartellino(DataProxy.obj.taCartellini.stp_getByUdc(UDC)[0]);
return answ;
}
///
@@ -194,6 +221,8 @@ namespace GMW.WS
{ }
return answ;
}
+#if false
+
///
/// Fornisce l'elenco degli articoli attualmente in produzione per impianto, data e turno
///
@@ -210,7 +239,12 @@ namespace GMW.WS
DateTime dataRif = dataRic.Date.AddHours(oreTurno);
gestEl.caricaArtInProd(DataProxy.obj.taArtInProd.stp_byImpData(CodImpianto, dataRif));
return gestEl.elencoArtInProd;
- }
+ }
+#endif
+
+ #endregion
+
+ #region gestione UDC: creazione ed editing
///
/// Fornisce un nuovo codice UDC tipo TARA a partire dalla richiesta e salva i dati
@@ -225,73 +259,67 @@ namespace GMW.WS
public string UdcCall_GetNew_Tara(string CodBilancia, double Tara, string CodImballo, string CodTipoDichiarazione, string CodOperatore)
{
// ricavo cod company...
- string CodCompany = "ND";
- string CodSito = "ND";
+ string CodCS = "ND";
string answ = "NA";
try
{
- CodCompany = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodCompany;
- CodSito = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodSito;
+ CodCS = DataProxy.obj.taAnagBil.stp_getByCodBilancia(CodBilancia)[0].CodCS;
}
catch
{
- CodCompany = DataProxy.obj.taAnagBil.GetData()[0].CodCompany;
- CodSito = DataProxy.obj.taAnagBil.GetData()[0].CodSito;
+ CodCS = memLayer.ML.confReadString("CodCS");
}
// inserico riga generando il codice
- DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdc(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", Tara, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_TARA"); // ATTENZIONE: "UDC_TARA" è "hard coded" nel db... !!!
+ DS_Applicazione.ElencoCartelliniDataTable tabCartellini = DataProxy.obj.taCartellini.stp_insNew(CodCS, CodBilancia, string.Format("{0:yy}", DateTime.Now), Tara, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_TARA"); // ATTENZIONE: "UDC_TARA" è "hard coded" nel db... !!!
// leggo la riga
try
{
- answ = tabUdc[0].UDC;
+ answ = tabCartellini[0].UDC;
}
catch
{ }
// output risultato
return answ;
}
-
///
/// Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati
///
/// codice anagrafico della bilanca che effettua la richiesta (codice della pesa)
- /// peso in kg (0 se non noto) da associare all'UDC come tara del contenitore
- /// codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)
- /// tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)
- /// codice dell'operatore
- /// codice dell'UDC parent (tara)
+ /// codice anagrafico del cliente
/// codice del particolare (articolo) - da anagrafica!
+ /// Codice dell'impianto
+ /// Codice dello stampo
+ /// codice dell'esponente dello stampo
+ /// Codice figura
+ /// Data di rif per la dichiarazione
+ /// Turno di rif per la dichiarazione
+ /// codice dell'imballo (tipo cassone) - string LIBERO (non facciamo controlli in input)
+ /// codice dell'operatore
+ /// codice dell'UDC parent (UDC della tara)
+ /// peso in kg (0 se non noto) da associare all'UDC come tara del contenitore
+ /// tipo di dichiarazione (vedere relativa anagrafica consentita, es U=uomo, M=macchina...)
/// numero pezzi associati all'UDC
/// Peso totale rilevato
/// Peso unitario rilevato
- /// Codice dell'impianto
- /// Data di rif per la dichiarazione
- /// Turno di rif per la dichiarazione
- /// Codice dello stato del pezzo (da anagrafica: sabbiato, ...)
- /// Codice dello stampo
- /// Codice figura
- /// Codice figura incisa
+ /// Codice dello stato del pezzo (da anagrafica: sabbiato, ...)
/// UDC del nuovo cartellino
[WebMethod(Description = "Fornisce un nuovo codice UDC tipo completo (con pezzi) a partire dalla richiesta e salva i dati")]
- public string UdcCall_GetNew_Pesa(string CodBilancia, double Tara, string CodImballo, string CodTipoDichiarazione, string CodOperatore, string UDC_Parent, string Particolare, int qta, float PesoTot, float PesoCad, string CodImpianto, DateTime DataRif, int TurnoRif, string CodStatoProd, string CodStampo, string Figura, string FiguraIncisa)
+ public string UdcCall_GetNew_Pesa(string CodBilancia, string CodCliente, string Particolare, string CodImpianto, string CodStampo, string Esponente, string Figura, string UDC_Parent, double Tara, string CodImballo, string CodTipoDichiarazione, string CodSoggetto, int qta, float PesoTot, float PesoCad, DateTime DataRif, int TurnoRif, string CodStato)
{
// ricavo cod company...
- string CodCompany = "ND";
- string CodSito = "ND";
+ string CodCS = "ND";
string answ = "NA";
try
{
- CodCompany = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodCompany;
- CodSito = DataProxy.obj.taAnagBil.getByCod(CodBilancia)[0].CodSito;
+ CodCS = DataProxy.obj.taAnagBil.stp_getByCodBilancia(CodBilancia)[0].CodCS;
}
catch
{
- CodCompany = DataProxy.obj.taAnagBil.GetData()[0].CodCompany;
- CodSito = DataProxy.obj.taAnagBil.GetData()[0].CodSito;
+ CodCS = memLayer.ML.confReadString("CodCS");
}
- int IdxStato = 20; // hard coded: è la postazione POST fusione di ambivere!!!
+ int IdxPosizione = 20; // hard coded: è la postazione POST fusione di ambivere!!!
// faccio update!
- DS_Applicazione.TabStatoOdpUdcDataTable tabUdc = DataProxy.obj.taStatoOdpUdc.stp_insNewOdpUdcFull(CodCompany, CodSito, CodBilancia, string.Format("{0:yy}", DateTime.Now), "ND", Tara, IdxStato, CodImballo, CodTipoDichiarazione, CodOperatore, "UDC_PESA", qta, PesoTot, PesoCad, Particolare, CodStatoProd, CodStampo, Figura, FiguraIncisa); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
+ DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilancia, string.Format("{0:yy}", DateTime.Now), CodCliente, Particolare, CodImpianto, CodStampo, Esponente, Figura, DataRif, TurnoRif, CodImballo, CodSoggetto, Tara, IdxPosizione, CodTipoDichiarazione, "UDC_PESA", qta, PesoTot, PesoCad, CodStato, UDC_Parent); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
// leggo la riga
try
{
@@ -303,19 +331,21 @@ namespace GMW.WS
{ }
return answ;
}
+
///
/// Annulla un dato UDC (se permesso)
///
/// codice dell'UDC)
+ /// codice dell'operatore
/// restituisce true/false a seconda che sia riuscito ad annullare l'UDC
[WebMethod(Description = "Annulla un dato UDC (se permesso)")]
- public bool UdcCall_annullaUDC(string UDC_req)
+ public bool UdcCall_annullaUDC(string UDC_req, string CodSoggetto)
{
// init
bool answ = false;
try
{
- GMW_data.DataProxy.obj.taStatoOdpUdc.stp_annullaUDC(UDC_req);
+ GMW_data.DataProxy.obj.taCartellini.stp_annullaUDC(UDC_req, CodSoggetto);
answ = true;
}
catch
@@ -327,10 +357,11 @@ namespace GMW.WS
/// Sblocca un dato UDC (se la chiave passata è valida)
///
/// codice dell'UDC che si vuole sbloccare
+ /// codice dell'operatore
/// parola chiave x effettuare lo sblocco
/// restituisce true/false a seconda che sia riuscito ad annullare l'UDC
[WebMethod(Description = "Annulla un dato UDC (se permesso)")]
- public bool UdcCall_sbloccaUDC(string UDC_req, string passkey)
+ public bool UdcCall_sbloccaUDC(string UDC_req, string CodSoggetto, string passkey)
{
// init
bool answ = false;
@@ -338,7 +369,7 @@ namespace GMW.WS
string passkeyOk = memLayer.ML.confReadString("passkey");
if (passkeyOk == passkey)
{
- GMW_data.DataProxy.obj.taStatoOdpUdc.stp_sbloccaUdc(UDC_req);
+ GMW_data.DataProxy.obj.taCartellini.stp_sbloccaUdc(UDC_req, CodSoggetto);
answ = true;
}
return answ;
@@ -346,6 +377,7 @@ namespace GMW.WS
#endregion
+#if false
#region area stampe
///
@@ -375,5 +407,6 @@ namespace GMW.WS
}
#endregion
+#endif
}
}
diff --git a/GMW/GMW_deploy/Source/Web.config b/GMW/GMW_deploy/Source/Web.config
index fe511ccb..4c8950d7 100644
--- a/GMW/GMW_deploy/Source/Web.config
+++ b/GMW/GMW_deploy/Source/Web.config
@@ -84,6 +84,7 @@
+
diff --git a/GMW/GMW_deploy/Source/bin/GMW.dll b/GMW/GMW_deploy/Source/bin/GMW.dll
index 3134ec53..75d0464e 100644
Binary files a/GMW/GMW_deploy/Source/bin/GMW.dll and b/GMW/GMW_deploy/Source/bin/GMW.dll differ
diff --git a/GMW/GMW_deploy/Source/bin/GMW_data.dll b/GMW/GMW_deploy/Source/bin/GMW_data.dll
index 1e2c3406..54dc0a4f 100644
Binary files a/GMW/GMW_deploy/Source/bin/GMW_data.dll and b/GMW/GMW_deploy/Source/bin/GMW_data.dll differ
diff --git a/GMW/GMW_deploy/Source/obj/Debug/GMW.dll b/GMW/GMW_deploy/Source/obj/Debug/GMW.dll
index ec31daec..402f4411 100644
Binary files a/GMW/GMW_deploy/Source/obj/Debug/GMW.dll and b/GMW/GMW_deploy/Source/obj/Debug/GMW.dll differ
diff --git a/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache
index 6c3af270..e0759345 100644
Binary files a/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Source/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_deploy/Source/obj/Release/GMW.dll b/GMW/GMW_deploy/Source/obj/Release/GMW.dll
index 3134ec53..75d0464e 100644
Binary files a/GMW/GMW_deploy/Source/obj/Release/GMW.dll and b/GMW/GMW_deploy/Source/obj/Release/GMW.dll differ
diff --git a/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache b/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache
index 2a791a6d..079a38a7 100644
Binary files a/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache and b/GMW/GMW_deploy/Source/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_installer/Release/GMW_installer.msi b/GMW/GMW_installer/Release/GMW_installer.msi
index 7714ea36..e5624b6e 100644
Binary files a/GMW/GMW_installer/Release/GMW_installer.msi and b/GMW/GMW_installer/Release/GMW_installer.msi differ
diff --git a/GMW/GMW_installer/Release/setup.exe b/GMW/GMW_installer/Release/setup.exe
index 3b0ae455..ec951249 100644
Binary files a/GMW/GMW_installer/Release/setup.exe and b/GMW/GMW_installer/Release/setup.exe differ