prj_project_wfl_query.lview 14.7 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 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
<?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">
    <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_hzhan_link" url="${/request/@context_path}/modules/prj/PRJ500N/prj_project_query.lview"/>
        <a:link id="pri_project_houdu_link" url="${/request/@context_path}/modules/prj/PRJ520/project_houdu_query.lview"/>
        <a:link id="prj_project_tdxc_link" url="${/request/@context_path}/modules/hls/HLS235/hls_bp_master_query_wfl.lview"/>
        <a:link id="bmLink_submit" model="prj.PRJ500N.prj_history_commts" modelaction="update"/>
        <a:link id="chk_list_query_link" url="${/request/@context_path}/modules/hls/HLS236/hls_bp_master_query_ccx_entrance.lview"/>
        <script type="text/javascript"><![CDATA[
            //保存
            
            function prj_save() {
                //
                $('phone_projectds').submit();
                prj_record = $('prj_project_ds').getCurrentRecord();
                var return_opinion = prj_record.get('return_opinion');
                Leaf.request({
                    url: $('bmLink_submit').getUrl(),
                    para: {
                        return_opinion: return_opinion,
                        project_id: ${/parameter/@project_id}
                    },
                    success: function(res) {
                        Leaf.SideBar.show({
                            msg: '保存成功',
                            duration: 2000
                        });
                        $('phone_projectds').query();
                        $('prj_project_ds').query();
                    },
                    failure: function() {
            
                       },
                    error: function() {},
                    scope: this
                });
            }
            
            function prj_rhzx() {
                var url = 'http://www.pbccrc.org.cn/';
                window.open(url);
            }
            
            function prj_gjfy() {
                var url = 'http://www.court.gov.cn/';
                window.open(url);
            }
            
            function prj_gsgl() {
                var url = 'http://www.gsxt.gov.cn/index.html';
                window.open(url);
            }
            
            function prj_zdw() {
                var url = 'http://www.zhongdengwang.org.cn/zhongdeng/index.shtml';
                window.open(url);
            }
            
            //后督事项
            
            function prj_houdu() {
                var url = $('pri_project_houdu_link').getUrl();
                var raise_status = 'CREDIT';
                var raise_status_desc = '信审阶段';
                var win = new Leaf.Window({
                    id: 'project_houdu_query_window',
                    url: url,
                    params: {
                        project_id: ${/parameter/@project_id},
                        raise_status: raise_status,
                        raise_status_desc: raise_status_desc
                    },
                    title: '后督事项',
                    fullScreen: true
                });
                win.on('close', function() {});
            }
            
            
            //业务核准函
            
            function prj_hzhan() {
                //
                var param = {};
                if ('${/parameter/@hzhan_flag}' == 'Y') {
                    var function_usage = 'MODIFY';
                    var maintain_type = 'MODIFY';
                } else if ('${/parameter/@hzhan_flag}' == 'O') {
                    function_usage = 'QUERY';
                    maintain_type = 'READONLY';
                }
                param['function_code'] = 'PRJ_NOTICE';
                param['function_usage'] = function_usage;
                param['maintain_type'] = maintain_type;
                param['project_id'] = '${/parameter/@project_id}';
                param['winId'] = 'prj_project_hzhan_link_winid';
                param['url_title'] = '核准函';
                hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'prj_project_hzhan_link');
            
            }
            
            //同盾数据查询
            
            
            function prj_tdcx() {
                //
                var param = {};
                param['tdxc_falg'] = '${/parameter/@tdxc_falg}';
                param['function_code'] = 'HLS235_WFL';
                param['project_id'] = '${/parameter/@project_id}';
                param['winId'] = 'prj_project_tdxc_link_winid';
                param['url_title'] = '同盾数据查询';
                hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'prj_project_tdxc_link','${/parameter/layout_code}');
            
            }
            
            //加载时控制字段的只读
            // onLoad_headerDs = function(ds) {
                // //
                // if ('${/parameter/@phone_readOnly_flag}' == 'N') {
                    // $('add_id').hide();
                    // $('delete_id').hide();
                    // $('save_id').hide();
                // } else if ('${/parameter/@phone_readOnly_flag}' == 'Y') {
                    // $('add_id').show();
                    // $('delete_id').show();
                    // $('save_id').show();
                // }
            
            // };
            
            function zjwfl5110_beforeapproveCheck(type) {
                prj_save();
                return true;
            }
            
            function contractDs_grid_editor_function(record, name) {
                //
                if ('${/parameter/@phone_readOnly_flag}' == 'Y') {
                    if (name == 'verify_date') {
                        return 'contractDs_grid_date_pick_id';
                    }
                    if (name == 'verify_to' || name == 'person_in_charge' || name == 'verify_result' || name == 'note') {
                        return 'contractDs_grid_editor_tf_id';
                    }
                    // return '';
                } else {
                    return '';
                }
            }
            
             function prj_ccx() {
                var win = new Leaf.Window({
                    url: $('chk_list_query_link').getUrl(),
                    params: {
                        project_id: '${/parameter/@project_id}'
                    },
                    title: '详细信息',
                    id: 'hls_master_ccx_report_id',
                    fullScreen: true
                });
            }
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
        <a:dataSets>
            <a:dataSet id="phone_projectds" autoPageSize="true" autoQuery="true" model="prj.PRJ500N.prj_project_phone_verify" queryUrl="${/request/@context_path}/autocrud/prj.PRJ500N.prj_project_phone_verify/query?project_id=${/parameter/@project_id}" selectable="true">
                <a:fields>
                    <a:field name="verify_date"/>
                    <a:field name="verify_to"/>
                    <a:field name="person_in_charge"/>
                    <a:field name="verify_result"/>
                    <a:field name="note"/>
                    <a:field name="project_id" defaultValue="${/parameter/@project_id}"/>
                    <a:field name="bp_id_tenant" defaultValue="${/parameter/@bp_id_tenant}"/>
                </a:fields>
                <!--  <a:events>
                    <a:event name="load" handler="onLoad_headerDs"/>
                </a:events> -->
            </a:dataSet>
            <a:dataSet id="history_contractDs" autoPageSize="true" autoQuery="true" model="prj.PRJ500N.prj_history_contract" queryUrl="${/request/@context_path}/autocrud/prj.PRJ500N.prj_history_contract/query?project_id=${/parameter/@project_id}">
                <a:fields>
                    <a:field name="contract_number"/>
                    <a:field name="contract_name"/>
                    <a:field name="contract_status_n"/>
                    <a:field name="business_type_n"/>
                    <a:field name="product_name"/>
                    <a:field name="price_list_n"/>
                    <a:field name="finance_amount"/>
                    <a:field name="overdue_amount"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="prj_project_ds" autoQuery="true" model="prj.PRJ500N.prj_history_commts" queryUrl="${/request/@context_path}/autocrud/prj.PRJ500N.prj_history_commts/query?project_id=${/parameter/@project_id}" selectable="true">
                <a:fields>
                    <a:field name="write_off_amount" readOnly="true"/>
                    <a:field name="risk_open" readOnly="true"/>
                    <a:field name="return_opinion" readOnly="true"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:form marginWidth="30" title="征信查询">
                <a:screenTopToolbar>
                    <!-- <a:gridButton click="prj_save" text="保存"/> -->
                    <a:gridButton click="prj_rhzx" text="人行征信"/>
                    <a:gridButton click="prj_gjfy" text="高级法院网"/>
                    <a:gridButton click="prj_gsgl" text="企信网"/>
                    <a:gridButton click="prj_zdw" text="中登网"/>
                    <a:gridButton click="prj_tdcx" text="同盾数据查询"/>
                    <a:gridButton click="prj_ccx" text="中诚信数据查询"/>
                    <a:switch test="/parameter/@hzhan_flag">
                        <a:case value="Y">
                            <a:gridButton click="prj_hzhan" style="float:left;margin-right:1px;margin-top:10px;margin-left:5px;;width:60px;" text="业务核准函"/>
                        </a:case>
                        <a:case value="O">
                            <a:gridButton click="prj_hzhan" style="float:left;margin-right:1px;margin-top:10px;margin-left:5px;;width:60px;" text="业务核准函"/>
                        </a:case>
                    </a:switch>
                    <a:switch test="/parameter/@houdu_flag">
                        <a:case value="Y">
                            <a:gridButton click="prj_houdu" style="float:left;margin-right:1px;margin-top:10px;margin-left:5px;;width:60px;" text="后督事项"/>
                        </a:case>
                    </a:switch>
                </a:screenTopToolbar>
            </a:form>
            <a:screen-include screen="modules/prj/PRJ500N/prj_project_query.lview?layout_code=${/parameter/@layout_code}&amp;project_id=${/parameter/@project_id}&amp;bp_class=${/parameter/@bp_class}&amp;function_code=PRJ500N_WFL&amp;maintain_type=READONLY"/>
            <!-- <a:form marginWidth="30">
                <a:screenTopToolbar>
                    <a:gridButton click="prj_save" text="保存"/>
                </a:screenTopToolbar>
            </a:form> -->
            <a:tabPanel id="acr510n_detail_tabpanel_id" marginHeight="140" marginWidth="50">
                <a:tabs>
                    <a:tab prompt="电核信息">
                        <a:grid id="phoneDs_grid" bindTarget="phone_projectds" marginHeight="170" marginWidth="70" navBar="true">
                            <!-- <a:toolBar>
                                <a:button id="add_id" type="add"/>
                                <a:button id="delete_id" type="delete"/>
                                <a:button id="save_id" type="save"/>
                            </a:toolBar> -->
                            <a:columns>
                                <a:column name="verify_date" editorFunction="contractDs_grid_editor_function" prompt="电核时间" renderer="Leaf.formatDate"/>
                                <a:column name="verify_to" editorFunction="contractDs_grid_editor_function" prompt="电核对象"/>
                                <a:column name="person_in_charge" editorFunction="contractDs_grid_editor_function" prompt="负责人" width="150"/>
                                <a:column name="verify_result" editorFunction="contractDs_grid_editor_function" prompt="电核结果"/>
                                <a:column name="note" editorFunction="contractDs_grid_editor_function" prompt="备注"/>
                            </a:columns>
                            <a:editors>
                                <a:textField id="contractDs_grid_editor_tf_id"/>
                                <a:datePicker id="contractDs_grid_date_pick_id"/>
                                <!-- <a:numberField id="selectedDs_grid_editor_nf"/> -->
                            </a:editors>
                        </a:grid>
                    </a:tab>
                    <a:tab prompt="历史单据信息" width="80">
                        <a:grid id="contractDs_grid" bindTarget="history_contractDs" marginHeight="170" marginWidth="70" navBar="true">
                            <a:columns>
                                <a:column name="contract_number" prompt="支付表编号" width="120"/>
                                <a:column name="contract_name" prompt="支付表名称" width="150"/>
                                <a:column name="contract_status_n" prompt="支付表状态" width="120"/>
                                <a:column name="business_type_n" prompt="业务类型" width="80"/>
                                <a:column name="product_name" prompt="产品名称" width="120"/>
                                <a:column name="price_list_n" prompt="还款方式" width="150"/>
                                <a:column name="finance_amount" prompt="融资总额" renderer="Leaf.formatMoney" width="100"/>
                                <a:column name="overdue_amount" prompt="逾期金额" renderer="Leaf.formatMoney" width="100"/>
                                <a:column name="over_principal" prompt="剩余本金" renderer="Leaf.formatMoney" width="100"/>
                                <a:column name="first_due_amount" prompt="第一期租金" renderer="Leaf.formatMoney" width="100"/>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                </a:tabs>
            </a:tabPanel>
            <a:form Width="1200" column="2" height="400">
                <a:numberField name="risk_open" bindTarget="prj_project_ds" prompt="当前风险敞口"/>
                <a:numberField name="write_off_amount" bindTarget="prj_project_ds" prompt="当前核准金额"/>
                <a:textArea name="return_opinion" bindTarget="prj_project_ds" height="200" prompt="内部意见" width="800"/>
            </a:form>
        </a:screenBody>
    </a:view>
</a:screen>