ipd.php 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. global $app;
  3. $app->loadLang('researchtask');
  4. $app->loadLang('marketreport');
  5. $app->loadLang('marketresearch');
  6. $app->loadLang('demand');
  7. $config->my->task->dtable->fieldList['name']['title'] = $lang->researchtask->name;
  8. $config->my->task->dtable->fieldList['project']['title'] = $lang->marketreport->research;
  9. $config->my->task->dtable->fieldList['execution']['title'] = $lang->marketresearch->execution;
  10. $config->my->task->dtable->fieldList['name']['link'] = array('url' => array('module' => 'researchtask', 'method' => 'view', 'params' => 'taskID={id}'), 'data-app' => 'market');
  11. unset($config->my->task->dtable->fieldList['name']['data-toggle'], $config->my->task->dtable->fieldList['name']['data-size']);
  12. $config->my->task->dtable->fieldList['project']['link'] = array('module' => 'marketresearch', 'method' => 'task', 'params' => 'projectID={project}');
  13. unset($config->my->task->dtable->fieldList['execution']['link']);
  14. $config->my->task->actionList['start']['url'] = array('module' => 'researchtask', 'method' => 'start', 'params' => 'taskID={id}');
  15. $config->my->task->actionList['finish']['url'] = array('module' => 'researchtask', 'method' => 'finish', 'params' => 'taskID={id}');
  16. $config->my->task->actionList['close']['url'] = array('module' => 'researchtask', 'method' => 'close', 'params' => 'taskID={id}');
  17. $config->my->task->actionList['record']['url'] = array('module' => 'researchtask', 'method' => 'recordWorkhour', 'params' => 'taskID={id}');
  18. $config->my->task->actionList['edit']['url'] = array('module' => 'researchtask', 'method' => 'edit', 'params' => 'taskID={id}');
  19. $config->my->task->actionList['batchCreate']['url'] = array('module' => 'researchtask', 'method' => 'batchCreate', 'params' => 'executionID={execution}&taskID={id}');
  20. $config->my->task->dtable->fieldList['actions']['list'] = $config->my->task->actionList;
  21. $config->my->demand = new stdclass();
  22. $config->my->demand->actionList = array();
  23. $config->my->demand->actionList['change']['icon'] = 'alter';
  24. $config->my->demand->actionList['change']['text'] = $lang->demand->change;
  25. $config->my->demand->actionList['change']['hint'] = $lang->demand->change;
  26. $config->my->demand->actionList['change']['url'] = array('module' => 'demand', 'method' => 'change', 'params' => 'demandID={id}');
  27. $config->my->demand->actionList['change']['data-toggle'] = 'modal';
  28. $config->my->demand->actionList['submitReview']['icon'] = 'confirm';
  29. $config->my->demand->actionList['submitReview']['text'] = $lang->demand->submitReview;
  30. $config->my->demand->actionList['submitReview']['hint'] = $lang->demand->submitReview;
  31. $config->my->demand->actionList['submitReview']['url'] = array('module' => 'demand', 'method' => 'submitReview', 'params' => 'demandID={id}');
  32. $config->my->demand->actionList['submitReview']['data-toggle'] = 'modal';
  33. $config->my->demand->actionList['review']['icon'] = 'search';
  34. $config->my->demand->actionList['review']['text'] = $lang->demand->review;
  35. $config->my->demand->actionList['review']['hint'] = $lang->demand->review;
  36. $config->my->demand->actionList['review']['url'] = array('module' => 'demand', 'method' => 'review', 'params' => 'demandID={id}');
  37. $config->my->demand->actionList['review']['data-toggle'] = 'modal';
  38. $config->my->demand->actionList['recall']['icon'] = 'undo';
  39. $config->my->demand->actionList['recall']['text'] = $lang->demand->recall;
  40. $config->my->demand->actionList['recall']['hint'] = $lang->demand->recall;
  41. $config->my->demand->actionList['recall']['url'] = array('module' => 'demand', 'method' => 'recall', 'params' => 'demandID={id}');
  42. $config->my->demand->actionList['recall']['className'] = 'ajax-submit';
  43. $config->my->demand->actionList['distribute']['icon'] = 'sitemap';
  44. $config->my->demand->actionList['distribute']['text'] = $lang->demand->distribute;
  45. $config->my->demand->actionList['distribute']['hint'] = $lang->demand->distributeHint;
  46. $config->my->demand->actionList['distribute']['url'] = array('module' => 'demand', 'method' => 'distribute', 'params' => 'demandID={id}');
  47. $config->my->demand->actionList['distribute']['data-toggle'] = 'modal';
  48. $config->my->demand->actionList['distribute']['data-size'] = 'lg';
  49. $config->my->demand->actionList['edit']['icon'] = 'edit';
  50. $config->my->demand->actionList['edit']['text'] = $lang->demand->edit;
  51. $config->my->demand->actionList['edit']['hint'] = $lang->demand->edit;
  52. $config->my->demand->actionList['edit']['url'] = array('module' => 'demand', 'method' => 'edit', 'params' => 'demandID={id}');
  53. $config->my->demand->actionList['edit']['data-toggle'] = 'modal';
  54. $config->my->demand->actionList['edit']['data-size'] = 'lg';
  55. $config->my->demand->actionList['batchCreate']['icon'] = 'split';
  56. $config->my->demand->actionList['batchCreate']['text'] = $lang->demand->subdivide;
  57. $config->my->demand->actionList['batchCreate']['hint'] = $lang->demand->subdivideHint;
  58. $config->my->demand->actionList['batchCreate']['url'] = array('module' => 'demand', 'method' => 'batchCreate', 'params' => 'poolID={pool}&demandID={id}&confirm=no');
  59. $config->my->demand->actionList['batchCreate']['data-toggle'] = 'modal';
  60. $config->my->demand->actionList['batchCreate']['data-size'] = 'lg';
  61. $config->my->demand->actionList['close']['icon'] = 'off';
  62. $config->my->demand->actionList['close']['text'] = $lang->demand->close;
  63. $config->my->demand->actionList['close']['hint'] = $lang->demand->close;
  64. $config->my->demand->actionList['close']['url'] = array('module' => 'demand', 'method' => 'close', 'params' => 'demandID={id}');
  65. $config->my->demand->actionList['close']['data-toggle'] = 'modal';
  66. $config->my->demand->actionList['close']['data-size'] = 'lg';
  67. $config->my->demand->actionList['processDemandChange']['icon'] = 'ok';
  68. $config->my->demand->actionList['processDemandChange']['text'] = $lang->demand->processDemandChange;
  69. $config->my->demand->actionList['processDemandChange']['hint'] = $lang->demand->processDemandChange;
  70. $config->my->demand->actionList['processDemandChange']['url'] = array('module' => 'demand', 'method' => 'processDemandChange', 'params' => 'demandID={id}');
  71. $config->my->demand->actionList['processDemandChange']['data-app'] = 'my';
  72. $config->my->demand->dtable = new stdclass();
  73. $config->my->demand->dtable->fieldList['id']['name'] = 'id';
  74. $config->my->demand->dtable->fieldList['id']['title'] = $lang->idAB;
  75. $config->my->demand->dtable->fieldList['id']['type'] = 'id';
  76. $config->my->demand->dtable->fieldList['id']['sortType'] = true;
  77. $config->my->demand->dtable->fieldList['title']['name'] = 'title';
  78. $config->my->demand->dtable->fieldList['title']['title'] = $lang->demand->demandTitle;
  79. $config->my->demand->dtable->fieldList['title']['type'] = 'title';
  80. $config->my->demand->dtable->fieldList['title']['nestedToggle'] = true;
  81. $config->my->demand->dtable->fieldList['title']['link'] = array('module' => 'demand', 'method' => 'view', 'params' => 'id={id}');
  82. $config->my->demand->dtable->fieldList['title']['fixed'] = 'left';
  83. $config->my->demand->dtable->fieldList['title']['sortType'] = true;
  84. $config->my->demand->dtable->fieldList['pri']['name'] = 'pri';
  85. $config->my->demand->dtable->fieldList['pri']['title'] = $lang->priAB;
  86. $config->my->demand->dtable->fieldList['pri']['type'] = 'pri';
  87. $config->my->demand->dtable->fieldList['pri']['sortType'] = true;
  88. $config->my->demand->dtable->fieldList['status']['name'] = 'status';
  89. $config->my->demand->dtable->fieldList['status']['title'] = $lang->statusAB;
  90. $config->my->demand->dtable->fieldList['status']['type'] = 'status';
  91. $config->my->demand->dtable->fieldList['status']['statusMap'] = $lang->demand->statusList;
  92. $config->my->demand->dtable->fieldList['status']['sortType'] = true;
  93. $config->my->demand->dtable->fieldList['pool']['name'] = 'poolName';
  94. $config->my->demand->dtable->fieldList['pool']['title'] = $lang->demand->pool;
  95. $config->my->demand->dtable->fieldList['pool']['type'] = 'text';
  96. $config->my->demand->dtable->fieldList['pool']['sortType'] = true;
  97. $config->my->demand->dtable->fieldList['category']['name'] = 'category';
  98. $config->my->demand->dtable->fieldList['category']['title'] = $lang->demand->category;
  99. $config->my->demand->dtable->fieldList['category']['map'] = $lang->demand->categoryList;
  100. $config->my->demand->dtable->fieldList['category']['type'] = 'text';
  101. $config->my->demand->dtable->fieldList['category']['sortType'] = true;
  102. $config->my->demand->dtable->fieldList['duration']['name'] = 'duration';
  103. $config->my->demand->dtable->fieldList['duration']['title'] = $lang->demand->duration;
  104. $config->my->demand->dtable->fieldList['duration']['map'] = $lang->demand->durationList;
  105. $config->my->demand->dtable->fieldList['duration']['type'] = 'text';
  106. $config->my->demand->dtable->fieldList['duration']['sortType'] = true;
  107. $config->my->demand->dtable->fieldList['BSA']['name'] = 'BSA';
  108. $config->my->demand->dtable->fieldList['BSA']['title'] = $lang->demand->BSA;
  109. $config->my->demand->dtable->fieldList['BSA']['map'] = $lang->demand->bsaList;
  110. $config->my->demand->dtable->fieldList['BSA']['type'] = 'text';
  111. $config->my->demand->dtable->fieldList['BSA']['sortType'] = true;
  112. $config->my->demand->dtable->fieldList['actions']['name'] = 'actions';
  113. $config->my->demand->dtable->fieldList['actions']['title'] = $lang->actions;
  114. $config->my->demand->dtable->fieldList['actions']['type'] = 'actions';
  115. $config->my->demand->dtable->fieldList['actions']['sortType'] = false;
  116. $config->my->demand->dtable->fieldList['actions']['list'] = $config->my->demand->actionList;
  117. $config->my->demand->dtable->fieldList['actions']['menu'] = array(array('processDemandChange'), array('change', 'submitReview|review', 'recall', 'distribute', 'edit', 'batchCreate', 'close'));