Pagina tablet RT accetta tutti i parametri richiesti e li mostra, compresi css, update dataora...
This commit is contained in:
@@ -38,6 +38,9 @@ namespace GMW_RT
|
||||
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
|
||||
"~/Scripts/jquery-ui-{version}.js"));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/bundles/signalR").Include(
|
||||
"~/Scripts/jquery.signalR-{version}.js"));
|
||||
|
||||
//bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
|
||||
// "~/Scripts/jquery.unobtrusive*",
|
||||
// "~/Scripts/jquery.validate*"));
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<%: System.Web.Optimization.Scripts.Render("~/bundles/modernizr") %>
|
||||
<%: System.Web.Optimization.Scripts.Render("~/bundles/jquery") %>
|
||||
<%: System.Web.Optimization.Scripts.Render("~/bundles/jqueryui") %>
|
||||
<%: System.Web.Optimization.Scripts.Render("~/bundles/signalR") %>
|
||||
</asp:PlaceHolder>
|
||||
|
||||
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
||||
@@ -54,7 +55,9 @@
|
||||
</button>
|
||||
<a class="navbar-brand" href="#"><b>GMW</b> <sub>RealTime panel</sub></a>
|
||||
</div>
|
||||
<p class="navbar-text navbar-right"><b>Postazione Liquidi</b></p>
|
||||
<p class="navbar-text navbar-right">
|
||||
<b>Postazione Liquidi</b>
|
||||
</p>
|
||||
<div class="navbar-collapse collapse">
|
||||
<%--<ul id="itemPlaceholderContainer" runat="server" class="nav navbar-nav navbar-inverse navbar-right">
|
||||
<li>1234</li>
|
||||
@@ -64,10 +67,10 @@
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
<div class="subnavbar" style="color: #999;">
|
||||
<div class="navbar-left">
|
||||
<div id="divNavSx" class="navbar-left">
|
||||
<%: SteamWare.user_std.pagCorrente %>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
<div id="divNavDx" class="navbar-right">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
@@ -86,9 +89,10 @@
|
||||
<div class="navbar navbar-inverse navbar-fixed-bottom" role="navigation" style="min-height: 24px;">
|
||||
<div class="container-fluid">
|
||||
<p class="navbar-text navbar-left" style="margin-bottom: 0px; margin-top: 0px; margin-left: 0px;">
|
||||
<asp:Label runat="server" ID="lblDateTime">
|
||||
<%: SteamWare.memLayer.ML.confReadString("_titoloPagina") %>
|
||||
<%--<asp:Label runat="server" ID="lblDateTime">
|
||||
<%: DateTime.Now.ToString("ddd dd/MM/yyyy - HH:mm:ss") %></asp:Label>
|
||||
<%--|
|
||||
|
|
||||
<asp:Label runat="server" ID="lblUtente"><%: GMW_data.MagClass.magazzino.CodSoggCurrUser %></asp:Label>--%>
|
||||
</p>
|
||||
<p class="navbar-text navbar-right" style="margin-bottom: 0px; margin-top: 0px;">
|
||||
|
||||
Generated
-9
@@ -84,15 +84,6 @@ namespace GMW_RT {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder Main;
|
||||
|
||||
/// <summary>
|
||||
/// lblDateTime 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 lblDateTime;
|
||||
|
||||
/// <summary>
|
||||
/// lblVers control.
|
||||
/// </summary>
|
||||
|
||||
+18
-1
@@ -35,11 +35,28 @@ namespace GMW_RT
|
||||
{
|
||||
//var hubContext = GlobalHost.ConnectionManager.GetHubContext<ChatHub>();
|
||||
//hubContext.Clients.All.broadcastMessage("BroadCast", messaggio);
|
||||
_hubContext.Clients.All.broadcastMessage(sender, messaggio);
|
||||
_hubContext.Clients.All.broadcastMessage(sender, messaggio);
|
||||
|
||||
// non va cross domain, va fatto un setup + complesso...
|
||||
//http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-javascript-client#crossdomain
|
||||
}
|
||||
/// <summary>
|
||||
/// metodo invio messaggio a pagina tablet
|
||||
/// </summary>
|
||||
/// <param name="text01">Testo primario (codice UDC)</param>
|
||||
/// <param name="text02">Testo secondario (particolare)</param>
|
||||
/// <param name="text03">Note per utente</param>
|
||||
/// <param name="text04">num pezzi caricati</param>
|
||||
/// <param name="text05">num pezzi tot</param>
|
||||
/// <param name="text06">num pezzi restanti</param>
|
||||
/// <param name="css1">Classe css blocco 1</param>
|
||||
/// <param name="css2">Classe css blocco 2</param>
|
||||
/// <param name="css3">Classe css blocco 3</param>
|
||||
public void updateTablet(string text01, string text02, string text03, string text04, string text05, string text06, string css1, string css2, string css3)
|
||||
{
|
||||
// invio le stringhe alla pagina via signalR
|
||||
_hubContext.Clients.All.sendPanelUpdate(text01, text02, text03, text04, text05, text06, css1, css2, css3);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -17,5 +17,22 @@ namespace GMW_RT
|
||||
// Call the broadcastMessage method to update clients.
|
||||
Clients.All.broadcastMessage(name, message);
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// metodo invio messaggio a pagina tablet
|
||||
/// </summary>
|
||||
/// <param name="text01">Testo primario (codice UDC)</param>
|
||||
/// <param name="text02">Testo secondario (particolare)</param>
|
||||
/// <param name="text03">Note per utente</param>
|
||||
/// <param name="text04">num pezzi caricati</param>
|
||||
/// <param name="text05">num pezzi tot</param>
|
||||
/// <param name="text06">num pezzi restanti</param>
|
||||
/// <param name="css">Stile css del panel</param>
|
||||
public void updateTablet(string text01, string text02, string text03, string text04, string text05, string text06, string css)
|
||||
{
|
||||
// invio le stringhe alla pagina via signalR
|
||||
Clients.All.sendPanelUpdate(text01, text02, text03, text04, text05, text06, css);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,20 @@ namespace GMW_RT
|
||||
{
|
||||
Broad.cast.sendMess(mittente, messaggio);
|
||||
}
|
||||
|
||||
string txt01 = Request.QueryString["txt01"];
|
||||
string txt02 = Request.QueryString["txt02"];
|
||||
string txt03 = Request.QueryString["txt03"];
|
||||
string txt04 = Request.QueryString["txt04"];
|
||||
string txt05 = Request.QueryString["txt05"];
|
||||
string txt06 = Request.QueryString["txt06"];
|
||||
string css1 = Request.QueryString["css1"];
|
||||
string css2 = Request.QueryString["css2"];
|
||||
string css3 = Request.QueryString["css3"];
|
||||
if (txt01 != "" || txt02 != "" || txt03 != "" || txt04 != "" || txt05 != "" || txt06 != "" || css1 != "" || css2 != "" || css3 != "")
|
||||
{
|
||||
Broad.cast.updateTablet(txt01, txt02, txt03, txt04, txt05, txt06, css1, css2, css3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+45
-11
@@ -5,20 +5,20 @@
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="Featured" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="Main" runat="server">
|
||||
<div id="main" class="container-fluid" role="main">
|
||||
<div class="row fontLrg" style="background-color: #cdffcd; min-height: 100%;">
|
||||
<div id="main" class="container-fluid stileAttesa" role="main">
|
||||
<div id="r1" class="row fontLrg" style="min-height: 100%;">
|
||||
<div class="col-xs-12 text-center">
|
||||
<asp:Label runat="server" ID="lblUDC">USPFI14000007</asp:Label>
|
||||
<asp:Label runat="server" ID="lblTxt01">USPFI14000007</asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row fontNorm" style="background-color: #ababab; min-height: 100%; line-height: 1em;">
|
||||
<div id="r2" class="row fontNorm" style="min-height: 100%; line-height: 1em;">
|
||||
<div class="col-xs-12 text-center">
|
||||
<asp:Label runat="server" ID="lblParticolare">1GRZ02760001</asp:Label>
|
||||
<asp:Label runat="server" ID="lblTxt02">1GRZ02760001</asp:Label>
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblDescrizione" Font-Size="0.4em">descrizione particolare</asp:Label>
|
||||
<asp:Label runat="server" ID="lblTxt03" Font-Size="0.4em">messaggio operatore</asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row fontSmall" style="background-color: #cdcdcd; min-height: 100%;">
|
||||
<div id="r3" class="row fontSmall" style="min-height: 100%;">
|
||||
<div class="col-xs-5 text-right">
|
||||
Pezzi caricati
|
||||
</div>
|
||||
@@ -31,19 +31,53 @@
|
||||
Rimanenti
|
||||
</div>
|
||||
</div>
|
||||
<div class="row fontXL" style="background-color: #cdcdcd; min-height: 100%;">
|
||||
<div id="r4" class="row fontXL" style="min-height: 100%;">
|
||||
<div class="col-xs-5 text-right">
|
||||
<asp:Label runat="server" ID="lblNumCaricati"><b>20</b></asp:Label>
|
||||
<asp:Label runat="server" ID="lblTxt04"><b>20</b></asp:Label>
|
||||
</div>
|
||||
<div class="col-xs-1 text-center">
|
||||
/
|
||||
</div>
|
||||
<div class="col-xs-3 text-left">
|
||||
<asp:Label runat="server" ID="lblQtaTot">80</asp:Label>
|
||||
<asp:Label runat="server" ID="lblTxt05">80</asp:Label>
|
||||
</div>
|
||||
<div class="col-xs-3 text-right">
|
||||
<asp:Label runat="server" ID="lblRimanenti" Font-Size="0.5em">(-60)</asp:Label>
|
||||
<asp:Label runat="server" ID="lblTxt06" Font-Size="0.5em">(-60)</asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--Reference the autogenerated SignalR hub script. -->
|
||||
<script src="signalr/hubs"></script>
|
||||
<!--Add script to update the page and send messages.-->
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
// Declare a proxy to reference the hub.
|
||||
var chat = $.connection.chatHub;
|
||||
// Create a function that the hub can call to broadcast messages.
|
||||
chat.client.sendPanelUpdate = function (text01, text02, text03, text04, text05, text06, css1, css2, css3) {
|
||||
$("#<%=lblTxt01.ClientID %>").text(text01);
|
||||
$("#<%=lblTxt02.ClientID%>").text(text02);
|
||||
$("#<%=lblTxt03.ClientID %>").text(text03);
|
||||
$("#<%=lblTxt04.ClientID %>").text(text04);
|
||||
$("#<%=lblTxt05.ClientID %>").text(text05);
|
||||
$("#<%=lblTxt06.ClientID %>").text(text06);
|
||||
$("#r1,#r2,#r3,#r4").removeClass("stileAttesa stileComandoOk stileComandoKo");
|
||||
$("#r1").addClass(css1);
|
||||
$("#r2").addClass(css2);
|
||||
$("#r3").addClass(css3);
|
||||
$("#r4").addClass(css3);
|
||||
$("#divNavDx").text(Date());
|
||||
};
|
||||
|
||||
// Start the connection.
|
||||
$.connection.hub.start().done(function () {
|
||||
//$('#sendmessage').click(function () {
|
||||
// // Call the Send method on the hub.
|
||||
// chat.server.updateTablet('t1', 't2', 't3', '11', '22', '33');
|
||||
// // Clear text box and reset focus for next comment.
|
||||
// $('#message').val('').focus();
|
||||
//});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</asp:Content>
|
||||
|
||||
Generated
+12
-12
@@ -13,57 +13,57 @@ namespace GMW_RT {
|
||||
public partial class PostLiquidi {
|
||||
|
||||
/// <summary>
|
||||
/// lblUDC control.
|
||||
/// lblTxt01 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 lblUDC;
|
||||
protected global::System.Web.UI.WebControls.Label lblTxt01;
|
||||
|
||||
/// <summary>
|
||||
/// lblParticolare control.
|
||||
/// lblTxt02 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 lblParticolare;
|
||||
protected global::System.Web.UI.WebControls.Label lblTxt02;
|
||||
|
||||
/// <summary>
|
||||
/// lblDescrizione control.
|
||||
/// lblTxt03 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 lblDescrizione;
|
||||
protected global::System.Web.UI.WebControls.Label lblTxt03;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumCaricati control.
|
||||
/// lblTxt04 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 lblNumCaricati;
|
||||
protected global::System.Web.UI.WebControls.Label lblTxt04;
|
||||
|
||||
/// <summary>
|
||||
/// lblQtaTot control.
|
||||
/// lblTxt05 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 lblQtaTot;
|
||||
protected global::System.Web.UI.WebControls.Label lblTxt05;
|
||||
|
||||
/// <summary>
|
||||
/// lblRimanenti control.
|
||||
/// lblTxt06 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 lblRimanenti;
|
||||
protected global::System.Web.UI.WebControls.Label lblTxt06;
|
||||
}
|
||||
}
|
||||
|
||||
+23
-13
@@ -14,18 +14,25 @@
|
||||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5" />
|
||||
<httpRuntime targetFramework="4.5" />
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5" />
|
||||
<httpRuntime targetFramework="4.5" />
|
||||
<httpModules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
|
||||
</httpModules><pages>
|
||||
<controls>
|
||||
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
|
||||
</controls>
|
||||
</pages></system.web>
|
||||
</httpModules>
|
||||
<pages>
|
||||
<controls>
|
||||
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
|
||||
</controls>
|
||||
</pages>
|
||||
</system.web>
|
||||
<appSettings>
|
||||
<!--Setup applicazione-->
|
||||
<add key="CodModulo" value="GMW" />
|
||||
<add key="_titoloPagina" value="GMW - Fonderie Mazzucconi S.p.A, portale Gestione Magazzino Web" />
|
||||
</appSettings>
|
||||
|
||||
<runtime>
|
||||
|
||||
@@ -75,20 +82,22 @@
|
||||
|
||||
</runtime>
|
||||
|
||||
<system.webServer>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<modules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
|
||||
</modules>
|
||||
</system.webServer><elmah>
|
||||
</system.webServer>
|
||||
<elmah>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on remote access and securing ELMAH.
|
||||
-->
|
||||
<security allowRemoteAccess="false" />
|
||||
</elmah><location path="elmah.axd" inheritInChildApplications="false">
|
||||
</elmah>
|
||||
<location path="elmah.axd" inheritInChildApplications="false">
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
|
||||
@@ -101,11 +110,12 @@
|
||||
<allow roles="admin" />
|
||||
<deny users="*" />
|
||||
</authorization>
|
||||
-->
|
||||
-->
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</location></configuration>
|
||||
</location>
|
||||
</configuration>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -24,6 +24,7 @@
|
||||
<script src="Scripts/jquery-2.1.0.min.js" ></script>
|
||||
<!--Reference the SignalR library. -->
|
||||
<script src="Scripts/jquery.signalR-2.0.3.min.js"></script>
|
||||
|
||||
<!--Reference the autogenerated SignalR hub script. -->
|
||||
<script src="signalr/hubs"></script>
|
||||
<!--Add script to update the page and send messages.-->
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user