* @package execution * @link https://www.zentao.net */ namespace zin; $fields = useFields('execution.edit'); jsVar('weekend', $config->execution->weekend); jsVar('errorSameProducts', $lang->execution->errorSameProducts); jsVar('unmodifiableProducts',$unmodifiableProducts); jsVar('unmodifiableBranches', $unmodifiableBranches); jsVar('linkedStoryIDList', $linkedStoryIDList); jsVar('confirmSync', $lang->execution->confirmSync); jsVar('unLinkProductTip', $lang->project->unLinkProductTip); jsVar('typeTip', $lang->execution->typeTip); jsVar('projectID', $execution->project); jsVar('allProducts', $allProducts); jsVar('branchGroups', $branchGroups); jsVar('isWaterfall', isset($project) && ($project->model == 'waterfall' || $project->model == 'waterfallplus')); jsVar('executionAttr', $execution->attribute); jsVar('window.lastProjectID', $execution->project); jsVar('multiBranchProducts', $multiBranchProducts); formGridPanel ( on::change('[name^=products]', 'productChange'), on::change('[name^=project]', 'changeProject'), on::change('[name=begin]', 'computeWorkDays(NaN)'), on::change('[name=end]', 'computeWorkDays(NaN)'), set::fullModeOrders('project', !empty($config->setCode) ? 'type,name,code' : 'method,name,type', 'planDate,days,products,branch,plans,PO,QD,PM,RD,teamMembers,desc,acl'), set::title($lang->execution->edit), set::modeSwitcher(false), set::defaultMode('full'), set::fields($fields) );