diff --git a/MP.Stats/Components/ModalSearchMacc.razor b/MP.Stats/Components/ModalSearchMacc.razor index 1881a845..73a479db 100644 --- a/MP.Stats/Components/ModalSearchMacc.razor +++ b/MP.Stats/Components/ModalSearchMacc.razor @@ -10,11 +10,6 @@ - @*
| + | + @if (AllSelected) + { + + } + else + { + + } + @* *@ + | Cod. | Nome | |||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Macchina | -Commessa/ODL | -Articolo | -Inizio | -Fine | - @if (dynMode) - { -@Traduci("MP-STATS_TotCount01") | - @if (numCount > 1) - { -@Traduci("MP-STATS_TotCount02") | - } - @if (numCount > 2) - { -@Traduci("MP-STATS_TotCount03") | - } -@Traduci("MP-STATS_TotEn01") | -@Traduci("MP-STATS_TotEn01")/Unit | - @if (numTotEn > 1) - { -@Traduci("MP-STATS_TotEn02") | -@Traduci("MP-STATS_TotEn02")/Unit | - } - @if (numTotEn > 2) - { -@Traduci("MP-STATS_TotEn03") | -@Traduci("MP-STATS_TotEn03")/Unit | - } - } - else - { -Unit | -Energy | -Gas | - } -||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @record.IdxMacchina | -
- @record.KeyRichiesta
- @record.IdxOdl
- |
-
- @record.CodArticolo
- @record.DescArticolo
- |
- @record.DataInizio | -@record.DataFine | - @if (dynMode) - { -@($"{record.TotCount01:N0}") @GetUM("TotCount01") | - @if (numCount > 1) + if (MaccSelValid) + { + if (ShowCharts == true) + { +|||||||||||||||||||||||||||||||||||||||||||||
| Macchina | +Commessa/ODL | +Articolo | +Inizio | +Fine | + @if (dynMode) { -@($"{record.TotCount02:N0}") @GetUM("TotCount02") | - } - @if (numCount > 2) - { -@($"{record.TotCount03:N0}") @GetUM("TotCount03") | - } -
-
- @($"{record.TotEn01:N2}") @GetUM("TotEn01")
-
- |
-
-
- @righDiv(record.TotEn01, record.TotCount01).ToString("N3") @GetUM("TotEn01")/@GetUM("TotCount01")
-
+ | @Traduci("MP-STATS_TotCount01") | @if (numCount > 1) { -@Traduci("MP-STATS_TotCount02") | } @if (numCount > 2) { -@Traduci("MP-STATS_TotCount03") | + } +@Traduci("MP-STATS_TotEn01") | +@Traduci("MP-STATS_TotEn01")/Unit | + @if (numTotEn > 1) + { +@Traduci("MP-STATS_TotEn02") | +@Traduci("MP-STATS_TotEn02")/Unit | + } + @if (numTotEn > 2) + { +@Traduci("MP-STATS_TotEn03") | +@Traduci("MP-STATS_TotEn03")/Unit | } - - @if (numTotEn > 1) - { -
-
- @($"{record.TotEn02:N2}") @GetUM("TotEn02")
-
- |
-
-
- @righDiv(record.TotEn02, record.TotCount01).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount01")
-
- @if (numCount > 1)
- {
-
- @righDiv(record.TotEn02, record.TotCount02).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount02")
-
- }
- @if (numCount > 2)
- {
-
- @righDiv(record.TotEn02, record.TotCount03).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount03")
-
- }
- |
}
- @if (numTotEn > 2)
+ else
{
-
-
- @($"{record.TotEn03:N2}") @GetUM("TotEn03")
-
- |
-
-
- @righDiv(record.TotEn03, record.TotCount01).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount01")
-
- @if (numCount > 1)
- {
-
- @righDiv(record.TotEn03, record.TotCount02).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount02")
-
- }
- @if (numCount > 2)
- {
-
- @righDiv(record.TotEn03, record.TotCount03).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount03")
-
- }
- |
+ Unit | +Energy | +Gas | } - } - else +@(record.TotCount.ToString("N0")) m | -
-
- @record.TotWatt.ToString("N2") kWh
-
-
- @righDiv(record.TotWatt, record.TotCount).ToString("N3") kWh/m
-
- |
-
-
- @record.TotGas.ToString("N2") m3
-
-
- @righDiv(record.TotGas, record.TotCount).ToString("N3") m3/m
-
- |
+ string textCss = CheckCurrent(record);
+
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @record.IdxMacchina | +
+ @record.KeyRichiesta
+ @record.IdxOdl
+ |
+
+ @record.CodArticolo
+ @record.DescArticolo
+ |
+ @record.DataInizio | +@record.DataFine | + @if (dynMode) + { +@($"{record.TotCount01:N0}") @GetUM("TotCount01") | + @if (numCount > 1) + { +@($"{record.TotCount02:N0}") @GetUM("TotCount02") | + } + @if (numCount > 2) + { +@($"{record.TotCount03:N0}") @GetUM("TotCount03") | + } +
+
+ @($"{record.TotEn01:N2}") @GetUM("TotEn01")
+
+ |
+
+
+ @righDiv(record.TotEn01, record.TotCount01).ToString("N3") @GetUM("TotEn01")/@GetUM("TotCount01")
+
+ @if (numCount > 1)
+ {
+
+ @righDiv(record.TotEn01, record.TotCount02).ToString("N3") @GetUM("TotEn01")/@GetUM("TotCount02")
+
+ }
+ @if (numCount > 2)
+ {
+
+ @righDiv(record.TotEn01, record.TotCount03).ToString("N3") @GetUM("TotEn01")/@GetUM("TotCount03")
+
+ }
+ |
+ @if (numTotEn > 1)
+ {
+
+
+ @($"{record.TotEn02:N2}") @GetUM("TotEn02")
+
+ |
+
+
+ @righDiv(record.TotEn02, record.TotCount01).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount01")
+
+ @if (numCount > 1)
+ {
+
+ @righDiv(record.TotEn02, record.TotCount02).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount02")
+
+ }
+ @if (numCount > 2)
+ {
+
+ @righDiv(record.TotEn02, record.TotCount03).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount03")
+
+ }
+ |
+ }
+ @if (numTotEn > 2)
+ {
+
+
+ @($"{record.TotEn03:N2}") @GetUM("TotEn03")
+
+ |
+
+
+ @righDiv(record.TotEn03, record.TotCount01).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount01")
+
+ @if (numCount > 1)
+ {
+
+ @righDiv(record.TotEn03, record.TotCount02).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount02")
+
+ }
+ @if (numCount > 2)
+ {
+
+ @righDiv(record.TotEn03, record.TotCount03).ToString("N3") @GetUM("TotEn02")/@GetUM("TotCount03")
+
+ }
+ |
+ }
+ }
+ else
+ {
+ @(record.TotCount.ToString("N0")) m | +
+
+ @record.TotWatt.ToString("N2") kWh
+
+
+ @righDiv(record.TotWatt, record.TotCount).ToString("N3") kWh/m
+
+ |
+
+
+ @record.TotGas.ToString("N2") m3
+
+
+ @righDiv(record.TotGas, record.TotCount).ToString("N3") m3/m
+
+ |
+ }
+