diff --git a/WebSCR.v11.suo b/WebSCR.v11.suo index 5fff0ef..23afa52 100644 Binary files a/WebSCR.v11.suo and b/WebSCR.v11.suo differ diff --git a/WebSCR/WebUserControls/mod_dettImpegno.ascx b/WebSCR/WebUserControls/mod_dettImpegno.ascx index 20505d5..028b406 100644 --- a/WebSCR/WebUserControls/mod_dettImpegno.ascx +++ b/WebSCR/WebUserControls/mod_dettImpegno.ascx @@ -1,234 +1,276 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettImpegno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettImpegno" %> -
- - -
-
-
- -
-
- -
-
- -
-
-
-
-
+
+
    +
  • + + +
    +
    - - +
    -
    - -
    - +
    + +
    +
    +
    -
    -
    -
    +
    - - -
    -
    - -
    - -
    -
    -
    -
    - - - - - - - -
    -
    -
    -
    -
      -
    • Cliente
    • -
    • - - - <%----%> -
    • -
    • - -
      - -
      - -
      - +
      +
      + + +
      +
      + +
      + +
      -
    • -
    -
    -
    -
      -
    • Intervento
    • -
    • - - -
    • -
    • - - -
    • -
    • - - -
    • -
    -
    -
    -
    -
      -
    • - - -
    • -
    -
    -
    - -   - -
    - -
    -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    -
    -
    -
    - -
    - -
    - -
    -
    -
    -
    -
    -
    - - -
    -
    - -
    - -
    -
    -
    -
    - - - - - - - -
    -
    -
    -
    -
      -
    • Cliente
    • -
    • - - - <%----%> -
    • -
    • - -
      - -
      - -
      - +
      +
      + + +
      +
      + +
      + +
      -
    • -
    +
    +
    + + + + + + + +
    +
    +
    +
    +
      +
    • Cliente
    • +
    • + + + <%----%> +
    • +
    • + +
      + +
      + +
      + +
      +
    • +
    +
    +
    +
      +
    • Intervento
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    +
    +
    +
    +
      +
    • + + +
    • +
    +
    -
    -
      -
    • Intervento
    • -
    • - - -
    • -
    • - - -
    • -
    • - - -
    • -
    +
    + +   +
    -
    -
    -
      -
    • - - -
    • -
    -
    + + +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    + + +
    +
    + +
    + +
    +
    +
    +
    +
    +
    + + +
    +
    + +
    + +
    +
    +
    +
    + + + + + + + +
    +
    +
    +
    +
      +
    • Cliente
    • +
    • + + + <%----%> +
    • +
    • + +
      + +
      + +
      + +
      +
    • +
    +
    +
    +
      +
    • Intervento
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    +
    +
    +
    +
      +
    • + + +
    • +
    +
    +
    +
    + +
    +
    +
    + + + + + + + + + + + + + + + + + + + + +
  • +
  • + <%----%> +
    +
    + + +
    - - - - - - - - - - - - - - - - - - - - - - - + + + + Nessun Task + + + <%-- + + --%> + + <%----%> + + <%-- + + --%> + + + + + + + + + + + +
  • +
-


