ancora pulizia pagine non utilizzate

This commit is contained in:
Samuele Locatelli
2017-03-16 16:46:27 +01:00
parent 52617fd789
commit 5d7f5c7bbc
17 changed files with 2 additions and 787 deletions
-34
View File
@@ -1,34 +0,0 @@
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" Inherits="AnagraficaEventi" Title="Untitled Page" Codebehind="AnagraficaEventi.aspx.cs" %>
<%@ Register Src="WebUserControls/mod_ev2stati.ascx" TagName="mod_ev2stati" TagPrefix="uc2" %>
<%@ Register Src="WebUserControls/mod_anagraficaEventi.ascx" TagName="mod_anagraficaEventi" TagPrefix="uc1" %>
<%@ Register Src="WebUserControls/mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<uc1:mod_anagraficaEventi ID="Mod_anagraficaEventi1" runat="server" />
<asp:Panel runat="server" ID="pnlDet" Visible="false" Width="100%">
<table>
<tr>
<td>
<div class="filtro_1">
<uc4:mod_filtro ID="Mod_filtroTipoObj" runat="server" changeCheckEnabled="false"
changeCheckVisible="false" />
<asp:ObjectDataSource ID="odsTipoObj" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="XPS_data.DS_utilityTableAdapters.v_selTipoObjTableAdapter">
</asp:ObjectDataSource>
</div>
<div class="filtro_2">
<uc4:mod_filtro ID="Mod_filtroMappa" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
<asp:ObjectDataSource ID="odsMappa" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="XPS_data.DS_utilityTableAdapters.v_selTipoMappaTableAdapter">
</asp:ObjectDataSource>
</div>
</td>
</tr>
<tr>
<td>
<uc2:mod_ev2stati ID="Mod_ev2stati1" runat="server" />
</td>
</tr>
</table>
</asp:Panel>
</asp:Content>
-65
View File
@@ -1,65 +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 AnagraficaEventi : Flesk.Accelerator.Page //System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Mod_filtroMappa.ods = odsMappa;
Mod_filtroTipoObj.ods = odsTipoObj;
}
Mod_anagraficaEventi1.eh_selValore += new EventHandler(Mod_anagraficaEventi1_eh_selValore);
Mod_anagraficaEventi1.eh_resetSelezione += new EventHandler(Mod_anagraficaEventi1_eh_resetSelezione);
Mod_filtroMappa.eh_selValore += new EventHandler(Mod_filtroMappa_eh_selValore);
Mod_filtroTipoObj.eh_selValore += new EventHandler(Mod_filtroTipoObj_eh_selValore);
}
void Mod_filtroTipoObj_eh_selValore(object sender, EventArgs e)
{
// salvo in session
SteamWare.memLayer.ML.setSessionVal("IdxTipoObj_sel", Mod_filtroTipoObj.valoreInt, false);
// update!
Mod_ev2stati1.doUpdate();
}
void Mod_filtroMappa_eh_selValore(object sender, EventArgs e)
{
// salvo in session
SteamWare.memLayer.ML.setSessionVal("CodMappa_sel", Mod_filtroMappa.valore, false);
// update!
Mod_ev2stati1.doUpdate();
}
void Mod_anagraficaEventi1_eh_resetSelezione(object sender, EventArgs e)
{
pnlDet.Visible = false;
}
void Mod_anagraficaEventi1_eh_selValore(object sender, EventArgs e)
{
// salvo valore iniziale filtro...
SteamWare.memLayer.ML.setSessionVal("CodMappa_sel", Mod_filtroMappa.valore, false);
SteamWare.memLayer.ML.setSessionVal("IdxTipoObj_sel", Mod_filtroTipoObj.valoreInt, false);
// mostro panel...
pnlDet.Visible = true;
}
protected override void OnUnload(EventArgs e)
{
base.OnUnload(e);
Mod_anagraficaEventi1.eh_selValore -= new EventHandler(Mod_anagraficaEventi1_eh_selValore);
Mod_anagraficaEventi1.eh_resetSelezione -= new EventHandler(Mod_anagraficaEventi1_eh_resetSelezione);
Mod_filtroMappa.eh_selValore -= new EventHandler(Mod_filtroMappa_eh_selValore);
Mod_filtroTipoObj.eh_selValore -= new EventHandler(Mod_filtroTipoObj_eh_selValore);
}
}
-76
View File
@@ -1,76 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class AnagraficaEventi {
/// <summary>
/// Mod_anagraficaEventi1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::XPS.WebUserControls.mod_anagraficaEventi Mod_anagraficaEventi1;
/// <summary>
/// pnlDet 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 pnlDet;
/// <summary>
/// Mod_filtroTipoObj control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::XPS.WebUserControls.mod_filtro Mod_filtroTipoObj;
/// <summary>
/// odsTipoObj 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 odsTipoObj;
/// <summary>
/// Mod_filtroMappa control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::XPS.WebUserControls.mod_filtro Mod_filtroMappa;
/// <summary>
/// odsMappa 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 odsMappa;
/// <summary>
/// Mod_ev2stati1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::XPS.WebUserControls.mod_ev2stati Mod_ev2stati1;
}
-7
View File
@@ -1,7 +0,0 @@
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" Inherits="AnagraficaStati" Title="Untitled Page" Codebehind="AnagraficaStati.aspx.cs" %>
<%@ Register Src="WebUserControls/mod_anagraficaStati.ascx" TagName="mod_anagraficaStati" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<uc1:mod_anagraficaStati ID="Mod_anagraficaStati1" runat="server" />
</asp:Content>
-18
View File
@@ -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 AnagraficaStati : Flesk.Accelerator.Page //System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
-23
View File
@@ -1,23 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class AnagraficaStati {
/// <summary>
/// Mod_anagraficaStati1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::XPS.WebUserControls.mod_anagraficaStati Mod_anagraficaStati1;
}
+2 -2
View File
@@ -1,4 +1,4 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Bootstrap.Master" AutoEventWireup="true" CodeBehind="UserAdmin.aspx.cs" Inherits="XPS.UserAdmin" %>
<%@ Page Title="" Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="UserAdmin.aspx.cs" Inherits="XPS.UserAdmin" %>
<%@ Register Src="WebUserControls/mod_enrollByEmail.ascx" TagName="mod_enrollByEmail" TagPrefix="uc2" %>
@@ -7,7 +7,7 @@
<%@ Register src="WebUserControls/mod_enrollByAuthKey.ascx" tagname="mod_enrollByAuthKey" tagprefix="uc4" %>
<asp:Content ID="ContentPlaceHolder1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="Server">
<div id="divUnauth" runat="server">
<h1>Gestione Accesso XPS</h1>
Attenzione, se non è possibile accedere all'applicazione prego richiedere autorizzazione al responsabile del progetto.
-19
View File
@@ -1,19 +0,0 @@
<%@ Control Language="C#" AutoEventWireup="true" Inherits="XPS.WebUserControls.mod_barcode"
CodeBehind="mod_barcode.ascx.cs" %>
<div style="float: none; text-align: center; font-size: 20pt; margin: auto;">
<div>
<asp:TextBox runat="server" ID="txtInput" TextMode="Password" Width="200px" OnTextChanged="txtInput_TextChanged" />
</div>
<asp:Panel runat="server" ID="pnlBarcodeBox">
<div style="background-color: #FFE800; padding: 8px; margin: 1px;">
<asp:Label runat="server" ID="lblInput" Text="" />
</div>
<div style="background-color: #FFC500; padding: 8px; margin: 1px;">
<asp:Label runat="server" ID="lblValore" Text="" />
</div>
<div style="background-color: #FF7700; padding: 8px; margin: 1px;">
<asp:Label runat="server" ID="lblRichiesta" Text="" Font-Bold="true" />
</div>
<asp:Label ID="lblBrowser" runat="server" />
</asp:Panel>
</div>
-238
View File
@@ -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
/// <summary>
/// dictionary comandi ammessi
/// </summary>
protected Dictionary<string, string> _comandi = new Dictionary<string, string>();
/// <summary>
/// dictionary dei valori ammessi
/// </summary>
protected Dictionary<string, string> _tabValori = new Dictionary<string, string>();
/// <summary>
/// oggetto comando locale alla classe
/// </summary>
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);
}
}
/// <summary>
/// al caricamento della pagina...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
DetectAgent();
myInitialize();
}
/// <summary>
/// inizializzazione specifica barcode
/// </summary>
private void myInitialize()
{
lblInput.Text = traduci("PregoInserireBarcode");
if (!Page.IsPostBack) comando = new inputComando();
txtInput.Focus();
}
/// <summary>
/// barcode completato con invio...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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 = "";
}
/// <summary>
/// verifico se sia un valore compreso nell'elenco fornito
/// </summary>
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);
}
}
/// <summary>
/// verifica se il comando inserito sia valido
/// </summary>
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);
}
}
/// <summary>
/// verifica quale browser usato e applica css corretto al div attorno al box
/// </summary>
private void DetectAgent()
{
System.Web.HttpBrowserCapabilities browser = Request.Browser;
if (browser.Browser == "IE")
{
pnlBarcodeBox.CssClass = "barcodeBoxIE";
}
else
{
pnlBarcodeBox.CssClass = "barcodeBoxOther";
}
}
#endregion
#region area public
/// <summary>
/// elenco dei comandi riconosciuti
/// </summary>
public Dictionary<string, string> comandiAmmessi
{
get
{
return _comandi;
}
set
{
_comandi = value;
}
}
/// <summary>
/// tabella di valori ammissibili
/// </summary>
public Dictionary<string, string> tabValori
{
get
{
return _tabValori;
}
set
{
_tabValori = value;
}
}
/// <summary>
/// evento comando registrato
/// </summary>
public event EventHandler eh_comandoRegistrato;
/// <summary>
/// comando registrato dal barcode
/// </summary>
public inputComando comandoRegistrato
{
get
{
return comando;
}
}
/// <summary>
/// scrive nella label input
/// </summary>
public string txtInput2show
{
set
{
lblInput.Text = value;
}
}
/// <summary>
/// scrive nella label valore
/// </summary>
public string txtVal2show
{
set
{
lblValore.Text = value;
}
}
/// <summary>
/// scrive nella label richiesta
/// </summary>
public string txtRich2show
{
set
{
lblRichiesta.Text = value;
}
}
/// <summary>
/// reset del controllo
/// </summary>
public void resetMe()
{
comando = new inputComando();
txtInput2show = "Prego inserire barcode";
txtVal2show = "";
txtRich2show = "";
}
#endregion
}
}
-70
View File
@@ -1,70 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace XPS.WebUserControls {
public partial class mod_barcode {
/// <summary>
/// txtInput 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.TextBox txtInput;
/// <summary>
/// pnlBarcodeBox 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 pnlBarcodeBox;
/// <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>
/// lblValore 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 lblValore;
/// <summary>
/// lblRichiesta 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 lblRichiesta;
/// <summary>
/// lblBrowser 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 lblBrowser;
}
}
-16
View File
@@ -393,13 +393,6 @@
</Compile>
<Compile Include="App_Start\BundleConfig.cs" />
<Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="barcode.aspx.cs">
<DependentUpon>barcode.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="barcode.aspx.designer.cs">
<DependentUpon>barcode.aspx</DependentUpon>
</Compile>
<Compile Include="Bootstrap.Master.cs">
<DependentUpon>Bootstrap.Master</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -558,13 +551,6 @@
<Compile Include="WebUserControls\mod_anagraficaStati.ascx.designer.cs">
<DependentUpon>mod_anagraficaStati.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_barcode.ascx.cs">
<DependentUpon>mod_barcode.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_barcode.ascx.designer.cs">
<DependentUpon>mod_barcode.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_chLang.ascx.cs">
<DependentUpon>mod_chLang.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -846,7 +832,6 @@
<Content Include="JqueryUI.css" />
<Content Include="AnagraficaMappe.aspx" />
<Content Include="Appunti.txt" />
<Content Include="barcode.aspx" />
<Content Include="Default.aspx" />
<Content Include="detComm.aspx" />
<Content Include="elencoBarcode.aspx" />
@@ -863,7 +848,6 @@
<Content Include="WebUserControls\mod_anagraficaEventi.ascx" />
<Content Include="WebUserControls\mod_anagraficaMappe.ascx" />
<Content Include="WebUserControls\mod_anagraficaStati.ascx" />
<Content Include="WebUserControls\mod_barcode.ascx" />
<Content Include="WebUserControls\mod_chLang.ascx" />
<Content Include="WebUserControls\mod_completate.ascx" />
<Content Include="WebUserControls\mod_currentTask.ascx" />
-10
View File
@@ -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" %>
<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="Server">
<uc1:mod_barcode ID="mod_barcode1" runat="server" />
<div style="text-align:center; margin-left:auto; margin-right:auto; font-size:24pt;">
<asp:HyperLink runat="server" ID="hlMenu" NavigateUrl="~/menu.aspx" />
</div>
</asp:Content>
-141
View File
@@ -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");
}
/// <summary>
/// effettuo il setup dei valori ammessi x il barcode...
/// </summary>
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<string, string> valori = new Dictionary<string, string>();
// 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}<br/><b>{1}</b> DDT {2} del {3:dd MMM yyyy}<br/>{4} colli ({5} kg)<br /><b>{6}</b>", 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}<br/><b>{1}</b> DDT {2} del {3:dd MMM yyyy}<br/>nr {4} items ({5} kg)<br /><b>{6}</b>", riga.Cod, riga.Cliente, riga.DDT, riga.DataDDT, riga.Qta, riga.Peso, riga.Stato, riga.CodCli));
}
// assegno valori al barcode...
mod_barcode1.tabValori = valori;
}
/// <summary>
/// carico da tab i comandi ammessi per il barcode...
/// </summary>
private void setupComandiBarcode()
{
XPS_data.DS_applicazioneTableAdapters.TraEv2StatiTableAdapter taTrEv2St = new XPS_data.DS_applicazioneTableAdapters.TraEv2StatiTableAdapter();
DS_applicazione.TraEv2StatiDataTable _tabTran = taTrEv2St.getByCodMappa("E_BC");
Dictionary<string, string> comandi = new Dictionary<string, string>();
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;
}
/// <summary>
/// il barcode ha registrato un evento...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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;
}
}
/// <summary>
/// eseguo il comando
/// </summary>
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;
}
}
-32
View File
@@ -1,32 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class barcode {
/// <summary>
/// mod_barcode1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::XPS.WebUserControls.mod_barcode mod_barcode1;
/// <summary>
/// hlMenu 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 hlMenu;
}
-4
View File
@@ -1,4 +0,0 @@
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/AjaxSearch.master" AutoEventWireup="true" Inherits="gestAnagrTbl" Title="Untitled Page" Codebehind="gestAnagrTbl.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
-18
View File
@@ -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)
{
}
}
-14
View File
@@ -1,14 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class gestAnagrTbl {
}