Fix grafici x machine block
This commit is contained in:
@@ -33,8 +33,8 @@ else
|
||||
{
|
||||
if (Width > 640)
|
||||
{
|
||||
<div class="card shadow rounded rounded-4 @borderCss @overlayCss" @onclick="ShowDetail">
|
||||
<img src="@ImgUrlMacc(RecMSE.Url)" class="card-img-top imgFitToSize" alt="@RecMSE.CodMacchina">
|
||||
<div class="card bg-dark shadow @cssClassBorder @cssClassOverlay rounded-4" @onclick="ShowDetail">
|
||||
<img src="@ImgUrlMacc(RecMSE.Url)" class="card-img-top imgFitToSize rounded-top-4" alt="@RecMSE.CodMacchina">
|
||||
<div class="bg-black">
|
||||
<div class="card-img-overlay p-0 d-flex flex-row-reverse align-items-start">
|
||||
<div class="labelTop px-2 w-100">
|
||||
@@ -44,10 +44,10 @@ else
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-0 bg-dark">
|
||||
<div class="card-body rounded-bottom-4 p-0 bg-dark">
|
||||
<div class="@RecMSE.Semaforo py-0 px-1">
|
||||
<div class="d-flex justify-content-between fs-5">
|
||||
<div class="px-0 @textDescrCss">
|
||||
<div class="px-0 @cssClassTextDescr">
|
||||
<span>@RecMSE.DescrizioneStato </span>
|
||||
</div>
|
||||
<div class="px-0">
|
||||
@@ -97,8 +97,8 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="card shadow rounded rounded-4 @borderCss @overlayCss" @onclick="ShowDetail">
|
||||
<img src="@ImgUrlMacc(RecMSE.Url)" class="card-img-top imgFitToSize" alt="@RecMSE.CodMacchina">
|
||||
<div class="card bg-dark shadow @cssClassBorder @cssClassOverlay rounded-4" @onclick="ShowDetail">
|
||||
<img src="@ImgUrlMacc(RecMSE.Url)" class="card-img-top imgFitToSize rounded-top-4" alt="@RecMSE.CodMacchina">
|
||||
<div class="bg-black">
|
||||
<div class="card-img-overlay p-0 d-flex flex-row-reverse align-items-start">
|
||||
<div class="labelTop px-2 py-0 w-100">
|
||||
@@ -108,10 +108,10 @@ else
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-0 bg-dark">
|
||||
<div class="card-body rounded-bottom-4 p-0 bg-dark">
|
||||
<div class="@RecMSE.Semaforo py-0 px-1">
|
||||
<div class="d-flex justify-content-between fs-5">
|
||||
<div class="px-0 @textDescrCss">
|
||||
<div class="px-0 @cssClassTextDescr">
|
||||
<span>@RecMSE.DescrizioneStato</span>
|
||||
</div>
|
||||
<div class="px-0">
|
||||
@@ -161,57 +161,6 @@ else
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@* <div class="cardObj shadow" @onclick="ShowDetail">
|
||||
<div class="card-body p-0">
|
||||
<div class="@RecMSE.Semaforo borderStd p-1 text-center">
|
||||
<div class="fs-5" style="line-height: 1.8rem;">
|
||||
<b>@RecMSE.Nome</b>
|
||||
<br />
|
||||
<b>@RecMSE.DescrizioneStato</b>: @(FormatDurata(RecMSE.Durata))
|
||||
</div>
|
||||
</div>
|
||||
@if (showCard)
|
||||
{
|
||||
<div class="d-flex justify-content-between w-100">
|
||||
<div class="px-2">
|
||||
<div class="d-flex text-success">
|
||||
<div class="px-0">
|
||||
<i class="fa-regular fa-circle-check"></i> @($"{RecMSE.PezziConf}")
|
||||
</div>
|
||||
@if (datiProdAct != null && datiProdAct.PzConfScarto > 0)
|
||||
{
|
||||
<div class="px-1">
|
||||
<div class="text-danger">
|
||||
@($"(- {datiProdAct.PzConfScarto})")
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<div class="text-end text-warning">
|
||||
<i class="fa-solid fa-layer-group"></i> @($"{RecMSE.PezziProd}")
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between w-100" style="height: 100px; width: 100px;">
|
||||
<div class="col-6">
|
||||
<EgwCoreLib.Razor.CircleGaugeMulti Titolo="@($"{currMaxVal}")" Testo="#pz prod" maxVal="@currMaxVal" ListInner="@innerCircleVals" ListOuter="@outerCircleVals" ShowCircleBtn="true"></EgwCoreLib.Razor.CircleGaugeMulti>
|
||||
</div>
|
||||
<div style="font-size: 1rem; flex-direction: column; font-size: 1rem; display: flex; justify-content: center;" class="me-3 col-6">
|
||||
<div class="text-center text-light d-flex justify-content-between">
|
||||
<div class="col-4"><span>ART.</span></div>
|
||||
<div class="col-8">@RecMSE.CodArticolo</div>
|
||||
</div>
|
||||
<div class="text-center text-light d-flex justify-content-between small">
|
||||
<div class="col-4">ORD.</div>
|
||||
<div class="col-8">@($"ODL{RecMSE.IdxOdl:00000000}")</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div> *@
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -291,7 +240,7 @@ else
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between mt-1">
|
||||
<div class="col-10 mb-2 px-2 py-1 @RecMSE.Semaforo statusCard">
|
||||
<div class="col mb-2 px-2 py-1 @RecMSE.Semaforo rounded">
|
||||
<div class="d-flex justify-content-center ">
|
||||
<div class="p-0 mr-auto me-1">
|
||||
@RecMSE.DescrizioneStato
|
||||
@@ -301,12 +250,15 @@ else
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="px-1 w-100">
|
||||
@* <a target="_blank" href="@($"disegni/{RecMSE.CodArticolo}.pdf")" class="btn btn-sm btn-secondary w-100"><i class="fa-regular fa-file-pdf"></i></a> *@
|
||||
<button class="btn btn-sm btn-info w-100" @onclick="ToggleDraw"><i class="fa-regular fa-file-pdf"></i></button>
|
||||
@if (enableDisegno)
|
||||
{
|
||||
<div class="col-2">
|
||||
<div class="px-1 w-100">
|
||||
@* <a target="_blank" href="@($"disegni/{RecMSE.CodArticolo}.pdf")" class="btn btn-sm btn-secondary w-100"><i class="fa-regular fa-file-pdf"></i></a> *@
|
||||
<button class="btn btn-sm btn-info w-100" @onclick="ToggleDraw"><i class="fa-regular fa-file-pdf"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -99,14 +99,17 @@ namespace MP_TAB3.Components
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
[Inject]
|
||||
protected IConfiguration config { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// CSS Class bordo da stato macchina
|
||||
/// </summary>
|
||||
protected string borderCss
|
||||
protected string cssClassBorder
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "border-2";
|
||||
string answ = "border-3";
|
||||
if (RecMSE != null)
|
||||
{
|
||||
switch (RecMSE.Semaforo)
|
||||
@@ -140,8 +143,37 @@ namespace MP_TAB3.Components
|
||||
}
|
||||
}
|
||||
|
||||
[Inject]
|
||||
protected IConfiguration config { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// CSS Class x overlay (effetto spento x macchina spenta/ sGr)
|
||||
/// </summary>
|
||||
protected string cssClassOverlay
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (RecMSE != null)
|
||||
{
|
||||
answ = RecMSE.Semaforo == "sGr" ? "bg-dark opacity-50" : "";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// CSS class x testo (se descr lunga scorre...)
|
||||
/// </summary>
|
||||
protected string cssClassTextDescr
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "text-nowrap";
|
||||
if (RecMSE != null && RecMSE.DescrizioneStato.Length >= 17)
|
||||
{
|
||||
answ = " scroll-left";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected ProdAdvDispl.ProdCounter CurrCount
|
||||
{
|
||||
@@ -175,44 +207,12 @@ namespace MP_TAB3.Components
|
||||
[Inject]
|
||||
protected NavigationManager NavMan { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// CSS Class x overlay (effetto spento x macchina spenta/ sGr)
|
||||
/// </summary>
|
||||
protected string overlayCss
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (RecMSE != null)
|
||||
{
|
||||
answ = RecMSE.Semaforo == "sGr" ? "bg-dark opacity-50" : "";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
[Inject]
|
||||
protected StatusData SDService { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected TabDataService TabDServ { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// CSS class x testo (se descr lunga scorre...)
|
||||
/// </summary>
|
||||
protected string textDescrCss
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "text-nowrap";
|
||||
if (RecMSE != null && RecMSE.DescrizioneStato.Length >= 20)
|
||||
{
|
||||
answ = " scroll-left";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
@@ -1,16 +1,4 @@
|
||||
/* Bordi */
|
||||
/*.rCAll {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.rCTop {
|
||||
border-radius: 10px 10px 0 0;
|
||||
}
|
||||
|
||||
.rCBot {
|
||||
border-radius: 0 0 10px 10px;
|
||||
}*/
|
||||
.mapBlock {
|
||||
.mapBlock {
|
||||
font-family: 'Open Sans Condensed', sans-serif;
|
||||
color: #FFF;
|
||||
background-image: linear-gradient(#111, #000);
|
||||
@@ -35,7 +23,6 @@
|
||||
position: relative;
|
||||
width: 70%;
|
||||
white-space: nowrap;
|
||||
/*display: inline-block;*/
|
||||
}
|
||||
.scroll-left span {
|
||||
/*display: inline-block;*/
|
||||
@@ -69,9 +56,6 @@
|
||||
.sVe {
|
||||
text-align: left;
|
||||
background: #198754;
|
||||
/*background: rgba(0,255,80,.6);*/
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
/*color: Yellow;*/
|
||||
color: #fff;
|
||||
}
|
||||
.sGi {
|
||||
@@ -79,21 +63,17 @@
|
||||
background: #ffc107;
|
||||
background: rgba(255, 220, 0, 0.6);
|
||||
color: #fff;
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
}
|
||||
.sRo {
|
||||
text-align: left;
|
||||
background-color: #e2001a;
|
||||
background: rgba(240, 0, 10, 0.6);
|
||||
color: #fff;
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
}
|
||||
.sBl {
|
||||
text-align: left;
|
||||
background: #3690FF;
|
||||
background: rgba(0, 80, 255, 0.6);
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
/*color: Yellow;*/
|
||||
color: #fff;
|
||||
}
|
||||
.sGr {
|
||||
@@ -101,18 +81,15 @@
|
||||
background-color: #bcbcbc;
|
||||
background: rgba(180, 180, 180, 0.6);
|
||||
color: #fff;
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
}
|
||||
/*end semafori */
|
||||
.card-body {
|
||||
background-color: currentColor;
|
||||
background-image: linear-gradient(121deg, rgba(255, 255, 255, 0.2) -0.71%, rgba(255, 255, 255, 0.05) 97.66%);
|
||||
border-radius: 0 0 15px 15px;
|
||||
}
|
||||
.imgFitToSize {
|
||||
height: 11rem;
|
||||
object-fit: cover;
|
||||
border-radius: 15px 15px 0 0;
|
||||
}
|
||||
@media (max-width: 640.98px) {
|
||||
.imgFitToSize {
|
||||
@@ -121,7 +98,4 @@
|
||||
.card-body {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
.statusCard {
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
@@ -1,16 +1,4 @@
|
||||
/* Bordi */
|
||||
/*.rCAll {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.rCTop {
|
||||
border-radius: 10px 10px 0 0;
|
||||
}
|
||||
|
||||
.rCBot {
|
||||
border-radius: 0 0 10px 10px;
|
||||
}*/
|
||||
|
||||
|
||||
.mapBlock {
|
||||
font-family: 'Open Sans Condensed', sans-serif;
|
||||
color: #FFF;
|
||||
@@ -37,7 +25,6 @@
|
||||
position: relative;
|
||||
width: 70%;
|
||||
white-space: nowrap;
|
||||
/*display: inline-block;*/
|
||||
}
|
||||
|
||||
.scroll-left span {
|
||||
@@ -72,9 +59,6 @@
|
||||
.sVe {
|
||||
text-align: left;
|
||||
background: #198754;
|
||||
/*background: rgba(0,255,80,.6);*/
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
/*color: Yellow;*/
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -83,7 +67,6 @@
|
||||
background: #ffc107;
|
||||
background: rgba(255,220,0,.6);
|
||||
color: #fff;
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
}
|
||||
|
||||
.sRo {
|
||||
@@ -91,15 +74,12 @@
|
||||
background-color: #e2001a;
|
||||
background: rgba(240,0,10,.6);
|
||||
color: #fff;
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
}
|
||||
|
||||
.sBl {
|
||||
text-align: left;
|
||||
background: #3690FF;
|
||||
background: rgba(0,80,255,.6);
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
/*color: Yellow;*/
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -108,19 +88,16 @@
|
||||
background-color: #bcbcbc;
|
||||
background: rgba(180,180,180,.6);
|
||||
color: #fff;
|
||||
/*padding: 0px 4px 0px 4px;*/
|
||||
}
|
||||
/*end semafori */
|
||||
.card-body {
|
||||
background-color: currentColor;
|
||||
background-image: linear-gradient(121deg, rgba(255, 255, 255, 0.20) -0.71%, rgba(255, 255, 255, 0.05) 97.66%);
|
||||
border-radius: 0 0 15px 15px
|
||||
}
|
||||
|
||||
.imgFitToSize {
|
||||
height: 11rem;
|
||||
object-fit: cover;
|
||||
border-radius: 15px 15px 0 0;
|
||||
}
|
||||
|
||||
@media (max-width: 640.98px){
|
||||
@@ -132,9 +109,3 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.statusCard {
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
.mapBlock{font-family:'Open Sans Condensed',sans-serif;color:#fff;background-image:linear-gradient(#111,#000);min-width:8em;}.labelTop{padding:.1em;width:auto;min-height:0;top:0;left:auto;bottom:auto;color:#fff;background:#2200de;background:rgba(33,36,39,.75);border-radius:15px 15px 0 0;}.scroll-left{height:1.5em;overflow:hidden;position:relative;width:70%;white-space:nowrap;}.scroll-left span{position:absolute;width:100%;height:100%;margin:0;line-height:1.5em;-moz-transform:translateX(0%);-webkit-transform:translateX(0%);transform:translateX(0%);-moz-animation:scroll-left 8s ease infinite;-webkit-animation:scroll-left 8s ease infinite;animation:scroll-left 8s ease infinite;}@keyframes scroll-left{0%{transform:translateX(0%);}30%{transform:translateX(0%);}80%{transform:translateX(-50%);}}.sVe{text-align:left;background:#198754;color:#fff;}.sGi{text-align:left;background:#ffc107;background:rgba(255,220,0,.6);color:#fff;}.sRo{text-align:left;background-color:#e2001a;background:rgba(240,0,10,.6);color:#fff;}.sBl{text-align:left;background:#3690ff;background:rgba(0,80,255,.6);color:#fff;}.sGr{text-align:left;background-color:#bcbcbc;background:rgba(180,180,180,.6);color:#fff;}.card-body{background-color:currentColor;background-image:linear-gradient(121deg,rgba(255,255,255,.2) -.71%,rgba(255,255,255,.05) 97.66%);border-radius:0 0 15px 15px;}.imgFitToSize{height:11rem;object-fit:cover;border-radius:15px 15px 0 0;}@media(max-width:640.98px){.imgFitToSize{height:8rem;}.card-body{background-color:transparent;}}.statusCard{border-radius:.5rem;}
|
||||
.mapBlock{font-family:'Open Sans Condensed',sans-serif;color:#fff;background-image:linear-gradient(#111,#000);min-width:8em;}.labelTop{padding:.1em;width:auto;min-height:0;top:0;left:auto;bottom:auto;color:#fff;background:#2200de;background:rgba(33,36,39,.75);border-radius:15px 15px 0 0;}.scroll-left{height:1.5em;overflow:hidden;position:relative;width:70%;white-space:nowrap;}.scroll-left span{position:absolute;width:100%;height:100%;margin:0;line-height:1.5em;-moz-transform:translateX(0%);-webkit-transform:translateX(0%);transform:translateX(0%);-moz-animation:scroll-left 8s ease infinite;-webkit-animation:scroll-left 8s ease infinite;animation:scroll-left 8s ease infinite;}@keyframes scroll-left{0%{transform:translateX(0%);}30%{transform:translateX(0%);}80%{transform:translateX(-50%);}}.sVe{text-align:left;background:#198754;color:#fff;}.sGi{text-align:left;background:#ffc107;background:rgba(255,220,0,.6);color:#fff;}.sRo{text-align:left;background-color:#e2001a;background:rgba(240,0,10,.6);color:#fff;}.sBl{text-align:left;background:#3690ff;background:rgba(0,80,255,.6);color:#fff;}.sGr{text-align:left;background-color:#bcbcbc;background:rgba(180,180,180,.6);color:#fff;}.card-body{background-color:currentColor;background-image:linear-gradient(121deg,rgba(255,255,255,.2) -.71%,rgba(255,255,255,.05) 97.66%);}.imgFitToSize{height:11rem;object-fit:cover;}@media(max-width:640.98px){.imgFitToSize{height:8rem;}.card-body{background-color:transparent;}}
|
||||
Reference in New Issue
Block a user