Gestione Accesso XPS
Attenzione, se non è possibile accedere all'applicazione prego richiedere autorizzazione al responsabile del progetto.
diff --git a/XPS/WebUserControls/mod_barcode.ascx b/XPS/WebUserControls/mod_barcode.ascx
deleted file mode 100644
index f331765..0000000
--- a/XPS/WebUserControls/mod_barcode.ascx
+++ /dev/null
@@ -1,19 +0,0 @@
-<%@ Control Language="C#" AutoEventWireup="true" Inherits="XPS.WebUserControls.mod_barcode"
- CodeBehind="mod_barcode.ascx.cs" %>
-
diff --git a/XPS/WebUserControls/mod_barcode.ascx.cs b/XPS/WebUserControls/mod_barcode.ascx.cs
deleted file mode 100644
index ee86ec1..0000000
--- a/XPS/WebUserControls/mod_barcode.ascx.cs
+++ /dev/null
@@ -1,238 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using SteamWare;
-
-namespace XPS.WebUserControls
-{
- public partial class mod_barcode : SteamWare.UserControl
- {
- #region area protected
-
- ///
- /// dictionary comandi ammessi
- ///
- protected Dictionary
_comandi = new Dictionary();
- ///
- /// dictionary dei valori ammessi
- ///
- protected Dictionary _tabValori = new Dictionary();
- ///
- /// oggetto comando locale alla classe
- ///
- protected inputComando comando
- {
- get
- {
- inputComando answ;
- if (memLayer.ML.isInSessionObject("barcodeCmd"))
- {
- answ = (inputComando)memLayer.ML.objSessionObj("barcodeCmd");
- }
- else
- {
- answ = new inputComando();
- }
- return answ;
- }
- set
- {
- memLayer.ML.setSessionVal("barcodeCmd", value, false);
- }
- }
- ///
- /// al caricamento della pagina...
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- DetectAgent();
- myInitialize();
- }
- ///
- /// inizializzazione specifica barcode
- ///
- private void myInitialize()
- {
- lblInput.Text = traduci("PregoInserireBarcode");
- if (!Page.IsPostBack) comando = new inputComando();
- txtInput.Focus();
- }
- ///
- /// barcode completato con invio...
- ///
- ///
- ///
- protected void txtInput_TextChanged(object sender, EventArgs e)
- {
- // verifico se sia un comando o un valore valido...
- isInputEvent();
- isValore();
- // verifico se c'è stato input evento
- if (comando.isValid)
- {
- if (comando.currCmdIn != "")
- {
- txtInput2show = comando.descrComando;
- }
- else
- {
- txtInput2show = "---";
- }
- if (comando.valore != "")
- {
- txtVal2show = comando.valoreTrad;
- }
- else
- {
- txtVal2show = "---";
- }
- if (eh_comandoRegistrato != null)
- {
- eh_comandoRegistrato(this, new EventArgs());
- }
- }
- else
- {
- lblInput.Text = traduci("ComandoSconosciuto");
- lblValore.Text = txtInput.Text;
- comando = new inputComando();
- }
- txtInput.Text = "";
- }
- ///
- /// verifico se sia un valore compreso nell'elenco fornito
- ///
- private void isValore()
- {
- if (_tabValori.ContainsKey(txtInput.Text)) // verifico se il comando digitato esista...
- {
- comando.isValid = true;
- comando.valore = txtInput.Text;
- _tabValori.TryGetValue(txtInput.Text, out comando.valoreTrad);
- }
- }
- ///
- /// verifica se il comando inserito sia valido
- ///
- private void isInputEvent()
- {
- if (_comandi.ContainsKey(txtInput.Text)) // verifico se il comando digitato esista...
- {
- comando.isValid = true;
- // salvo comando precedente (se c'è...)
- comando.prevCmdIn = comando.currCmdIn;
- comando.descrComandoPrev = comando.descrComando;
- comando.currCmdIn = txtInput.Text;
- _comandi.TryGetValue(txtInput.Text, out comando.descrComando);
- }
- }
- ///
- /// verifica quale browser usato e applica css corretto al div attorno al box
- ///
- private void DetectAgent()
- {
- System.Web.HttpBrowserCapabilities browser = Request.Browser;
- if (browser.Browser == "IE")
- {
- pnlBarcodeBox.CssClass = "barcodeBoxIE";
- }
- else
- {
- pnlBarcodeBox.CssClass = "barcodeBoxOther";
- }
- }
-
- #endregion
-
- #region area public
-
- ///
- /// elenco dei comandi riconosciuti
- ///
- public Dictionary comandiAmmessi
- {
- get
- {
- return _comandi;
- }
- set
- {
- _comandi = value;
- }
- }
- ///
- /// tabella di valori ammissibili
- ///
- public Dictionary tabValori
- {
- get
- {
- return _tabValori;
- }
- set
- {
- _tabValori = value;
- }
- }
- ///
- /// evento comando registrato
- ///
- public event EventHandler eh_comandoRegistrato;
- ///
- /// comando registrato dal barcode
- ///
- public inputComando comandoRegistrato
- {
- get
- {
- return comando;
- }
- }
- ///
- /// scrive nella label input
- ///
- public string txtInput2show
- {
- set
- {
- lblInput.Text = value;
- }
- }
- ///
- /// scrive nella label valore
- ///
- public string txtVal2show
- {
- set
- {
- lblValore.Text = value;
- }
- }
- ///
- /// scrive nella label richiesta
- ///
- public string txtRich2show
- {
- set
- {
- lblRichiesta.Text = value;
- }
- }
- ///
- /// reset del controllo
- ///
- public void resetMe()
- {
- comando = new inputComando();
- txtInput2show = "Prego inserire barcode";
- txtVal2show = "";
- txtRich2show = "";
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/XPS/WebUserControls/mod_barcode.ascx.designer.cs b/XPS/WebUserControls/mod_barcode.ascx.designer.cs
deleted file mode 100644
index 8ebad1e..0000000
--- a/XPS/WebUserControls/mod_barcode.ascx.designer.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.4963
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace XPS.WebUserControls {
-
-
- public partial class mod_barcode {
-
- ///
- /// txtInput control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox txtInput;
-
- ///
- /// pnlBarcodeBox control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Panel pnlBarcodeBox;
-
- ///
- /// lblInput control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label lblInput;
-
- ///
- /// lblValore control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label lblValore;
-
- ///
- /// lblRichiesta control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label lblRichiesta;
-
- ///
- /// lblBrowser control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label lblBrowser;
- }
-}
diff --git a/XPS/XPS.csproj b/XPS/XPS.csproj
index 9f6e23c..021415a 100644
--- a/XPS/XPS.csproj
+++ b/XPS/XPS.csproj
@@ -393,13 +393,6 @@
-
- barcode.aspx
- ASPXCodeBehind
-
-
- barcode.aspx
-
Bootstrap.Master
ASPXCodeBehind
@@ -558,13 +551,6 @@
mod_anagraficaStati.ascx
-
- mod_barcode.ascx
- ASPXCodeBehind
-
-
- mod_barcode.ascx
-
mod_chLang.ascx
ASPXCodeBehind
@@ -846,7 +832,6 @@
-
@@ -863,7 +848,6 @@
-
diff --git a/XPS/barcode.aspx b/XPS/barcode.aspx
deleted file mode 100644
index 4818e11..0000000
--- a/XPS/barcode.aspx
+++ /dev/null
@@ -1,10 +0,0 @@
-<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/CompactBCode.Master"
- AutoEventWireup="true" Inherits="barcode" CodeBehind="barcode.aspx.cs" %>
-
-<%@ Register Src="WebUserControls/mod_barcode.ascx" TagName="mod_barcode" TagPrefix="uc1" %>
-
-
-
-
-
-
diff --git a/XPS/barcode.aspx.cs b/XPS/barcode.aspx.cs
deleted file mode 100644
index 186fbbe..0000000
--- a/XPS/barcode.aspx.cs
+++ /dev/null
@@ -1,141 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using SteamWare;
-using XPS_data;
-
-public partial class barcode : System.Web.UI.Page
-{
- protected void Page_Load(object sender, EventArgs e)
- {
- traduciObj();
- setupComandiBarcode();
- setupValoriBarcode();
- mod_barcode1.eh_comandoRegistrato += new EventHandler(mod_barcode1_eh_comandoRegistrato);
- }
-
- private void traduciObj()
- {
- hlMenu.Text = user_std.UtSn.Traduci("hlMenu");
- }
- ///
- /// effettuo il setup dei valori ammessi x il barcode...
- ///
- private void setupValoriBarcode()
- {
- XPS_data.DS_applicazioneTableAdapters.v_commesseTableAdapter taCommesse = new XPS_data.DS_applicazioneTableAdapters.v_commesseTableAdapter();
- DS_applicazione.v_commesseDataTable _tabComm = taCommesse.GetData();
- Dictionary valori = new Dictionary();
- // aggiungo i DDT...
- foreach (DS_applicazione.v_commesseRow riga in _tabComm)
- {
- // QUI formattazione campi mostrati a barcode
- valori.Add(riga.Cod.ToString(), string.Format("{0} - {7}
{1} DDT {2} del {3:dd MMM yyyy}
{4} colli ({5} kg)
{6}", riga.Cod, riga.Cliente, riga.DDT, riga.DataDDT, riga.Colli, riga.Peso, riga.Stato, riga.Ciclo));
- }
- // ora aggiungo i singoli ULP...
- XPS_data.DS_applicazioneTableAdapters.v_ULPTableAdapter taULP = new XPS_data.DS_applicazioneTableAdapters.v_ULPTableAdapter();
- DS_applicazione.v_ULPDataTable _tabUlp = taULP.GetData();
- // aggiungo colli (ULP)...
- foreach (DS_applicazione.v_ULPRow riga in _tabUlp)
- {
- // QUI formattazione campi mostrati a barcode
- valori.Add(riga.Cod.ToString(), string.Format("{0} - {7}
{1} DDT {2} del {3:dd MMM yyyy}
nr {4} items ({5} kg)
{6}", riga.Cod, riga.Cliente, riga.DDT, riga.DataDDT, riga.Qta, riga.Peso, riga.Stato, riga.CodCli));
- }
- // assegno valori al barcode...
- mod_barcode1.tabValori = valori;
- }
- ///
- /// carico da tab i comandi ammessi per il barcode...
- ///
- private void setupComandiBarcode()
- {
- XPS_data.DS_applicazioneTableAdapters.TraEv2StatiTableAdapter taTrEv2St = new XPS_data.DS_applicazioneTableAdapters.TraEv2StatiTableAdapter();
- DS_applicazione.TraEv2StatiDataTable _tabTran = taTrEv2St.getByCodMappa("E_BC");
- Dictionary comandi = new Dictionary();
- foreach (DS_applicazione.TraEv2StatiRow riga in _tabTran)
- {
- comandi.Add(riga.CodEvento, user_std.UtSn.Traduci(riga.text2show));
- }
- // impongo i comandi al barcode...
- mod_barcode1.comandiAmmessi = comandi;
- }
- ///
- /// il barcode ha registrato un evento...
- ///
- ///
- ///
- void mod_barcode1_eh_comandoRegistrato(object sender, EventArgs e)
- {
- switch (stateMachine.st.azioneComando(mod_barcode1.comandoRegistrato))
- {
- case tipoAzione.annulla:
- mod_barcode1.resetMe();
- break;
- case tipoAzione.conferma:
- // se input completo eseguo...
- if (mod_barcode1.comandoRegistrato.currCmdIn != "" && mod_barcode1.comandoRegistrato.valore != "")
- {
- eseguiComando();
- }
- else // altrimenti warning... e rimetto valori precedenti
- {
- mod_barcode1.txtRich2show = user_std.UtSn.Traduci("codObjUnknown");
- mod_barcode1.comandoRegistrato.currCmdIn = mod_barcode1.comandoRegistrato.prevCmdIn;
- mod_barcode1.comandoRegistrato.descrComando = mod_barcode1.comandoRegistrato.descrComandoPrev;
- mod_barcode1.txtInput2show = mod_barcode1.comandoRegistrato.descrComandoPrev;
- }
- break;
- case tipoAzione.esegui:
- if (mod_barcode1.comandoRegistrato.valore != "")
- {
- mod_barcode1.txtRich2show = user_std.UtSn.Traduci("pleaseConfirm");
- }
- else
- {
- mod_barcode1.txtRich2show = user_std.UtSn.Traduci("codObjUnknown");
- }
- break;
- case tipoAzione.noAct:
- break;
- default:
- break;
- }
- }
- ///
- /// eseguo il comando
- ///
- private void eseguiComando()
- {
- // in primis: sono in esecuzione, x cui il comando è valido...
- string msg2show = "";
- string currState = "";
- DS_applicazione.IstObjRow rigaIstObj;
- // calcolo lo stato dell'oggetto...
- try
- {
- rigaIstObj = XPS_data.XPS.obj.taObj.getByIdxObj(mod_barcode1.comandoRegistrato.valore)[0];
- currState = rigaIstObj.CodStato;
- }
- catch
- { }
- tipoEsito esito = stateMachine.st.doAction("E_Stati", mod_barcode1.comandoRegistrato.valore, currState, mod_barcode1.comandoRegistrato.prevCmdIn);
- if (esito == tipoEsito.ok)
- {
- msg2show = string.Format("{0}: {1}", mod_barcode1.comandoRegistrato.valore, user_std.UtSn.Traduci("chgStateDone"));
- }
- else if (esito == tipoEsito.error)
- {
- msg2show = user_std.UtSn.Traduci("cannotStateChange");
- }
- else
- {
- msg2show = user_std.UtSn.Traduci("unknownCmd");
- }
- // reset e mostro output...
- mod_barcode1.resetMe();
- if (msg2show != "") mod_barcode1.txtInput2show = msg2show;
- }
-
-}
diff --git a/XPS/barcode.aspx.designer.cs b/XPS/barcode.aspx.designer.cs
deleted file mode 100644
index b715c1c..0000000
--- a/XPS/barcode.aspx.designer.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.4963
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-
-
-public partial class barcode {
-
- ///
- /// mod_barcode1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::XPS.WebUserControls.mod_barcode mod_barcode1;
-
- ///
- /// hlMenu control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.HyperLink hlMenu;
-}
diff --git a/XPS/gestAnagrTbl.aspx b/XPS/gestAnagrTbl.aspx
deleted file mode 100644
index 4291f78..0000000
--- a/XPS/gestAnagrTbl.aspx
+++ /dev/null
@@ -1,4 +0,0 @@
-<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" Inherits="gestAnagrTbl" Title="Untitled Page" Codebehind="gestAnagrTbl.aspx.cs" %>
-
-
-
diff --git a/XPS/gestAnagrTbl.aspx.cs b/XPS/gestAnagrTbl.aspx.cs
deleted file mode 100644
index db93a10..0000000
--- a/XPS/gestAnagrTbl.aspx.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System;
-using System.Data;
-using System.Configuration;
-using System.Collections;
-using System.Web;
-using System.Web.Security;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using System.Web.UI.WebControls.WebParts;
-using System.Web.UI.HtmlControls;
-
-public partial class gestAnagrTbl : Flesk.Accelerator.Page //System.Web.UI.Page
-{
- protected void Page_Load(object sender, EventArgs e)
- {
-
- }
-}
diff --git a/XPS/gestAnagrTbl.aspx.designer.cs b/XPS/gestAnagrTbl.aspx.designer.cs
deleted file mode 100644
index fed038e..0000000
--- a/XPS/gestAnagrTbl.aspx.designer.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.4963
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-
-
-public partial class gestAnagrTbl {
-}