$options->StartTimeBinding = new RadiantQ\Gantt\Binding("StartTime");
$options->EffortBinding = new RadiantQ\Gantt\Binding("EndTime", "new EffortConverter()");
$options->PredecessorIndicesBinding = new RadiantQ\Gantt\Binding("PredecessorIndices");
$options->ProgressPercentBinding = new RadiantQ\Gantt\Binding("ProgressPercent");
$options->ResourceItemsSource = array($resource1, $resource2, $resource3);
$options->ResourceIDBinding = new RadiantQ\Gantt\Binding("ResourceID");
$options->ResourceNameBinding = new RadiantQ\Gantt\Binding("ResourceName");
$options->AdjustDurationOnAssignment = false;
//GanttChart options.
$GanttChartOptions = new RadiantQ\Gantt\GanttChartOptions();
$GanttChartOptions->AnchorTime = new DateTime("2014-02-02");
$GanttChartOptions->TimeScalePagerButtonVisibility = false;
$options->GanttChartOptions = $GanttChartOptions;
$ganttSetttings->Options = $options;
//Ganttcontrol initialization.
$gantt = new RadiantQ\UI\GanttControl($ganttSetttings);
//Setting attributes to Ganttcontrol elements.
$gantt->setAttribute("id", "gantt_container")->setStyleAttribute("height", "100%")->setStyleAttribute("width", "100%");
//To render the ganttcontrol.
echo $gantt->Render();
?>
</div>
<script id="projectGanttNameTemplate" type="text/x-jquery-tmpl">
 <div class="rq-grid-expand-indentWidth" style="height: 1px; width: ${data.IndentWidth}px"></div>
    <div style="width: 12px; display: ${data.IsParent ? "block" :"none" }" class="arrowContainer">
          <div onclick="ExpanderOnclick(this,event)" id="arrow" class="${ data.IsExpanded ? " rq-grid-expand-arrow rq-grid-collapse-arrow": "rq-grid-expand-arrow"} rq-Ignore-click"></div>
       </div>
    <div class="rq-grid-expander-text">${data.Activity.ActivityName}</div>
</script>
<script id="projectGanttNameEditor" type="text/x-jquery-tmpl">
    <div class="rq-grid-expand-indentWidth" style="height: 1px; width: ${data.IndentWidth_M()}px"></div>
Exemplo n.º 2
0
//Bindings
$options1->IDBinding = new RadiantQ\Gantt\Binding("ID");
$options1->NameBinding = new RadiantQ\Gantt\Binding("Name");
$options1->IndentLevelBinding = new RadiantQ\Gantt\Binding("IndentLevel");
$options1->StartTimeBinding = new RadiantQ\Gantt\Binding("StartTime");
$options1->EffortBinding = new RadiantQ\Gantt\Binding("Effort");
$options1->ChartTemplateApplied = "ChartTemplateApplied1";
$options1->PredecessorIndicesBinding = new RadiantQ\Gantt\Binding("PredecessorIndices");
$options1->ProgressPercentBinding = new RadiantQ\Gantt\Binding("ProgressPercent");
//GanttChart options.
$GanttChartOptions1 = new RadiantQ\Gantt\GanttChartOptions();
$GanttChartOptions1->AnchorTime = new DateTime("2014-02-02");
$options1->GanttChartOptions = $GanttChartOptions1;
$ganttSetttings1->Options = $options1;
//Ganttcontrol initialization.
$gantt = new RadiantQ\UI\GanttControl($ganttSetttings1);
//Setting attributes to Ganttcontrol elements.
$gantt->setStyleAttribute("height", "100%");
$gantt->setStyleAttribute("width", "100%");
$gantt->setAttribute("id", "projectGantt");
//To render the ganttcontrol.
echo $gantt->Render();
?>
            </div>
    </div>
</div>
    <script id="TaskTooltipTemplate" type="text/x-jquery-tmpl">
    <div class='TaskTooltip'>
        <div align='center'>Name: ${nameConverter(data)}</div>
        <div>
            <span>StartTime : ${startTimeTooltipConverter(data)}
