ok feedback grafico orario SE discrepanza tra promesso e impostato...

This commit is contained in:
Samuele E. Locatelli
2016-01-29 10:11:13 +01:00
parent 9cfe0a2815
commit 9abe8e1ba0
13 changed files with 67 additions and 13 deletions
Binary file not shown.
+22 -10
View File
@@ -1,32 +1,44 @@
.greenBox {
background-color: #c3ffc3;
border: 1px solid #00a400;
color: #333333;
color: #333;
}
.yellowBox {
background-color: #ffffb6;
border: 1px solid #b1b100;
color: #333333;
color: #333;
}
.orangeBox {
background-color: #ffa05b;
border: 1px solid #be5100;
color: #333333;
color: #333;
}
.redBox {
background-color: #ff9c9c;
border: 1px solid #cb0000;
color: #333333;
color: #333;
}
.grayBox {
background-color: #d6d6d6;
border: 1px solid #707070;
color: #333333;
color: #333;
}
.text-center {
text-align: center;
margin: auto;
}
.Rosso {
color: #FF0000;
}
.Verde {
color: #00FF00;
}
.Giallo {
color: #fffF00;
}
.Arancio {
color: #ff6a00;
}
.tStrong {
font-weight: bold;
font-size: 1.3em;
@@ -54,8 +66,8 @@
.calendar_white_alldayheader_inner {
color: #666;
background: #eee;
background: -moz-linear-gradient(top, #eeeeee 0%, #dddddd);
background: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#dddddd));
background: -moz-linear-gradient(top, #eee 0%, #ddd);
background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));
filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#eeeeee", endColorStr="#dddddd");
}
.calendar_white_cornerright_inner {
@@ -136,8 +148,8 @@
.calendar_white_event_inner {
color: #666;
background: #fff;
background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));
background: -moz-linear-gradient(top, #ffffff 0%, #eee);
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eee));
filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");
border: 1px solid #999;
-moz-border-radius: 5px;
@@ -217,4 +229,4 @@
}
.div_4_5 {
width: 80%;
}
}
+16
View File
@@ -61,6 +61,22 @@
margin: auto;
}
.Rosso{
color: @rosso;
}
.Verde{
color: @verde;
}
.Giallo{
color: @giallo;
}
.Arancio{
color: @arancio;
}
.tStrong {
font-weight: bold;
font-size: 1.3em;
+1 -1
View File
@@ -1 +1 @@
.greenBox{background-color:#c3ffc3;border:1px solid #00a400;color:#333}.yellowBox{background-color:#ffffb6;border:1px solid #b1b100;color:#333}.orangeBox{background-color:#ffa05b;border:1px solid #be5100;color:#333}.redBox{background-color:#ff9c9c;border:1px solid #cb0000;color:#333}.grayBox{background-color:#d6d6d6;border:1px solid #707070;color:#333}.text-center{text-align:center;margin:auto}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}.flLeft{float:left}.calendar_white_main{border:1px solid #999}.calendar_white_scroll_up{background:url(calendar_white/up.png)}.calendar_white_scroll_down{background:url(calendar_white/down.png)}.calendar_white_rowheader_inner,.calendar_white_cornerright_inner,.calendar_white_corner_inner,.calendar_white_colheader_inner,.calendar_white_alldayheader_inner{color:#666;background:#eee;background:-moz-linear-gradient(top,#eee 0%,#ddd);background:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#ddd));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#eeeeee",endColorStr="#dddddd")}.calendar_white_cornerright_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-bottom:1px solid #999}.calendar_white_rowheader_inner{font-size:16pt;text-align:right;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_corner_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_rowheader_minutes{font-size:10px;vertical-align:super;padding-left:2px;padding-right:2px}.calendar_white_colheader_inner{text-align:center;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_cell_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background-color:#fff}.calendar_white_alldayheader_inner{text-align:center;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_message{opacity:.9;filter:alpha(opacity=90);padding:10px;color:#fff;background:#ffa216;background:-moz-linear-gradient(top,#ffa216 0%,#ff8400);background:-webkit-gradient(linear,left top,left bottom,from(#ffa216),to(#ff8400));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffa216",endColorStr="#ff8400")}.calendar_white_alldayevent_inner,.calendar_white_event_inner{color:#666;background:#fff;background:-moz-linear-gradient(top,#fff 0%,#eee);background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#eee));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff",endColorStr="#eeeeee");border:1px solid #999;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8);box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8)}.calendar_white_selected .calendar_white_event_inner{background:#ddd}.calendar_white_alldayevent_inner{position:absolute;top:2px;bottom:2px;left:2px;right:1px;padding:2px;margin-right:1px;font-size:12px}.calendar_white_event_withheader .calendar_white_event_inner{padding-top:15px}.calendar_white_event{cursor:default}.calendar_white_event_inner{position:absolute;overflow:hidden;top:0;bottom:2px;left:2px;right:0;padding:2px;font-size:10px;font-weight:bold;color:#000}.calendar_white_shadow_inner{background-color:#666;opacity:.5;filter:alpha(opacity=70);height:100%;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.noShadows{text-shadow:none}.div_1_3{width:33%}.div_2_3{width:66%}.div_1_2{width:50%}.div_1_4{width:25%}.div_3_4{width:75%}.div_1_5{width:20%}.div_2_5{width:40%}.div_3_5{width:60%}.div_4_5{width:80%}
.greenBox{background-color:#c3ffc3;border:1px solid #00a400;color:#333}.yellowBox{background-color:#ffffb6;border:1px solid #b1b100;color:#333}.orangeBox{background-color:#ffa05b;border:1px solid #be5100;color:#333}.redBox{background-color:#ff9c9c;border:1px solid #cb0000;color:#333}.grayBox{background-color:#d6d6d6;border:1px solid #707070;color:#333}.text-center{text-align:center;margin:auto}.Rosso{color:#f00}.Verde{color:#0f0}.Giallo{color:#ff0}.Arancio{color:#ff6a00}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}.flLeft{float:left}.calendar_white_main{border:1px solid #999}.calendar_white_scroll_up{background:url(calendar_white/up.png)}.calendar_white_scroll_down{background:url(calendar_white/down.png)}.calendar_white_rowheader_inner,.calendar_white_cornerright_inner,.calendar_white_corner_inner,.calendar_white_colheader_inner,.calendar_white_alldayheader_inner{color:#666;background:#eee;background:-moz-linear-gradient(top,#eee 0%,#ddd);background:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#ddd));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#eeeeee",endColorStr="#dddddd")}.calendar_white_cornerright_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-bottom:1px solid #999}.calendar_white_rowheader_inner{font-size:16pt;text-align:right;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_corner_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_rowheader_minutes{font-size:10px;vertical-align:super;padding-left:2px;padding-right:2px}.calendar_white_colheader_inner{text-align:center;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_cell_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background-color:#fff}.calendar_white_alldayheader_inner{text-align:center;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_message{opacity:.9;filter:alpha(opacity=90);padding:10px;color:#fff;background:#ffa216;background:-moz-linear-gradient(top,#ffa216 0%,#ff8400);background:-webkit-gradient(linear,left top,left bottom,from(#ffa216),to(#ff8400));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffa216",endColorStr="#ff8400")}.calendar_white_alldayevent_inner,.calendar_white_event_inner{color:#666;background:#fff;background:-moz-linear-gradient(top,#fff 0%,#eee);background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#eee));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff",endColorStr="#eeeeee");border:1px solid #999;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8);box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8)}.calendar_white_selected .calendar_white_event_inner{background:#ddd}.calendar_white_alldayevent_inner{position:absolute;top:2px;bottom:2px;left:2px;right:1px;padding:2px;margin-right:1px;font-size:12px}.calendar_white_event_withheader .calendar_white_event_inner{padding-top:15px}.calendar_white_event{cursor:default}.calendar_white_event_inner{position:absolute;overflow:hidden;top:0;bottom:2px;left:2px;right:0;padding:2px;font-size:10px;font-weight:bold;color:#000}.calendar_white_shadow_inner{background-color:#666;opacity:.5;filter:alpha(opacity=70);height:100%;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.noShadows{text-shadow:none}.div_1_3{width:33%}.div_2_3{width:66%}.div_1_2{width:50%}.div_1_4{width:25%}.div_3_4{width:75%}.div_1_5{width:20%}.div_2_5{width:40%}.div_3_5{width:60%}.div_4_5{width:80%}
+2 -2
View File
@@ -23,7 +23,7 @@
<div class="ui-block-c text-center">
<%--<label for="lblOrarioCom">ORARIO COMUNICATO</label>--%>
<uc1:mod_selDataOra runat="server" ID="mod_selDataOraFrom" dataOraSel='<%# Bind("DataOraComFrom") %>' />
<uc1:mod_selDataOra runat="server" ID="mod_selDataOraTo" dataOraSel='<%# Bind("DataOraComTo") %>' showData="false" />
<uc1:mod_selDataOra runat="server" ID="mod_selDataOraTo" dataOraSel='<%# Bind("DataOraComTo") %>' />
</div>
</div>
<div class="ui-grid-b">
@@ -151,7 +151,7 @@
</div>
</div>
<div class="ui-block-c text-center">
<label for="lblOrarioCom">ORARIO COMUNICATO</label>
<label for="lblOrarioCom"><%# checkOrario(Eval("DataOra"),Eval("DataOraComFrom"),Eval("DataOraComTo"), "ORARIO COMUNICATO", "<i class=\"Rosso fa fa-exclamation-triangle\"></i><i class=\"Rosso fa fa-clock-o\"></i>") %></label>
<asp:Label runat="server" ID="lblOrarioCom" CssClass="tStrong"><%# string.Format("{0: dddd dd/MM/yy HH:mm} --> {1:HH:mm}", Eval("DataOraComFrom"),Eval("DataOraComTo")) %></asp:Label>
</div>
</div>
@@ -104,5 +104,31 @@ namespace WebSCR.WebUserControls
raiseEventErrUpd();
}
}
/// <summary>
/// formatta messaggio orario controllando SE quello impostato sia fuori fascia promessa a cliente
/// </summary>
/// <param name="_dataOra"></param>
/// <param name="_dataOraFrom"></param>
/// <param name="_dataOraTo"></param>
/// <param name="txtMain"></param>
/// <param name="txtErr"></param>
/// <returns></returns>
public string checkOrario(object _dataOra, object _dataOraFrom, object _dataOraTo, object txtMain, object txtErr)
{
string answ = txtMain.ToString();
try
{
DateTime DTI = Convert.ToDateTime(_dataOra);
DateTime DTFrom = Convert.ToDateTime(_dataOraFrom);
DateTime DTTo = Convert.ToDateTime(_dataOraTo);
if (DTI.Subtract(DTFrom).TotalMinutes < 0 || DTI.Subtract(DTTo).TotalMinutes > 0)
{
answ = string.Format("{0}{1}{0}", txtErr, txtMain);
}
}
catch
{ }
return answ;
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.