batchcreate.html.php 1.8 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * The batchCreate 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. $items = array();
  13. $items[] = array('label' => $lang->idAB, 'name' => 'id', 'control' => 'index', 'width' => '50px');
  14. $items[] = array('label' => $lang->auditplan->execution, 'name' => 'execution', 'control' => 'picker', 'items' => $executions, 'value' => !empty($executionID) ? $executionID : '', 'ditto' => true);
  15. $items[] = array('label' => $lang->auditplan->process, 'name' => 'process', 'control' => array('control' => 'picker', 'required' => false), 'items' => $processList, 'required' => true, 'ditto' => true, 'defaultDitto' => false);
  16. $items[] = array('label' => $lang->auditplan->objectID, 'name' => 'objectID', 'control' => array('control' => 'picker', 'required' => false), 'items' => array(), 'required' => true);
  17. $items[] = array('label' => $lang->auditplan->checkDate, 'name' => 'checkDate', 'control' => 'date', 'required' => true);
  18. $items[] = array('label' => $lang->auditplan->assignedTo, 'name' => 'assignedTo', 'control' => 'picker', 'items' => $users, 'ditto' => true);
  19. formBatchPanel
  20. (
  21. to::heading(div(setClass('panel-title text-lg'), $title, !empty($isUpgrade) ? span(setClass('font-normal text-sm'), $lang->auditplan->upgradeTip) : null)),
  22. on::change('[data-name="process"]', 'changeProcess'),
  23. set::onRenderRow(jsRaw('renderRowData')),
  24. set::data(array_values($auditplans)),
  25. set::items($items)
  26. );