diff --git a/WebSCR/WebUserControls/mod_dettImpegno.ascx.cs b/WebSCR/WebUserControls/mod_dettImpegno.ascx.cs index 35ba470..e57637a 100644 --- a/WebSCR/WebUserControls/mod_dettImpegno.ascx.cs +++ b/WebSCR/WebUserControls/mod_dettImpegno.ascx.cs @@ -14,17 +14,28 @@ namespace WebSCR.WebUserControls { doUpdate(); } + /// + /// impegno corrente + /// + public int idxImpegno + { + get + { + int answ = 0; + try + { + answ = Convert.ToInt32(qsVal("IdxImpegno")); + } + catch + { } + return answ; + } + } private void doUpdate() { // imposto data ed ora da valori in querystring... - int idxImpegno = 0; - try - { - idxImpegno = Convert.ToInt32(qsVal("IdxImpegno")); - } - catch - { } + //if (idxImpegno > 0) //{ @@ -65,5 +76,16 @@ namespace WebSCR.WebUserControls e.InputParameters["UserMod"] = SteamWare.user_std.UtSn.userNameAD; } } + /// + /// aggiunge il task corrente all'elenco dei task... + /// + /// + /// + protected void lbAdd_Click(object sender, EventArgs e) + { + DtProxy.man.taDetImp.insertQuery(idxImpegno, ddlTipoCons.SelectedValue); + grViewDettInt.DataBind(); + frmView.DataBind(); + } } } \ No newline at end of file diff --git a/WebSCR/WebUserControls/mod_dettImpegno.ascx.designer.cs b/WebSCR/WebUserControls/mod_dettImpegno.ascx.designer.cs index 7c97afb..ec4ffde 100644 --- a/WebSCR/WebUserControls/mod_dettImpegno.ascx.designer.cs +++ b/WebSCR/WebUserControls/mod_dettImpegno.ascx.designer.cs @@ -47,5 +47,50 @@ namespace WebSCR.WebUserControls { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource odsOrario; + + /// + /// lbAdd control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.LinkButton lbAdd; + + /// + /// ddlTipoCons control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlTipoCons; + + /// + /// odsTipoCons control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoCons; + + /// + /// grViewDettInt control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.GridView grViewDettInt; + + /// + /// odsDettInt control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsDettInt; } } diff --git a/WebSCR/WebUserControls/mod_schedaGiorno.ascx b/WebSCR/WebUserControls/mod_schedaGiorno.ascx index ea36d1f..4f029fd 100644 --- a/WebSCR/WebUserControls/mod_schedaGiorno.ascx +++ b/WebSCR/WebUserControls/mod_schedaGiorno.ascx @@ -4,6 +4,7 @@ @@ -38,13 +39,12 @@ ViewType="Day" HeightSpec="BusinessHours" BusinessBeginsHour="8" - BusinessEndsHour="20" + BusinessEndsHour="19" ScrollPositionHour="13" ShowEventStartEnd="True" CellHeight="15" TimeRangeSelectedHandling="CallBack" - EventMoveHandling="CallBack" - EventResizeHandling="Disabled" + EventMoveHandling="CallBack" EventClickHandling="JavaScript" EventClickJavaScript="eventClick(e)" Theme="calendar_white" diff --git a/WebSCR/bin/WebSCR.dll b/WebSCR/bin/WebSCR.dll index a167dc5..8f5631a 100644 Binary files a/WebSCR/bin/WebSCR.dll and b/WebSCR/bin/WebSCR.dll differ diff --git a/WebSCR/bin/WebSCR_data.dll b/WebSCR/bin/WebSCR_data.dll index 8da5cc4..4da5e6c 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 4c2da5b..d286b91 100644 --- a/WebSCR_data/DS_Applicazione.Designer.cs +++ b/WebSCR_data/DS_Applicazione.Designer.cs @@ -42,6 +42,8 @@ namespace WebSCR_data { private DisponibilitaDataTable tableDisponibilita; + private DettImpegnoDataTable tableDettImpegno; + private global::System.Data.DataRelation relationFK_Disponibilita_AnagSquadre; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -99,6 +101,9 @@ namespace WebSCR_data { if ((ds.Tables["Disponibilita"] != null)) { base.Tables.Add(new DisponibilitaDataTable(ds.Tables["Disponibilita"])); } + if ((ds.Tables["DettImpegno"] != null)) { + base.Tables.Add(new DettImpegnoDataTable(ds.Tables["DettImpegno"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -207,6 +212,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 DettImpegnoDataTable DettImpegno { + get { + return this.tableDettImpegno; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -301,6 +316,9 @@ namespace WebSCR_data { if ((ds.Tables["Disponibilita"] != null)) { base.Tables.Add(new DisponibilitaDataTable(ds.Tables["Disponibilita"])); } + if ((ds.Tables["DettImpegno"] != null)) { + base.Tables.Add(new DettImpegnoDataTable(ds.Tables["DettImpegno"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -388,6 +406,12 @@ namespace WebSCR_data { this.tableDisponibilita.InitVars(); } } + this.tableDettImpegno = ((DettImpegnoDataTable)(base.Tables["DettImpegno"])); + if ((initTable == true)) { + if ((this.tableDettImpegno != null)) { + this.tableDettImpegno.InitVars(); + } + } this.relationFK_Disponibilita_AnagSquadre = this.Relations["FK_Disponibilita_AnagSquadre"]; } @@ -417,6 +441,8 @@ namespace WebSCR_data { base.Tables.Add(this.tablev_ImpegniCal); this.tableDisponibilita = new DisponibilitaDataTable(); base.Tables.Add(this.tableDisponibilita); + this.tableDettImpegno = new DettImpegnoDataTable(); + base.Tables.Add(this.tableDettImpegno); 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); @@ -477,6 +503,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 ShouldSerializeDettImpegno() { + 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) { @@ -559,6 +591,9 @@ namespace WebSCR_data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void DisponibilitaRowChangeEventHandler(object sender, DisponibilitaRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void DettImpegnoRowChangeEventHandler(object sender, DettImpegnoRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -4065,6 +4100,416 @@ namespace WebSCR_data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DettImpegnoDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxImpegno; + + private global::System.Data.DataColumn columnNumCons; + + private global::System.Data.DataColumn columnCodConsegna; + + private global::System.Data.DataColumn columnDescrConsegna; + + private global::System.Data.DataColumn columnMinutiStd; + + private global::System.Data.DataColumn columnNumOp; + + private global::System.Data.DataColumn columnElettrod; + + private global::System.Data.DataColumn columnClima; + + private global::System.Data.DataColumn columnInform; + + private global::System.Data.DataColumn columnMinuti; + + private global::System.Data.DataColumn columnNote; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DettImpegnoDataTable() { + this.TableName = "DettImpegno"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DettImpegnoDataTable(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 DettImpegnoDataTable(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 NumConsColumn { + get { + return this.columnNumCons; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn CodConsegnaColumn { + get { + return this.columnCodConsegna; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn DescrConsegnaColumn { + get { + return this.columnDescrConsegna; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MinutiStdColumn { + get { + return this.columnMinutiStd; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NumOpColumn { + get { + return this.columnNumOp; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ElettrodColumn { + get { + return this.columnElettrod; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn ClimaColumn { + get { + return this.columnClima; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn InformColumn { + get { + return this.columnInform; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn MinutiColumn { + get { + return this.columnMinuti; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn NoteColumn { + get { + return this.columnNote; + } + } + + [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 DettImpegnoRow this[int index] { + get { + return ((DettImpegnoRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DettImpegnoRowChangeEventHandler DettImpegnoRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DettImpegnoRowChangeEventHandler DettImpegnoRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DettImpegnoRowChangeEventHandler DettImpegnoRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event DettImpegnoRowChangeEventHandler DettImpegnoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void AddDettImpegnoRow(DettImpegnoRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DettImpegnoRow AddDettImpegnoRow(int IdxImpegno, int NumCons, string CodConsegna, string DescrConsegna, int MinutiStd, int NumOp, bool Elettrod, bool Clima, bool Inform, int Minuti, string Note) { + DettImpegnoRow rowDettImpegnoRow = ((DettImpegnoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + IdxImpegno, + NumCons, + CodConsegna, + DescrConsegna, + MinutiStd, + NumOp, + Elettrod, + Clima, + Inform, + Minuti, + Note}; + rowDettImpegnoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDettImpegnoRow); + return rowDettImpegnoRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DettImpegnoRow FindByIdxImpegnoNumCons(int IdxImpegno, int NumCons) { + return ((DettImpegnoRow)(this.Rows.Find(new object[] { + IdxImpegno, + NumCons}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + DettImpegnoDataTable cln = ((DettImpegnoDataTable)(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 DettImpegnoDataTable(); + } + + [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.columnNumCons = base.Columns["NumCons"]; + this.columnCodConsegna = base.Columns["CodConsegna"]; + this.columnDescrConsegna = base.Columns["DescrConsegna"]; + this.columnMinutiStd = base.Columns["MinutiStd"]; + this.columnNumOp = base.Columns["NumOp"]; + this.columnElettrod = base.Columns["Elettrod"]; + this.columnClima = base.Columns["Clima"]; + this.columnInform = base.Columns["Inform"]; + this.columnMinuti = base.Columns["Minuti"]; + this.columnNote = base.Columns["Note"]; + } + + [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.columnNumCons = new global::System.Data.DataColumn("NumCons", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumCons); + this.columnCodConsegna = new global::System.Data.DataColumn("CodConsegna", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodConsegna); + this.columnDescrConsegna = new global::System.Data.DataColumn("DescrConsegna", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDescrConsegna); + this.columnMinutiStd = new global::System.Data.DataColumn("MinutiStd", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMinutiStd); + this.columnNumOp = new global::System.Data.DataColumn("NumOp", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumOp); + this.columnElettrod = new global::System.Data.DataColumn("Elettrod", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnElettrod); + this.columnClima = new global::System.Data.DataColumn("Clima", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnClima); + this.columnInform = new global::System.Data.DataColumn("Inform", typeof(bool), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnInform); + this.columnMinuti = new global::System.Data.DataColumn("Minuti", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnMinuti); + this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNote); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxImpegno, + this.columnNumCons}, true)); + this.columnIdxImpegno.AllowDBNull = false; + this.columnNumCons.AllowDBNull = false; + this.columnCodConsegna.AllowDBNull = false; + this.columnCodConsegna.MaxLength = 50; + this.columnDescrConsegna.AllowDBNull = false; + this.columnDescrConsegna.MaxLength = 250; + this.columnMinutiStd.AllowDBNull = false; + this.columnNumOp.AllowDBNull = false; + this.columnElettrod.AllowDBNull = false; + this.columnClima.AllowDBNull = false; + this.columnInform.AllowDBNull = false; + this.columnNote.MaxLength = 250; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public DettImpegnoRow NewDettImpegnoRow() { + return ((DettImpegnoRow)(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 DettImpegnoRow(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(DettImpegnoRow); + } + + [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.DettImpegnoRowChanged != null)) { + this.DettImpegnoRowChanged(this, new DettImpegnoRowChangeEvent(((DettImpegnoRow)(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.DettImpegnoRowChanging != null)) { + this.DettImpegnoRowChanging(this, new DettImpegnoRowChangeEvent(((DettImpegnoRow)(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.DettImpegnoRowDeleted != null)) { + this.DettImpegnoRowDeleted(this, new DettImpegnoRowChangeEvent(((DettImpegnoRow)(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.DettImpegnoRowDeleting != null)) { + this.DettImpegnoRowDeleting(this, new DettImpegnoRowChangeEvent(((DettImpegnoRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void RemoveDettImpegnoRow(DettImpegnoRow 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 = "DettImpegnoDataTable"; + 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. /// @@ -5560,6 +6005,176 @@ namespace WebSCR_data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class DettImpegnoRow : global::System.Data.DataRow { + + private DettImpegnoDataTable tableDettImpegno; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal DettImpegnoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDettImpegno = ((DettImpegnoDataTable)(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.tableDettImpegno.IdxImpegnoColumn])); + } + set { + this[this.tableDettImpegno.IdxImpegnoColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumCons { + get { + return ((int)(this[this.tableDettImpegno.NumConsColumn])); + } + set { + this[this.tableDettImpegno.NumConsColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string CodConsegna { + get { + return ((string)(this[this.tableDettImpegno.CodConsegnaColumn])); + } + set { + this[this.tableDettImpegno.CodConsegnaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string DescrConsegna { + get { + return ((string)(this[this.tableDettImpegno.DescrConsegnaColumn])); + } + set { + this[this.tableDettImpegno.DescrConsegnaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int MinutiStd { + get { + return ((int)(this[this.tableDettImpegno.MinutiStdColumn])); + } + set { + this[this.tableDettImpegno.MinutiStdColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int NumOp { + get { + return ((int)(this[this.tableDettImpegno.NumOpColumn])); + } + set { + this[this.tableDettImpegno.NumOpColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Elettrod { + get { + return ((bool)(this[this.tableDettImpegno.ElettrodColumn])); + } + set { + this[this.tableDettImpegno.ElettrodColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Clima { + get { + return ((bool)(this[this.tableDettImpegno.ClimaColumn])); + } + set { + this[this.tableDettImpegno.ClimaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool Inform { + get { + return ((bool)(this[this.tableDettImpegno.InformColumn])); + } + set { + this[this.tableDettImpegno.InformColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int Minuti { + get { + try { + return ((int)(this[this.tableDettImpegno.MinutiColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Minuti\' in table \'DettImpegno\' is DBNull.", e); + } + } + set { + this[this.tableDettImpegno.MinutiColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string Note { + get { + try { + return ((string)(this[this.tableDettImpegno.NoteColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Note\' in table \'DettImpegno\' is DBNull.", e); + } + } + set { + this[this.tableDettImpegno.NoteColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsMinutiNull() { + return this.IsNull(this.tableDettImpegno.MinutiColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetMinutiNull() { + this[this.tableDettImpegno.MinutiColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsNoteNull() { + return this.IsNull(this.tableDettImpegno.NoteColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetNoteNull() { + this[this.tableDettImpegno.NoteColumn] = global::System.Convert.DBNull; + } + } + /// ///Row event argument class /// @@ -5865,6 +6480,40 @@ namespace WebSCR_data { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class DettImpegnoRowChangeEvent : global::System.EventArgs { + + private DettImpegnoRow 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 DettImpegnoRowChangeEvent(DettImpegnoRow 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 DettImpegnoRow 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 { @@ -9968,6 +10617,278 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq } } + /// + ///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 DettImpegnoTableAdapter : 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 DettImpegnoTableAdapter() { + 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 = "DettImpegno"; + tableMapping.ColumnMappings.Add("IdxImpegno", "IdxImpegno"); + tableMapping.ColumnMappings.Add("NumCons", "NumCons"); + tableMapping.ColumnMappings.Add("CodConsegna", "CodConsegna"); + tableMapping.ColumnMappings.Add("DescrConsegna", "DescrConsegna"); + tableMapping.ColumnMappings.Add("MinutiStd", "MinutiStd"); + tableMapping.ColumnMappings.Add("NumOp", "NumOp"); + tableMapping.ColumnMappings.Add("Elettrod", "Elettrod"); + tableMapping.ColumnMappings.Add("Clima", "Clima"); + tableMapping.ColumnMappings.Add("Inform", "Inform"); + tableMapping.ColumnMappings.Add("Minuti", "Minuti"); + tableMapping.ColumnMappings.Add("Note", "Note"); + 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[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT IdxImpegno, NumCons, CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettro" + + "d, Clima, Inform, Minuti, Note FROM dbo.v_DettImp"; + 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_DettImp_getByImpegno"; + 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, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_DettImp_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("@IdxImpegno", 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("@NumCons", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_DettImp_insert"; + 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("@IdxImpegno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 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, "", "", "")); + } + + [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.DettImpegnoDataTable 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.DettImpegnoDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Applicazione.DettImpegnoDataTable dataTable = new DS_Applicazione.DettImpegnoDataTable(); + 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.DettImpegnoDataTable getByImpegno(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.DettImpegnoDataTable dataTable = new DS_Applicazione.DettImpegnoDataTable(); + 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.DettImpegnoDataTable getByKey(global::System.Nullable IdxImpegno, global::System.Nullable NumCons) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxImpegno.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxImpegno.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((NumCons.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(NumCons.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + DS_Applicazione.DettImpegnoDataTable dataTable = new DS_Applicazione.DettImpegnoDataTable(); + 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 insertQuery(global::System.Nullable IdxImpegno, string CodConsegna) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((IdxImpegno.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxImpegno.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((CodConsegna == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(CodConsegna)); + } + 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 /// diff --git a/WebSCR_data/DS_Applicazione.xsd b/WebSCR_data/DS_Applicazione.xsd index e7d23cd..51aa21a 100644 --- a/WebSCR_data/DS_Applicazione.xsd +++ b/WebSCR_data/DS_Applicazione.xsd @@ -785,6 +785,68 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + + + SELECT IdxImpegno, NumCons, CodConsegna, DescrConsegna, MinutiStd, NumOp, Elettrod, Clima, Inform, Minuti, Note FROM dbo.v_DettImp + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_DettImp_getByImpegno + + + + + + + + + + + dbo.stp_DettImp_getByKey + + + + + + + + + + + + dbo.stp_DettImp_insert + + + + + + + + + + @@ -1194,6 +1256,41 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1230,6 +1327,11 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq + + + + + diff --git a/WebSCR_data/DS_Applicazione.xss b/WebSCR_data/DS_Applicazione.xss index 9e0c384..17099f7 100644 --- a/WebSCR_data/DS_Applicazione.xss +++ b/WebSCR_data/DS_Applicazione.xss @@ -4,20 +4,21 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - + + + + + + + + + + - + 745 diff --git a/WebSCR_data/DtProxy.cs b/WebSCR_data/DtProxy.cs index 12ecc02..3cd6328 100644 --- a/WebSCR_data/DtProxy.cs +++ b/WebSCR_data/DtProxy.cs @@ -34,6 +34,7 @@ namespace WebSCR_data taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter(); taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter(); taImp = new DS_ApplicazioneTableAdapters.ImpegniTableAdapter(); + taDetImp = new DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter(); taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter(); } /// @@ -56,6 +57,7 @@ namespace WebSCR_data taAS.Connection.ConnectionString = connStr; taAZ.Connection.ConnectionString = connStr; taImp.Connection.ConnectionString = connStr; + taDetImp.Connection.ConnectionString = connStr; taFile.Connection.ConnectionString = connStrFiles; } @@ -76,6 +78,7 @@ namespace WebSCR_data public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS; public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ; public DS_ApplicazioneTableAdapters.ImpegniTableAdapter taImp; + public DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter taDetImp; public DS_UtilityTableAdapters.tblFilesTableAdapter taFile; public static DtProxy man = new DtProxy(); diff --git a/WebSCR_data/bin/Release/WebSCR_data.dll b/WebSCR_data/bin/Release/WebSCR_data.dll index 8da5cc4..4da5e6c 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/Release/DesignTimeResolveAssemblyReferencesInput.cache b/WebSCR_data/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache index 87e05a8..e997348 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 7c562b2..3c7e131 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 8da5cc4..4da5e6c 100644 Binary files a/WebSCR_data/obj/Release/WebSCR_data.dll and b/WebSCR_data/obj/Release/WebSCR_data.dll differ