diff --git a/ETS_Data/DS_utilsProjEts.Designer.cs b/ETS_Data/DS_utilsProjEts.Designer.cs
index ac78187..b3bec93 100644
--- a/ETS_Data/DS_utilsProjEts.Designer.cs
+++ b/ETS_Data/DS_utilsProjEts.Designer.cs
@@ -3652,23 +3652,37 @@ namespace ETS_Data.DS_utilsProjEtsTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT value, label, conditio FROM dbo.v_selCommesse";
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_VSCom_byConditio";
+ this._commandCollection[1].CommandText = "dbo.stp_VSCom_getAttiveBySearchLike";
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("@conditio", global::System.Data.SqlDbType.NVarChar, 50, 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("@ricerca", global::System.Data.SqlDbType.NVarChar, 250, 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_VSCom_getBySearchLike";
+ this._commandCollection[2].CommandText = "dbo.stp_VSCom_getAttiveUnusedBySearchLike";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ricerca", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_VSCom_byConditio";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@conditio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[4].Connection = this.Connection;
+ this._commandCollection[4].CommandText = "dbo.stp_VSCom_getBySearchLike";
+ this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ricerca", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3699,8 +3713,54 @@ namespace ETS_Data.DS_utilsProjEtsTableAdapters {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
- public virtual DS_utilsProjEts.v_selCommesseDataTable getByConditio(string conditio) {
+ public virtual DS_utilsProjEts.v_selCommesseDataTable getAttiveBySearchLike(string ricerca) {
this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((ricerca == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ricerca));
+ }
+ DS_utilsProjEts.v_selCommesseDataTable dataTable = new DS_utilsProjEts.v_selCommesseDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_utilsProjEts.v_selCommesseDataTable getAttiveUnusedBySearchLike(global::System.Nullable Anno, global::System.Nullable Sett, string ricerca) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((Anno.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Anno.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((Sett.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((int)(Sett.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((ricerca == null)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((string)(ricerca));
+ }
+ DS_utilsProjEts.v_selCommesseDataTable dataTable = new DS_utilsProjEts.v_selCommesseDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_utilsProjEts.v_selCommesseDataTable getByConditio(string conditio) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
if ((conditio == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -3717,7 +3777,7 @@ namespace ETS_Data.DS_utilsProjEtsTableAdapters {
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_utilsProjEts.v_selCommesseDataTable getBySearchLike(string ricerca) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
+ this.Adapter.SelectCommand = this.CommandCollection[4];
if ((ricerca == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
diff --git a/ETS_Data/DS_utilsProjEts.xsd b/ETS_Data/DS_utilsProjEts.xsd
index b6c3849..1ab9863 100644
--- a/ETS_Data/DS_utilsProjEts.xsd
+++ b/ETS_Data/DS_utilsProjEts.xsd
@@ -118,6 +118,30 @@
+
+
+
+ dbo.stp_VSCom_getAttiveBySearchLike
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_VSCom_getAttiveUnusedBySearchLike
+
+
+
+
+
+
+
+
+
@@ -218,7 +242,7 @@ ORDER BY label
-
+
@@ -232,7 +256,7 @@ ORDER BY label
-
+
@@ -248,7 +272,7 @@ ORDER BY label
-
+
@@ -263,7 +287,7 @@ ORDER BY label
-
+
@@ -283,7 +307,7 @@ ORDER BY label
-
+
@@ -303,14 +327,14 @@ ORDER BY label
-
+
-
+
diff --git a/ETS_Data/DS_utilsProjEts.xss b/ETS_Data/DS_utilsProjEts.xss
index e34c7bd..6b14a2b 100644
--- a/ETS_Data/DS_utilsProjEts.xss
+++ b/ETS_Data/DS_utilsProjEts.xss
@@ -8,9 +8,9 @@
-
+
-
+
diff --git a/ETS_Data/DataProxy_ProjEts.cs b/ETS_Data/DataProxy_ProjEts.cs
index 1163266..0f479d0 100644
--- a/ETS_Data/DataProxy_ProjEts.cs
+++ b/ETS_Data/DataProxy_ProjEts.cs
@@ -20,6 +20,7 @@ namespace ETS_Data
public Ds_ProjEtsTableAdapters.DatiCommIntegTableAdapter taDCI;
public Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter taBRF;
public Ds_ProjEtsTableAdapters.AnagTipoRisorseTableAdapter taATR;
+ public Ds_ProjEtsTableAdapters.BazaarRisorseTableAdapter taBaz;
/* DS_utilsProjEts */
public DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter taSelCli;
public DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter taSelPro;
@@ -37,6 +38,7 @@ namespace ETS_Data
taDCI = new Ds_ProjEtsTableAdapters.DatiCommIntegTableAdapter();
taBRF = new Ds_ProjEtsTableAdapters.BdgtRisorseFasiTableAdapter();
taATR = new Ds_ProjEtsTableAdapters.AnagTipoRisorseTableAdapter();
+ taBaz = new Ds_ProjEtsTableAdapters.BazaarRisorseTableAdapter();
taSelCli = new DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter();
taSelPro = new DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter();
taSelCom = new DS_utilsProjEtsTableAdapters.v_selCommesseTableAdapter();
@@ -54,6 +56,7 @@ namespace ETS_Data
taDCI.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
taBRF.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
taATR.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
+ taBaz.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
taSelCli.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
taSelPro.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
taSelCom.Connection.ConnectionString = utils.obj.confReadString("ETS_PROJConnectionString");
diff --git a/ETS_Data/Ds_ProjEts.Designer.cs b/ETS_Data/Ds_ProjEts.Designer.cs
index 8629368..45754a4 100644
--- a/ETS_Data/Ds_ProjEts.Designer.cs
+++ b/ETS_Data/Ds_ProjEts.Designer.cs
@@ -42,6 +42,8 @@ namespace ETS_Data {
private AnagTipoRisorseDataTable tableAnagTipoRisorse;
+ private BazaarRisorseDataTable tableBazaarRisorse;
+
private global::System.Data.DataRelation relationAnagProgetti_AnagFasi;
private global::System.Data.DataRelation relationDatiCommessa_AnagFasi;
@@ -109,6 +111,9 @@ namespace ETS_Data {
if ((ds.Tables["AnagTipoRisorse"] != null)) {
base.Tables.Add(new AnagTipoRisorseDataTable(ds.Tables["AnagTipoRisorse"]));
}
+ if ((ds.Tables["BazaarRisorse"] != null)) {
+ base.Tables.Add(new BazaarRisorseDataTable(ds.Tables["BazaarRisorse"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -217,6 +222,16 @@ namespace ETS_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public BazaarRisorseDataTable BazaarRisorse {
+ get {
+ return this.tableBazaarRisorse;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -311,6 +326,9 @@ namespace ETS_Data {
if ((ds.Tables["AnagTipoRisorse"] != null)) {
base.Tables.Add(new AnagTipoRisorseDataTable(ds.Tables["AnagTipoRisorse"]));
}
+ if ((ds.Tables["BazaarRisorse"] != null)) {
+ base.Tables.Add(new BazaarRisorseDataTable(ds.Tables["BazaarRisorse"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -398,6 +416,12 @@ namespace ETS_Data {
this.tableAnagTipoRisorse.InitVars();
}
}
+ this.tableBazaarRisorse = ((BazaarRisorseDataTable)(base.Tables["BazaarRisorse"]));
+ if ((initTable == true)) {
+ if ((this.tableBazaarRisorse != null)) {
+ this.tableBazaarRisorse.InitVars();
+ }
+ }
this.relationAnagProgetti_AnagFasi = this.Relations["AnagProgetti_AnagFasi"];
this.relationDatiCommessa_AnagFasi = this.Relations["DatiCommessa_AnagFasi"];
this.relationDatiCommessa_DatiCommForn = this.Relations["DatiCommessa_DatiCommForn"];
@@ -432,6 +456,8 @@ namespace ETS_Data {
base.Tables.Add(this.tableBdgtRisorseFasi);
this.tableAnagTipoRisorse = new AnagTipoRisorseDataTable();
base.Tables.Add(this.tableAnagTipoRisorse);
+ this.tableBazaarRisorse = new BazaarRisorseDataTable();
+ base.Tables.Add(this.tableBazaarRisorse);
this.relationAnagProgetti_AnagFasi = new global::System.Data.DataRelation("AnagProgetti_AnagFasi", new global::System.Data.DataColumn[] {
this.tableAnagProgetti.idxProgettoColumn}, new global::System.Data.DataColumn[] {
this.tableAnagFasi.idxProgettoColumn}, false);
@@ -512,6 +538,12 @@ namespace ETS_Data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeBazaarRisorse() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -594,6 +626,9 @@ namespace ETS_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void AnagTipoRisorseRowChangeEventHandler(object sender, AnagTipoRisorseRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void BazaarRisorseRowChangeEventHandler(object sender, BazaarRisorseRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -4553,6 +4588,359 @@ namespace ETS_Data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class BazaarRisorseDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnAnno;
+
+ private global::System.Data.DataColumn columnSett;
+
+ private global::System.Data.DataColumn columnidxDipendente;
+
+ private global::System.Data.DataColumn columnidxFase;
+
+ private global::System.Data.DataColumn columnAllocazione;
+
+ private global::System.Data.DataColumn columnSchemaWeek;
+
+ private global::System.Data.DataColumn columnOreTot;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public BazaarRisorseDataTable() {
+ this.TableName = "BazaarRisorse";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal BazaarRisorseDataTable(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()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected BazaarRisorseDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn AnnoColumn {
+ get {
+ return this.columnAnno;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn SettColumn {
+ get {
+ return this.columnSett;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn idxDipendenteColumn {
+ get {
+ return this.columnidxDipendente;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn idxFaseColumn {
+ get {
+ return this.columnidxFase;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn AllocazioneColumn {
+ get {
+ return this.columnAllocazione;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn SchemaWeekColumn {
+ get {
+ return this.columnSchemaWeek;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn OreTotColumn {
+ get {
+ return this.columnOreTot;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public BazaarRisorseRow this[int index] {
+ get {
+ return ((BazaarRisorseRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event BazaarRisorseRowChangeEventHandler BazaarRisorseRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddBazaarRisorseRow(BazaarRisorseRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public BazaarRisorseRow AddBazaarRisorseRow(int Anno, int Sett, int idxDipendente, int idxFase, int Allocazione, string SchemaWeek, int OreTot) {
+ BazaarRisorseRow rowBazaarRisorseRow = ((BazaarRisorseRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ Anno,
+ Sett,
+ idxDipendente,
+ idxFase,
+ Allocazione,
+ SchemaWeek,
+ OreTot};
+ rowBazaarRisorseRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowBazaarRisorseRow);
+ return rowBazaarRisorseRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public BazaarRisorseRow FindByAnnoSettidxDipendenteidxFase(int Anno, int Sett, int idxDipendente, int idxFase) {
+ return ((BazaarRisorseRow)(this.Rows.Find(new object[] {
+ Anno,
+ Sett,
+ idxDipendente,
+ idxFase})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ BazaarRisorseDataTable cln = ((BazaarRisorseDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new BazaarRisorseDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnAnno = base.Columns["Anno"];
+ this.columnSett = base.Columns["Sett"];
+ this.columnidxDipendente = base.Columns["idxDipendente"];
+ this.columnidxFase = base.Columns["idxFase"];
+ this.columnAllocazione = base.Columns["Allocazione"];
+ this.columnSchemaWeek = base.Columns["SchemaWeek"];
+ this.columnOreTot = base.Columns["OreTot"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnAnno = new global::System.Data.DataColumn("Anno", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnAnno);
+ this.columnSett = new global::System.Data.DataColumn("Sett", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnSett);
+ this.columnidxDipendente = new global::System.Data.DataColumn("idxDipendente", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxDipendente);
+ this.columnidxFase = new global::System.Data.DataColumn("idxFase", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidxFase);
+ this.columnAllocazione = new global::System.Data.DataColumn("Allocazione", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnAllocazione);
+ this.columnSchemaWeek = new global::System.Data.DataColumn("SchemaWeek", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnSchemaWeek);
+ this.columnOreTot = new global::System.Data.DataColumn("OreTot", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnOreTot);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnAnno,
+ this.columnSett,
+ this.columnidxDipendente,
+ this.columnidxFase}, true));
+ this.columnAnno.AllowDBNull = false;
+ this.columnSett.AllowDBNull = false;
+ this.columnidxDipendente.AllowDBNull = false;
+ this.columnidxFase.AllowDBNull = false;
+ this.columnSchemaWeek.ReadOnly = true;
+ this.columnSchemaWeek.MaxLength = 255;
+ this.columnOreTot.ReadOnly = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public BazaarRisorseRow NewBazaarRisorseRow() {
+ return ((BazaarRisorseRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new BazaarRisorseRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(BazaarRisorseRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.BazaarRisorseRowChanged != null)) {
+ this.BazaarRisorseRowChanged(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.BazaarRisorseRowChanging != null)) {
+ this.BazaarRisorseRowChanging(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.BazaarRisorseRowDeleted != null)) {
+ this.BazaarRisorseRowDeleted(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.BazaarRisorseRowDeleting != null)) {
+ this.BazaarRisorseRowDeleting(this, new BazaarRisorseRowChangeEvent(((BazaarRisorseRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveBazaarRisorseRow(BazaarRisorseRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ 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_ProjEts ds = new Ds_ProjEts();
+ 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 = "BazaarRisorseDataTable";
+ 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.
///
@@ -7508,6 +7896,149 @@ namespace ETS_Data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class BazaarRisorseRow : global::System.Data.DataRow {
+
+ private BazaarRisorseDataTable tableBazaarRisorse;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal BazaarRisorseRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableBazaarRisorse = ((BazaarRisorseDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int Anno {
+ get {
+ return ((int)(this[this.tableBazaarRisorse.AnnoColumn]));
+ }
+ set {
+ this[this.tableBazaarRisorse.AnnoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int Sett {
+ get {
+ return ((int)(this[this.tableBazaarRisorse.SettColumn]));
+ }
+ set {
+ this[this.tableBazaarRisorse.SettColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxDipendente {
+ get {
+ return ((int)(this[this.tableBazaarRisorse.idxDipendenteColumn]));
+ }
+ set {
+ this[this.tableBazaarRisorse.idxDipendenteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idxFase {
+ get {
+ return ((int)(this[this.tableBazaarRisorse.idxFaseColumn]));
+ }
+ set {
+ this[this.tableBazaarRisorse.idxFaseColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int Allocazione {
+ get {
+ try {
+ return ((int)(this[this.tableBazaarRisorse.AllocazioneColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Allocazione\' in table \'BazaarRisorse\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableBazaarRisorse.AllocazioneColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string SchemaWeek {
+ get {
+ try {
+ return ((string)(this[this.tableBazaarRisorse.SchemaWeekColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'SchemaWeek\' in table \'BazaarRisorse\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableBazaarRisorse.SchemaWeekColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int OreTot {
+ get {
+ try {
+ return ((int)(this[this.tableBazaarRisorse.OreTotColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'OreTot\' in table \'BazaarRisorse\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableBazaarRisorse.OreTotColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsAllocazioneNull() {
+ return this.IsNull(this.tableBazaarRisorse.AllocazioneColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetAllocazioneNull() {
+ this[this.tableBazaarRisorse.AllocazioneColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsSchemaWeekNull() {
+ return this.IsNull(this.tableBazaarRisorse.SchemaWeekColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetSchemaWeekNull() {
+ this[this.tableBazaarRisorse.SchemaWeekColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsOreTotNull() {
+ return this.IsNull(this.tableBazaarRisorse.OreTotColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetOreTotNull() {
+ this[this.tableBazaarRisorse.OreTotColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Row event argument class
///
@@ -7813,6 +8344,40 @@ namespace ETS_Data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class BazaarRisorseRowChangeEvent : global::System.EventArgs {
+
+ private BazaarRisorseRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public BazaarRisorseRowChangeEvent(BazaarRisorseRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public BazaarRisorseRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace ETS_Data.Ds_ProjEtsTableAdapters {
@@ -12217,6 +12782,448 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [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=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class BazaarRisorseTableAdapter : 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()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public BazaarRisorseTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ 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()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ 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()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ 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 = "BazaarRisorse";
+ tableMapping.ColumnMappings.Add("Anno", "Anno");
+ tableMapping.ColumnMappings.Add("Sett", "Sett");
+ tableMapping.ColumnMappings.Add("idxDipendente", "idxDipendente");
+ tableMapping.ColumnMappings.Add("idxFase", "idxFase");
+ tableMapping.ColumnMappings.Add("Allocazione", "Allocazione");
+ tableMapping.ColumnMappings.Add("SchemaWeek", "SchemaWeek");
+ tableMapping.ColumnMappings.Add("OreTot", "OreTot");
+ 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].[BazaarRisorse] WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot)))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SchemaWeek", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SchemaWeek", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", 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].[BazaarRisorse] ([Anno], [Sett], [idxDipendente], [idxFase], [Allocazione]) VALUES (@Anno, @Sett, @idxDipendente, @idxFase, @Allocazione);
+SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", 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].[BazaarRisorse] SET [Anno] = @Anno, [Sett] = @Sett, [idxDipendente] = @idxDipendente, [idxFase] = @idxFase, [Allocazione] = @Allocazione WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot)));
+SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Sett", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Sett", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxDipendente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFase", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Allocazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Allocazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SchemaWeek", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SchemaWeek", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SchemaWeek", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OreTot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OreTot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_PROJConnectionString;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM d" +
+ "bo.BazaarRisorse";
+ 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_BAZ_creaBulkByIdxFase";
+ 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("@Anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Sett", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFase", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(Ds_ProjEts.BazaarRisorseDataTable 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual Ds_ProjEts.BazaarRisorseDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ Ds_ProjEts.BazaarRisorseDataTable dataTable = new Ds_ProjEts.BazaarRisorseDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(Ds_ProjEts.BazaarRisorseDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(Ds_ProjEts dataSet) {
+ return this.Adapter.Update(dataSet, "BazaarRisorse");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_Anno, int Original_Sett, int Original_idxDipendente, int Original_idxFase, global::System.Nullable Original_Allocazione, string Original_SchemaWeek, global::System.Nullable Original_OreTot) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Anno));
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Sett));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idxDipendente));
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_idxFase));
+ if ((Original_Allocazione.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Allocazione.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((Original_SchemaWeek == null)) {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_SchemaWeek));
+ }
+ if ((Original_OreTot.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_OreTot.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(int Anno, int Sett, int idxDipendente, int idxFase, global::System.Nullable Allocazione) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Anno));
+ this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Sett));
+ this.Adapter.InsertCommand.Parameters[2].Value = ((int)(idxDipendente));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(idxFase));
+ if ((Allocazione.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Allocazione.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(int Anno, int Sett, int idxDipendente, int idxFase, global::System.Nullable Allocazione, int Original_Anno, int Original_Sett, int Original_idxDipendente, int Original_idxFase, global::System.Nullable Original_Allocazione, string Original_SchemaWeek, global::System.Nullable Original_OreTot) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Anno));
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Sett));
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(idxDipendente));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(idxFase));
+ if ((Allocazione.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Allocazione.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Anno));
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Sett));
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_idxDipendente));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idxFase));
+ if ((Original_Allocazione.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Allocazione.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ if ((Original_SchemaWeek == null)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_SchemaWeek));
+ }
+ if ((Original_OreTot.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_OreTot.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(global::System.Nullable Allocazione, int Original_Anno, int Original_Sett, int Original_idxDipendente, int Original_idxFase, global::System.Nullable Original_Allocazione, string Original_SchemaWeek, global::System.Nullable Original_OreTot) {
+ return this.Update(Original_Anno, Original_Sett, Original_idxDipendente, Original_idxFase, Allocazione, Original_Anno, Original_Sett, Original_idxDipendente, Original_idxFase, Original_Allocazione, Original_SchemaWeek, Original_OreTot);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int creaBulkByIdxFase(global::System.Nullable Anno, global::System.Nullable Sett, global::System.Nullable idxFase) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((Anno.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(Anno.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((Sett.HasValue == true)) {
+ command.Parameters[2].Value = ((int)(Sett.Value));
+ }
+ else {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((idxFase.HasValue == true)) {
+ command.Parameters[3].Value = ((int)(idxFase.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -12243,6 +13250,8 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
private AnagTipoRisorseTableAdapter _anagTipoRisorseTableAdapter;
+ private BazaarRisorseTableAdapter _bazaarRisorseTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -12356,6 +13365,20 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public BazaarRisorseTableAdapter BazaarRisorseTableAdapter {
+ get {
+ return this._bazaarRisorseTableAdapter;
+ }
+ set {
+ this._bazaarRisorseTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -12403,6 +13426,10 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
&& (this._anagTipoRisorseTableAdapter.Connection != null))) {
return this._anagTipoRisorseTableAdapter.Connection;
}
+ if (((this._bazaarRisorseTableAdapter != null)
+ && (this._bazaarRisorseTableAdapter.Connection != null))) {
+ return this._bazaarRisorseTableAdapter.Connection;
+ }
return null;
}
set {
@@ -12437,6 +13464,9 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
if ((this._anagTipoRisorseTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._bazaarRisorseTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -12511,6 +13541,15 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._bazaarRisorseTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._bazaarRisorseTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -12577,6 +13616,14 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._bazaarRisorseTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._bazaarRisorseTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -12587,6 +13634,14 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(Ds_ProjEts dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._bazaarRisorseTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.BazaarRisorse.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._bazaarRisorseTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._bdgtRisorseFasiTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.BdgtRisorseFasi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -12717,6 +13772,11 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._bazaarRisorseTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._bazaarRisorseTableAdapter.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" +
@@ -12812,6 +13872,15 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
adaptersWithAcceptChangesDuringUpdate.Add(this._anagTipoRisorseTableAdapter.Adapter);
}
}
+ if ((this._bazaarRisorseTableAdapter != null)) {
+ revertConnections.Add(this._bazaarRisorseTableAdapter, this._bazaarRisorseTableAdapter.Connection);
+ this._bazaarRisorseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._bazaarRisorseTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._bazaarRisorseTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._bazaarRisorseTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._bazaarRisorseTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -12898,6 +13967,10 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
this._anagTipoRisorseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._anagTipoRisorseTableAdapter]));
this._anagTipoRisorseTableAdapter.Transaction = null;
}
+ if ((this._bazaarRisorseTableAdapter != null)) {
+ this._bazaarRisorseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._bazaarRisorseTableAdapter]));
+ this._bazaarRisorseTableAdapter.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/ETS_Data/Ds_ProjEts.xsd b/ETS_Data/Ds_ProjEts.xsd
index 5f23ee6..1dbbf6a 100644
--- a/ETS_Data/Ds_ProjEts.xsd
+++ b/ETS_Data/Ds_ProjEts.xsd
@@ -810,7 +810,7 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
-
+
dbo.stp_BRF_DeleteQuery
@@ -833,7 +833,7 @@ SELECT idxFase, CodTipoRisorsa, OreBdgt, CostoBdgt, DataRif FROM BdgtRisorseFasi
-
+
dbo.stp_BRF_InsertQuery
@@ -931,6 +931,95 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
+
+
+
+
+
+ DELETE FROM [dbo].[BazaarRisorse] WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[BazaarRisorse] ([Anno], [Sett], [idxDipendente], [idxFase], [Allocazione]) VALUES (@Anno, @Sett, @idxDipendente, @idxFase, @Allocazione);
+SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase)
+
+
+
+
+
+
+
+
+
+
+
+ SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM dbo.BazaarRisorse
+
+
+
+
+
+ UPDATE [dbo].[BazaarRisorse] SET [Anno] = @Anno, [Sett] = @Sett, [idxDipendente] = @idxDipendente, [idxFase] = @idxFase, [Allocazione] = @Allocazione WHERE (([Anno] = @Original_Anno) AND ([Sett] = @Original_Sett) AND ([idxDipendente] = @Original_idxDipendente) AND ([idxFase] = @Original_idxFase) AND ((@IsNull_Allocazione = 1 AND [Allocazione] IS NULL) OR ([Allocazione] = @Original_Allocazione)) AND ((@IsNull_SchemaWeek = 1 AND [SchemaWeek] IS NULL) OR ([SchemaWeek] = @Original_SchemaWeek)) AND ((@IsNull_OreTot = 1 AND [OreTot] IS NULL) OR ([OreTot] = @Original_OreTot)));
+SELECT Anno, Sett, idxDipendente, idxFase, Allocazione, SchemaWeek, OreTot FROM BazaarRisorse WHERE (Anno = @Anno) AND (Sett = @Sett) AND (idxDipendente = @idxDipendente) AND (idxFase = @idxFase)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_BAZ_creaBulkByIdxFase
+
+
+
+
+
+
+
+
+
+
+
@@ -939,7 +1028,7 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
-
+
@@ -982,7 +1071,7 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
-
+
@@ -1032,7 +1121,7 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
-
+
@@ -1121,7 +1210,7 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
-
+
@@ -1165,7 +1254,7 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
-
+
@@ -1210,7 +1299,7 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
-
+
@@ -1290,7 +1379,7 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
-
+
@@ -1338,7 +1427,7 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
-
+
@@ -1355,7 +1444,7 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
-
+
@@ -1376,6 +1465,25 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1415,15 +1523,22 @@ SELECT CodTipoRisorsa, DescrTipoRisorsa, costoOrario FROM AnagTipoRisorse WHERE
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ETS_Data/Ds_ProjEts.xss b/ETS_Data/Ds_ProjEts.xss
index 38226a1..e9d1456 100644
--- a/ETS_Data/Ds_ProjEts.xss
+++ b/ETS_Data/Ds_ProjEts.xss
@@ -4,20 +4,21 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
370
@@ -29,7 +30,7 @@
-
+
876
@@ -41,7 +42,7 @@
-
+
1107
@@ -53,18 +54,18 @@
-
+
1107
267
- 1131
+ 1151
267
- 1131
+ 1151
392
@@ -73,7 +74,7 @@
-
+
495
@@ -89,7 +90,7 @@
-
+
172
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx
index 37a3c85..85175aa 100644
--- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx
+++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx
@@ -19,7 +19,55 @@
- elenco commesse...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Nessun record trovato
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ con checkbox x selezione multipla
+
+
+
@@ -28,12 +76,7 @@
-
-
- parto con selettore anno + num settimna a(1-53?)
-
-
- mostro SEMPRE un button "+" x aggiungere progetti (x tutti i dipendenti "marcati" da dip2ATR)
+button "+" x aggiungere progetti (x tutti i dipendenti "marcati" da dip2ATR)
quando creo su "+" mostro un elenco progetti ATTIVI, potrebbe venire ordianto per
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs
index e2e44d7..6152533 100644
--- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs
+++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.cs
@@ -10,6 +10,15 @@ namespace PROJ_ETS.WebUserControls
{
public partial class mod_weekPlan : System.Web.UI.UserControl
{
+ ///
+ /// evento nuovi valori caricati
+ ///
+ public event EventHandler eh_newVal;
+ ///
+ /// caricamento pagina
+ ///
+ ///
+ ///
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
@@ -40,5 +49,81 @@ namespace PROJ_ETS.WebUserControls
btnAddNew.CssClass = "btnNew";
}
}
+
+ ///
+ /// trimma una stringa per il num max di caratteri richiesti
+ ///
+ ///
+ ///
+ public string trimChar(object stringaIn, object maxChar)
+ {
+ string answ = "";
+ int maxNum = 0;
+ try
+ {
+ answ = stringaIn.ToString();
+ maxNum = Convert.ToInt32(maxChar);
+ }
+ catch
+ { }
+ if (maxNum < answ.Length)
+ {
+ answ = answ.Substring(0, maxNum) + "...";
+ }
+ return answ;
+ }
+
+ ///
+ /// seleziona/deseleziona le righe indicate...
+ ///
+ ///
+ ///
+ protected void btnSelAll_Click(object sender, EventArgs e)
+ {
+ // seleziono tutti i valori visibili nel datagrid
+ CheckBox chkbox = ((CheckBox)sender);
+ bool isChecked = chkbox.Checked;
+ if (!isChecked)
+ {
+ chkbox.ToolTip = "Seleziona tutti";
+ }
+ else
+ {
+ chkbox.ToolTip = "Deseleziona tutti";
+ }
+ foreach (GridViewRow riga in grViewCommesse.Rows)
+ {
+ ((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked;
+ }
+ }
+ ///
+ /// aggiunge commesse selezionata x tutti gli utenti codificati x bazaar
+ ///
+ ///
+ ///
+ protected void btnAddSelected_Click(object sender, EventArgs e)
+ {
+ // prende valori selezionati e crea x tutti gli utenti record BazaarRisorse
+ int value = 0;
+ int year = Convert.ToInt32(ddlAnno.SelectedValue);
+ int week = Convert.ToInt32(ddlWeek.SelectedValue);
+ // sposto i files selezionati secondo i dati in sessione
+ foreach (GridViewRow riga in grViewCommesse.Rows)
+ {
+ if (((CheckBox)riga.FindControl("chkSelect")).Checked)
+ {
+ // devo salvare file con le info relative...
+ value = Convert.ToInt32(((Label)riga.FindControl("lblValue")).Text);
+ DataProxy_ProjEts.DP.taBaz.creaBulkByIdxFase(Convert.ToInt32(ddlAnno.SelectedValue), Convert.ToInt32(ddlWeek.SelectedValue), value);
+ }
+ }
+ // aggiorno gridView...
+ grViewCommesse.DataBind();
+ // segnalo che ci sono nuovi dati!
+ if (eh_newVal != null)
+ {
+ eh_newVal(this, new EventArgs());
+ }
+ }
}
}
\ No newline at end of file
diff --git a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.designer.cs b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.designer.cs
index e3c97d2..5240eae 100644
--- a/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.designer.cs
+++ b/PROJ-ETS/PROJ-ETS/WebUserControls/mod_weekPlan.ascx.designer.cs
@@ -65,5 +65,50 @@ namespace PROJ_ETS.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Panel pnlAddNew;
+
+ ///
+ /// lblCerca control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblCerca;
+
+ ///
+ /// txtCercaComm control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtCercaComm;
+
+ ///
+ /// grViewCommesse control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.GridView grViewCommesse;
+
+ ///
+ /// odsCommesse control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource odsCommesse;
+
+ ///
+ /// btnAddSelected control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnAddSelected;
}
}
diff --git a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll
index f8eb9ab..4159a47 100644
Binary files a/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll and b/PROJ-ETS/PROJ-ETS/bin/ETS_Data.dll differ
diff --git a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll
index 299769e..b578ad7 100644
Binary files a/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll and b/PROJ-ETS/PROJ-ETS/bin/PROJ-ETS.dll differ