inserita gestione warning "X" epr ore sforate
This commit is contained in:
@@ -533,6 +533,69 @@ namespace ETS_Data
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class oreWeek
|
||||
{
|
||||
/// <summary>
|
||||
/// inizializzazione empty
|
||||
/// </summary>
|
||||
public oreWeek()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua una somma di ore dallo schema ore LMMGV facendo somma giorno per giorno
|
||||
/// </summary>
|
||||
/// <param name="addendo1">string LMMGV (se <> 5 char errore)</param>
|
||||
/// <param name="addendo2">string LMMGV (se <> 5 char errore)</param>
|
||||
/// <returns>Restituisce:
|
||||
/// - somma giornaliera LMMGV
|
||||
/// - "X" se nel singolo giorno > maxOre
|
||||
/// - "?????" se secondo addendo nn di 5 char
|
||||
/// - "#" se non può convertire un singolo char</returns>
|
||||
public static string addOre(string addendo1, string addendo2, int MaxOre)
|
||||
{
|
||||
string answ = "";
|
||||
int summa = 0;
|
||||
// procedo SOLO se le 2 stringhe sono 5 char
|
||||
if (addendo1.Length != 5 || addendo2.Length != 5)
|
||||
{
|
||||
answ = "?????";
|
||||
}
|
||||
else
|
||||
{
|
||||
// faccio somma 1 char alla volta e controllo lungh max
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
// se già ho carattere "X" confermo "X"...
|
||||
if (addendo1.Substring(i, 1) == "X" || addendo1.Substring(i, 1) == "X")
|
||||
{
|
||||
answ += "X";
|
||||
}
|
||||
else
|
||||
{
|
||||
summa = Convert.ToInt16(addendo1.Substring(i, 1)) + Convert.ToInt16(addendo2.Substring(i, 1));
|
||||
if (summa > MaxOre)
|
||||
{
|
||||
answ += "X";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ += summa.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception exc)
|
||||
{
|
||||
answ +="X";
|
||||
}
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// classe di funzioni inerenti le date
|
||||
/// </summary>
|
||||
|
||||
@@ -1098,6 +1098,20 @@ div > ul > li > a.selected.menuNav {
|
||||
height: 15px;
|
||||
border: solid 1px #777777;
|
||||
}
|
||||
/*@S06: #ffff8e;
|
||||
@S05: #ffff42;
|
||||
@S04: #fdfd00;
|
||||
@S03: #f0f000;
|
||||
@S02: #c9c900;
|
||||
@S01: #f8fbff;
|
||||
@S00: #d5d5d5;*/
|
||||
/*@S06: #568800;
|
||||
@S05: #6da200;
|
||||
@S04: #86c900;
|
||||
@S03: #98e300;
|
||||
@S02: #bfff3f;
|
||||
@S01: #f8fbff;
|
||||
@S00: #d5d5d5;*/
|
||||
.cEmp {
|
||||
/*background-image: url('../Images/grigio_80.png');*/
|
||||
|
||||
@@ -1113,59 +1127,59 @@ div > ul > li > a.selected.menuNav {
|
||||
/*background-image: url('../Images/grigioChiaro_80.png');*/
|
||||
|
||||
background-color: #f8fbff;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#c9c900), to(#f8fbff));
|
||||
background-image: -webkit-linear-gradient(#c9c900, #f8fbff);
|
||||
background-image: -moz-linear-gradient(#c9c900, #f8fbff);
|
||||
background-image: -ms-linear-gradient(#c9c900, #f8fbff);
|
||||
background-image: -o-linear-gradient(#c9c900, #f8fbff);
|
||||
background-image: linear-gradient(#c9c900, #f8fbff);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffff8e), to(#f8fbff));
|
||||
background-image: -webkit-linear-gradient(#ffff8e, #f8fbff);
|
||||
background-image: -moz-linear-gradient(#ffff8e, #f8fbff);
|
||||
background-image: -ms-linear-gradient(#ffff8e, #f8fbff);
|
||||
background-image: -o-linear-gradient(#ffff8e, #f8fbff);
|
||||
background-image: linear-gradient(#ffff8e, #f8fbff);
|
||||
}
|
||||
.cS02 {
|
||||
/*background-image: url('../Images/verde_80.png');*/
|
||||
|
||||
background-color: #c9c900;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0f000), to(#c9c900));
|
||||
background-image: -webkit-linear-gradient(#f0f000, #c9c900);
|
||||
background-image: -moz-linear-gradient(#f0f000, #c9c900);
|
||||
background-image: -ms-linear-gradient(#f0f000, #c9c900);
|
||||
background-image: -o-linear-gradient(#f0f000, #c9c900);
|
||||
background-image: linear-gradient(#f0f000, #c9c900);
|
||||
background-color: #ffff8e;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffff4d), to(#ffff8e));
|
||||
background-image: -webkit-linear-gradient(#ffff4d, #ffff8e);
|
||||
background-image: -moz-linear-gradient(#ffff4d, #ffff8e);
|
||||
background-image: -ms-linear-gradient(#ffff4d, #ffff8e);
|
||||
background-image: -o-linear-gradient(#ffff4d, #ffff8e);
|
||||
background-image: linear-gradient(#ffff4d, #ffff8e);
|
||||
color: White;
|
||||
}
|
||||
.cS03 {
|
||||
/*background-image: url('../Images/giallo_80.png');*/
|
||||
|
||||
background-color: #f0f000;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fdfd00), to(#f0f000));
|
||||
background-image: -webkit-linear-gradient(#fdfd00, #f0f000);
|
||||
background-image: -moz-linear-gradient(#fdfd00, #f0f000);
|
||||
background-image: -ms-linear-gradient(#fdfd00, #f0f000);
|
||||
background-image: -o-linear-gradient(#fdfd00, #f0f000);
|
||||
background-image: linear-gradient(#fdfd00, #f0f000);
|
||||
background-color: #ffff4d;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f100), to(#ffff4d));
|
||||
background-image: -webkit-linear-gradient(#f1f100, #ffff4d);
|
||||
background-image: -moz-linear-gradient(#f1f100, #ffff4d);
|
||||
background-image: -ms-linear-gradient(#f1f100, #ffff4d);
|
||||
background-image: -o-linear-gradient(#f1f100, #ffff4d);
|
||||
background-image: linear-gradient(#f1f100, #ffff4d);
|
||||
color: White;
|
||||
}
|
||||
.cS04 {
|
||||
/*background-image: url('../Images/arancio_80.png');*/
|
||||
|
||||
background-color: #fdfd00;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffff42), to(#fdfd00));
|
||||
background-image: -webkit-linear-gradient(#ffff42, #fdfd00);
|
||||
background-image: -moz-linear-gradient(#ffff42, #fdfd00);
|
||||
background-image: -ms-linear-gradient(#ffff42, #fdfd00);
|
||||
background-image: -o-linear-gradient(#ffff42, #fdfd00);
|
||||
background-image: linear-gradient(#ffff42, #fdfd00);
|
||||
background-color: #f1f100;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#e4e400), to(#f1f100));
|
||||
background-image: -webkit-linear-gradient(#e4e400, #f1f100);
|
||||
background-image: -moz-linear-gradient(#e4e400, #f1f100);
|
||||
background-image: -ms-linear-gradient(#e4e400, #f1f100);
|
||||
background-image: -o-linear-gradient(#e4e400, #f1f100);
|
||||
background-image: linear-gradient(#e4e400, #f1f100);
|
||||
color: White;
|
||||
}
|
||||
.cOvr {
|
||||
/*background-image: url('../Images/rosso_80.png');*/
|
||||
|
||||
background-color: #ffff42;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffff8e), to(#ffff42));
|
||||
background-image: -webkit-linear-gradient(#ffff8e, #ffff42);
|
||||
background-image: -moz-linear-gradient(#ffff8e, #ffff42);
|
||||
background-image: -ms-linear-gradient(#ffff8e, #ffff42);
|
||||
background-image: -o-linear-gradient(#ffff8e, #ffff42);
|
||||
background-image: linear-gradient(#ffff8e, #ffff42);
|
||||
background-color: #e4e400;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#caca00), to(#e4e400));
|
||||
background-image: -webkit-linear-gradient(#caca00, #e4e400);
|
||||
background-image: -moz-linear-gradient(#caca00, #e4e400);
|
||||
background-image: -ms-linear-gradient(#caca00, #e4e400);
|
||||
background-image: -o-linear-gradient(#caca00, #e4e400);
|
||||
background-image: linear-gradient(#caca00, #e4e400);
|
||||
}
|
||||
.cBia {
|
||||
text-align: center;
|
||||
@@ -1270,4 +1284,87 @@ div > ul > li > a.selected.menuNav {
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
.cTEmp {
|
||||
/*background-image: url('../Images/grigio_80.png');*/
|
||||
|
||||
background-color: #c3c3c3;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f8fbff), to(#c3c3c3));
|
||||
background-image: -webkit-linear-gradient(#f8fbff, #c3c3c3);
|
||||
background-image: -moz-linear-gradient(#f8fbff, #c3c3c3);
|
||||
background-image: -ms-linear-gradient(#f8fbff, #c3c3c3);
|
||||
background-image: -o-linear-gradient(#f8fbff, #c3c3c3);
|
||||
background-image: linear-gradient(#f8fbff, #c3c3c3);
|
||||
}
|
||||
.cT01 {
|
||||
/*background-image: url('../Images/grigioChiaro_80.png');*/
|
||||
|
||||
background-color: #f8fbff;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffe7d1), to(#f8fbff));
|
||||
background-image: -webkit-linear-gradient(#ffe7d1, #f8fbff);
|
||||
background-image: -moz-linear-gradient(#ffe7d1, #f8fbff);
|
||||
background-image: -ms-linear-gradient(#ffe7d1, #f8fbff);
|
||||
background-image: -o-linear-gradient(#ffe7d1, #f8fbff);
|
||||
background-image: linear-gradient(#ffe7d1, #f8fbff);
|
||||
}
|
||||
.cT02 {
|
||||
/*background-image: url('../Images/verde_80.png');*/
|
||||
|
||||
background-color: #ffe7d1;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffc690), to(#ffe7d1));
|
||||
background-image: -webkit-linear-gradient(#ffc690, #ffe7d1);
|
||||
background-image: -moz-linear-gradient(#ffc690, #ffe7d1);
|
||||
background-image: -ms-linear-gradient(#ffc690, #ffe7d1);
|
||||
background-image: -o-linear-gradient(#ffc690, #ffe7d1);
|
||||
background-image: linear-gradient(#ffc690, #ffe7d1);
|
||||
color: White;
|
||||
}
|
||||
.cT03 {
|
||||
/*background-image: url('../Images/giallo_80.png');*/
|
||||
|
||||
background-color: #ffc690;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ffa34f), to(#ffc690));
|
||||
background-image: -webkit-linear-gradient(#ffa34f, #ffc690);
|
||||
background-image: -moz-linear-gradient(#ffa34f, #ffc690);
|
||||
background-image: -ms-linear-gradient(#ffa34f, #ffc690);
|
||||
background-image: -o-linear-gradient(#ffa34f, #ffc690);
|
||||
background-image: linear-gradient(#ffa34f, #ffc690);
|
||||
color: White;
|
||||
}
|
||||
.cT04 {
|
||||
/*background-image: url('../Images/arancio_80.png');*/
|
||||
|
||||
background-color: #ffa34f;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ff8e28), to(#ffa34f));
|
||||
background-image: -webkit-linear-gradient(#ff8e28, #ffa34f);
|
||||
background-image: -moz-linear-gradient(#ff8e28, #ffa34f);
|
||||
background-image: -ms-linear-gradient(#ff8e28, #ffa34f);
|
||||
background-image: -o-linear-gradient(#ff8e28, #ffa34f);
|
||||
background-image: linear-gradient(#ff8e28, #ffa34f);
|
||||
color: White;
|
||||
}
|
||||
.cTOvr {
|
||||
/*background-image: url('../Images/rosso_80.png');*/
|
||||
|
||||
background-color: #ff8e28;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d93333), to(#ff8e28));
|
||||
background-image: -webkit-linear-gradient(#d93333, #ff8e28);
|
||||
background-image: -moz-linear-gradient(#d93333, #ff8e28);
|
||||
background-image: -ms-linear-gradient(#d93333, #ff8e28);
|
||||
background-image: -o-linear-gradient(#d93333, #ff8e28);
|
||||
background-image: linear-gradient(#d93333, #ff8e28);
|
||||
color: White;
|
||||
}
|
||||
.cTBia {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
height: 15px;
|
||||
padding: 0px 2px;
|
||||
}
|
||||
.selCelT {
|
||||
background-color: #cbebff;
|
||||
border: dashed 2px #22AAff;
|
||||
/*font-weight: bold;*/
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
/* end celle bazaar*/
|
||||
|
||||
@@ -1252,12 +1252,27 @@ div > ul > li > a.selected.menuNav {
|
||||
border: solid 1px @grigioCellaRO;
|
||||
}
|
||||
|
||||
@S06: #ffff8e;
|
||||
/*@S06: #ffff8e;
|
||||
@S05: #ffff42;
|
||||
@S04: #fdfd00;
|
||||
@S03: #f0f000;
|
||||
@S02: #c9c900;
|
||||
@S01: #f8fbff;
|
||||
@S00: #d5d5d5;*/
|
||||
|
||||
/*@S06: #568800;
|
||||
@S05: #6da200;
|
||||
@S04: #86c900;
|
||||
@S03: #98e300;
|
||||
@S02: #bfff3f;
|
||||
@S01: #f8fbff;
|
||||
@S00: #d5d5d5;*/
|
||||
@S06: #caca00;
|
||||
@S05: #e4e400;
|
||||
@S04: #f1f100;
|
||||
@S03: #ffff4d;
|
||||
@S02: #ffff8e;
|
||||
@S01: #f8fbff;
|
||||
@S00: #d5d5d5;
|
||||
.cEmp {
|
||||
/*background-image: url('../Images/grigio_80.png');*/
|
||||
@@ -1345,75 +1360,75 @@ div > ul > li > a.selected.menuNav {
|
||||
border: solid 1px @grigioCella;
|
||||
}
|
||||
|
||||
@RO06: #3333d9;
|
||||
@RO05: #288eff;
|
||||
@RO04: #5caaff;
|
||||
@RO03: #76b8ff;
|
||||
@RO02: #90c4ff;
|
||||
@RO01: #f8fbff;
|
||||
@RO00: #c3c3c3;
|
||||
@R06: #3333d9;
|
||||
@R05: #288eff;
|
||||
@R04: #5caaff;
|
||||
@R03: #76b8ff;
|
||||
@R02: #90c4ff;
|
||||
@R01: #f8fbff;
|
||||
@R00: #c3c3c3;
|
||||
.cREmp {
|
||||
/*background-image: url('../Images/grigio_80.png');*/
|
||||
background-color: @RO00;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @RO01 ),to( @RO00 ));
|
||||
background-image: -webkit-linear-gradient( @RO01,@RO00 );
|
||||
background-image: -moz-linear-gradient( @RO01,@RO00 );
|
||||
background-image: -ms-linear-gradient( @RO01,@RO00 );
|
||||
background-image: -o-linear-gradient( @RO01,@RO00 );
|
||||
background-image: linear-gradient( @RO01,@RO00 );
|
||||
background-color: @R00;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @R01 ),to( @R00 ));
|
||||
background-image: -webkit-linear-gradient( @R01,@R00 );
|
||||
background-image: -moz-linear-gradient( @R01,@R00 );
|
||||
background-image: -ms-linear-gradient( @R01,@R00 );
|
||||
background-image: -o-linear-gradient( @R01,@R00 );
|
||||
background-image: linear-gradient( @R01,@R00 );
|
||||
}
|
||||
.cR01 {
|
||||
/*background-image: url('../Images/grigioChiaro_80.png');*/
|
||||
background-color: @RO01;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @RO02 ),to( @RO01 ));
|
||||
background-image: -webkit-linear-gradient( @RO02,@RO01 );
|
||||
background-image: -moz-linear-gradient( @RO02,@RO01 );
|
||||
background-image: -ms-linear-gradient( @RO02,@RO01 );
|
||||
background-image: -o-linear-gradient( @RO02,@RO01 );
|
||||
background-image: linear-gradient( @RO02,@RO01 );
|
||||
background-color: @R01;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @R02 ),to( @R01 ));
|
||||
background-image: -webkit-linear-gradient( @R02,@R01 );
|
||||
background-image: -moz-linear-gradient( @R02,@R01 );
|
||||
background-image: -ms-linear-gradient( @R02,@R01 );
|
||||
background-image: -o-linear-gradient( @R02,@R01 );
|
||||
background-image: linear-gradient( @R02,@R01 );
|
||||
}
|
||||
.cR02 {
|
||||
/*background-image: url('../Images/verde_80.png');*/
|
||||
background-color: @RO02;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @RO03 ),to( @RO02 ));
|
||||
background-image: -webkit-linear-gradient( @RO03,@RO02 );
|
||||
background-image: -moz-linear-gradient( @RO03,@RO02 );
|
||||
background-image: -ms-linear-gradient( @RO03,@RO02 );
|
||||
background-image: -o-linear-gradient( @RO03,@RO02 );
|
||||
background-image: linear-gradient( @RO03,@RO02 );
|
||||
background-color: @R02;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @R03 ),to( @R02 ));
|
||||
background-image: -webkit-linear-gradient( @R03,@R02 );
|
||||
background-image: -moz-linear-gradient( @R03,@R02 );
|
||||
background-image: -ms-linear-gradient( @R03,@R02 );
|
||||
background-image: -o-linear-gradient( @R03,@R02 );
|
||||
background-image: linear-gradient( @R03,@R02 );
|
||||
color: White;
|
||||
}
|
||||
.cR03 {
|
||||
/*background-image: url('../Images/giallo_80.png');*/
|
||||
background-color: @RO03;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @RO04 ),to( @RO03 ));
|
||||
background-image: -webkit-linear-gradient( @RO04,@RO03 );
|
||||
background-image: -moz-linear-gradient( @RO04,@RO03 );
|
||||
background-image: -ms-linear-gradient( @RO04,@RO03 );
|
||||
background-image: -o-linear-gradient( @RO04,@RO03 );
|
||||
background-image: linear-gradient( @RO04,@RO03 );
|
||||
background-color: @R03;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @R04 ),to( @R03 ));
|
||||
background-image: -webkit-linear-gradient( @R04,@R03 );
|
||||
background-image: -moz-linear-gradient( @R04,@R03 );
|
||||
background-image: -ms-linear-gradient( @R04,@R03 );
|
||||
background-image: -o-linear-gradient( @R04,@R03 );
|
||||
background-image: linear-gradient( @R04,@R03 );
|
||||
color: White;
|
||||
}
|
||||
.cR04 {
|
||||
/*background-image: url('../Images/arancio_80.png');*/
|
||||
background-color: @RO04;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @RO05 ),to( @RO04 ));
|
||||
background-image: -webkit-linear-gradient( @RO05,@RO04 );
|
||||
background-image: -moz-linear-gradient( @RO05,@RO04 );
|
||||
background-image: -ms-linear-gradient( @RO05,@RO04 );
|
||||
background-image: -o-linear-gradient( @RO05,@RO04 );
|
||||
background-image: linear-gradient( @RO05,@RO04 );
|
||||
background-color: @R04;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @R05 ),to( @R04 ));
|
||||
background-image: -webkit-linear-gradient( @R05,@R04 );
|
||||
background-image: -moz-linear-gradient( @R05,@R04 );
|
||||
background-image: -ms-linear-gradient( @R05,@R04 );
|
||||
background-image: -o-linear-gradient( @R05,@R04 );
|
||||
background-image: linear-gradient( @R05,@R04 );
|
||||
color: White;
|
||||
}
|
||||
.cROvr {
|
||||
/*background-image: url('../Images/rosso_80.png');*/
|
||||
background-color: @RO05;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @RO06 ),to( @RO05 ));
|
||||
background-image: -webkit-linear-gradient( @RO06,@RO05 );
|
||||
background-image: -moz-linear-gradient( @RO06,@RO05 );
|
||||
background-image: -ms-linear-gradient( @RO06,@RO05 );
|
||||
background-image: -o-linear-gradient( @RO06,@RO05 );
|
||||
background-image: linear-gradient( @RO06,@RO05 );
|
||||
background-color: @R05;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @R06 ),to( @R05 ));
|
||||
background-image: -webkit-linear-gradient( @R06,@R05 );
|
||||
background-image: -moz-linear-gradient( @R06,@R05 );
|
||||
background-image: -ms-linear-gradient( @R06,@R05 );
|
||||
background-image: -o-linear-gradient( @R06,@R05 );
|
||||
background-image: linear-gradient( @R06,@R05 );
|
||||
color: White;
|
||||
}
|
||||
.cRBia {
|
||||
@@ -1427,4 +1442,89 @@ div > ul > li > a.selected.menuNav {
|
||||
border: dashed 2px #22AAff; /*font-weight: bold;*/
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@T06: #d93333;
|
||||
@T05: #ff8e28;
|
||||
@T04: #ffa34f;
|
||||
@T03: #ffc690;
|
||||
@T02: #ffe7d1;
|
||||
@T01: #f8fbff;
|
||||
@T00: #c3c3c3;
|
||||
.cTEmp {
|
||||
/*background-image: url('../Images/grigio_80.png');*/
|
||||
background-color: @T00;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @T01 ),to( @T00 ));
|
||||
background-image: -webkit-linear-gradient( @T01,@T00 );
|
||||
background-image: -moz-linear-gradient( @T01,@T00 );
|
||||
background-image: -ms-linear-gradient( @T01,@T00 );
|
||||
background-image: -o-linear-gradient( @T01,@T00 );
|
||||
background-image: linear-gradient( @T01,@T00 );
|
||||
}
|
||||
.cT01 {
|
||||
/*background-image: url('../Images/grigioChiaro_80.png');*/
|
||||
background-color: @T01;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @T02 ),to( @T01 ));
|
||||
background-image: -webkit-linear-gradient( @T02,@T01 );
|
||||
background-image: -moz-linear-gradient( @T02,@T01 );
|
||||
background-image: -ms-linear-gradient( @T02,@T01 );
|
||||
background-image: -o-linear-gradient( @T02,@T01 );
|
||||
background-image: linear-gradient( @T02,@T01 );
|
||||
}
|
||||
.cT02 {
|
||||
/*background-image: url('../Images/verde_80.png');*/
|
||||
background-color: @T02;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @T03 ),to( @T02 ));
|
||||
background-image: -webkit-linear-gradient( @T03,@T02 );
|
||||
background-image: -moz-linear-gradient( @T03,@T02 );
|
||||
background-image: -ms-linear-gradient( @T03,@T02 );
|
||||
background-image: -o-linear-gradient( @T03,@T02 );
|
||||
background-image: linear-gradient( @T03,@T02 );
|
||||
color: White;
|
||||
}
|
||||
.cT03 {
|
||||
/*background-image: url('../Images/giallo_80.png');*/
|
||||
background-color: @T03;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @T04 ),to( @T03 ));
|
||||
background-image: -webkit-linear-gradient( @T04,@T03 );
|
||||
background-image: -moz-linear-gradient( @T04,@T03 );
|
||||
background-image: -ms-linear-gradient( @T04,@T03 );
|
||||
background-image: -o-linear-gradient( @T04,@T03 );
|
||||
background-image: linear-gradient( @T04,@T03 );
|
||||
color: White;
|
||||
}
|
||||
.cT04 {
|
||||
/*background-image: url('../Images/arancio_80.png');*/
|
||||
background-color: @T04;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @T05 ),to( @T04 ));
|
||||
background-image: -webkit-linear-gradient( @T05,@T04 );
|
||||
background-image: -moz-linear-gradient( @T05,@T04 );
|
||||
background-image: -ms-linear-gradient( @T05,@T04 );
|
||||
background-image: -o-linear-gradient( @T05,@T04 );
|
||||
background-image: linear-gradient( @T05,@T04 );
|
||||
color: White;
|
||||
}
|
||||
.cTOvr {
|
||||
/*background-image: url('../Images/rosso_80.png');*/
|
||||
background-color: @T05;
|
||||
background-image: -webkit-gradient(linear,left top,left bottom,from( @T06 ),to( @T05 ));
|
||||
background-image: -webkit-linear-gradient( @T06,@T05 );
|
||||
background-image: -moz-linear-gradient( @T06,@T05 );
|
||||
background-image: -ms-linear-gradient( @T06,@T05 );
|
||||
background-image: -o-linear-gradient( @T06,@T05 );
|
||||
background-image: linear-gradient( @T06,@T05 );
|
||||
color: White;
|
||||
}
|
||||
.cTBia {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
height: @altezzaCellaRO;
|
||||
padding: 0px 2px;
|
||||
}
|
||||
.selCelT {
|
||||
background-color: #cbebff;
|
||||
border: dashed 2px #22AAff; /*font-weight: bold;*/
|
||||
text-align: center;
|
||||
}
|
||||
/* end celle bazaar*/
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -26,7 +26,7 @@
|
||||
<add key="appName" value="PROJ-ETS" />
|
||||
<add key="SiteName" value="ETS" />
|
||||
<add key="mainRev" value="0.8" />
|
||||
<add key="minRev" value="199" />
|
||||
<add key="minRev" value="201" />
|
||||
<add key="stdEmail" value="info@steamware.net" />
|
||||
<add key="_safePages" value="Default.aspx#unauthorized.aspx#forceUser.aspx#login.aspx#test.aspx#Test.aspx" />
|
||||
<!--area gestione auth cookie-->
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace PROJ_ETS.WebUserControls
|
||||
protected ETS_Data.Type.BazaarRes[,] TabellaRisorse;
|
||||
protected int[] oreTotDip;
|
||||
protected int[] oreTotComm;
|
||||
protected string[] schemaOreDip;
|
||||
protected Ds_ProjEts.DipendentiDataTable tabDip = new Ds_ProjEts.DipendentiDataTable();
|
||||
protected Ds_ProjEts.Dip2ATRDataTable tabD2ATR = new Ds_ProjEts.Dip2ATRDataTable();
|
||||
protected Ds_ProjEts.BazaarRisorseDataTable tabBaz = new Ds_ProjEts.BazaarRisorseDataTable();
|
||||
@@ -207,6 +208,11 @@ namespace PROJ_ETS.WebUserControls
|
||||
TabellaRisorse = new ETS_Data.Type.BazaarRes[numDip, numComm];
|
||||
oreTotDip = new int[numDip];
|
||||
oreTotComm = new int[numComm];
|
||||
schemaOreDip = new string[numDip];
|
||||
for (int ii = 0; ii < numDip; ii++)
|
||||
{
|
||||
schemaOreDip[ii] = "00000";
|
||||
}
|
||||
// carico i dati nell'array: di default tutto VUOTO, con posizione attiva...
|
||||
for (int pos_y = 0; pos_y < numComm; pos_y++)
|
||||
{
|
||||
@@ -244,6 +250,7 @@ namespace PROJ_ETS.WebUserControls
|
||||
TabellaRisorse[pos_x, pos_y] = new ETS_Data.Type.BazaarRes(rigaBaz.SchemaWeek, tooltip, css, rigaBaz.idxDipendente, string.Format("{0} {1}", rigaDip.Nome, rigaDip.Cognome), rigaDip.SIGLA, rigaBaz.idxFase, rigaBaz.SchemaWeek, rigaBaz.OreTot);
|
||||
// aggiorno totali righe/colonne (comemsse/dip)
|
||||
oreTotDip[pos_x] += rigaBaz.OreTot;
|
||||
schemaOreDip[pos_x] = oreWeek.addOre(schemaOreDip[pos_x].ToString(), rigaBaz.SchemaWeek, 8);
|
||||
oreTotComm[pos_y] += rigaBaz.OreTot;
|
||||
}
|
||||
}
|
||||
@@ -269,10 +276,10 @@ namespace PROJ_ETS.WebUserControls
|
||||
cell.CssClass = "cBia";
|
||||
if (showOre)
|
||||
{
|
||||
cell.Text = string.Format("{0:0#} h", oreTotDip[pos_x]);
|
||||
cell.Text = string.Format("{0:0#} h</br>{1}", oreTotDip[pos_x], schemaOreDip[pos_x]);
|
||||
cell.ToolTip = "";
|
||||
// SE sono oltre 40h coloro di rosso!!!
|
||||
if (oreTotDip[pos_x] > 40)
|
||||
if ((oreTotDip[pos_x] > 40) || (schemaOreDip[pos_x].IndexOf("X") >0))
|
||||
{
|
||||
cell.CssClass = "cBia lblErrore";
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user