completate funzioni active task

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@203 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2010-08-26 08:47:42 +00:00
parent 37a1e79854
commit dc68694040
7 changed files with 149 additions and 11 deletions
@@ -13,11 +13,35 @@
</div>
</asp:Panel>
<asp:Panel runat="server" ID="pnlListaPrelievo">
<asp:Label runat="server" ID="lblListaAttiva" />
<br />
<asp:HyperLink runat="server" ID="hkListaAttiva" NavigateUrl="~/ListePrelievo.aspx" />
<div style="text-align: left;">
<asp:Label runat="server" ID="lblListaAttiva" />
</div>
<div style="text-align: right;">
<b>
<asp:HyperLink runat="server" ID="hlListaAttiva" NavigateUrl="~/ListePrelievo.aspx" />
</b>
</div>
</asp:Panel>
<asp:Panel runat="server" ID="pnlBarcode">
<div style="text-align: left;">
<asp:Label runat="server" ID="lblBarcode" />
</div>
<div style="text-align: right;">
<b>
<asp:HyperLink runat="server" ID="hlBarcode" NavigateUrl="~/Barcode.aspx" />
</b>
</div>
</asp:Panel>
<asp:Panel runat="server" ID="pnlRicerca">
<div style="text-align: left;">
<asp:Label runat="server" ID="lblRicerca" />
</div>
<div style="text-align: right;">
<b>
<asp:HyperLink runat="server" ID="hlRicerca" NavigateUrl="~/Search.aspx" />
</b>
</div>
</asp:Panel>
ultimo barcode scannato
<br />
ultimo comando digitato
</div>
</div>
@@ -54,6 +54,8 @@ namespace GMW_Term.WebUserControls
if (!Page.IsPostBack)
{
lblListaAttiva.Text = "Lista prelievo attiva:";
lblBarcode.Text = "Ultimo barcode:";
lblRicerca.Text = "Ultima ricerca:";
}
disegnaControlli();
}
@@ -66,13 +68,32 @@ namespace GMW_Term.WebUserControls
if (memLayer.ML.isInSessionObject("CodListaAttiva"))
{
pnlListaPrelievo.Visible = true;
hkListaAttiva.Text = memLayer.ML.StringSessionObj("CodListaAttiva");
hlListaAttiva.Text = memLayer.ML.StringSessionObj("CodListaAttiva");
}
else
{
pnlListaPrelievo.Visible = false;
}
// altri valori
// altri valori: barcode
if (memLayer.ML.isInSessionObject("scannedValue"))
{
pnlBarcode.Visible = true;
hlBarcode.Text = memLayer.ML.StringSessionObj("scannedValue");
}
else
{
pnlListaPrelievo.Visible = false;
}
// altri valori: ricerca
if (memLayer.ML.isInSessionObject("searchValue"))
{
pnlRicerca.Visible = true;
hlRicerca.Text = memLayer.ML.StringSessionObj("searchValue");
}
else
{
pnlRicerca.Visible = false;
}
}
/// <summary>
+56 -2
View File
@@ -68,12 +68,66 @@ namespace GMW_Term.WebUserControls {
protected global::System.Web.UI.WebControls.Label lblListaAttiva;
/// <summary>
/// hkListaAttiva control.
/// hlListaAttiva 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.HyperLink hkListaAttiva;
protected global::System.Web.UI.WebControls.HyperLink hlListaAttiva;
/// <summary>
/// pnlBarcode 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.Panel pnlBarcode;
/// <summary>
/// lblBarcode 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.Label lblBarcode;
/// <summary>
/// hlBarcode 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.HyperLink hlBarcode;
/// <summary>
/// pnlRicerca 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.Panel pnlRicerca;
/// <summary>
/// lblRicerca 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.Label lblRicerca;
/// <summary>
/// hlRicerca 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.HyperLink hlRicerca;
}
}
+2 -1
View File
@@ -8,7 +8,8 @@
<asp:UpdatePanel ID="updPanel1" runat="server">
<ContentTemplate>
<div id="Data" style="padding-bottom: 10px;">
<asp:TextBox ID="txtRicerca" runat="server" />
<asp:TextBox ID="txtRicerca" runat="server"
ontextchanged="txtRicerca_TextChanged" />
<cc1:AutoCompleteExtender ID="aceSearch" runat="server" TargetControlID="txtRicerca"
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoParticolari">
</cc1:AutoCompleteExtender>
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace GMW_Term.WebUserControls
{
@@ -15,5 +16,42 @@ namespace GMW_Term.WebUserControls
//lblTitle.Text = (string)(Session["loginName"]);
}
/// <summary>
/// in caso di valore cercato...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtRicerca_TextChanged(object sender, EventArgs e)
{
valoreRicerca = txtSearch;
}
/// <summary>
/// testo contenuto nella textbox
/// </summary>
public string txtSearch
{
get
{
return txtRicerca.Text.Trim();
}
set
{
txtRicerca.Text = value;
}
}
/// <summary>
/// valore della scansione barcode
/// </summary>
public string valoreRicerca
{
get
{
return memLayer.ML.StringSessionObj("searchValue");
}
set
{
memLayer.ML.setSessionVal("searchValue", value, false);
}
}
}
}
Binary file not shown.
Binary file not shown.