Sistemato liste di prelievo x task attivi
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@202 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Compact.Master"
|
||||
AutoEventWireup="true" CodeBehind="ActiveTask.aspx.cs" Inherits="GMW_Term.ActiveTask" %>
|
||||
|
||||
<%@ Register src="WebUserControls/mod_activeTask.ascx" tagname="mod_activeTask" tagprefix="uc1" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
w.i.p.
|
||||
<uc1:mod_activeTask ID="mod_activeTask1" runat="server" />
|
||||
|
||||
</asp:Content>
|
||||
|
||||
Generated
+9
@@ -12,5 +12,14 @@ namespace GMW_Term {
|
||||
|
||||
|
||||
public partial class ActiveTask {
|
||||
|
||||
/// <summary>
|
||||
/// mod_activeTask1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW_Term.WebUserControls.mod_activeTask mod_activeTask1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,6 +81,13 @@
|
||||
<Compile Include="UDC.aspx.designer.cs">
|
||||
<DependentUpon>UDC.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_activeTask.ascx.cs">
|
||||
<DependentUpon>mod_activeTask.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_activeTask.ascx.designer.cs">
|
||||
<DependentUpon>mod_activeTask.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_barcode.ascx.cs">
|
||||
<DependentUpon>mod_barcode.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -213,6 +220,7 @@
|
||||
<Content Include="images\view_m.png" />
|
||||
<Content Include="images\view_s.png" />
|
||||
<Content Include="UDC.aspx" />
|
||||
<Content Include="WebUserControls\mod_activeTask.ascx" />
|
||||
<Content Include="WebUserControls\mod_barcode.ascx" />
|
||||
<Content Include="WebUserControls\mod_currentTask.ascx" />
|
||||
<Content Include="WebUserControls\mod_execUdc.ascx" />
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_activeTask.ascx.cs"
|
||||
Inherits="GMW_Term.WebUserControls.mod_activeTask" %>
|
||||
<div id="contenuto" style="text-align: center;">
|
||||
<div id="InputTitle">
|
||||
<asp:Label ID="lblInput" runat="server" Text="Task Attivi" />
|
||||
</div>
|
||||
<asp:Panel runat="server" ID="pnlMaster" Visible="true">
|
||||
<div id="Button">
|
||||
<asp:Button ID="btnLoginPage" runat="server" OnClick="btnLoginPage_Click" Width="100px"
|
||||
Font-Size="Smaller" />
|
||||
<asp:Button ID="btnButtonsHome" runat="server" OnClick="btnButtonsHome_Click" Width="100px"
|
||||
Font-Size="Smaller" />
|
||||
</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" />
|
||||
</asp:Panel>
|
||||
ultimo barcode scannato
|
||||
<br />
|
||||
ultimo comando digitato
|
||||
</div>
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW_Term.WebUserControls
|
||||
{
|
||||
public partial class mod_activeTask : System.Web.UI.UserControl
|
||||
{
|
||||
// variabile per verificare se è operatore
|
||||
bool _validUserInSession = false;
|
||||
/// <summary>
|
||||
/// Verifica se c'è un valore in sessione di tipo operatore
|
||||
/// </summary>
|
||||
protected void verificaOperatoreInSessione()
|
||||
{
|
||||
if (string.IsNullOrEmpty(user_std.UtSn.utente))
|
||||
{
|
||||
_validUserInSession = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
_validUserInSession = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// metodi al caricamento della pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// scrive label e text bottoni
|
||||
btnLoginPage.Text = "[7]-LogOut";
|
||||
btnLoginPage.AccessKey = "7";
|
||||
btnButtonsHome.Text = "[9]-Home";
|
||||
btnButtonsHome.AccessKey = "9";
|
||||
// se username è valorizzato...
|
||||
verificaOperatoreInSessione();
|
||||
if (_validUserInSession)
|
||||
{
|
||||
btnLoginPage.Visible = true;
|
||||
btnButtonsHome.Visible = true;
|
||||
}
|
||||
// se non è valorizzato chiede di effettuare login...
|
||||
else
|
||||
{
|
||||
Response.Redirect("Home.aspx");
|
||||
}
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
lblListaAttiva.Text = "Lista prelievo attiva:";
|
||||
}
|
||||
disegnaControlli();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistema i controlli visualizzati
|
||||
/// </summary>
|
||||
private void disegnaControlli()
|
||||
{
|
||||
// liste prelievo
|
||||
if (memLayer.ML.isInSessionObject("CodListaAttiva"))
|
||||
{
|
||||
pnlListaPrelievo.Visible = true;
|
||||
hkListaAttiva.Text = memLayer.ML.StringSessionObj("CodListaAttiva");
|
||||
}
|
||||
else
|
||||
{
|
||||
pnlListaPrelievo.Visible = false;
|
||||
}
|
||||
// altri valori
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua logout...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnLoginPage_Click(object sender, EventArgs e)
|
||||
{
|
||||
user_std.UtSn.logOffUtente();
|
||||
Response.Redirect("~/Barcode.aspx");
|
||||
}
|
||||
/// <summary>
|
||||
/// va alla pagina dei buttons principale
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnButtonsHome_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/Home.aspx");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW_Term.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_activeTask {
|
||||
|
||||
/// <summary>
|
||||
/// lblInput 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 lblInput;
|
||||
|
||||
/// <summary>
|
||||
/// pnlMaster 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 pnlMaster;
|
||||
|
||||
/// <summary>
|
||||
/// btnLoginPage 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.Button btnLoginPage;
|
||||
|
||||
/// <summary>
|
||||
/// btnButtonsHome 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.Button btnButtonsHome;
|
||||
|
||||
/// <summary>
|
||||
/// pnlListaPrelievo 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 pnlListaPrelievo;
|
||||
|
||||
/// <summary>
|
||||
/// lblListaAttiva 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 lblListaAttiva;
|
||||
|
||||
/// <summary>
|
||||
/// hkListaAttiva 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;
|
||||
}
|
||||
}
|
||||
@@ -452,6 +452,8 @@ namespace GMW_Term.WebUserControls
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
memLayer.ML.setSessionVal("activeTask", string.Format("Lista Prelievo {0}", codLista));
|
||||
memLayer.ML.setSessionVal("CodListaAttiva", codLista);
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
break;
|
||||
@@ -465,6 +467,8 @@ namespace GMW_Term.WebUserControls
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
memLayer.ML.emptySessionVal("CodListaAttiva");
|
||||
memLayer.ML.emptySessionVal("activeTask");
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
break;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user