<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: chenlingfeng $Date: 2017-8-11 14:29:50 $Revision: 1.0 $Purpose: 项目上会纪要确认 --> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:init-procedure> <a:model-query defaultWhereClause="document_category='PROJECT' and document_type in ('PRJL','PRJLB')" fetchAll="true" model="basic.hls_document_type_for_lov" rootPath="hls_document_type_path"/> <a:model-query defaultWhereClause="V.CODE = 'PRJ501_PRJ_STATUS' AND V.CODE_VALUE IN ('NEW', 'APPROVED_RETURN_SECOND', 'APPROVED_RETURN', 'REJECT','APPROVING')" fetchAll="true" model="basic.sys_code_default_value" rootPath="prj_status_code_path"/> <a:model-query fetchAll="true" model="basic.hls_lease_organization_for_lov" rootPath="hls_lease_organization_path"/> </a:init-procedure> <a:view> <a:link id="prj501e_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/> <a:link id="prj501e_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/> <a:link id="prj501e_project_meeting_confirm_submit_ds" model="prj.PRJ501E.prj_project_meeting_confirm" modelaction="execute"/> <a:link id="prj501c_project_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="prj501c_project_modify_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_create_tree_n.lview"/> <script type="text/javascript"><![CDATA[ function prj501e_lock_list_window() { Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}'); } function prj501e_unlock_list_window() { Leaf.Masker.unmask(Ext.getBody()); } function prj501e_open_project_modify_win(record_id, ds_id) { var record = $(ds_id).findById(record_id); var maintain_type = 'READONLY'; var function_usage = 'QUERY'; var function_code = 'PRJ505'; var param = record.data; var project_status = record.get('project_status'); param['company_id'] = ${/session/@company_id}; param['document_id'] = record.get('project_id'); param['function_code'] = function_code; param['function_usage'] = function_usage; param['maintain_type'] = maintain_type; param['url_title'] = '${l:HLS.PROJECT_MAITAIN}'; //param['layout_debugger_flag']='Y'; param['cond_para2'] = record.get('hn_industry_classification'); param['wf_function_code'] = '${/parameter/@function_code}'; hls_doc_get_layout_code('prj501c_project_get_layout_code_link_id', param, 'prj501c_project_modify_link', ds_id); } function prj501e_open_reocord_atm_win(record_id, ds_id) { var record = $(ds_id).findById(record_id); var url; if (record.get('wfl_status') == 'APPROVED' || record.get('wfl_status') == 'APPROVING') { url = $('prj501e_downloadFile_id').getUrl(); } else { url = $('prj501e_uploadFile_id').getUrl(); } var win = new Leaf.Window({ id: 'prj501e_reocord_atm_win', url: url, params: { table_name: 'PRJ_PROJECT_MEETING_CONFIRM', header_id: record.get('request_id') }, title: '${l:HLS.SUPPORTING_DOCUMENT}', width: 850, height: 400 }); win.on('close', function() { prj501e_query(); }); } function prj501e_project_number_renderer(value, record, name) { if (name == 'project_number' && value) { return '<a href="javascript:prj501e_open_project_modify_win(' + record.id + ',\'' + record.ds.id + '\')">' + value + '</a>'; } if (name == 'record_atm') { return '<a href="javascript:prj501e_open_reocord_atm_win(' + record.id + ',\'' + record.ds.id + '\')">附件</a>'; } if (name == 'file_name') { var url = ''; var file_name = record.get('file_name'); if (file_name != null) { var link = '${/request/@context_path}/atm_download.lsc?attachment_id='; var str = file_name.split(';'); for (var i = 0;i < str.length;i++) { var temp = str[i].split('--'); if (!Leaf.isEmpty(temp[0])) { url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ','; } } return url; } } return value; } function prj501e_query() { $('prj501e_prj_project_meeting_confirm_result_ds').query(); } function prj501e_reset() { $('prj501e_prj_project_meeting_confirm_query_ds').reset(); } function prj501e_submit() { var records = $('prj501e_prj_project_meeting_confirm_result_ds').getSelected(); if (records.length != 1) { Leaf.showMessage('提示', '请选择一条数据!'); return; } var record = records[0]; var file_name = record.get('file_name'); if (!file_name) { Leaf.showMessage('提示', '请先上传会议记录附件!'); return; } Leaf.showConfirm('${HLS.PROMPT}', '确认提交审批吗?', function() { prj501e_lock_list_window(); Leaf.request({ url: $('prj501e_project_meeting_confirm_submit_ds').getUrl(), para: record.data, success: function(res) { prj501e_query(); prj501e_unlock_list_window(); }, failure: function() { prj501e_unlock_list_window(); }, error: function() { prj501e_unlock_list_window(); }, scope: this }); }, function() { prj501e_unlock_list_window(); }); } ]]></script> <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=PROJECT&function_code=PRJ501"/> <a:dataSets> <a:dataSet id="prj501e_prj_doc_type_ds"> <a:datas dataSource="/model/hls_document_type_path"/> </a:dataSet> <a:dataSet id="prj501e_prj_status_ds"> <a:datas dataSource="/model/prj_status_code_path"/> </a:dataSet> <a:dataSet id="prj501e_hls_lease_organization_ds"> <a:datas dataSource="/model/hls_lease_organization_path"/> </a:dataSet> <a:dataSet id="prj501e_hn_meeting_confirm_status_ds" lookupCode="HN_MEETING_CONFIRM_STATUS"/> <a:dataSet id="prj501e_prj_project_meeting_confirm_query_ds" autoCreate="true"> <a:fields> <a:field name="document_type"/> <a:field name="wfl_status_n" displayField="code_value_name" options="prj501e_hn_meeting_confirm_status_ds" returnField="wfl_status" valueField="code_value"/> <a:field name="document_type_n" displayField="description" options="prj501e_prj_doc_type_ds" returnField="document_type" valueField="document_type"/> <a:field name="prj_wfl_status"/> <a:field name="prj_wfl_status_n" displayField="code_value_name" options="prj501e_prj_status_ds" returnField="prj_wfl_status" valueField="code_value"/> <a:field name="employee_id_n" lovAutoQuery="true" lovGridHeight="300" lovHeight="500" lovLabelWidth="120" lovService="basic.hls_salesman_v_for_lov" lovWidth="500" title="项目经理"> <a:mapping> <a:map from="employee_id" to="employee_id"/> <a:map from="name" to="employee_id_n"/> </a:mapping> </a:field> <a:field name="lease_organization_n" displayField="description" options="prj501e_hls_lease_organization_ds" returnField="lease_organization" valueField="lease_organization"/> </a:fields> </a:dataSet> <a:dataSet id="prj501e_prj_project_meeting_confirm_result_ds" autoPageSize="true" autoQuery="true" model="prj.PRJ501E.prj_project_meeting_confirm" queryDataSet="prj501e_prj_project_meeting_confirm_query_ds" selectable="true" selectionModel="single"> <a:events> <a:event name="query" handler="aut_authority_list_validate_query"/> </a:events> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:screenTitle/> <a:gridButton click="prj501e_query" text="查询"/> <a:gridButton click="prj501e_reset" text="重置"/> <a:gridButton click="prj501e_submit" text="会议记录确认"/> </a:screenTopToolbar> <a:form marginWidth="30" title="查询条件"> <a:hBox labelWidth="120"> <a:textField name="project_name" bindTarget="prj501e_prj_project_meeting_confirm_query_ds" prompt="项目名称"/> <a:textField name="bp_name" bindTarget="prj501e_prj_project_meeting_confirm_query_ds" prompt="承租人名称"/> <a:comboBox name="document_type_n" bindTarget="prj501e_prj_project_meeting_confirm_query_ds" prompt="项目租赁类型"/> <a:comboBox name="prj_wfl_status_n" bindTarget="prj501e_prj_project_meeting_confirm_query_ds" prompt="项目状态"/> </a:hBox> <a:hBox labelWidth="120"> <a:lov name="employee_id_n" bindTarget="prj501e_prj_project_meeting_confirm_query_ds" prompt="项目经理"/> <a:comboBox name="lease_organization_n" bindTarget="prj501e_prj_project_meeting_confirm_query_ds" prompt="部门名称"/> <a:datePicker name="prj_creation_date_from" bindTarget="prj501e_prj_project_meeting_confirm_query_ds" prompt="创建日期从"/> <a:datePicker name="prj_creation_date_to" bindTarget="prj501e_prj_project_meeting_confirm_query_ds" prompt="创建日期到"/> </a:hBox> <a:hBox labelWidth="120"> <a:comboBox name="wfl_status_n" bindTarget="prj501e_prj_project_meeting_confirm_query_ds" prompt="确认状态"/> </a:hBox> </a:form> <a:grid id="prj501e_prj_project_meeting_confirm_grid" bindTarget="prj501e_prj_project_meeting_confirm_result_ds" marginHeight="250" marginWidth="30" navBar="true"> <a:columns> <a:column name="project_number" prompt="项目编号" renderer="prj501e_project_number_renderer" width="120"/> <a:column name="project_name" prompt="项目名称" width="200"/> <a:column name="bp_name" prompt="承租人名称" width="200"/> <!-- <a:column name="division" prompt="产品线"/> --> <a:column name="document_type_n" prompt="租赁类型" width="80"/> <!-- <a:column name="project_type_n" prompt="项目类型" width="80"/> --> <a:column name="hn_industry_classification_n" prompt="集团内行业分类"/> <a:column name="employee_id_n" prompt="项目经理" width="80"/> <a:column name="employee_id_of_manager_n" prompt="部门负责人"/> <a:column name="lease_organization_n" prompt="部门名称"/> <a:column name="creation_date_n" prompt="项目创建时间"/> <a:column name="prj_wfl_status_n" prompt="项目状态"/> <a:column name="wfl_status_n" prompt="确认状态"/> <a:column name="record_atm" align="center" prompt="附件" renderer="prj501e_project_number_renderer" width="80"/> <a:column name="file_name" prompt="文件名" renderer="prj501e_project_number_renderer"/> </a:columns> </a:grid> </a:screenBody> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> </a:view> </a:screen>