batchedit.html.php 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * The batchEdit view file of auditplan module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package auditplan
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('activityList', $activityList);
  12. $isCycle = current($auditplans)->cycleType != 'noCycle' ? true : false;
  13. $items = array();
  14. $items[] = array('label' => $lang->idAB, 'control' => 'index', 'width' => '50px');
  15. $items[] = array('label' => $lang->idAB, 'name' => 'id', 'control' => 'hidden', 'hidden' => true);
  16. $items[] = array('label' => $lang->auditplan->execution, 'name' => 'execution', 'control' => 'picker', 'items' => $executions);
  17. $items[] = array('label' => $lang->auditplan->process, 'name' => 'process', 'control' => 'picker', 'items' => $processList, 'required' => true);
  18. $items[] = array('label' => $lang->auditplan->objectID, 'name' => 'objectID', 'control' => 'picker', 'items' => array(), 'required' => true);
  19. if(!$isCycle) $items[] = array('label' => $lang->auditplan->checkDate, 'name' => 'checkDate', 'control' => 'date', 'required' => true);
  20. $items[] = array('label' => $lang->auditplan->assignedTo, 'name' => 'assignedTo', 'control' => array('control' => 'picker', 'required' => false), 'items' => $users, 'required' => $isCycle);
  21. formBatchPanel
  22. (
  23. on::change('[data-name="process"]', 'changeProcess'),
  24. set::onRenderRow(jsRaw('renderRowData')),
  25. set::title($lang->auditplan->batchEdit),
  26. set::mode('edit'),
  27. set::data(array_values($auditplans)),
  28. set::items($items)
  29. );