Testing flash fermata se necessario

This commit is contained in:
Samuele E. Locatelli
2018-03-14 17:26:57 +01:00
parent c508bf198d
commit 94c332dfda
12 changed files with 78 additions and 14 deletions
+1
View File
@@ -6,6 +6,7 @@
<include path="~/Content/fonts.min.css" />
<include path="~/Content/dichMan.min.css" />
<include path="~/Content/bloccoMacc.min.css" />
<include path="~/Content/flashing.min.css" />
<include path="~/Content/baseStyle.min.css" />
</styleBundle>
<styleBundle path="~/Content/themes/base/css">
+17
View File
@@ -0,0 +1,17 @@
.flashingRed {
animation-duration: 0.75s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-play-state: running;
animation-name: flsRed;
transform: translateZ(0);
}
@keyframes flsRed {
from {
border: 5px solid #dc3545;
}
to {
border: 5px solid #ffc107;
}
}
+19
View File
@@ -0,0 +1,19 @@
.flashingRed {
animation-duration: 0.75s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-play-state: running;
animation-name: flsRed;
transform: translateZ(0);
}
@keyframes flsRed {
from {
border: 5px solid #dc3545;
}
to {
border: 5px solid #ffc107;
}
}
+1
View File
@@ -0,0 +1 @@
.flashingRed{animation-duration:.75s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:running;animation-name:flsRed;transform:translateZ(0);}@keyframes flsRed{from{border:5px solid #dc3545;}to{border:5px solid #ffc107;}}
+2
View File
@@ -12,7 +12,9 @@
<div class="container-flow m-3" role="main">
<div class="row">
<div class="col-12 col-sm-8 col-md-9 col-xl-10">
<asp:LinkButton runat="server" ID="lbtFermate" CssClass="btn btn-block btn-lg btn-danger flashingRed text-warning mb-2"><i class="fa fa-lg fa-bell"></i> DICH. FERMATA</asp:LinkButton>
<uc1:mod_dettMacchina ID="mod_dettMacchina1" runat="server" />
<%--statistiche produzione--%>
<div class="card bg-dark mb-2">
<div class="card-header bg-light" id="heading01">
<p class="mb-0">
+15
View File
@@ -26,6 +26,7 @@ namespace MoonProTablet
if (!Page.IsPostBack)
{
Session["TipoLink"] = "DetMacc";
lbtFermate.Visible = showInsFermata;
}
mod_confProd1.eh_inserting += mod_confProd1_eh_inserting;
mod_confProd1.eh_newVal += mod_confProd1_eh_newVal;
@@ -52,5 +53,19 @@ namespace MoonProTablet
{
mod_dettMacchina1.doUpdate();
}
/// <summary>
/// Determina se dato lo stato dell'impianto si debba mostrare btn fermata perché
/// - impianto fermo
/// - fermo > xx min (da web.config, es 20')
/// </summary>
public bool showInsFermata
{
get
{
bool answ = true;
return answ;
}
}
}
}
+9
View File
@@ -12,6 +12,15 @@ namespace MoonProTablet {
public partial class DettaglioMacchina {
/// <summary>
/// Controllo lbtFermate.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtFermate;
/// <summary>
/// Controllo mod_dettMacchina1.
/// </summary>
+7
View File
@@ -168,6 +168,12 @@
<Content Include="Content\dichMan.min.css">
<DependentUpon>dichMan.css</DependentUpon>
</Content>
<Content Include="Content\flashing.css">
<DependentUpon>flashing.less</DependentUpon>
</Content>
<Content Include="Content\flashing.min.css">
<DependentUpon>flashing.css</DependentUpon>
</Content>
<Content Include="Content\font-awesome.css" />
<Content Include="Content\font-awesome.min.css" />
<Content Include="Content\baseStyle.css">
@@ -377,6 +383,7 @@
<Content Include="Files\Disegni\PlaceHolder.file">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Content\flashing.less" />
<None Include="NLog.xsd">
<SubType>Designer</SubType>
</None>
+1 -12
View File
@@ -5,17 +5,6 @@ window.onresize = function (event) {
function SetWidthHeight() {
var height = $(window).outerHeight();
var width = $(window).outerWidth();
//var height = $(window).height();
//var width = $(window).width();
//$(window).innerHeight() * $(window).devicePixelRatio();
//w = window.screen.width;
//h = window.screen.height;
//if (window.devicePixelRatio < 1) {
// w = window.screen.width / window.devicePixelRatio;
// h = window.screen.height / window.devicePixelRatio;
//}
$.ajax({
url: "./windowSize.ashx",
@@ -33,7 +22,7 @@ function SetWidthHeight() {
window.location.reload();
};
}).fail(function (xhr) {
alert("Problem to retrieve browser size.");
//alert("Problem to retrieve browser size.");
});
}
@@ -48,7 +48,7 @@
<asp:HyperLink runat="server" ID="hlDisegno" NavigateUrl="~/Files/Disegni/ND.pdf" CssClass="btn btn-secondary btn-sm btn-block" Target="_blank">
<i class="fa fa-file-pdf-o fa-2x"></i><br /><div class="small">DIS.</div>
</asp:HyperLink>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
+4
View File
@@ -26,5 +26,9 @@
{
"outputFile": "Content/bootstrap/bootstrap.css",
"inputFile": "Content/bootstrap/bootstrap.scss"
},
{
"outputFile": "Content/flashing.css",
"inputFile": "Content/flashing.less"
}
]