diff --git a/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx index 5af1159e..c0bf2636 100644 --- a/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx +++ b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx @@ -10,7 +10,7 @@
- + diff --git a/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.cs b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.cs index 6a23c7f6..1b1d6fe2 100644 --- a/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.cs +++ b/MP-ADM/WebUserControls/cmp_TechSheetArt.ascx.cs @@ -9,8 +9,30 @@ namespace MP_ADM.WebUserControls { public partial class cmp_TechSheetArt : BaseUserControl { + #region Public Properties + + public int IdxStSel + { + get + { + int answ = 0; + if (grView.SelectedIndex >= 0) + { + int.TryParse($"{grView.SelectedValue}", out answ); + } + return answ; + } + } + + #endregion Public Properties + #region Protected Methods + protected void grView_SelectedIndexChanged(object sender, EventArgs e) + { + raiseSelNew(); + } + /// /// comando reset /// diff --git a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx index 635f8e20..10207f67 100644 --- a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx +++ b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx @@ -1,3 +1,33 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_TechSheetDetail.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_TechSheetDetail" %> -Dettaglio singolo articolo \ No newline at end of file + + + + + + + Nessun record trovato + + + <%----%> + + <%----%> + + <%----%> + + <%----%> + + + + + + + <%----%> + + + + + + + + \ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs index d347fac5..4170acda 100644 --- a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs +++ b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs @@ -7,11 +7,43 @@ using System.Web.UI.WebControls; namespace MP_ADM.WebUserControls { - public partial class cmp_TechSheetDetail : System.Web.UI.UserControl + public partial class cmp_TechSheetDetail : BaseUserControl { + #region Public Properties + + public int IdxST + { + get + { + int answ = 0; + int.TryParse(hfIdxST.Value, out answ); + return answ; + } + set + { + hfIdxST.Value = $"{value}"; + doUpdate(); + } + } + + #endregion Public Properties + + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { - } + + #endregion Protected Methods + + #region Public Methods + + public void doUpdate() + { + grView.SelectedIndex = -1; + grView.DataBind(); + } + + #endregion Public Methods } } \ No newline at end of file diff --git a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.designer.cs b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.designer.cs index ea13db43..7c96bbfc 100644 --- a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.designer.cs +++ b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.designer.cs @@ -13,5 +13,32 @@ namespace MP_ADM.WebUserControls public partial class cmp_TechSheetDetail { + + /// + /// Controllo grView. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.GridView grView; + + /// + /// Controllo ods. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// Controllo hfIdxST. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfIdxST; } } diff --git a/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.cs b/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.cs index 5343da17..08a6961b 100644 --- a/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.cs +++ b/MP-ADM/WebUserControls/cmp_TechSheetMan.ascx.cs @@ -9,21 +9,30 @@ namespace MP_ADM.WebUserControls { public partial class cmp_TechSheetMan : System.Web.UI.UserControl { + #region Protected Fields + + protected int dummyArt = 0; + + #endregion Protected Fields + #region Private Methods private void Cmp_TechSheetArt_eh_nuovoValore(object sender, EventArgs e) { - cmp_TechSheetDetail.Visible = true; + cmp_TechSheetDetail.IdxST = dummyArt; + //cmp_TechSheetDetail.Visible = false; } private void Cmp_TechSheetArt_eh_resetSelezione(object sender, EventArgs e) { - cmp_TechSheetDetail.Visible = false; + cmp_TechSheetDetail.IdxST = dummyArt; + //cmp_TechSheetDetail.Visible = false; } private void Cmp_TechSheetArt_eh_selValore(object sender, EventArgs e) { - cmp_TechSheetDetail.Visible = true; + //cmp_TechSheetDetail.Visible = true; + cmp_TechSheetDetail.IdxST = cmp_TechSheetArt.IdxStSel; } #endregion Private Methods @@ -35,7 +44,8 @@ namespace MP_ADM.WebUserControls if (!Page.IsPostBack) { cmp_TechSheetArt.resetSelezione(); - cmp_TechSheetDetail.Visible = false; + cmp_TechSheetDetail.IdxST = dummyArt; + //cmp_TechSheetDetail.Visible = false; } cmp_TechSheetArt.eh_nuovoValore += Cmp_TechSheetArt_eh_nuovoValore; cmp_TechSheetArt.eh_selValore += Cmp_TechSheetArt_eh_selValore; diff --git a/MP-TAB/WebUserControls/cmp_ST_detail.ascx b/MP-TAB/WebUserControls/cmp_ST_detail.ascx index 286af9dd..96808926 100644 --- a/MP-TAB/WebUserControls/cmp_ST_detail.ascx +++ b/MP-TAB/WebUserControls/cmp_ST_detail.ascx @@ -16,7 +16,7 @@ - + diff --git a/MapoDb/DS_SheetTech.Designer.cs b/MapoDb/DS_SheetTech.Designer.cs index 6ea994dc..a31a7678 100644 --- a/MapoDb/DS_SheetTech.Designer.cs +++ b/MapoDb/DS_SheetTech.Designer.cs @@ -4376,7 +4376,7 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 DescGruppo, DescTipo, IdxST, Label, Oggetto, Num, CodGruppo, CodTip" + @@ -4399,10 +4399,16 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", 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_ST_AR_getPendingOdl"; + this._commandCollection[3].CommandText = "dbo.stp_ST_AR_getByIdxST"; 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("@IdxODL", 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("@IdxST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_ST_AR_getPendingOdl"; + 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("@IdxODL", 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()] @@ -4493,7 +4499,7 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_SheetTech.ST_ActualRowDataTable getByCodArt(string CodGruppo, global::System.Nullable IdxODL) { + public virtual DS_SheetTech.ST_ActualRowDataTable getByGrpOdl(string CodGruppo, global::System.Nullable IdxODL) { this.Adapter.SelectCommand = this.CommandCollection[2]; if ((CodGruppo == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; @@ -4516,8 +4522,25 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_SheetTech.ST_ActualRowDataTable getPendingByOdl(global::System.Nullable IdxODL) { + public virtual DS_SheetTech.ST_ActualRowDataTable getByST(global::System.Nullable IdxST) { this.Adapter.SelectCommand = this.CommandCollection[3]; + if ((IdxST.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxST.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + DS_SheetTech.ST_ActualRowDataTable dataTable = new DS_SheetTech.ST_ActualRowDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_SheetTech.ST_ActualRowDataTable getPendingByOdl(global::System.Nullable IdxODL) { + this.Adapter.SelectCommand = this.CommandCollection[4]; if ((IdxODL.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxODL.Value)); } diff --git a/MapoDb/DS_SheetTech.xsd b/MapoDb/DS_SheetTech.xsd index 90772d06..29c011cf 100644 --- a/MapoDb/DS_SheetTech.xsd +++ b/MapoDb/DS_SheetTech.xsd @@ -148,7 +148,7 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require - + dbo.stp_ST_AR_getByGrpArtOdl @@ -160,6 +160,17 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require + + + + dbo.stp_ST_AR_getByIdxST + + + + + + + diff --git a/MapoDb/DS_SheetTech.xss b/MapoDb/DS_SheetTech.xss index e705585f..a48aaa0a 100644 --- a/MapoDb/DS_SheetTech.xss +++ b/MapoDb/DS_SheetTech.xss @@ -4,10 +4,10 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - + + @@ -67,7 +67,7 @@ - + 727