ItEr37S14CUVistaRecursosTempoEmpresaItEr36S16: Automatic scrolling of horizontal chart after recalculations
This commit is contained in:
parent
3835338c13
commit
76e361bcdf
4 changed files with 22 additions and 2 deletions
|
|
@ -79,6 +79,16 @@ zkTasklist.hideTooltip = function(elem) {
|
|||
document.getElementById(elem).style["display"] = "none";
|
||||
}
|
||||
|
||||
zkTasklist.timeplotcontainer_rescroll = function(elem) {
|
||||
var timeplotcontainer_all_ = YAHOO.util.Selector.query('.timeplot-canvas');
|
||||
var scrolledpannel_ = scrolledpannel();
|
||||
for (j=0;j<timeplotcontainer_all_.length;j++) {
|
||||
timeplotcontainer_all_[j].style["left"] = "-" + scrolledpannel_.scrollLeft + "px";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function scrolledpannel() {
|
||||
return YAHOO.util.Selector.query('.rightpanellayout div')[0];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ import org.zkoss.zk.ui.Executions;
|
|||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zk.ui.util.Clients;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Div;
|
||||
|
|
@ -606,6 +607,10 @@ public abstract class CompanyPlanningModel implements ICompanyPlanningModel {
|
|||
public void fillChart(Timeplot chart, Interval interval, Integer size) {
|
||||
chart.getChildren().clear();
|
||||
chart.invalidate();
|
||||
|
||||
String javascript = "zkTasklist.timeplotcontainer_rescroll();";
|
||||
Clients.evalJavaScript(javascript);
|
||||
|
||||
resetMinimumAndMaximumValueForChart();
|
||||
|
||||
Plotinfo plotInfoLoad = createPlotinfo(getLoad(interval.getStart(),
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ import org.zkoss.zk.ui.Executions;
|
|||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zk.ui.util.Clients;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Div;
|
||||
|
|
@ -115,7 +116,7 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
|
|||
public static final String COLOR_ASSIGNED_LOAD_GLOBAL = "#98D471"; // Green
|
||||
public static final String COLOR_OVERLOAD_GLOBAL = "#FDBE13"; // Orange
|
||||
|
||||
public static final String COLOR_ASSIGNED_LOAD_SPECIFIC = "#aa80d5"; // Violet
|
||||
public static final String COLOR_ASSIGNED_LOAD_SPECIFIC = "#AA80d5"; // Violet
|
||||
public static final String COLOR_OVERLOAD_SPECIFIC = "#FF5A11"; // Red
|
||||
|
||||
@Autowired
|
||||
|
|
@ -716,6 +717,10 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
|
|||
public void fillChart(Timeplot chart, Interval interval, Integer size) {
|
||||
chart.getChildren().clear();
|
||||
chart.invalidate();
|
||||
|
||||
String javascript = "zkTasklist.timeplotcontainer_rescroll();";
|
||||
Clients.evalJavaScript(javascript);
|
||||
|
||||
resetMinimumAndMaximumValueForChart();
|
||||
|
||||
List<DayAssignment> orderDayAssignments = order.getDayAssignments();
|
||||
|
|
|
|||
|
|
@ -740,7 +740,7 @@ div.z-grid {
|
|||
}
|
||||
|
||||
.legend .other {
|
||||
background-color:#7f007f;
|
||||
background-color: #AA80d5; /* COLOR_ASSIGNED_LOAD_SPECIFIC */
|
||||
height:10px;
|
||||
width:25px;
|
||||
margin-bottom:2px;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue