prj_project_modify_reject.lview 7.24 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: lpc 9874
    $Date: $
    $Revision: 1.0 $
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
    <a:view>
        <a:link id="prj_project_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <a:link id="prj_project_modify_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_create_tree_n.lview"/>
        <a:link id="car_modify_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain.lview"/>
        <a:link id="car_modify_dff_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain.lview"/>
        <a:link id="car_modify_mananger_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_manager.lview"/>
        <a:link id="prj_project_bp_parameter_link" url="${/request/@context_path}/modules/prj/PRJ501/prj_project_bp_parameter.lview"/>
        <a:link id="prj_project_modify_special_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_special.lview"/>
        <link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
        <!-- <script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/> -->
        <script type="text/javascript"><![CDATA[
            function open_project_modify_win(record_id, ds_id) {
                var record = $(ds_id).findById(record_id);
                //项目类layout_code
                if (record.get('document_type') == 'PRJ') {
                    var maintain_type = 'UPDATE';
                    var param = record.data;
                    param['document_id'] = record.get('project_id');
                    param['function_code'] = 'PRJ520D';
                    param['function_usage'] = 'MODIFY';
                    param['bp_class'] = 'NP';
                    param['prj_bp_id'] = record.get('prj_bp_id');
                    param['maintain_type'] = maintain_type;
                    param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
                    param['layout_debugger_flag'] = 'Y';
            
                    hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'prj_project_modify_link', ds_id);
                } else if (record.get('document_type') == 'CARLS') {
                    if (record.get('special_permit_flag') == 'Y') {
            			//
                        //零售特批
                        maintain_type = 'UPDATE';
                        param = record.data;
                        param['layout_debugger_flag'] = 'Y';
                        param['document_id'] = record.get('project_id');
                        param['function_code'] = 'PRJ501D_SPECIAL';
                        param['function_usage'] = 'MODIFY';
                        param['prj_bp_id'] = record.get('prj_bp_id');
                        param['maintain_type'] = maintain_type;
                        param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
                        hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'prj_project_modify_special_link', ds_id);
                    } else if (record.get('lease_channel') == '02') {
                        //管理人员
                        maintain_type = 'UPDATE';
                        param = record.data;
                        param['document_id'] = record.get('project_id');
                        param['layout_debugger_flag'] = 'Y';
                        param['function_code'] = 'PRJ501D';
                        param['function_usage'] = 'MODIFY';
                        param['prj_bp_id'] = record.get('prj_bp_id');
                        param['maintain_type'] = maintain_type;
                        param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
                        hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'car_modify_mananger_link', ds_id);
                    } else if (record.get('division') == '02') {
                        maintain_type = 'UPDATE';
                        param = record.data;
                        param['document_id'] = record.get('project_id');
                        record.set('function_code', 'PRJ500F_DFF');
                        record.set('function_usage', 'MODIFY');
                        record.set('default_value_dsid', ds_id);
                        param['prj_bp_id'] = record.get('prj_bp_id');
                        record.data['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
                        hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'car_modify_link',ds_id);
                    }else if (record.get('division') == '09') {
                            maintain_type = 'UPDATE';
                            param = record.data;
                            param['document_id'] = record.get('project_id');
                            record.set('function_code', 'PRJ500F_FAC');
                            record.set('function_usage', 'MODIFY');
                            record.set('document_category', 'PROJECT');
                            record.set('default_value_dsid', ds_id);
                            param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
                            // record.set('winid', 'prj_porject_create_win_id');
                            hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'car_modify_link', ds_id);
                        } else {
                        //
                        maintain_type = 'UPDATE';
                        param = record.data;
                        param['document_id'] = record.get('project_id');
                        param['function_code'] = 'PRJ520D';
                        param['function_usage'] = 'MODIFY';
                        param['maintain_type'] = maintain_type;
                        param['prj_bp_id'] = record.get('prj_bp_id');
                        param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
                        hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'car_modify_link', ds_id);
                    }
                }
            }
            
            window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
            
                if (name == 'project_number' && value) {
                    return '<a href="javascript:open_project_modify_win(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>';
                }
                return value;
            };
            
            
            window['${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) {
                var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
            
                if (ds == $(ds_id)) {
                    aut_authority_list_validate_query(ds, qpara);
            
                }
            };
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=PROJECT&amp;function_code=PRJ501"/>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>