<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: chenlingfeng $Date: 2017-12-5 下午5:50:36 $Revision: 1.0 $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:view> <a:link id="prj1100_prj_project_bp_change_create_entrance_link" url="${/request/@context_path}/modules/prj/PRJ1100/prj_project_bp_change_create_entrance.lview"/> <a:link id="hn1100_modify_maintain_jump_link" url="${/request/@context_path}/modules/prj/PRJ1100/prj_project_bp_change_modify.lview"/> <a:link id="hn1100_modify_maintain_readonly_jump_link" url="${/request/@context_path}/modules/prj/PRJ1100/prj_project_bp_change_readonly.lview"/> <script type="text/javascript"><![CDATA[ function prj1100_query() { $('prj1100_prj_project_change_req_ds').query(); } function prj1100_reset() { $('prj1100_prj_project_change_req_query_ds').reset(); } function prj1100_add() { var win = new Leaf.Window({ id: 'prj1100_prj_project_bp_change_create_entrance_win', url: $('prj1100_prj_project_bp_change_create_entrance_link').getUrl(), params: { winid: 'prj1100_prj_project_bp_change_create_entrance_win' }, title: '商业伙伴变更', width: 600, height: 400 }); win.on('close', function() { prj1100_query(); }); } function prj1100_open_detail_win(id) { var record = $('prj1100_prj_project_change_req_ds').findById(id); var url = $('hn1100_modify_maintain_readonly_jump_link').getUrl(); if (record.get('req_status') == 'NEW' || record.get('req_status') == 'REJECT') { url = $('hn1100_modify_maintain_jump_link').getUrl(); } var win = new Leaf.Window({ id: 'prj1100_prj_project_bp_change_create_entrance_win', url: url, params: { change_req_id: record.get('change_req_id'), project_id: record.get('project_id'), winid: 'prj1100_prj_project_bp_change_create_entrance_win' }, title: '商业伙伴变更', fullScreen: true }); win.on('close',function(){ prj1100_query(); }); } function prj1100_renderer(value, record, name) { if (name == 'change_req_number') { return '<a href="javascript:prj1100_open_detail_win(' + record.id + ')">' + value + '</a>'; } } ]]></script> <a:dataSets> <a:dataSet id="con_change_req_status_ds" lookupCode="CON_CHANGE_REQ_STATUS"/> <a:dataSet id="prj1100_prj_project_change_req_query_ds" autoCreate="true"> <a:fields> <a:field name="project_number"/> <a:field name="project_name"/> <a:field name="bp_name"/> <a:field name="req_status_n" displayField="code_value_name" options="con_change_req_status_ds" returnField="req_status" valueField="code_value"/> </a:fields> </a:dataSet> <a:dataSet id="prj1100_prj_project_change_req_ds" autoPageSize="true" autoQuery="true" model="prj.PRJ1100.prj_project_change_req"/> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:screenTitle/> <a:gridButton click="prj1100_query" text="查询"/> <a:gridButton click="prj1100_reset" text="重置"/> <a:gridButton click="prj1100_add" text="新增"/> </a:screenTopToolbar> <a:form column="4" marginWidth="30" title=" "> <a:textField name="project_number" bindTarget="prj1100_prj_project_change_req_query_ds" prompt="项目编号"/> <a:textField name="project_name" bindTarget="prj1100_prj_project_change_req_query_ds" prompt="项目名称"/> <a:textField name="bp_name" bindTarget="prj1100_prj_project_change_req_query_ds" prompt="承租人名称"/> <a:comboBox name="req_status_n" bindTarget="prj1100_prj_project_change_req_query_ds" prompt="申请状态"/> </a:form> <a:grid id="prj1100_prj_project_change_req_grid" bindTarget="prj1100_prj_project_change_req_ds" marginHeight="300" marginWidth="30" navBar="true"> <a:columns> <a:column name="change_req_number" prompt="变更编号" renderer="prj1100_renderer" width="120"/> <a:column name="project_name" prompt="项目名称" width="220"/> <a:column name="project_number" prompt="项目编号"/> <a:column name="req_date" prompt="申请时间" renderer="Leaf.formatDate"/> <a:column name="employee_name" prompt="项目经理"/> <a:column name="description" prompt="说明" width="220"/> <a:column name="req_status_n" prompt="申请状态"/> </a:columns> </a:grid> </a:screenBody> </a:view> </a:screen>