fix errori compilazione MAG

This commit is contained in:
Samuele E. Locatelli
2021-03-03 12:42:02 +01:00
parent a8e8b97acb
commit 2151aa87fa
24 changed files with 334 additions and 249 deletions
@@ -20,6 +20,8 @@ namespace MP_MAG.Areas.HelpPage
/// </summary>
public class HelpPageSampleGenerator
{
#region Public Constructors
/// <summary>
/// Initializes a new instance of the <see cref="HelpPageSampleGenerator"/> class.
/// </summary>
@@ -34,10 +36,9 @@ namespace MP_MAG.Areas.HelpPage
};
}
/// <summary>
/// Gets CLR types that are used as the content of <see cref="HttpRequestMessage"/> or <see cref="HttpResponseMessage"/>.
/// </summary>
public IDictionary<HelpPageSampleKey, Type> ActualHttpMessageTypes { get; internal set; }
#endregion Public Constructors
#region Public Properties
/// <summary>
/// Gets the objects that are used directly as samples for certain actions.
@@ -45,9 +46,9 @@ namespace MP_MAG.Areas.HelpPage
public IDictionary<HelpPageSampleKey, object> ActionSamples { get; internal set; }
/// <summary>
/// Gets the objects that are serialized as samples by the supported formatters.
/// Gets CLR types that are used as the content of <see cref="HttpRequestMessage"/> or <see cref="HttpResponseMessage"/>.
/// </summary>
public IDictionary<Type, object> SampleObjects { get; internal set; }
public IDictionary<HelpPageSampleKey, Type> ActualHttpMessageTypes { get; internal set; }
/// <summary>
/// Gets factories for the objects that the supported formatters will serialize as samples. Processed in order,
@@ -62,23 +63,138 @@ namespace MP_MAG.Areas.HelpPage
public IList<Func<HelpPageSampleGenerator, Type, object>> SampleObjectFactories { get; private set; }
/// <summary>
/// Gets the request body samples for a given <see cref="ApiDescription"/>.
/// Gets the objects that are serialized as samples by the supported formatters.
/// </summary>
/// <param name="api">The <see cref="ApiDescription"/>.</param>
/// <returns>The samples keyed by media type.</returns>
public IDictionary<MediaTypeHeaderValue, object> GetSampleRequests(ApiDescription api)
public IDictionary<Type, object> SampleObjects { get; internal set; }
#endregion Public Properties
#region Private Methods
// Default factory for sample objects
private static object DefaultSampleObjectFactory(HelpPageSampleGenerator sampleGenerator, Type type)
{
return GetSample(api, SampleDirection.Request);
// Try to create a default sample object
ObjectGenerator objectGenerator = new ObjectGenerator();
return objectGenerator.GenerateObject(type);
}
/// <summary>
/// Gets the response body samples for a given <see cref="ApiDescription"/>.
/// </summary>
/// <param name="api">The <see cref="ApiDescription"/>.</param>
/// <returns>The samples keyed by media type.</returns>
public IDictionary<MediaTypeHeaderValue, object> GetSampleResponses(ApiDescription api)
private static bool IsFormatSupported(SampleDirection sampleDirection, MediaTypeFormatter formatter, Type type)
{
return GetSample(api, SampleDirection.Response);
switch (sampleDirection)
{
case SampleDirection.Request:
return formatter.CanReadType(type);
case SampleDirection.Response:
return formatter.CanWriteType(type);
}
return false;
}
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Handling the failure by returning the original string.")]
private static string TryFormatJson(string str)
{
try
{
object parsedJson = JsonConvert.DeserializeObject(str);
return JsonConvert.SerializeObject(parsedJson, Formatting.Indented);
}
catch
{
// can't parse JSON, return the original string
return str;
}
}
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Handling the failure by returning the original string.")]
private static string TryFormatXml(string str)
{
try
{
XDocument xml = XDocument.Parse(str);
return xml.ToString();
}
catch
{
// can't parse XML, return the original string
return str;
}
}
private static object WrapSampleIfString(object sample)
{
string stringSample = sample as string;
if (stringSample != null)
{
return new TextSample(stringSample);
}
return sample;
}
private IEnumerable<KeyValuePair<HelpPageSampleKey, object>> GetAllActionSamples(string controllerName, string actionName, IEnumerable<string> parameterNames, SampleDirection sampleDirection)
{
HashSet<string> parameterNamesSet = new HashSet<string>(parameterNames, StringComparer.OrdinalIgnoreCase);
foreach (var sample in ActionSamples)
{
HelpPageSampleKey sampleKey = sample.Key;
if (String.Equals(controllerName, sampleKey.ControllerName, StringComparison.OrdinalIgnoreCase) &&
String.Equals(actionName, sampleKey.ActionName, StringComparison.OrdinalIgnoreCase) &&
(sampleKey.ParameterNames.SetEquals(new[] { "*" }) || parameterNamesSet.SetEquals(sampleKey.ParameterNames)) &&
sampleDirection == sampleKey.SampleDirection)
{
yield return sample;
}
}
}
#endregion Private Methods
#region Internal Methods
internal static Exception UnwrapException(Exception exception)
{
AggregateException aggregateException = exception as AggregateException;
if (aggregateException != null)
{
return aggregateException.Flatten().InnerException;
}
return exception;
}
#endregion Internal Methods
#region Public Methods
/// <summary>
/// Search for samples that are provided directly through <see cref="ActionSamples"/>.
/// </summary>
/// <param name="controllerName">Name of the controller.</param>
/// <param name="actionName">Name of the action.</param>
/// <param name="parameterNames">The parameter names.</param>
/// <param name="type">The CLR type.</param>
/// <param name="formatter">The formatter.</param>
/// <param name="mediaType">The media type.</param>
/// <param name="sampleDirection">The value indicating whether the sample is for a request or for a response.</param>
/// <returns>The sample that matches the parameters.</returns>
public virtual object GetActionSample(string controllerName, string actionName, IEnumerable<string> parameterNames, Type type, MediaTypeFormatter formatter, MediaTypeHeaderValue mediaType, SampleDirection sampleDirection)
{
object sample;
// First, try to get the sample provided for the specified mediaType, sampleDirection, controllerName, actionName and parameterNames.
// If not found, try to get the sample provided for the specified mediaType, sampleDirection, controllerName and actionName regardless of the parameterNames.
// If still not found, try to get the sample provided for the specified mediaType and type.
// Finally, try to get the sample provided for the specified mediaType.
if (ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType, sampleDirection, controllerName, actionName, parameterNames), out sample) ||
ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType, sampleDirection, controllerName, actionName, new[] { "*" }), out sample) ||
ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType, type), out sample) ||
ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType), out sample))
{
return sample;
}
return null;
}
/// <summary>
@@ -136,37 +252,7 @@ namespace MP_MAG.Areas.HelpPage
}
/// <summary>
/// Search for samples that are provided directly through <see cref="ActionSamples"/>.
/// </summary>
/// <param name="controllerName">Name of the controller.</param>
/// <param name="actionName">Name of the action.</param>
/// <param name="parameterNames">The parameter names.</param>
/// <param name="type">The CLR type.</param>
/// <param name="formatter">The formatter.</param>
/// <param name="mediaType">The media type.</param>
/// <param name="sampleDirection">The value indicating whether the sample is for a request or for a response.</param>
/// <returns>The sample that matches the parameters.</returns>
public virtual object GetActionSample(string controllerName, string actionName, IEnumerable<string> parameterNames, Type type, MediaTypeFormatter formatter, MediaTypeHeaderValue mediaType, SampleDirection sampleDirection)
{
object sample;
// First, try to get the sample provided for the specified mediaType, sampleDirection, controllerName, actionName and parameterNames.
// If not found, try to get the sample provided for the specified mediaType, sampleDirection, controllerName and actionName regardless of the parameterNames.
// If still not found, try to get the sample provided for the specified mediaType and type.
// Finally, try to get the sample provided for the specified mediaType.
if (ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType, sampleDirection, controllerName, actionName, parameterNames), out sample) ||
ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType, sampleDirection, controllerName, actionName, new[] { "*" }), out sample) ||
ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType, type), out sample) ||
ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType), out sample))
{
return sample;
}
return null;
}
/// <summary>
/// Gets the sample object that will be serialized by the formatters.
/// Gets the sample object that will be serialized by the formatters.
/// First, it will look at the <see cref="SampleObjects"/>. If no sample object is found, it will try to create
/// one using <see cref="DefaultSampleObjectFactory"/> (which wraps an <see cref="ObjectGenerator"/>) and other
/// factories in <see cref="SampleObjectFactories"/>.
@@ -207,6 +293,26 @@ namespace MP_MAG.Areas.HelpPage
return sampleObject;
}
/// <summary>
/// Gets the request body samples for a given <see cref="ApiDescription"/>.
/// </summary>
/// <param name="api">The <see cref="ApiDescription"/>.</param>
/// <returns>The samples keyed by media type.</returns>
public IDictionary<MediaTypeHeaderValue, object> GetSampleRequests(ApiDescription api)
{
return GetSample(api, SampleDirection.Request);
}
/// <summary>
/// Gets the response body samples for a given <see cref="ApiDescription"/>.
/// </summary>
/// <param name="api">The <see cref="ApiDescription"/>.</param>
/// <returns>The samples keyed by media type.</returns>
public IDictionary<MediaTypeHeaderValue, object> GetSampleResponses(ApiDescription api)
{
return GetSample(api, SampleDirection.Response);
}
/// <summary>
/// Resolves the actual type of <see cref="System.Net.Http.ObjectContent{T}"/> passed to the <see cref="System.Net.Http.HttpRequestMessage"/> in an action.
/// </summary>
@@ -265,6 +371,7 @@ namespace MP_MAG.Areas.HelpPage
type = requestBodyParameter == null ? null : requestBodyParameter.ParameterDescriptor.ParameterType;
formatters = api.SupportedRequestBodyFormatters;
break;
case SampleDirection.Response:
default:
type = api.ResponseDescription.ResponseType ?? api.ResponseDescription.DeclaredType;
@@ -319,6 +426,7 @@ namespace MP_MAG.Areas.HelpPage
}
sample = new TextSample(serializedSampleString);
reader.Dispose();
}
else
{
@@ -354,91 +462,6 @@ namespace MP_MAG.Areas.HelpPage
return sample;
}
internal static Exception UnwrapException(Exception exception)
{
AggregateException aggregateException = exception as AggregateException;
if (aggregateException != null)
{
return aggregateException.Flatten().InnerException;
}
return exception;
}
// Default factory for sample objects
private static object DefaultSampleObjectFactory(HelpPageSampleGenerator sampleGenerator, Type type)
{
// Try to create a default sample object
ObjectGenerator objectGenerator = new ObjectGenerator();
return objectGenerator.GenerateObject(type);
}
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Handling the failure by returning the original string.")]
private static string TryFormatJson(string str)
{
try
{
object parsedJson = JsonConvert.DeserializeObject(str);
return JsonConvert.SerializeObject(parsedJson, Formatting.Indented);
}
catch
{
// can't parse JSON, return the original string
return str;
}
}
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Handling the failure by returning the original string.")]
private static string TryFormatXml(string str)
{
try
{
XDocument xml = XDocument.Parse(str);
return xml.ToString();
}
catch
{
// can't parse XML, return the original string
return str;
}
}
private static bool IsFormatSupported(SampleDirection sampleDirection, MediaTypeFormatter formatter, Type type)
{
switch (sampleDirection)
{
case SampleDirection.Request:
return formatter.CanReadType(type);
case SampleDirection.Response:
return formatter.CanWriteType(type);
}
return false;
}
private IEnumerable<KeyValuePair<HelpPageSampleKey, object>> GetAllActionSamples(string controllerName, string actionName, IEnumerable<string> parameterNames, SampleDirection sampleDirection)
{
HashSet<string> parameterNamesSet = new HashSet<string>(parameterNames, StringComparer.OrdinalIgnoreCase);
foreach (var sample in ActionSamples)
{
HelpPageSampleKey sampleKey = sample.Key;
if (String.Equals(controllerName, sampleKey.ControllerName, StringComparison.OrdinalIgnoreCase) &&
String.Equals(actionName, sampleKey.ActionName, StringComparison.OrdinalIgnoreCase) &&
(sampleKey.ParameterNames.SetEquals(new[] { "*" }) || parameterNamesSet.SetEquals(sampleKey.ParameterNames)) &&
sampleDirection == sampleKey.SampleDirection)
{
yield return sample;
}
}
}
private static object WrapSampleIfString(object sample)
{
string stringSample = sample as string;
if (stringSample != null)
{
return new TextSample(stringSample);
}
return sample;
}
#endregion Public Methods
}
}
+10
View File
@@ -18,6 +18,16 @@ namespace MP_MAG
#endregion Internal Fields
#region Protected Methods
protected override void OnInit(EventArgs e)
{
// Assuming that your page makes use of ASP.NET session state and the SessionID is stable.
ViewStateUserKey = Session.SessionID;
}
#endregion Protected Methods
#region Public Methods
/// <summary>
@@ -82,6 +82,8 @@ namespace MP_MAG.Controllers
default:
break;
}
// CHECK FIXME 2021.03.03: verificare sia OK dispose
tab.Dispose();
return answ;
}
+2 -1
View File
@@ -26,7 +26,7 @@
<UseGlobalApplicationHostFile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TypeScriptToolsVersion>3.7</TypeScriptToolsVersion>
<TypeScriptToolsVersion>4.0</TypeScriptToolsVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -873,6 +873,7 @@
<Content Include="WebUserControls\mod_enrollByAuthKey.ascx" />
<Content Include="WebUserControls\mod_enrollByJumperAuthKey.ascx" />
<Content Include="WebUserControls\mod_regNewDevice.ascx" />
<Content Include=".editorconfig" />
<None Include="compilerconfig.json" />
<None Include="compilerconfig.json.defaults">
<DependentUpon>compilerconfig.json</DependentUpon>
+9 -5
View File
@@ -7,11 +7,15 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
public partial class Default : BasePage
{
Response.Redirect("menu");
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
Response.Redirect("menu");
}
#endregion Protected Methods
}
}
}
+1 -1
View File
@@ -7,7 +7,7 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class EnrollDevice : System.Web.UI.Page
public partial class EnrollDevice : BasePage
{
#region Protected Methods
+1 -1
View File
@@ -8,7 +8,7 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class PLScanner : System.Web.UI.Page
public partial class PLScanner : BasePage
{
#region Protected Methods
+1 -1
View File
@@ -8,7 +8,7 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class Reset : System.Web.UI.Page
public partial class Reset : BasePage
{
#region Protected Methods
+1 -1
View File
@@ -8,7 +8,7 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class SmartStarter : System.Web.UI.Page
public partial class SmartStarter : BasePage
{
#region Private Methods
+31 -20
View File
@@ -4,28 +4,39 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class elencoLotti : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
public partial class elencoLotti : BasePage
{
if(!Page.IsPostBack)
{
cmp_dettLotti.Visible = false;
}
cmp_elencoLotti.eh_doRefresh += Cmp_elencoLotti_eh_doRefresh;
cmp_elencoLotti.eh_doReset += Cmp_elencoLotti_eh_doReset;
#region Private Methods
private void Cmp_elencoLotti_eh_doRefresh(object sender, EventArgs e)
{
cmp_dettLotti.lotto = cmp_elencoLotti.LottoSel;
cmp_dettLotti.Visible = true;
}
private void Cmp_elencoLotti_eh_doReset(object sender, EventArgs e)
{
cmp_dettLotti.lotto = "0";
cmp_dettLotti.Visible = false;
}
#endregion Private Methods
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
cmp_dettLotti.Visible = false;
}
cmp_elencoLotti.eh_doRefresh += Cmp_elencoLotti_eh_doRefresh;
cmp_elencoLotti.eh_doReset += Cmp_elencoLotti_eh_doReset;
}
#endregion Protected Methods
}
private void Cmp_elencoLotti_eh_doRefresh(object sender, EventArgs e)
{
cmp_dettLotti.lotto = cmp_elencoLotti.LottoSel;
cmp_dettLotti.Visible = true;
}
private void Cmp_elencoLotti_eh_doReset(object sender, EventArgs e)
{
cmp_dettLotti.lotto = "0";
cmp_dettLotti.Visible = false;
}
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class gestPedane : System.Web.UI.Page
public partial class gestPedane : BasePage
{
#region Protected Properties
+5 -2
View File
@@ -7,11 +7,14 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class jumper : System.Web.UI.Page
public partial class jumper : BasePage
{
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
}
#endregion Protected Methods
}
}
+1 -1
View File
@@ -7,7 +7,7 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class menu : System.Web.UI.Page
public partial class menu : BasePage
{
#region Protected Methods
+1 -1
View File
@@ -7,7 +7,7 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class packList : System.Web.UI.Page
public partial class packList : BasePage
{
#region Protected Methods
+1 -1
View File
@@ -7,7 +7,7 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class printCartOdl : System.Web.UI.Page
public partial class printCartOdl : BasePage
{
#region Private Methods
+12 -8
View File
@@ -7,14 +7,18 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class prtFiniti : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
public partial class prtFiniti : BasePage
{
if (!Page.IsPostBack)
{
((Site)this.Master).showSearch = false;
}
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
((Site)this.Master).showSearch = false;
}
}
#endregion Protected Methods
}
}
}
+12 -8
View File
@@ -7,14 +7,18 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class prtSemilav : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
public partial class prtSemilav : BasePage
{
if (!Page.IsPostBack)
{
((Site)this.Master).showSearch = false;
}
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
((Site)this.Master).showSearch = false;
}
}
#endregion Protected Methods
}
}
}
+1 -1
View File
@@ -7,7 +7,7 @@ using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class tryLogin : System.Web.UI.Page
public partial class tryLogin : BasePage
{
#region Protected Methods
+1 -1
View File
@@ -37,7 +37,7 @@ namespace MP_MAG.WebUserControls
{
resetMessage();
}
else if (inputAcquired == "")
else if (string.IsNullOrEmpty(inputAcquired))
{
raiseEvent();
}
+75 -56
View File
@@ -7,63 +7,82 @@ using System.Web.UI.WebControls;
namespace MP_MAG.WebUserControls
{
public partial class cmp_dettLotti : System.Web.UI.UserControl
{
/// <summary>
/// Generico evento di richiesta refresh a aprent
/// </summary>
public event EventHandler eh_doRefresh;
/// <summary>
/// Generico evento di richiesta refresh a aprent
/// </summary>
public event EventHandler eh_doReset;
protected void Page_Load(object sender, EventArgs e)
public partial class cmp_dettLotti : System.Web.UI.UserControl
{
if (!Page.IsPostBack)
{
}
}
/// <summary>
/// Lotto OUT cui fare riferimento con elenco
/// </summary>
public string lotto
{
get
{
return hfLotto.Value;
}
set
{
hfLotto.Value = value;
}
}
#region Public Events
/// <summary>
/// comando reset
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtReset_Click(object sender, EventArgs e)
{
resetSelezione();
}
/// <summary>
/// Generico evento di richiesta refresh a aprent
/// </summary>
public event EventHandler eh_doReset;
private void resetSelezione()
{
grView.SelectedIndex = -1;
grView.DataBind();
raiseReset();
#endregion Public Events
#region Public Properties
/// <summary>
/// Lotto OUT cui fare riferimento con elenco
/// </summary>
public string lotto
{
get
{
return hfLotto.Value;
}
set
{
hfLotto.Value = value;
}
}
#endregion Public Properties
#region Private Methods
private void resetSelezione()
{
grView.SelectedIndex = -1;
grView.DataBind();
raiseReset();
}
#endregion Private Methods
#region Protected Methods
/// <summary>
/// comando reset
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtReset_Click(object sender, EventArgs e)
{
resetSelezione();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
}
}
#endregion Protected Methods
#region Public Methods
/// <summary>
/// Chiamata evento
/// </summary>
public void raiseReset()
{
// se qualcuno ascolta sollevo evento nuovo valore...
if (eh_doReset != null)
{
eh_doReset(this, new EventArgs());
}
}
#endregion Public Methods
}
/// <summary>
/// Chiamata evento
/// </summary>
public void raiseReset()
{
// se qualcuno ascolta sollevo evento nuovo valore...
if (eh_doReset != null)
{
eh_doReset(this, new EventArgs());
}
}
}
}
}
@@ -124,6 +124,7 @@ namespace MP_MAG.WebUserControls
}
catch (Exception exc)
{
logger.lg.scriviLog($"Eccezione in updateTreeMenu {Environment.NewLine}{exc}");
if (safePages.IndexOf(Request.Url.Segments.LastOrDefault(), StringComparison.OrdinalIgnoreCase) < 0)
{
Response.Redirect("login", false);
+1 -1
View File
@@ -344,7 +344,7 @@ namespace MP_MAG.WebUserControls
private bool processLastCmd(bool doRaiseEv)
{
if (lastCmd == "") doRaiseEv = true;
if (string.IsNullOrEmpty(lastCmd)) doRaiseEv = true;
// processiamo barcode letto
decodedData decoData = MagDataLayer.man.decodeBcode(lastValidCmd);
switch (decoData.codeType)
@@ -342,7 +342,7 @@ namespace MP_MAG.WebUserControls
private bool processLastCmd(bool doRaiseEv)
{
if (lastCmd == "") doRaiseEv = true;
if (string.IsNullOrEmpty(lastCmd)) doRaiseEv = true;
// processiamo barcode letto
decodedData decoData = MagDataLayer.man.decodeBcode(lastValidCmd);
switch (decoData.codeType)
+5 -2
View File
@@ -7,11 +7,14 @@ using System.Web.UI.WebControls;
namespace MP_MAG
{
public partial class jumper : System.Web.UI.Page
public partial class jumper : BasePage
{
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
}
#endregion Protected Methods
}
}