Aggiunta funzionalità ricerca x articolo x ristampa ODL MAG
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
<i class="fa-2x fas fa-print"></i>
|
||||
<span class="shortcut-label">SEMILAVORATI</span>
|
||||
</a>--%>
|
||||
<a href="printCartOdl" class="shortcut">
|
||||
<i class="fa-2x text-dark fas fa-print"></i>
|
||||
<span class="shortcut-label">Stampa ODL</span>
|
||||
</a>
|
||||
<a href="packList" class="shortcut">
|
||||
<i class="fa-2x text-dark fas fa-shipping-fast"></i>
|
||||
<span class="shortcut-label">Richiesta PackList</span>
|
||||
|
||||
Generated
+8
-8
@@ -1,17 +1,17 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_MAG.SMART
|
||||
{
|
||||
|
||||
|
||||
public partial class menu
|
||||
{
|
||||
}
|
||||
public partial class menu
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_listODL.ascx.cs" Inherits="MP_MAG.WebUserControls.cmp_listODL" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/cmp_numRow.ascx" TagPrefix="uc1" TagName="cmp_numRow" %>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
@@ -7,9 +7,22 @@
|
||||
<div class="col-4">
|
||||
<h5>Ultimi ODL</h5>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<asp:DropDownList runat="server" ID="ddlMacchina" DataSourceID="odsMacchina" DataTextField="label" DataValueField="value" CssClass="form-input" AutoPostBack="true"></asp:DropDownList>
|
||||
<asp:ObjectDataSource runat="server" ID="odsMacchina" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MagData.DS_UtilityTableAdapters.selMacchineTableAdapter"></asp:ObjectDataSource>
|
||||
<div class="col-4">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-industry" aria-hidden="true"></i></span>
|
||||
</div>
|
||||
<asp:DropDownList runat="server" ID="ddlMacchina" DataSourceID="odsMacchina" DataTextField="label" DataValueField="value" CssClass="form-control" AutoPostBack="true"></asp:DropDownList>
|
||||
<asp:ObjectDataSource runat="server" ID="odsMacchina" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MagData.DS_UtilityTableAdapters.selMacchineTableAdapter"></asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="input-group">
|
||||
<asp:TextBox runat="server" ID="txtSearch" class="form-control" placeholder="Ricerca Articolo" />
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text"><i class="fa fa-search" aria-hidden="true"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,8 +38,8 @@
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbtReset" runat="server" OnClick="lbtReset_Click" CssClass="btn btn-sm btn-primary" Visible="true" ToolTip="Reset"><i class="fas fa-sync"></i></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<asp:LinkButton ID="lbtReset" runat="server" OnClick="lbtReset_Click" CssClass="btn btn-sm btn-primary" Visible="true" ToolTip="Reset"><i class="fas fa-sync"></i></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtSelect" runat="server" CausesValidation="False" CommandName="Select" CssClass="btn btn-sm btn-info"><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
@@ -52,10 +65,22 @@
|
||||
<asp:BoundField DataField="CodCli" HeaderText="CodCli" SortExpression="CodCli" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="original_{0}" SelectMethod="getLastByMacc" TypeName="MagData.DS_MagTableAdapters.ODLTableAdapter">
|
||||
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="original_{0}" SelectMethod="getLastByMacc" TypeName="MagData.DS_MagTableAdapters.ODLTableAdapter" FilterExpression=" CodArticolo LIKE '%{0}%'">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddlMacchina" DefaultValue="#" Name="IdxMacchina" PropertyName="SelectedValue" Type="String" />
|
||||
</SelectParameters>
|
||||
<FilterParameters>
|
||||
<asp:ControlParameter ControlID="txtSearch" DefaultValue="" Type="String" />
|
||||
</FilterParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
<uc1:cmp_numRow runat="server" ID="cmp_numRow" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -12,6 +12,11 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
#region Private Methods
|
||||
|
||||
private void Cmp_numRow_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = cmp_numRow.numRow;
|
||||
}
|
||||
|
||||
private void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
@@ -101,8 +106,10 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
grView.PageSize = 5;
|
||||
cmp_numRow.numRow = 10;
|
||||
grView.PageSize = cmp_numRow.numRow;
|
||||
}
|
||||
cmp_numRow.eh_doRefresh += Cmp_numRow_eh_doRefresh;
|
||||
}
|
||||
|
||||
protected int QtaUdcByOdl(int idxOdl)
|
||||
|
||||
+35
-17
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_MAG.WebUserControls
|
||||
@@ -15,39 +15,57 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ddlMacchina.
|
||||
/// ddlMacchina control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlMacchina;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsMacchina.
|
||||
/// odsMacchina control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsMacchina;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// txtSearch control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtSearch;
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// cmp_numRow control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::MP_MAG.WebUserControls.cmp_numRow cmp_numRow;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user