Completata gestione BASE del filtro x tutto (da impostare su GRUPPI non DDL...)
This commit is contained in:
@@ -54,26 +54,6 @@
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header bg-secondary text-light">
|
||||
<h4>Articoli</h4>
|
||||
</div>
|
||||
<div class="card-body p-1">
|
||||
<asp:GridView runat="server" ID="gvParetoArt" AutoGenerateColumns="False" DataSourceID="odsStArt" CssClass="table table-striped table-sm my-0" PageSize="5" AllowPaging="True" AllowSorting="True">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="CodArticolo" HeaderText="Cod Art" SortExpression="CodArticolo" />
|
||||
<asp:BoundField DataField="TotQty" HeaderText="Tot #" SortExpression="TotQty" DataFormatString="{0:N0}" />
|
||||
<asp:BoundField DataField="TotOreRich" HeaderText="Tot Rich (h)" ReadOnly="True" SortExpression="TotOreRich" DataFormatString="{0:N2}" />
|
||||
<asp:BoundField DataField="TotOrePlan" HeaderText="Tot Plan (h)" ReadOnly="True" SortExpression="TotOrePlan" DataFormatString="{0:N2}" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="odsStArt" OldValuesParameterFormatString="original_{0}" SelectMethod="getFilt" TypeName="MapoDb.DS_PlanTableAdapters.planStatsArtTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddlCodGruppo" DefaultValue="*" Name="CodGruppo" PropertyName="SelectedValue" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header bg-secondary text-light">
|
||||
<h4>Gruppi</h4>
|
||||
@@ -103,7 +83,31 @@
|
||||
<asp:BoundField DataField="TotOrePlan" HeaderText="Tot Plan (h)" ReadOnly="True" SortExpression="TotOrePlan" DataFormatString="{0:N2}" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="odsStMac" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_PlanTableAdapters.planStatsMaccTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource runat="server" ID="odsStMac" OldValuesParameterFormatString="original_{0}" SelectMethod="getFilt" TypeName="MapoDb.DS_PlanTableAdapters.planStatsMaccTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddlCodGruppo" DefaultValue="*" Name="CodGruppo" PropertyName="SelectedValue" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header bg-secondary text-light">
|
||||
<h4>Articoli</h4>
|
||||
</div>
|
||||
<div class="card-body p-1">
|
||||
<asp:GridView runat="server" ID="gvParetoArt" AutoGenerateColumns="False" DataSourceID="odsStArt" CssClass="table table-striped table-sm my-0" PageSize="5" AllowPaging="True" AllowSorting="True">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="CodArticolo" HeaderText="Cod Art" SortExpression="CodArticolo" />
|
||||
<asp:BoundField DataField="TotQty" HeaderText="Tot #" SortExpression="TotQty" DataFormatString="{0:N0}" />
|
||||
<asp:BoundField DataField="TotOreRich" HeaderText="Tot Rich (h)" ReadOnly="True" SortExpression="TotOreRich" DataFormatString="{0:N2}" />
|
||||
<asp:BoundField DataField="TotOrePlan" HeaderText="Tot Plan (h)" ReadOnly="True" SortExpression="TotOrePlan" DataFormatString="{0:N2}" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="odsStArt" OldValuesParameterFormatString="original_{0}" SelectMethod="getFilt" TypeName="MapoDb.DS_PlanTableAdapters.planStatsArtTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddlCodGruppo" DefaultValue="*" Name="CodGruppo" PropertyName="SelectedValue" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+18
-18
@@ -57,24 +57,6 @@ namespace MP_ADM.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsStGlb;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo gvParetoArt.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView gvParetoArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsStArt.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsStArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo gvParetoGrp.
|
||||
/// </summary>
|
||||
@@ -110,5 +92,23 @@ namespace MP_ADM.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsStMac;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo gvParetoArt.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView gvParetoArt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsStArt.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsStArt;
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+24
-1
@@ -3402,11 +3402,17 @@ namespace MapoDb.DS_PlanTableAdapters {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
||||
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 *\r\nFROM dbo.v_planStatsMacc\r\nORDER BY TotOreRich DESC";
|
||||
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_PSM_filt";
|
||||
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("@CodGruppo", 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()]
|
||||
@@ -3432,6 +3438,23 @@ namespace MapoDb.DS_PlanTableAdapters {
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_Plan.planStatsMaccDataTable getFilt(string CodGruppo) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((CodGruppo == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodGruppo));
|
||||
}
|
||||
DS_Plan.planStatsMaccDataTable dataTable = new DS_Plan.planStatsMaccDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+13
-1
@@ -112,7 +112,19 @@ ORDER BY TotOreRich DESC</CommandText>
|
||||
<Mapping SourceColumn="TotOrePlan" DataSetColumn="TotOrePlan" />
|
||||
<Mapping SourceColumn="TotQty" DataSetColumn="TotQty" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="MoonPro_ES3ConnectionString (Settings)" DbObjectName="MoonPro_ES3.dbo.stp_PSM_filt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getFilt" GetMethodModifier="Public" GetMethodName="getFilt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getFilt" UserSourceName="getFilt">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_PSM_filt</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodGruppo" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagraficaGruppiTableAdapter" GeneratorDataComponentClassName="AnagraficaGruppiTableAdapter" Name="AnagraficaGruppi" UserDataComponentName="AnagraficaGruppiTableAdapter">
|
||||
<MainSource>
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
<Shape ID="DesignTable:planStatsGlobal" ZOrder="5" X="108" Y="55" Height="227" Width="280" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
|
||||
<Shape ID="DesignTable:planStatsArt" ZOrder="4" X="448" Y="61" Height="204" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:planStatsGroup" ZOrder="3" X="113" Y="292" Height="181" Width="278" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:planStatsMacc" ZOrder="2" X="448" Y="292" Height="181" Width="270" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:planStatsMacc" ZOrder="2" X="448" Y="292" Height="204" Width="270" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
<Shape ID="DesignTable:AnagraficaGruppi" ZOrder="1" X="820" Y="81" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
|
||||
Reference in New Issue
Block a user