aggiunta pagina x check sigLogEnabled...

This commit is contained in:
Samuele E. Locatelli
2016-12-23 14:59:29 +01:00
parent 9c8f11c020
commit bdb79b4758
8 changed files with 174 additions and 1 deletions
Binary file not shown.
+8
View File
@@ -208,6 +208,14 @@
<binding protocol="http" bindingInformation="*:2809:localhost" />
</bindings>
</site>
<site name="MP-API" id="8">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\MAPO\MoonPro_dotnet\MP-API" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:17702:localhost" />
</bindings>
</site>
<siteDefaults>
<logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" />
<traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" maxLogFileSizeKB="1024" />
+52
View File
@@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamWare", "..\..\Steamwar
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MP-IO", "MP-IO\MP-IO.csproj", "{CE6CADA3-FA0E-41D6-AD43-8C92481DC29E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MP-API", "MP-API\MP-API.csproj", "{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
218_SP|Any CPU = 218_SP|Any CPU
@@ -240,6 +242,56 @@ Global
{CE6CADA3-FA0E-41D6-AD43-8C92481DC29E}.Valgasket|Any CPU.Build.0 = IIS02|Any CPU
{CE6CADA3-FA0E-41D6-AD43-8C92481DC29E}.WinLab|Any CPU.ActiveCfg = IIS02|Any CPU
{CE6CADA3-FA0E-41D6-AD43-8C92481DC29E}.WinLab|Any CPU.Build.0 = IIS02|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.218_SP|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.218_SP|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.218_test|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.218_test|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Alumat|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Alumat|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.CMS|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.CMS|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.DEMO|Any CPU.ActiveCfg = Debug|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.DEMO|Any CPU.Build.0 = Debug|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.deploy|Any CPU.ActiveCfg = Debug|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.deploy|Any CPU.Build.0 = Debug|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Donati|Any CPU.ActiveCfg = Debug|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Donati|Any CPU.Build.0 = Debug|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.EQUA|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.EQUA|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.ETS|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.ETS|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.ETS-218|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.ETS-218|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS01_SP|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS01_SP|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS01_TK|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS01_TK|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS01|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS01|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS02_SP|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS02_SP|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS02_TK|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS02_TK|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS02|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.IIS02|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.MoonProDemo-OVH|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.MoonProDemo-OVH|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.OVH-demo|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.OVH-demo|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Release|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.SomaschiniUSA|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.SomaschiniUSA|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Steamware|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Steamware|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Valgasket|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.Valgasket|Any CPU.Build.0 = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.WinLab|Any CPU.ActiveCfg = Release|Any CPU
{DBA8D30F-006A-4EDE-9D9B-A50A363098B5}.WinLab|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
+8
View File
@@ -88,6 +88,7 @@
<Content Include="lastUpdate.aspx" />
<Content Include="PingPage.htm" />
<Content Include="sendReboot.aspx" />
<Content Include="sigLogEnabled.aspx" />
<Content Include="status.aspx" />
<Content Include="Web.config">
<SubType>Designer</SubType>
@@ -140,6 +141,13 @@
<Compile Include="sendReboot.aspx.designer.cs">
<DependentUpon>sendReboot.aspx</DependentUpon>
</Compile>
<Compile Include="sigLogEnabled.aspx.cs">
<DependentUpon>sigLogEnabled.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="sigLogEnabled.aspx.designer.cs">
<DependentUpon>sigLogEnabled.aspx</DependentUpon>
</Compile>
<Compile Include="status.aspx.cs">
<DependentUpon>status.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+1 -1
View File
@@ -21,7 +21,7 @@ namespace MP_IO
// legge i get x processare la seriale
int idxMacchina = 0;
bool enabled = false;
string answ = "";
string answ = "ND";
try
{
idxMacchina = Convert.ToInt32(Request.QueryString["idxMacchina"]);
+16
View File
@@ -0,0 +1,16 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sigLogEnabled.aspx.cs" Inherits="MP_IO.sigLogEnabled" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
+63
View File
@@ -0,0 +1,63 @@
using System;
using SteamWare;
namespace MP_IO
{
public partial class sigLogEnabled : System.Web.UI.Page
{
/// <summary>
/// caricamento pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
// legge i get x processare la seriale
int idxMacchina = 0;
bool enabled = false;
string answ = "ND";
try
{
idxMacchina = Convert.ToInt32(Request.QueryString["idxMacchina"]);
}
catch
{
idxMacchina = 0;
}
if (idxMacchina != 0)
{
try
{
enabled = MapoDb.MapoDb.obj.sLogEnabled(idxMacchina);
if (enabled)
{
answ = "OK";
}
else
{
answ = "NO";
}
}
catch (Exception exc)
{
if (memLayer.ML.confReadInt("_logLevel") > 5)
{
string errore = string.Format("Errore: {0}{1}", Environment.NewLine, exc);
logger.lg.scriviLog(errore, tipoLog.EXCEPTION);
answ = errore;
}
}
}
else
{
string errore = "Errore: parametri macchina vuoti";
logger.lg.scriviLog(errore, tipoLog.ERROR);
answ = errore;
}
// ripulisco pagina restituita e tolgo html (solo codice ok/NO)
Response.Clear();
Response.Write(answ);
Context.Response.End();
}
}
}
+26
View File
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------
namespace MP_IO
{
public partial class sigLogEnabled
{
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
}
}