diff --git a/.vs/WebSCR/v14/.suo b/.vs/WebSCR/v14/.suo
index d337d0e..e9b5979 100644
Binary files a/.vs/WebSCR/v14/.suo and b/.vs/WebSCR/v14/.suo differ
diff --git a/VersGen/bin/Release/VersGen.dll b/VersGen/bin/Release/VersGen.dll
index 33b58c7..b442cb7 100644
Binary files a/VersGen/bin/Release/VersGen.dll and b/VersGen/bin/Release/VersGen.dll differ
diff --git a/VersGen/obj/Release/TempPE/WebSC.cs.dll b/VersGen/obj/Release/TempPE/WebSC.cs.dll
index d14462d..ba0249f 100644
Binary files a/VersGen/obj/Release/TempPE/WebSC.cs.dll and b/VersGen/obj/Release/TempPE/WebSC.cs.dll differ
diff --git a/VersGen/obj/Release/VersGen.dll b/VersGen/obj/Release/VersGen.dll
index 33b58c7..b442cb7 100644
Binary files a/VersGen/obj/Release/VersGen.dll and b/VersGen/obj/Release/VersGen.dll differ
diff --git a/WebSCR/Content/Style.css b/WebSCR/Content/Style.css
index ab4d201..7a53bf7 100644
--- a/WebSCR/Content/Style.css
+++ b/WebSCR/Content/Style.css
@@ -5,25 +5,25 @@
background-color: #FFF;
}
.editRow {
- background-color: #2461bf;
+ background-color: #2461BF;
}
.selectedRow {
- background-color: #d1ddf1;
+ background-color: #D1DDF1;
font-weight: 600;
- color: #333333;
+ color: #333;
}
.headerRow {
- background-color: #507cd1;
+ background-color: #507CD1;
font-weight: 600;
color: white;
}
.footerRow {
- background-color: #507cd1;
+ background-color: #507CD1;
font-weight: 600;
color: white;
}
.pagerRow {
- background-color: #2461bf;
+ background-color: #2461BF;
color: white;
text-align: center;
margin: auto;
@@ -98,4 +98,4 @@
#headData {
margin-top: 18px;
}
-}
+}
\ No newline at end of file
diff --git a/WebSCR/Content/Style.min.css b/WebSCR/Content/Style.min.css
index c71b7dd..d4d94f3 100644
--- a/WebSCR/Content/Style.min.css
+++ b/WebSCR/Content/Style.min.css
@@ -1 +1 @@
-.baseRow{background-color:#eff3fb}.altRow{background-color:#fff}.editRow{background-color:#2461bf}.selectedRow{background-color:#d1ddf1;font-weight:600;color:#333}.headerRow{background-color:#507cd1;font-weight:600;color:#fff}.footerRow{background-color:#507cd1;font-weight:600;color:#fff}.pagerRow{background-color:#2461bf;color:#fff;text-align:center;margin:auto}.text-center{text-align:center;margin:auto}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}@media all and (min-width:768px){#textWrapper{font-size:1em}#headData{margin-top:0}}@media all and (min-width:1024px){#textWrapper{font-size:1.1em}#headData{margin-top:0}}@media all and (min-width:1440px){#textWrapper{font-size:1.2em}#headData{margin-top:0}}@media all and (min-width:1600px){#textWrapper{font-size:1.3em}#headData{margin-top:0}}@media all and (max-width:767px){#textWrapper{font-size:.8em}#headData{margin-top:6px}}@media all and (max-width:480px){#textWrapper{font-size:.6em}#headData{margin-top:14px}}@media all and (max-width:320px){#textWrapper{font-size:.5em}#headData{margin-top:18px}}
\ No newline at end of file
+.baseRow{background-color:#eff3fb}.altRow{background-color:#fff}.editRow{background-color:#2461bf}.selectedRow{background-color:#d1ddf1;font-weight:600;color:#333}.headerRow{background-color:#507cd1;font-weight:600;color:#fff}.footerRow{background-color:#507cd1;font-weight:600;color:#fff}.pagerRow{background-color:#2461bf;color:#fff;text-align:center;margin:auto}.text-center{text-align:center;margin:auto}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}@media all and (min-width:768px){#textWrapper{font-size:1em}#headData{margin-top:0}}@media all and (min-width:1024px){#textWrapper{font-size:1.1em}#headData{margin-top:0}}@media all and (min-width:1440px){#textWrapper{font-size:1.2em}#headData{margin-top:0}}@media all and (min-width:1600px){#textWrapper{font-size:1.3em}#headData{margin-top:0}}@media all and (max-width:767px){div.ui-mini{font-size:9px}#textWrapper{font-size:.8em}#headData{margin-top:6px}}@media all and (max-width:480px){#textWrapper{font-size:.6em}#headData{margin-top:14px}}@media all and (max-width:320px){#textWrapper{font-size:.5em}#headData{margin-top:18px}}
\ No newline at end of file
diff --git a/WebSCR/Web.config b/WebSCR/Web.config
index 9f8cfe6..449350b 100644
--- a/WebSCR/Web.config
+++ b/WebSCR/Web.config
@@ -42,6 +42,8 @@
+
+
diff --git a/WebSCR/WebUserControls/mod_dettInt.ascx b/WebSCR/WebUserControls/mod_dettInt.ascx
index af6e791..732aab2 100644
--- a/WebSCR/WebUserControls/mod_dettInt.ascx
+++ b/WebSCR/WebUserControls/mod_dettInt.ascx
@@ -1,11 +1,19 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettInt.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettInt" %>
-
-
-
-
+
-
diff --git a/WebSCR/WebUserControls/mod_dettInt.ascx.cs b/WebSCR/WebUserControls/mod_dettInt.ascx.cs
index f39e980..b09fd31 100644
--- a/WebSCR/WebUserControls/mod_dettInt.ascx.cs
+++ b/WebSCR/WebUserControls/mod_dettInt.ascx.cs
@@ -1,4 +1,5 @@
-using System;
+using SteamWare;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -92,6 +93,7 @@ namespace WebSCR.WebUserControls
}
protected void Page_Load(object sender, EventArgs e)
{
+ lblWarning.Visible = false;
}
///
/// aggiunge il task corrente all'elenco dei task...
@@ -100,9 +102,60 @@ namespace WebSCR.WebUserControls
///
protected void lbAdd_Click(object sender, EventArgs e)
{
- DtProxy.man.taDetImp.insertQuery(idxImpegno, ddlTipoCons.SelectedValue);
- //doUpdate();
- reportEvent();
+ // verifico se si possa inserire (ovvero totale tempo > minTempo e valore da inserire NEGATIVO...)
+ if (selTaskMin < 0 && (actualMin + selTaskMin) >= minTempoInt)
+ {
+ // fix warning
+ lblWarning.Visible = false;
+ lblWarning.Text = "";
+
+ DtProxy.man.taDetImp.insertQuery(idxImpegno, ddlTipoCons.SelectedValue);
+ //doUpdate();
+ reportEvent();
+ }
+ else
+ {
+ // fix warning
+ lblWarning.Visible = true;
+ lblWarning.Text = string.Format("Attenzione: impossibile inserire, tempo complessivo diventerebbe inferiore a soglia minima ({0} min)!", minTempoInt);
+ }
+ }
+
+ protected int minTempoInt
+ {
+ get
+ {
+ return memLayer.ML.CRI("minTempoInterv");
+ }
+ }
+ protected int actualMin
+ {
+ get
+ {
+ int answ = 0;
+ try
+ {
+ answ = DtProxy.man.taVRI.getByKey(idxImpegno)[0].TotMin;
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+
+ protected int selTaskMin
+ {
+ get
+ {
+ int answ = 0;
+ try
+ {
+ answ = DtProxy.man.taATC.getByKey(ddlTipoCons.SelectedValue)[0].MinutiStd;
+ }
+ catch
+ { }
+ return answ;
+ }
}
protected void odsDettInt_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
diff --git a/WebSCR/WebUserControls/mod_dettInt.ascx.designer.cs b/WebSCR/WebUserControls/mod_dettInt.ascx.designer.cs
index eda9110..58fb598 100644
--- a/WebSCR/WebUserControls/mod_dettInt.ascx.designer.cs
+++ b/WebSCR/WebUserControls/mod_dettInt.ascx.designer.cs
@@ -39,6 +39,15 @@ namespace WebSCR.WebUserControls {
///
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoCons;
+ ///
+ /// lblWarning control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblWarning;
+
///
/// grViewDettInt control.
///
diff --git a/WebSCR/bin/SteamWare.dll b/WebSCR/bin/SteamWare.dll
index 2124124..82b5df6 100644
Binary files a/WebSCR/bin/SteamWare.dll and b/WebSCR/bin/SteamWare.dll differ
diff --git a/WebSCR/bin/WebSCR.dll b/WebSCR/bin/WebSCR.dll
index 820a19e..59983ac 100644
Binary files a/WebSCR/bin/WebSCR.dll and b/WebSCR/bin/WebSCR.dll differ
diff --git a/WebSCR/bin/WebSCR.dll.config b/WebSCR/bin/WebSCR.dll.config
index 9f8cfe6..449350b 100644
--- a/WebSCR/bin/WebSCR.dll.config
+++ b/WebSCR/bin/WebSCR.dll.config
@@ -42,6 +42,8 @@
+
+
diff --git a/WebSCR/bin/WebSCR_data.dll b/WebSCR/bin/WebSCR_data.dll
index 0ffb07f..4ad1c08 100644
Binary files a/WebSCR/bin/WebSCR_data.dll and b/WebSCR/bin/WebSCR_data.dll differ
diff --git a/WebSCR_data/DS_Applicazione.Designer.cs b/WebSCR_data/DS_Applicazione.Designer.cs
index a1abf6a..38218f8 100644
--- a/WebSCR_data/DS_Applicazione.Designer.cs
+++ b/WebSCR_data/DS_Applicazione.Designer.cs
@@ -52,6 +52,8 @@ namespace WebSCR_data {
private DipendentiDataTable tableDipendenti;
+ private v_resImpDataTable tablev_resImp;
+
private global::System.Data.DataRelation relationFK_Disponibilita_AnagSquadre;
private global::System.Data.DataRelation relationFK_AssegnSquadre_Disponibilita;
@@ -128,6 +130,9 @@ namespace WebSCR_data {
if ((ds.Tables["Dipendenti"] != null)) {
base.Tables.Add(new DipendentiDataTable(ds.Tables["Dipendenti"]));
}
+ if ((ds.Tables["v_resImp"] != null)) {
+ base.Tables.Add(new v_resImpDataTable(ds.Tables["v_resImp"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -286,6 +291,16 @@ namespace WebSCR_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 v_resImpDataTable v_resImp {
+ get {
+ return this.tablev_resImp;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -395,6 +410,9 @@ namespace WebSCR_data {
if ((ds.Tables["Dipendenti"] != null)) {
base.Tables.Add(new DipendentiDataTable(ds.Tables["Dipendenti"]));
}
+ if ((ds.Tables["v_resImp"] != null)) {
+ base.Tables.Add(new v_resImpDataTable(ds.Tables["v_resImp"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -512,6 +530,12 @@ namespace WebSCR_data {
this.tableDipendenti.InitVars();
}
}
+ this.tablev_resImp = ((v_resImpDataTable)(base.Tables["v_resImp"]));
+ if ((initTable == true)) {
+ if ((this.tablev_resImp != null)) {
+ this.tablev_resImp.InitVars();
+ }
+ }
this.relationFK_Disponibilita_AnagSquadre = this.Relations["FK_Disponibilita_AnagSquadre"];
this.relationFK_AssegnSquadre_Disponibilita = this.Relations["FK_AssegnSquadre_Disponibilita"];
this.relationFK_AssegnSquadre_Dipendenti = this.Relations["FK_AssegnSquadre_Dipendenti"];
@@ -553,6 +577,8 @@ namespace WebSCR_data {
base.Tables.Add(this.tableAssegnSquadre);
this.tableDipendenti = new DipendentiDataTable();
base.Tables.Add(this.tableDipendenti);
+ this.tablev_resImp = new v_resImpDataTable();
+ base.Tables.Add(this.tablev_resImp);
this.relationFK_Disponibilita_AnagSquadre = new global::System.Data.DataRelation("FK_Disponibilita_AnagSquadre", new global::System.Data.DataColumn[] {
this.tableAnagSquadre.CodSquadraColumn}, new global::System.Data.DataColumn[] {
this.tableDisponibilita.CodSquadraColumn}, false);
@@ -653,6 +679,12 @@ namespace WebSCR_data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializev_resImp() {
+ 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) {
@@ -750,6 +782,9 @@ namespace WebSCR_data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void DipendentiRowChangeEventHandler(object sender, DipendentiRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void v_resImpRowChangeEventHandler(object sender, v_resImpRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -6379,6 +6414,278 @@ namespace WebSCR_data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class v_resImpDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnIdxImpegno;
+
+ private global::System.Data.DataColumn columnTotMin;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_resImpDataTable() {
+ this.TableName = "v_resImp";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal v_resImpDataTable(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 v_resImpDataTable(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 IdxImpegnoColumn {
+ get {
+ return this.columnIdxImpegno;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn TotMinColumn {
+ get {
+ return this.columnTotMin;
+ }
+ }
+
+ [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 v_resImpRow this[int index] {
+ get {
+ return ((v_resImpRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event v_resImpRowChangeEventHandler v_resImpRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event v_resImpRowChangeEventHandler v_resImpRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event v_resImpRowChangeEventHandler v_resImpRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event v_resImpRowChangeEventHandler v_resImpRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void Addv_resImpRow(v_resImpRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_resImpRow Addv_resImpRow(int IdxImpegno, int TotMin) {
+ v_resImpRow rowv_resImpRow = ((v_resImpRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ IdxImpegno,
+ TotMin};
+ rowv_resImpRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowv_resImpRow);
+ return rowv_resImpRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_resImpRow FindByIdxImpegno(int IdxImpegno) {
+ return ((v_resImpRow)(this.Rows.Find(new object[] {
+ IdxImpegno})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ v_resImpDataTable cln = ((v_resImpDataTable)(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 v_resImpDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnIdxImpegno = base.Columns["IdxImpegno"];
+ this.columnTotMin = base.Columns["TotMin"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnIdxImpegno = new global::System.Data.DataColumn("IdxImpegno", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxImpegno);
+ this.columnTotMin = new global::System.Data.DataColumn("TotMin", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnTotMin);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxImpegno}, true));
+ this.columnIdxImpegno.AllowDBNull = false;
+ this.columnIdxImpegno.Unique = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public v_resImpRow Newv_resImpRow() {
+ return ((v_resImpRow)(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 v_resImpRow(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(v_resImpRow);
+ }
+
+ [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.v_resImpRowChanged != null)) {
+ this.v_resImpRowChanged(this, new v_resImpRowChangeEvent(((v_resImpRow)(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.v_resImpRowChanging != null)) {
+ this.v_resImpRowChanging(this, new v_resImpRowChangeEvent(((v_resImpRow)(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.v_resImpRowDeleted != null)) {
+ this.v_resImpRowDeleted(this, new v_resImpRowChangeEvent(((v_resImpRow)(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.v_resImpRowDeleting != null)) {
+ this.v_resImpRowDeleting(this, new v_resImpRowChangeEvent(((v_resImpRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void Removev_resImpRow(v_resImpRow 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_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 = "v_resImpDataTable";
+ 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.
///
@@ -9192,6 +9499,60 @@ namespace WebSCR_data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class v_resImpRow : global::System.Data.DataRow {
+
+ private v_resImpDataTable tablev_resImp;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal v_resImpRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tablev_resImp = ((v_resImpDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int IdxImpegno {
+ get {
+ return ((int)(this[this.tablev_resImp.IdxImpegnoColumn]));
+ }
+ set {
+ this[this.tablev_resImp.IdxImpegnoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int TotMin {
+ get {
+ try {
+ return ((int)(this[this.tablev_resImp.TotMinColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'TotMin\' in table \'v_resImp\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablev_resImp.TotMinColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsTotMinNull() {
+ return this.IsNull(this.tablev_resImp.TotMinColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetTotMinNull() {
+ this[this.tablev_resImp.TotMinColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Row event argument class
///
@@ -9667,6 +10028,40 @@ namespace WebSCR_data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class v_resImpRowChangeEvent : global::System.EventArgs {
+
+ private v_resImpRow 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 v_resImpRowChangeEvent(v_resImpRow 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 v_resImpRow 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 WebSCR_data.DS_ApplicazioneTableAdapters {
@@ -11094,7 +11489,7 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
[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[4];
+ 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 CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FROM" +
@@ -11108,19 +11503,13 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodConsegna", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
- this._commandCollection[2].CommandText = "dbo.stp_ATC_InsertQuery";
+ this._commandCollection[2].CommandText = "dbo.stp_ATC_getByKey";
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("@CodConsegna", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrConsegna", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinutiStd", 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("@NumOp", 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("@Elettrod", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Clima", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inform", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 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_ATC_UpdateQuery";
+ this._commandCollection[3].CommandText = "dbo.stp_ATC_InsertQuery";
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("@CodConsegna", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -11130,7 +11519,19 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Elettrod", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Clima", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inform", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodConsegna", 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_ATC_UpdateQuery";
+ 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("@CodConsegna", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescrConsegna", global::System.Data.SqlDbType.NVarChar, 250, 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("@MinutiStd", 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("@NumOp", 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("@Elettrod", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Clima", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Inform", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodConsegna", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -11157,6 +11558,23 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
return dataTable;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Applicazione.AnagTipoConsegneDataTable getByKey(string CodConsegna) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((CodConsegna == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodConsegna));
+ }
+ DS_Applicazione.AnagTipoConsegneDataTable dataTable = new DS_Applicazione.AnagTipoConsegneDataTable();
+ 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")]
@@ -11359,7 +11777,7 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)]
public virtual int InsertQuery(string CodConsegna, string DescrConsegna, global::System.Nullable MinutiStd, global::System.Nullable NumOp, global::System.Nullable Elettrod, global::System.Nullable Clima, global::System.Nullable Inform) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((CodConsegna == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -11424,7 +11842,7 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
public virtual int UpdateQuery(string CodConsegna, string DescrConsegna, global::System.Nullable MinutiStd, global::System.Nullable NumOp, global::System.Nullable Elettrod, global::System.Nullable Clima, global::System.Nullable Inform, string Original_CodConsegna) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((CodConsegna == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -15925,6 +16343,197 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)";
}
}
+ ///
+ ///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 v_resImpTableAdapter : 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 v_resImpTableAdapter() {
+ 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 = "v_resImp";
+ tableMapping.ColumnMappings.Add("IdxImpegno", "IdxImpegno");
+ tableMapping.ColumnMappings.Add("TotMin", "TotMin");
+ this._adapter.TableMappings.Add(tableMapping);
+ }
+
+ [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::WebSCR_data.Properties.Settings.Default.WebSCRConnectionString;
+ }
+
+ [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 IdxImpegno, TotMin FROM dbo.v_resImp";
+ 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_resImp_getByKey";
+ 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("@IdxImpegno", 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_Applicazione.v_resImpDataTable 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_Applicazione.v_resImpDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.v_resImpDataTable dataTable = new DS_Applicazione.v_resImpDataTable();
+ 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_Applicazione.v_resImpDataTable getByKey(global::System.Nullable IdxImpegno) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((IdxImpegno.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxImpegno.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_Applicazione.v_resImpDataTable dataTable = new DS_Applicazione.v_resImpDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
diff --git a/WebSCR_data/DS_Applicazione.cs b/WebSCR_data/DS_Applicazione.cs
index 27c57ce..21a3bbe 100644
--- a/WebSCR_data/DS_Applicazione.cs
+++ b/WebSCR_data/DS_Applicazione.cs
@@ -2,10 +2,12 @@
{
}
-namespace WebSCR_data {
-
-
- public partial class DS_Applicazione {
+namespace WebSCR_data
+{
+
+
+ public partial class DS_Applicazione
+ {
}
}
namespace WebSCR_data {
diff --git a/WebSCR_data/DS_Applicazione.xsd b/WebSCR_data/DS_Applicazione.xsd
index 58e6a71..74d843f 100644
--- a/WebSCR_data/DS_Applicazione.xsd
+++ b/WebSCR_data/DS_Applicazione.xsd
@@ -346,6 +346,17 @@ SELECT CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform FRO
+
+
+
+ dbo.stp_ATC_getByKey
+
+
+
+
+
+
+
@@ -1297,6 +1308,35 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)
+
+
+
+
+
+ SELECT IdxImpegno, TotMin FROM dbo.v_resImp
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_resImp_getByKey
+
+
+
+
+
+
+
+
+
@@ -2016,6 +2056,14 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)
+
+
+
+
+
+
+
+
@@ -2075,6 +2123,10 @@ SELECT Matr, Cognome, Nome, CognomeNome FROM Dipendenti WHERE (Matr = @Matr)
+
+
+
+
diff --git a/WebSCR_data/DS_Applicazione.xss b/WebSCR_data/DS_Applicazione.xss
index 7d9798b..8ec7446 100644
--- a/WebSCR_data/DS_Applicazione.xss
+++ b/WebSCR_data/DS_Applicazione.xss
@@ -4,25 +4,26 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
765
@@ -34,7 +35,7 @@
-
+
707
@@ -46,7 +47,7 @@
-
+
422
diff --git a/WebSCR_data/DtProxy.cs b/WebSCR_data/DtProxy.cs
index 5c80f56..d2530e4 100644
--- a/WebSCR_data/DtProxy.cs
+++ b/WebSCR_data/DtProxy.cs
@@ -32,6 +32,7 @@ namespace WebSCR_data
taVcz = new DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter();
taDocs = new DS_ApplicazioneTableAdapters.DB2_DOCSTableAdapter();
taDisp = new DS_ApplicazioneTableAdapters.DisponibilitaTableAdapter();
+ taVRI = new DS_ApplicazioneTableAdapters.v_resImpTableAdapter();
taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter();
taListVal = new DS_UtilityTableAdapters.ListValuesTableAdapter();
}
@@ -53,6 +54,7 @@ namespace WebSCR_data
taVcz.Connection.ConnectionString = connStr;
taDocs.Connection.ConnectionString = connStr;
taDisp.Connection.ConnectionString = connStr;
+ taVRI.Connection.ConnectionString = connStr;
taFile.Connection.ConnectionString = connStrFiles;
taListVal.Connection.ConnectionString = connStrFiles;
}
@@ -71,6 +73,7 @@ namespace WebSCR_data
public DS_ApplicazioneTableAdapters.v_clientiZoneTableAdapter taVcz;
public DS_ApplicazioneTableAdapters.DB2_DOCSTableAdapter taDocs;
public DS_ApplicazioneTableAdapters.DisponibilitaTableAdapter taDisp;
+ public DS_ApplicazioneTableAdapters.v_resImpTableAdapter taVRI;
public DS_UtilityTableAdapters.tblFilesTableAdapter taFile;
public DS_UtilityTableAdapters.ListValuesTableAdapter taListVal;
diff --git a/WebSCR_data/bin/Debug/SteamWare.dll b/WebSCR_data/bin/Debug/SteamWare.dll
index 2124124..82b5df6 100644
Binary files a/WebSCR_data/bin/Debug/SteamWare.dll and b/WebSCR_data/bin/Debug/SteamWare.dll differ
diff --git a/WebSCR_data/bin/Debug/WebSCR_data.dll b/WebSCR_data/bin/Debug/WebSCR_data.dll
index 0ffb07f..4ad1c08 100644
Binary files a/WebSCR_data/bin/Debug/WebSCR_data.dll and b/WebSCR_data/bin/Debug/WebSCR_data.dll differ
diff --git a/WebSCR_data/bin/Release/WebSCR_data.dll b/WebSCR_data/bin/Release/WebSCR_data.dll
index 92a9f75..473689a 100644
Binary files a/WebSCR_data/bin/Release/WebSCR_data.dll and b/WebSCR_data/bin/Release/WebSCR_data.dll differ
diff --git a/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll b/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll
index d4904e9..a2a1002 100644
Binary files a/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/WebSCR_data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ
diff --git a/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache b/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache
index 835ee8e..fabf31e 100644
Binary files a/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache and b/WebSCR_data/obj/Debug/WebSCR_data.csprojResolveAssemblyReference.cache differ
diff --git a/WebSCR_data/obj/Debug/WebSCR_data.dll b/WebSCR_data/obj/Debug/WebSCR_data.dll
index 0ffb07f..4ad1c08 100644
Binary files a/WebSCR_data/obj/Debug/WebSCR_data.dll and b/WebSCR_data/obj/Debug/WebSCR_data.dll differ
diff --git a/WebSCR_data/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/WebSCR_data/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
index a9b7eb3..c6e8846 100644
Binary files a/WebSCR_data/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache and b/WebSCR_data/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache differ
diff --git a/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll b/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll
index a713506..6b18dbf 100644
Binary files a/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll and b/WebSCR_data/obj/Release/TempPE/DS_Applicazione.Designer.cs.dll differ
diff --git a/WebSCR_data/obj/Release/WebSCR_data.dll b/WebSCR_data/obj/Release/WebSCR_data.dll
index 92a9f75..473689a 100644
Binary files a/WebSCR_data/obj/Release/WebSCR_data.dll and b/WebSCR_data/obj/Release/WebSCR_data.dll differ