zentaobiz.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. global $lang;
  3. $config->custom->canAdd['feedback'] = 'closedReasonList,typeList,priList';
  4. $config->custom->canAdd['ticket'] = 'priList,typeList,closedReasonList';
  5. if(!empty($_SESSION['user']->feedback) or !empty($_COOKIE['feedbackView']))
  6. {
  7. $config->custom->moblieHidden['main'][] = 'ops';
  8. $config->custom->noModuleMenu['todo'] = 'todo';
  9. $config->custom->noModuleMenu['my'] = 'my';
  10. $config->custom->noModuleMenu['feedback'] = 'feedback';
  11. $config->custom->noModuleMenu['faq'] = 'faq';
  12. }
  13. $config->custom->moblieHidden['my'] = array('changePassword', 'manageContacts', 'profile', 'review');
  14. $config->custom->moblieHidden['oa'] = array('holiday', 'review');
  15. $config->custom->moblieHidden['feedback'][] = 'products';
  16. $config->custom->moblieHidden['ops'][] = 'setting';
  17. $config->custom->requiredModules[82] = 'feedback';
  18. $config->custom->fieldList['feedback']['create'] = 'module,type,feedbackBy,notifyEmail,source';
  19. $config->custom->fieldList['feedback']['edit'] = 'module,type,feedbackBy,notifyEmail,source';
  20. $config->custom->requiredModules[83] = 'ticket';
  21. $config->custom->fieldList['ticket']['create'] = 'module,type,openedBuild,notifyEmail,assignedTo,deadline,customer,contact';
  22. $config->custom->fieldList['ticket']['edit'] = 'module,type,openedBuild,notifyEmail,assignedTo,deadline,customer,contact';
  23. array_splice($config->custom->allFeatures, -2, 0, array('oa', 'feedback', 'traincourse', 'workflow'));
  24. if($config->vision == 'rnd' && $config->systemMode != 'light' && ($config->edition == 'ipd' || helper::hasFeature('program')))
  25. {
  26. $config->custom->fieldList['project']['create'] = 'charter,' . $config->custom->fieldList['project']['create'];
  27. $config->custom->fieldList['project']['edit'] = 'charter,' . $config->custom->fieldList['project']['edit'];
  28. }
  29. $config->custom->customFields['feedback'] = array('custom' => array('batchCreateFields'));
  30. $config->custom->customFields['ticket'] = array('custom' => array('batchCreateFields'));
  31. $config->custom->browseRelation = new stdclass();
  32. $config->custom->browseRelation->actionList = array();
  33. $config->custom->browseRelation->actionList['edit'] = array();
  34. $config->custom->browseRelation->actionList['edit']['icon'] = 'edit';
  35. $config->custom->browseRelation->actionList['edit']['hint'] = $lang->edit;
  36. $config->custom->browseRelation->actionList['edit']['url'] = array('module' => 'custom', 'method' => 'editRelation', 'params' => 'id={key}');
  37. $config->custom->browseRelation->actionList['edit']['data-toggle'] = 'modal';
  38. $config->custom->browseRelation->actionList['edit']['data-size'] = 'sm';
  39. $config->custom->browseRelation->actionList['delete'] = array();
  40. $config->custom->browseRelation->actionList['delete']['icon'] = 'trash';
  41. $config->custom->browseRelation->actionList['delete']['hint'] = $lang->delete;
  42. $config->custom->browseRelation->actionList['delete']['url'] = array('module' => 'custom', 'method' => 'deleteRelation', 'params' => 'id={key}');
  43. $config->custom->browseRelation->actionList['delete']['className'] = 'ajax-submit delete-relation-btn';
  44. $config->custom->browseRelation->dtable = new stdclass();
  45. $config->custom->browseRelation->dtable->fieldList = array();
  46. $config->custom->browseRelation->dtable->fieldList['relation'] = array();
  47. $config->custom->browseRelation->dtable->fieldList['relation']['title'] = $lang->custom->relation;
  48. $config->custom->browseRelation->dtable->fieldList['relation']['type'] = 'category';
  49. $config->custom->browseRelation->dtable->fieldList['relation']['sortType'] = false;
  50. $config->custom->browseRelation->dtable->fieldList['relativeRelation'] = array();
  51. $config->custom->browseRelation->dtable->fieldList['relativeRelation']['title'] = $lang->custom->relativeRelation;
  52. $config->custom->browseRelation->dtable->fieldList['relativeRelation']['type'] = 'category';
  53. $config->custom->browseRelation->dtable->fieldList['relativeRelation']['sortType'] = false;
  54. $config->custom->browseRelation->dtable->fieldList['actions'] = array();
  55. $config->custom->browseRelation->dtable->fieldList['actions']['type'] = 'actions';
  56. $config->custom->browseRelation->dtable->fieldList['actions']['menu'] = array('edit', 'delete');
  57. $config->custom->browseRelation->dtable->fieldList['actions']['list'] = $config->custom->browseRelation->actionList;
  58. $config->custom->relateObjectList = array();
  59. if($config->edition == 'ipd') $config->custom->relateObjectList['demand'] = $lang->demand->common;
  60. if(helper::hasFeature('product_ER')) $config->custom->relateObjectList['epic'] = $lang->ERCommon;
  61. $config->custom->relateObjectList['requirement'] = $lang->URCommon;
  62. $config->custom->relateObjectList['story'] = $lang->SRCommon;
  63. $config->custom->relateObjectList['task'] = $lang->task->common;
  64. $config->custom->relateObjectList['bug'] = $lang->bug->common;
  65. $config->custom->relateObjectList['testcase'] = $lang->testcase->common;
  66. $config->custom->relateObjectList['doc'] = $lang->doc->common;
  67. $config->custom->relateObjectList['design'] = $lang->design->common;
  68. if(helper::hasFeature('devops')) $config->custom->relateObjectList['repocommit'] = $lang->repo->commit;
  69. $config->custom->relateObjectList['feedback'] = $lang->feedback->common;
  70. $config->custom->relateObjectList['ticket'] = $lang->ticket->common;
  71. $config->custom->objectOwner = array();
  72. $config->custom->objectOwner['product'] = array('epic', 'requirement', 'story', 'bug', 'testcase', 'feedback', 'ticket', 'release');
  73. $config->custom->objectOwner['project'] = array('design', 'build');
  74. $config->custom->objectOwner['execution'] = array('task', 'build');
  75. $config->custom->relateObjectFields['epic'] = array('id', 'relation', 'pri', 'title', 'product', 'module', 'openedBy', 'assignedTo', 'status');
  76. $config->custom->relateObjectFields['requirement'] = array('id', 'relation', 'pri', 'title', 'product', 'module', 'openedBy', 'assignedTo', 'status');
  77. $config->custom->relateObjectFields['story'] = array('id', 'relation', 'pri', 'title', 'product', 'module', 'openedBy', 'assignedTo', 'status');
  78. $config->custom->relateObjectFields['task'] = array('id', 'relation', 'pri', 'name', 'project', 'execution', 'openedBy', 'assignedTo', 'status');
  79. $config->custom->relateObjectFields['bug'] = array('id', 'relation', 'pri', 'severity', 'title', 'product', 'project', 'openedBy', 'assignedTo', 'status');
  80. $config->custom->relateObjectFields['testcase'] = array('id', 'relation', 'pri', 'title', 'product', 'openedBy', 'status');
  81. $config->custom->relateObjectFields['doc'] = array('id', 'relation', 'title', 'addedBy', 'addedDate', 'editedBy', 'editedDate');
  82. $config->custom->relateObjectFields['design'] = array('id', 'relation', 'name', 'product', 'project', 'createdBy', 'assignedTo');
  83. $config->custom->relateObjectFields['repocommit'] = array('id', 'relation', 'revision', 'repo', 'committer', 'time');
  84. $config->custom->relateObjectFields['feedback'] = array('id', 'relation', 'pri', 'title', 'product', 'module', 'openedBy', 'assignedTo', 'status');
  85. $config->custom->relateObjectFields['ticket'] = array('id', 'relation', 'pri', 'title', 'product', 'module', 'openedBy', 'assignedTo', 'status');
  86. $config->custom->relationPairs = array();
  87. $config->custom->relationPairs['transferredto'] = 'transferredfrom';
  88. $config->custom->relationPairs['twin'] = 'twin';
  89. $config->custom->relationPairs['subdivideinto'] = 'subdividefrom';
  90. $config->custom->relationPairs['generated'] = 'derivedfrom';
  91. $config->custom->relationPairs['completedin'] = 'completedfrom';
  92. $config->custom->relationPairs['interrated'] = 'interrated';
  93. $config->custom->charterFiles = json_encode($lang->custom->charterFiles);