Files
2023-09-12 08:46:43 +02:00

93 lines
5.4 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test2.aspx.cs" Inherits="MoonProTablet.Test2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MPTAB: <%: SteamWare.devicesAuthProxy.getPage(Request.Url) %></title>
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
<%: Scripts.Render("~/bundles/jquery") %>
<%: Scripts.Render("~/bundles/jqueryui") %>
<%: Scripts.Render("~/bundles/typeahead") %>
<%: Scripts.Render("~/bundles/BrowserWindowSize") %>
<script type="text/javascript" src="Scripts/instascan.min.js"></script>
</asp:PlaceHolder>
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
</head>
<body>
<form id="form1" runat="server">
<div class="row m-3">
<div class="col">
<h2>Test page</h2>
<script type="text/javascript">
$(document).ready(function () {
console.log("ready!");
document.getElementById('<%= lblUpdating.ClientID %>').hidden = true;
});
$("#<%=divInnovazioni.ClientID%>").change(function () {
console.log("changed!");
document.getElementById('<%= lblUpdating.ClientID %>').hidden = true;
});
function hideConfirmButton() {
//console.log('hide confirm');
document.getElementById('<%= lbtSalva.ClientID %>').hidden = true;
document.getElementById('<%= lblUpdating.ClientID %>').hidden = false;
}
function showConfirmButton() {
console.log('show confirm');
document.getElementById('<%= lbtSalva.ClientID %>').hidden = false;
document.getElementById('<%= lblUpdating.ClientID %>').hidden = true;
}
</script>
<asp:HiddenField runat="server" ID="hfShowInnov" />
<hr />
<asp:LinkButton runat="server" ID="lbtShowConfProd" OnClick="lbtShowConfProd_Click" CssClass="btn btn-dark btn-lg w-100">
<i class="fa fa-check"></i>
<asp:Label runat="server" ID="lblShowConfProd" />
</asp:LinkButton>
<div class="row textCondens text-end bg-dark m-1 p-1" runat="server" id="divInnovazioni" onloadeddata="showConfirmButton()">
<div class="col-6 py-1 text-start text-uppercase">
<b>Dati Incrementali</b>
</div>
<div class="col-6 text-end">
<sub>ultima conferma -->
<asp:Label runat="server" ID="lblDtRec"></asp:Label></sub>
</div>
<div class="col-6 col-sm-3 pr-1 align-self-end fw-bold">
<asp:Label runat="server" ID="lblNumPezzi" CssClass="mb-0" AssociatedControlID="txtNumPezzi" Text="Pz Prodotti CONFERMATI" />
<asp:TextBox runat="server" ID="txtNumPezzi" Font-Size="XX-Large" TextMode="Number" CssClass="form-control text-end alert alert-warning py-0 mb-0" Enabled="true" AutoPostBack="True" onfocus="hideConfirmButton()" onblur="showConfirmButton()" />
</div>
<div class="col-6 col-sm-3 px-1 align-self-end fw-bold">
<div class="px-2">
<asp:Label runat="server" ID="lblPzSca2Rec" CssClass="text-danger" Text="Pz Scarto" />
+
<asp:Label runat="server" ID="lblPzBuo2Rec" CssClass="text-success" Text="Pz Buoni" />
</div>
<div class="px-2" style="font-size: 2em;">
<asp:Label runat="server" ID="lblPz2RecScarto" CssClass="text-danger py-0">[B2]</asp:Label>
+
<asp:Label runat="server" ID="lblPz2RecBuoni" CssClass="text-success py-0">[C2]</asp:Label>
</div>
</div>
<div class="col-6 col-sm-3 pr-1 align-self-end fw-bold">
<asp:Label runat="server" ID="lblNumLasciati" CssClass="mb-0" AssociatedControlID="txtNumPezzi" Text="Pz Prodotti LASCIATI" />
<asp:TextBox runat="server" ID="txtNumLasciati" Font-Size="XX-Large" TextMode="Number" CssClass="form-control text-end alert alert-secondary py-0 mb-0" Enabled="true" AutoPostBack="True" onfocus="hideConfirmButton()" onblur="showConfirmButton()" />
</div>
<div class="col-6 col-sm-3 pl-1 align-self-end fw-bold">
<asp:LinkButton runat="server" ID="lbtSalva" CssClass="btn btn-success text-light btn-lg w-100"><i class="fa fa-floppy-o"></i> CONFERMA</asp:LinkButton>
<asp:Label runat="server" ID="lblUpdating" CssClass="btn btn-secondary text-light btn-lg w-100"><i class="fa fa-circle-o-notch fa-spin"></i> USER INPUT</asp:Label>
</div>
</div>
</div>
</div>
</form>
</body>
</html>