Inserita ricerca articoli con autocomplete x speedup...
This commit is contained in:
@@ -50,8 +50,8 @@ namespace C2P
|
||||
// aggiungo bundle dinamico x coffee --> jscript
|
||||
//bundles.Add(new DynamicFolderBundle("coffee", "*.coffee"));
|
||||
|
||||
//// abilito boundle "forzato"!
|
||||
//BundleTable.EnableOptimizations = true;
|
||||
// abilito boundle "forzato"!
|
||||
BundleTable.EnableOptimizations = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="ExistingProductOffer.aspx.cs" Inherits="C2P.ExistingProductOffer" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_autocomplete.ascx" TagPrefix="uc1" TagName="mod_autocomplete" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
@@ -13,33 +15,41 @@
|
||||
<div class="panel-body">
|
||||
<div class="row" style="font-size: 1.2em; line-height: 1.6em;">
|
||||
<div class="col-xs-3">
|
||||
<asp:DropDownList ID="ddlProduct" runat="server" DataSourceID="odsProducts" DataValueField="value" DataTextField="value" AutoPostBack="true" Font-Size="1.4em" />
|
||||
<asp:ObjectDataSource ID="odsProducts" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="C2P_Data.DS_UtilityTableAdapters.v_selItemsTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:UpdatePanel ID="upSelettore" runat="server" ViewStateMode="Disabled">
|
||||
<ContentTemplate>
|
||||
<uc1:mod_autocomplete runat="server" ID="acArticolo" contextKey="a" minCharAutocomplete="2" showKey="false" ServicePath="Services/WS_data.asmx/Items" placeholder="type to search" />
|
||||
<%--<asp:DropDownList ID="ddlProduct" runat="server" DataSourceID="odsProducts" DataValueField="value" DataTextField="value" AutoPostBack="true" Font-Size="1.4em" />
|
||||
<asp:ObjectDataSource ID="odsProducts" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="C2P_Data.DS_UtilityTableAdapters.v_selItemsTableAdapter"></asp:ObjectDataSource>--%>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
<asp:ListView ID="lstView" runat="server"></asp:ListView>
|
||||
<div class="shortcuts">
|
||||
<asp:Repeater ID="repView" runat="server" DataSourceID="ods">
|
||||
<ItemTemplate>
|
||||
<div class="shortcut">
|
||||
<%: traduci("RawMat") %>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Bind("RawMat") %>' Font-Bold="true" Font-Size="1.2em" />
|
||||
<div class="didascalia">
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Bind("numRec","{0} rec") %>' />
|
||||
</div>
|
||||
<div style="font-size: 0.7em;">
|
||||
<asp:HyperLink runat="server" ID="hlExistingProd" NavigateUrl='<%# getUrl(false,Eval("RawMat")) %>' CssClass="btn btn-success" Width="100%" Visible='<%# Convert.ToInt32(Eval("numRec")) > 0 %>'><%: traduci("ExistingProduct")%></asp:HyperLink>
|
||||
<asp:HyperLink runat="server" ID="hlNewProd" NavigateUrl='<%# getUrl(true,Eval("RawMat")) %>' CssClass="btn btn-warning" Width="100%" Visible='<%# Convert.ToInt32(Eval("numRec")) == 0 %>'><%: traduci("NewProduct")%></asp:HyperLink>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
</div>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="C2P_Data.DS_UtilityTableAdapters.Offers4ItemTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddlProduct" DefaultValue="" Name="CodItem" PropertyName="SelectedValue" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:UpdatePanel ID="upItems" runat="server">
|
||||
<ContentTemplate>
|
||||
<div class="shortcuts">
|
||||
<asp:Repeater ID="repView" runat="server" DataSourceID="ods">
|
||||
<ItemTemplate>
|
||||
<div class="shortcut">
|
||||
<%: traduci("RawMat") %>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Bind("RawMat") %>' Font-Bold="true" Font-Size="1.2em" />
|
||||
<div class="didascalia">
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Bind("numRec","{0} rec") %>' />
|
||||
</div>
|
||||
<div style="font-size: 0.7em;">
|
||||
<asp:HyperLink runat="server" ID="hlExistingProd" NavigateUrl='<%# getUrl(false,Eval("RawMat")) %>' CssClass="btn btn-success" Width="100%" Visible='<%# Convert.ToInt32(Eval("numRec")) > 0 %>'><%: traduci("ExistingProduct")%></asp:HyperLink>
|
||||
<asp:HyperLink runat="server" ID="hlNewProd" NavigateUrl='<%# getUrl(true,Eval("RawMat")) %>' CssClass="btn btn-warning" Width="100%" Visible='<%# Convert.ToInt32(Eval("numRec")) == 0 %>'><%: traduci("NewProduct")%></asp:HyperLink>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
</div>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="C2P_Data.DS_UtilityTableAdapters.Offers4ItemTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="acArticolo" DefaultValue="" Name="CodItem" PropertyName="valore" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace C2P
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
repView.Visible = (acArticolo.valore != "");
|
||||
}
|
||||
/// <summary>
|
||||
/// url x rimbalzo offerta
|
||||
@@ -28,13 +29,14 @@ namespace C2P
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
string product = acArticolo.valore;
|
||||
if (isNew)
|
||||
{
|
||||
answ = string.Format("~/NewProductOffer?RawMat={0}&CodItem={1}", _rawMat, ddlProduct.SelectedValue);
|
||||
answ = string.Format("~/NewProductOffer?RawMat={0}&CodItem={1}", _rawMat, product);
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = string.Format("~/Quote?RawMat={0}&CodItem={1}", _rawMat, ddlProduct.SelectedValue);
|
||||
answ = string.Format("~/Quote?RawMat={0}&CodItem={1}", _rawMat, product);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
+6
-6
@@ -13,31 +13,31 @@ namespace C2P {
|
||||
public partial class ExistingProductOffer {
|
||||
|
||||
/// <summary>
|
||||
/// ddlProduct control.
|
||||
/// upSelettore 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.DropDownList ddlProduct;
|
||||
protected global::System.Web.UI.UpdatePanel upSelettore;
|
||||
|
||||
/// <summary>
|
||||
/// odsProducts control.
|
||||
/// acArticolo 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.ObjectDataSource odsProducts;
|
||||
protected global::C2P.WebUserControls.mod_autocomplete acArticolo;
|
||||
|
||||
/// <summary>
|
||||
/// lstView control.
|
||||
/// upItems 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.ListView lstView;
|
||||
protected global::System.Web.UI.UpdatePanel upItems;
|
||||
|
||||
/// <summary>
|
||||
/// repView control.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+2
-2
@@ -5,7 +5,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("0.6.61.162")]
|
||||
[assembly: AssemblyFileVersion("0.6.61.162")]
|
||||
[assembly: AssemblyVersion("0.6.62.162")]
|
||||
[assembly: AssemblyFileVersion("0.6.62.162")]
|
||||
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-2014")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("0.6.61.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("0.6.61.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyVersion("0.6.62.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("0.6.62.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
|
||||
Reference in New Issue
Block a user