$options->IDBinding = new RadiantQ\Gantt\Binding("ID");
$options->NameBinding = new RadiantQ\Gantt\Binding("Name");
$options->IndentLevelBinding = new RadiantQ\Gantt\Binding("IndentLevel");
$options->StartTimeBinding = new RadiantQ\Gantt\Binding("StartTime");
$options->EffortBinding = new RadiantQ\Gantt\Binding("Effort");
$options->TimeRangeHighlightBehavior = RadiantQ\Gantt\TimeRangeHighlightBehavior::HighlightInChartOnHeaderMouseHover;
$options->PredecessorIndicesBinding = new RadiantQ\Gantt\Binding("PredecessorIndices");
$options->ProgressPercentBinding = new RadiantQ\Gantt\Binding("ProgressPercent");
$options->DescriptionBinding = new RadiantQ\Gantt\Binding("Description");
//GanttChart options.
$GanttChartOptions = new RadiantQ\Gantt\GanttChartOptions();
$GanttChartOptions->AnchorTime = new DateTime("2014-02-02");
$options->GanttChartOptions = $GanttChartOptions;
$ganttSetttings->Options = $options;
//Ganttcontrol initialization.
$gantt = new RadiantQ\UI\GanttControl($ganttSetttings);
//Setting attributes to Ganttcontrol elements.
$gantt->setAttribute("id", "gantt_container")->setStyleAttribute("height", "90%")->setStyleAttribute("margin-top:05px", "05px");
//To render the ganttcontrol.
echo $gantt->Render();
?>
       </div>
<script id="projectGanttNameTemplate" type="text/x-jquery-tmpl">
 <div class="rq-grid-expand-indentWidth" style="height: 1px; width: ${data.IndentWidth}px"></div>
    <div style="width: 12px; display: ${data.IsParent ? "block" :"none" }" class="arrowContainer">
          <div onclick="ExpanderOnclick(this,event)" id="arrow" class="${ data.IsExpanded ? " rq-grid-expand-arrow rq-grid-collapse-arrow": "rq-grid-expand-arrow"} rq-Ignore-click"></div>
       </div>
    <div class="rq-grid-expander-text">${data.Activity.ActivityName}</div>
</script>
<script id="projectGanttNameEditor" type="text/x-jquery-tmpl">
    <div class="rq-grid-expand-indentWidth" style="height: 1px; width: ${data.IndentWidth_M()}px"></div>
Exemplo n.º 4
0
$yearHeader->Name = "yearHeader";
$monthHeader = new RadiantQ\Gantt\TimeScaleHeaderDefinition();
$monthHeader->Type = RadiantQ\Gantt\TimeScaleType::Months;
$monthHeader->Name = "monthHeader";
$monthHeader->TextFormat = "MMM yyyy";
$dayHeader = new RadiantQ\Gantt\TimeScaleHeaderDefinition();
$dayHeader->Type = RadiantQ\Gantt\TimeScaleType::Days;
$dayHeader->Name = "daysHeader";
$options->TimeScaleHeaders = array($yearHeader, $monthHeader, $dayHeader);
//GanttChartOption setting
$GanttChartOptions = new RadiantQ\Gantt\GanttChartOptions();
$GanttChartOptions->AnchorTime = new DateTime("2014-02-02");
$options->GanttChartOptions = $GanttChartOptions;
$ganttSetttings->Options = $options;
//Ganttcontrol initialization.
$gantt = new RadiantQ\UI\GanttControl($ganttSetttings);
//Setting attributes to Ganttcontrol elements.
$gantt->setAttribute("id", "gantt_container");
//To render the ganttcontrol.
echo $gantt->Render();
?>
</div>
<script id="projectGanttNameTemplate" type="text/x-jquery-tmpl">
<div class="rq-grid-expand-indentWidth" style="height: 1px; width: ${data.IndentWidth}px"></div>
    <div style="width: 12px; display: ${data.IsParent ? "block" :"none" }" class="arrowContainer">
          <div onclick="ExpanderOnclick(this,event)" id="arrow" class="${ data.IsExpanded ? " rq-grid-expand-arrow rq-grid-collapse-arrow": "rq-grid-expand-arrow"} rq-Ignore-click"></div>
       </div>
    <div class="rq-grid-expander-text">${data.Activity.ActivityName}</div>
</script>
<script id="projectGanttNameEditor" type="text/x-jquery-tmpl">
    <div class="rq-grid-expand-indentWidth" style="height: 1px; width: ${data.IndentWidth_M()}px"></div>