浏览代码

swap columns in worksheet

master
Daniel 2 年前
父节点
当前提交
22339be365
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. +4
    -4
      httpdocs/src/Controller/UserController.php
  2. +2
    -2
      httpdocs/templates/snippets/worksheet-result.html.twig

+ 4
- 4
httpdocs/src/Controller/UserController.php 查看文件

@@ -349,8 +349,8 @@ class UserController extends AbstractController
$sheet->setCellValue('A23', 'Tätigkeiten');
$sheet->getStyle('A23:I24')->getFont()->setSize(14);
$sheet->getStyle('A24:I24')->getFill()->setFillType(Fill::FILL_SOLID)->getStartColor()->setARGB('ffa4ffa4');
$sheet->setCellValue('A24', 'Aufgabe');
$sheet->setCellValue('B24', 'Baugruppen');
$sheet->setCellValue('A24', 'Baugruppe');
$sheet->setCellValue('B24', 'Aufgabe');
$sheet->setCellValue('C24', 'Inspektion');
$sheet->setCellValue('D24', 'Wartung');
$sheet->setCellValue('E24', 'Instandsetzung');
@@ -363,8 +363,8 @@ class UserController extends AbstractController
$worksheetTasks = UserRepository::getSortedWorksheetTasks($worksheet);
/** @var UserWorksheetTask $task */
foreach ($worksheetTasks as $task) {
$sheet->setCellValue('A'.$row, (($row-24) .". ").$task->getTask());
$sheet->setCellValue('B'.$row, $task->getDelimitation());
$sheet->setCellValue('A'.$row, $task->getDelimitation());
$sheet->setCellValue('B'.$row, (($row-24) .". ").$task->getTask());
$sheet->setCellValue('C'.$row, $task->getInspection() ? 'Ja' : 'Nein');
$sheet->setCellValue('D'.$row, $task->getMaintenance() ? 'Ja' : 'Nein');
$sheet->setCellValue('E'.$row, $task->getService() ? 'Ja' : 'Nein');


+ 2
- 2
httpdocs/templates/snippets/worksheet-result.html.twig 查看文件

@@ -63,8 +63,8 @@
<thead>
<tr>
<th></th>
<th><span>Baugruppe</span></th>
<th><span>Aufgabe</span></th>
<th><span>Baugruppen</span></th>
<th class="ins-2"><span>Inspektion</span></th>
<th class="ins-2"><span>Wartung</span></th>
<th class="ins-2"><span>Instandsetzung</span></th>
@@ -78,8 +78,8 @@
{% for index, task in sortedWorksheetTasks %}
<tr>
<td>{{ index + 1 }}. </td>
<td>{{ task.task }}</td>
<td>{% if task.delimitation is not null %}{{ task.delimitation }}{% else %}-{% endif %}</td>
<td>{{ task.task }}</td>
<td>
{% if task.inspection == 1 %}
<img style="width: 22px;height: auto;" src="{{ app.request.getSchemeAndHttpHost() }}/assets/images/elements/512px-Eo_circle_green_white_checkmark.svg.png" alt="" />


正在加载...
取消
保存