$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>
        <div style="width: 12px; display: ${data.IsParent_M() ? "block" :"none" }" class="arrowContainer">
           <div onclick="ExpanderOnclick(this,event)" id="arrow" class="${ data.IsExpanded_M() ? " rq-grid-expand-arrow rq-grid-collapse-arrow": "rq-grid-expand-arrow"} rq-Ignore-click"></div>
Exemplo n.º 2
0
$options1->ProgressPercentBinding = new RadiantQ\Gantt\Binding("ProgressPercent");
$options1->ResourceItemsSource = array($resource1, $resource2, $resource3);
$options1->ResourceIDBinding = new RadiantQ\Gantt\Binding("ResourceID");
$options1->ResourceNameBinding = new RadiantQ\Gantt\Binding("ResourceName");
$options1->ResourceScheduleBinding = new RadiantQ\Gantt\Binding("CustomScheduleString", "RadiantQ.Gantt.StringToWorkTimeScheduleConverter");
//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", "380px");
$gantt->setStyleAttribute("width", "100%");
$gantt->setAttribute("id", "gantt_container1");
//To render the ganttcontrol.
echo $gantt->Render();
?>
        </div>
</div>
</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>
$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>
        <div style="width: 12px; display: ${data.IsParent_M() ? "block" :"none" }" class="arrowContainer">
           <div onclick="ExpanderOnclick(this,event)" id="arrow" class="${ data.IsExpanded_M() ? " rq-grid-expand-arrow rq-grid-collapse-arrow": "rq-grid-expand-arrow"} rq-Ignore-click"></div>
Exemplo n.º 4
0
$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)}
            </span></br>
				<span>EndTime : ${endTimeTooltipConverter(data)}
                </span>
        </div>