con_contract_finish_maintain.lview 33.5 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: LR  
    $Date: 2013-8-13 上午10:30:25  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
    <a:init-procedure><![CDATA[
25484's avatar
25484 committed
10 11
        ]]>
    </a:init-procedure>
Spencer Chang's avatar
Spencer Chang committed
12
    <a:view>
13
        <a:link id="change_et_date_link" model="cont.CON560.con_contract_finish_for_query" modelaction="batch_update"/>
14 15
        <a:link id="${/parameter/@layout_code}con_contract_query_link"
                url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
38823's avatar
38823 committed
16 17 18 19
        <a:link id="${/parameter/@layout_code}con_contract_op_query_link"
                url="${/request/@context_path}/modules/cont/CON505/con_contract_op_modify.lview"/>
        <a:link id="con_contract_terminate_link_id"
                url="${/request/@context_path}/modules/cont/CON560/batch_con_contract_tmp.lsc"/>
Spencer Chang's avatar
Spencer Chang committed
20
        <a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/>
25484's avatar
25484 committed
21 22 23 24
        <a:link id="con_contract_update_link_id"
                url="${/request/@context_path}/modules/cont/CON500/con_contract_update.lview"/>
        <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
                modelaction="update"/>
Spencer Chang's avatar
Spencer Chang committed
25
        <script type="text/javascript"><![CDATA[
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
        function save_et_date_btn(){
             var datas=$('con560_contract_result_ds').getJsonData();
             if(datas.length==0){
                 $L.showInfoMessage("提示",'未修改任何数据!');
                 return;
             }else{
                 var arry=[];
                 for(var i=0;i<datas.length;i++){
                    var obj={};
                    obj.contract_id=datas[i].contract_id;
                    obj.et_date=Leaf.formatDate(datas[i].et_date);
                    obj._status=datas[i]._status;
                    arry.push(obj);

                 }
                 console.log(arry);
                 //保存数据
                 var detail_mask=Ext.getBody();
                 Leaf.Masker.mask(detail_mask);

                 Leaf.request({
                     url: $('change_et_date_link').getUrl(),
                     para: arry,
                     success: function() {
                         Leaf.SideBar.show({
                             msg: '操作成功',
                             duration: 2000
                         });
                         Leaf.Masker.unmask(detail_mask);
                         $('con560_contract_result_ds').query();
                     },
                     failure: function() {
                         Leaf.Masker.unmask(detail_mask);
                     },
                     error: function() {
                         Leaf.Masker.unmask(detail_mask);
                     },
                     scope: this
                 });
             }
        }
38823's avatar
38823 committed
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

        function save_op_et_date_btn(){
            var datas=$('con560_contract_op_result_ds').getJsonData();
            if(datas.length==0){
                $L.showInfoMessage("提示",'未修改任何数据!');
                return;
            }else{
                var arry=[];
                for(var i=0;i<datas.length;i++){
                    var obj={};
                    obj.contract_id=datas[i].contract_id;
                    obj.et_date=Leaf.formatDate(datas[i].et_date);
                    obj._status=datas[i]._status;
                    arry.push(obj);

                }
                console.log(arry);
                //保存数据
                var detail_mask=Ext.getBody();
                Leaf.Masker.mask(detail_mask);

                Leaf.request({
                    url: $('change_et_date_link').getUrl(),
                    para: arry,
                    success: function() {
                        Leaf.SideBar.show({
                            msg: '操作成功',
                            duration: 2000
                        });
                        Leaf.Masker.unmask(detail_mask);
                        $('con560_contract_op_result_ds').query();
                    },
                    failure: function() {
                        Leaf.Masker.unmask(detail_mask);
                    },
                    error: function() {
                        Leaf.Masker.unmask(detail_mask);
                    },
                    scope: this
                });
            }
        }

110 111 112 113 114 115 116
        function date_editor_func(record,name){
            if(record.get('contract_status')=='INCEPT'||record.get('contract_status')=='ETING'||record.get('contract_status')=='REPURING'){
                return 'date_editor';
            }else{
                return '';
            }
        }
38823's avatar
38823 committed
117 118 119 120 121 122 123
        function date_op_editor_func(record,name) {
            if(record.get('contract_status')=='INCEPT'){
                return 'date_op_editor';
            }else {
                return '';
            }
        }
25484's avatar
25484 committed
124
        function con560_con_contract_detail() {
38823's avatar
38823 committed
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
            var fl_ds = $('con560_contract_result_ds');
            var fl_records = $('con560_contract_result_ds').getSelected();
            var op_ds = $('con560_contract_op_result_ds');
            var op_records = $('con560_contract_op_result_ds').getSelected();
            if(fl_records == ''){
                var records = op_records;
                var result_ds = op_ds;
            }else {
                records = fl_records;
                result_ds = fl_ds;
            }
            if(fl_records!='' && op_records!=''){
                $L.showErrorMessage("提示",'请勾选同一业务类型的单据进行合同结束操作!');
                return;
            }
140
            var seal_record = $('seal_info_ds').getCurrentRecord();
141

25484's avatar
25484 committed
142 143 144
            if (!records.length) {
                Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录');
                return;
Spencer Chang's avatar
Spencer Chang committed
145
            }
146 147 148 149
            if(!records[0].get('et_date')){
                $L.showInfoMessage("提示",'请输入合同结束日!');
                return;
            }
stone's avatar
stone committed
150
            //判断数据有没有修改
38823's avatar
38823 committed
151
            var arrys=result_ds.data;
152 153 154 155 156 157
            for(var i=0;i<arrys.length;i++){
                var dirty_flag=arrys[i].dirty;
                if(dirty_flag){
                    $L.showInfoMessage("提示",'页面数据存在改动,请先保存数据!');
                    return;
                }
stone's avatar
stone committed
158
            }
25484's avatar
25484 committed
159 160
            var TerminateData = [];
            for (var i = 0; i < records.length; i++) {
161 162 163 164
                if(records[i].data.is_terminate=='否'){
                    $L.showInfoMessage("提示",'未收金额如果不为0不可进行合同结束');
                    return;
                }
165 166 167
                jQuery.each(seal_record.data, function(j, v){
                    records[i].set( j ,  v );
                });
25484's avatar
25484 committed
168 169
                records[i].set('_status', 'update');
                TerminateData.push(records[i].data);
Spencer Chang's avatar
Spencer Chang committed
170
            }
25484's avatar
25484 committed
171
            Leaf.showConfirm('${l:PROMPT}', '确认提交合同结束工作流?', function () {
25484's avatar
25484 committed
172 173 174 175 176
                Leaf.request({
                    url: $('con_contract_terminate_link_id').getUrl(),
                    para: TerminateData,
                    success: function () {
                        Leaf.SideBar.show({
25484's avatar
25484 committed
177
                            msg: '提交成功',
25484's avatar
25484 committed
178 179
                            duration: 2000
                        });
38823's avatar
38823 committed
180
                        result_ds.query();
25484's avatar
25484 committed
181 182 183 184 185 186
                    },
                    scope: this
                });
            }, function () {
            }, null, null);
        }
187 188 189 190 191 192 193 194 195 196
        function open_contract_win(ds_id, record_id) {
            var record = $(ds_id).findById(record_id);
            var param = record.data;
                param['function_code'] = 'CON301';
                param['function_usage'] = 'QUERY';
            param['winid'] = 'con_contract_modify_win_id';
            param['download'] = 'Y';
            param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
            hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_query_link', ds_id);
        }
38823's avatar
38823 committed
197 198 199 200 201 202 203 204 205 206 207 208

        function open_op_contract_win(ds_id,record_id) {
            var record = $(ds_id).findById(record_id);
            var param = record.data;
            param['function_code'] = 'CON301OP';
            param['function_usage'] = 'QUERY';
            param['windid'] = 'con_contract_op_modify_win_id';
            param['download'] = 'Y';
            param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
            hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_op_query_link', ds_id);

        }
25484's avatar
25484 committed
209 210
        function con560_render_contractMaintainDs_grid(value, record, name) {
            if (name == 'contract_number') {
211
                return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
Spencer Chang's avatar
Spencer Chang committed
212
            }
25484's avatar
25484 committed
213 214
        }

38823's avatar
38823 committed
215 216 217 218 219 220
        function con560_render_op_contractMaintainDs_grid(value,record,name) {
            if(name == 'contract_number'){
                return '<a href="javascript:open_op_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
            }
        }

25484's avatar
25484 committed
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
        function con560_param_set_value(param) {
            param['document_category'] = 'CONTRACT';
            param['function_code'] = 'CON301';
            param['function_usage'] = 'QUERY';
            param['maintain_type'] = 'READONLY';
            param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
            hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_update_link_id', 'con560_contract_result_ds');
        }

        function con560_contractMaintainDs_grid_update(id) {
            var current_record = $('con560_contract_result_ds').findById(id);
            var param = current_record.data;
            param['document_id'] = current_record.get('contract_id');
            con560_param_set_value(param);
        }

        function con560_con_contract_query() {
            $('con560_contract_result_ds').query();
38823's avatar
38823 committed
239
            $('con560_contract_op_result_ds').query();
25484's avatar
25484 committed
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
        }

        function con560_con_contract_reset() {
            $('con560_contract_query_ds').reset();
        }

        function summaryRenderer(datas, name) {
            var sum = 0;
            var sum2 = 0;
            for (var i = 0; i < datas.length; i++) {
                record = datas[i];
                if (name == "lease_item_amount") {
                    var t_1 = record.get("lease_item_amount");
                    var t_2 = parseFloat(t_1);
                    if (!isNaN(t_2)) {
                        sum += t_2;
Spencer Chang's avatar
Spencer Chang committed
256 257
                    }
                }
25484's avatar
25484 committed
258 259 260 261 262 263
                if (name == "down_payment") {
                    var d_1 = record.get("down_payment");
                    var d_2 = parseFloat(d_1);
                    if (!isNaN(d_2)) {
                        sum2 += d_2;
                    }
Spencer Chang's avatar
Spencer Chang committed
264 265
                }
            }
25484's avatar
25484 committed
266 267 268 269 270 271 272 273
            if (name == "bp_vender") {
                return '<div align="right">合计:</div>';
            }
            if (name == "lease_item_amount") {
                return '<font color="red">' + Leaf.formatNumber(sum, 2) + '</font>';
            }
            if (name == "down_payment") {
                return '<font color="red">' + Leaf.formatNumber(sum2, 2) + '</font>';
Spencer Chang's avatar
Spencer Chang committed
274
            }
25484's avatar
25484 committed
275 276
        }

277
        function onIndexChange(ds, record, name, value, oldvalue){
25484's avatar
25484 committed
278 279 280 281 282
            $('receivedAmountDs').setQueryParameter('contract_id', record.get('contract_id'));
            $('unreceivedAmountDs').setQueryParameter('contract_id', record.get('contract_id'));
            $('receivedAmountDs').query();
            $('unreceivedAmountDs').query();

283 284 285 286 287 288
            /*$('seal_info_ds').setQueryParameter('contract_id', record.get('contract_id'));
            $('seal_info_ds').query();*/

            if(Ext.isEmpty($('seal_info_ds').getCurrentRecord())){
                $('seal_info_ds').create();
            }
289

25484's avatar
25484 committed
290 291
        }

Spencer Chang's avatar
Spencer Chang committed
292 293
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
25484's avatar
25484 committed
294 295
        <a:screen-include
                screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CON560"/>
Spencer Chang's avatar
Spencer Chang committed
296 297 298
        <a:dataSets>
            <a:dataSet id="receivedAmountDs" autoQuery="true" model="cont.CON560.con_contract_received_amount"/>
            <a:dataSet id="unreceivedAmountDs" autoQuery="true" model="cont.CON560.con_contract_unreceived_amount"/>
25484's avatar
25484 committed
299
            <a:dataSet id="con560_contract_status_ds" autoQuery="true" model="cont.CON560.con_contract_status"/>
25484's avatar
25484 committed
300 301
            <a:dataSet id="con560_lease_organization_name_ds" loadData="true"
                       model="basic.hls_lease_organization_for_lov"/>
25484's avatar
25484 committed
302
            <a:dataSet id="con560_contract_status_grid_ds" lookupCode="CON500_CONTRACT_STATUS"/>
303
            <a:dataSet id="seal_number_ds" lookupCode="SEAL_NUMBER_FINISH"/>
Spencer Chang's avatar
Spencer Chang committed
304 305
            <a:dataSet id="con560_contract_query_ds" autoCreate="true">
                <a:fields>
25484's avatar
25484 committed
306 307
                    <a:field name="bp_name"  lovGridHeight="350" lovHeight="500" lovLabelWidth="100"
                             lovService="cont.CON541.hls_bp_masster_for_lov" lovWidth="520"
25484's avatar
25484 committed
308
                             title="HLS.BP_TITLE">
Spencer Chang's avatar
Spencer Chang committed
309 310
                        <a:mapping>
                            <a:map from="bp_name" to="bp_name"/>
25484's avatar
25484 committed
311
                            <a:map from="bp_code" to="bp_code"/>
Spencer Chang's avatar
Spencer Chang committed
312 313 314
                            <a:map from="bp_id" to="bp_id_tenant"/>
                        </a:mapping>
                    </a:field>
25484's avatar
25484 committed
315
                    <a:field name="bp_id_tenant"/>
Spencer Chang's avatar
Spencer Chang committed
316 317 318 319 320 321 322
                    <!-- <a:field name="contract_number" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="cont.CON531.con_contract_lov" lovWidth="500" title="HLS.CONTRACT_NUMBER">
                        <a:mapping>
                            <a:map from="contract_number" to="contract_number"/>
                            <a:map from="contract_id" to="contract_id"/>
                        </a:mapping>
                    </a:field> -->
                    <a:field name="contract_number" typeCase="Upper"/>
25484's avatar
25484 committed
323 324 325
<!--                    <a:field name="lease_organization_name" displayField="description"-->
<!--                             options="con560_lease_organization_name_ds" returnField="lease_organization"-->
<!--                             valueField="lease_organization"/>-->
25484's avatar
25484 committed
326 327
                    <a:field name="owner_user_id_n" lovGridHeight="350" lovHeight="475"
                             lovService="cont.CON560.sys_user_for_lov" lovWidth="520" title="出单人选择">
Spencer Chang's avatar
Spencer Chang committed
328 329 330 331 332
                        <a:mapping>
                            <a:map from="user_id" to="owner_user_id"/>
                            <a:map from="description" to="owner_user_id_n"/>
                        </a:mapping>
                    </a:field>
25484's avatar
25484 committed
333 334 335
                    <a:field name="contract_status_n" displayField="code_value_name"
                             options="con560_contract_status_ds" returnField="contract_status"
                             valueField="code_value"/>
Spencer Chang's avatar
Spencer Chang committed
336 337
                </a:fields>
            </a:dataSet>
25484's avatar
25484 committed
338
            <a:dataSet id="con560_contract_result_ds" autoPageSize="true" autoQuery="true" pageSize="4"
25484's avatar
25484 committed
339 340
                       model="cont.CON560.con_contract_finish_for_query" queryDataSet="con560_contract_query_ds"
                       queryUrl="${/request/@context_path}/autocrud/cont.CON560.con_contract_finish_for_query/query"
38823's avatar
38823 committed
341 342 343 344 345 346 347 348 349 350 351 352 353
                       selectable="true">
                <!--<a:fields>
                    <a:field name="et_date" required="true" readOnly="false"/>
                </a:fields>-->
                <a:events>
                    <a:event name="indexChange" handler="onIndexChange"/>
                    <a:event name="query" handler="aut_authority_list_validate_query"/>
                </a:events>
            </a:dataSet>
            <a:dataSet id="con560_contract_op_result_ds" autoPageSize="true" autoQuery="true" pageSize="4"
                       model="cont.CON560.con_contract_finish_for_op_query" queryDataSet="con560_contract_query_ds"
                       queryUrl="${/request/@context_path}/autocrud/cont.CON560.con_contract_finish_for_op_query/query"
                       selectable="true">
354
                <!--<a:fields>
355
                    <a:field name="et_date" required="true" readOnly="false"/>
356
                </a:fields>-->
Spencer Chang's avatar
Spencer Chang committed
357 358 359 360 361
                <a:events>
                    <a:event name="indexChange" handler="onIndexChange"/>
                    <a:event name="query" handler="aut_authority_list_validate_query"/>
                </a:events>
            </a:dataSet>
362 363
            <a:dataSet id="seal_info_ds" autoQuery="true" model="cont.CON560.con_contract_seal_info">
                <a:fields>
364
                    <a:field name="instruments_types" readOnly="true" defaultValue="所有权转移通知书"/>
365
                    <a:field name="common_seal" readOnly="true" defaultValue="Y" uncheckedValue="N" checkedValue="Y"/>
366 367 368 369 370 371 372
                    <a:field name="corporate_visa_seal" readOnly="true" defaultValue="N" uncheckedValue="N" checkedValue="Y"/>
                    <a:field name="legal_seal" readOnly="true" defaultValue="N" uncheckedValue="N" checkedValue="Y"/>
                    <a:field name="con_special_seal" readOnly="true" defaultValue="N" uncheckedValue="N" checkedValue="Y"/>
                    <a:field name="financial_seal" readOnly="true" defaultValue="N" uncheckedValue="N" checkedValue="Y"/>
                    <a:field name="supervisio_seal" readOnly="true" defaultValue="N" uncheckedValue="N" checkedValue="Y"/>
                    <a:field name="seal_number_n" readOnly="true" displayField="code_value_name" options="seal_number_ds" returnField="seal_number" valueField="code_value" defaultValue="一式一份" />
                    <a:field name="seal_number" readOnly="true" defaultValue="SEAL_O_ON_NUMBER" />
373 374
                </a:fields>
            </a:dataSet>
Spencer Chang's avatar
Spencer Chang committed
375 376 377 378 379 380 381 382
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="con560_con_contract_query" text="HLS.QUERY"/>
                <a:gridButton click="con560_con_contract_reset" text="HLS.RESET"/>
                <a:gridButton click="con560_con_contract_detail" text="合同结束"/>
            </a:screenTopToolbar>
38823's avatar
38823 committed
383
            <a:form column="5" labelWidth="100" marginWidth="30" title="CON301.CONTRACT_QUERY">
Spencer Chang's avatar
Spencer Chang committed
384
                <a:textField name="contract_number" bindTarget="con560_contract_query_ds" prompt="HLS.CONTRACT_NUMBER"/>
38823's avatar
38823 committed
385 386
                <a:textField name="con_search_term_1" bindTarget="con560_contract_query_ds" prompt="厂商合同编号"/>
                <a:textField name="vender_project_number" bindTarget="con560_contract_query_ds" prompt="采购单编号"/>
Spencer Chang's avatar
Spencer Chang committed
387 388
                <a:lov name="bp_name" bindTarget="con560_contract_query_ds" prompt="HLS.TENANT_CODE"/>
                <!--<a:lov name="owner_user_id_n" bindTarget="con560_contract_query_ds" prompt="出单人"/>-->
25484's avatar
25484 committed
389 390
<!--                <a:comboBox name="lease_organization_name" bindTarget="con560_contract_query_ds" prompt="事业部"/>-->
                <a:comboBox name="contract_status_n" bindTarget="con560_contract_query_ds" prompt="合同状态"/>
Spencer Chang's avatar
Spencer Chang committed
391
            </a:form>
38823's avatar
38823 committed
392
            <a:tabPanel id="con560_con_contract_id" marginHeight="100" marginWidth="5">
Spencer Chang's avatar
Spencer Chang committed
393
                <a:tabs>
38823's avatar
38823 committed
394 395 396 397 398 399
                    <a:tab prompt="融资租赁" marginHeight="450" width="150" marginWidth="30">
                        <a:grid id="con560_con_contract_grid_ds" bindTarget="con560_contract_result_ds" height="350"
                                marginWidth="50" navBar="true">
                            <a:toolBar>
                                <a:button id="hn_atm_complement_atm_grid_save" click='save_et_date_btn' icon="${/request/@context_path}/images/save.png" text="保存"/>
                            </a:toolBar>
Spencer Chang's avatar
Spencer Chang committed
400
                            <a:columns>
38823's avatar
38823 committed
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
                                <a:column name="contract_number" lock="true" prompt="HLS.CONTRACT_NUMBER"
                                          renderer="con560_render_contractMaintainDs_grid" width="100"/>
                                <a:column name="bp_name" prompt="HLS.TENANT_NAME" width="150"/>
                                <a:column name="inception_of_lease" prompt="起租日期" renderer="Leaf.formatDate" width="100"/>
                                <!--                    <a:column name="lease_end_date" prompt="合同预计结束日期" renderer="Leaf.formatDate" width="140"/>-->
                                <a:column name="is_terminate" prompt="是否已结清" width="100"/>
                                <a:column name="residual_value" align="right" prompt="留购价" renderer="Leaf.formatMoney" width="50"/>
                                <!--<a:column name="signing_user_id_n" prompt="签约人" width="100"/>-->
                                <!--                    <a:column name="signing_date" prompt="签约时间" renderer="Leaf.formatDate" width="100"/>-->
                                <!--                    <a:column name="signing_location" prompt="签约地点" width="100"/>-->
                                <!--<a:column name="bp_vender" align="center" footerRenderer="summaryRenderer" prompt="主供应商名称" width="200"/>-->
                                <a:column name="lease_item_amount" align="right" footerRenderer="summaryRenderer" prompt="租赁物总价"
                                          renderer="Leaf.formatMoney" width="120"/>
                                <a:column name="down_payment" align="right" footerRenderer="summaryRenderer" prompt="首付款"
                                          renderer="Leaf.formatMoney" width="120"/>
                                <!--<a:column name="owner_user_id_n" prompt="出单人" width="60"/>-->
                                <a:column name="contract_status_desc" prompt="合同状态" width="80"/>
                                <a:column name="amount_total" prompt="应收租金总额" width="80" renderer="Leaf.formatMoney"/>
                                <a:column name="amount_principal" prompt="应收本金总额" width="80" renderer="Leaf.formatMoney"/>
                                <a:column name="amount_interest" prompt="应收利息总额" width="80" renderer="Leaf.formatMoney"/>
                                <a:column name="amount_received_interest" prompt="已收利息总额" width="80" renderer="Leaf.formatMoney"/>
                                <a:column name="amount_received_penalty" prompt="已收违约金" width="80" renderer="Leaf.formatMoney"/>
                                <a:column name="et_date" prompt="合同结束日" width="80" editorFunction="date_editor_func" renderer="Leaf.formatDate"/>
Spencer Chang's avatar
Spencer Chang committed
424
                            </a:columns>
38823's avatar
38823 committed
425 426 427
                            <a:editors>
                                <a:datePicker id="date_editor"/>
                            </a:editors>
Spencer Chang's avatar
Spencer Chang committed
428
                        </a:grid>
38823's avatar
38823 committed
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485
                        <a:tabPanel marginHeight="400" marginWidth="30">
                            <a:tabs>
                                <a:tab prompt="未收金额" width="110">
                                    <a:grid bindTarget="unreceivedAmountDs" height="250" marginWidth="55" navBar="true">
                                        <a:columns>
                                            <a:column name="times" prompt="期数"/>
                                            <a:column name="cf_item_dis" prompt="类型"/>
                                            <a:column name="due_amount" align="right" prompt="应收金额" renderer="Leaf.formatMoney"/>
                                            <a:column name="received_amount" align="right" prompt="已收金额"
                                                      renderer="Leaf.formatMoney"/>
                                            <a:column name="due_date" prompt="预定支付日期"/>
                                            <a:column name="amount" align="right" prompt="未收金额" renderer="Leaf.formatMoney"/>
                                            <a:column name="principal" align="right" prompt="未收本金" renderer="Leaf.formatMoney"/>
                                            <a:column name="interest" align="right" prompt="未收利息" renderer="Leaf.formatMoney"/>
                                            <!--<a:column name="termination_date" prompt="回购日"/>-->
                                            <a:column name="cf_status_dis" prompt="现金流状态"/>
                                        </a:columns>
                                    </a:grid>
                                </a:tab>
                                <a:tab prompt="已收金额" width="110">
                                    <a:grid bindTarget="receivedAmountDs" height="250" marginWidth="55" navBar="true">
                                        <a:columns>
                                            <a:column name="times" prompt="期数"/>
                                            <a:column name="cf_item_dis" prompt="类型"/>
                                            <a:column name="due_amount" align="right" prompt="应收金额" renderer="Leaf.formatMoney"/>
                                            <a:column name="received_amount" align="right" prompt="已收金额"
                                                      renderer="Leaf.formatMoney"/>
                                            <a:column name="due_date" prompt="预定支付日期"/>
                                            <a:column name="received_principal" align="right" prompt="已收本金"
                                                      renderer="Leaf.formatMoney"/>
                                            <a:column name="received_interest" align="right" prompt="已收利息"
                                                      renderer="Leaf.formatMoney"/>
                                            <!--<a:column name="termination_date" prompt="回购日"/>-->
                                            <a:column name="cf_status_dis" prompt="现金流状态"/>
                                        </a:columns>
                                    </a:grid>
                                </a:tab>
                                <a:tab prompt="用印信息" width="110">
                                    <a:grid id="seal_info_ds_id" bindTarget="seal_info_ds" height="250" marginWidth="55" navBar="true">
                                        <a:columns>
                                            <a:column name="instruments_types" prompt="文书种类"/>
                                            <a:column name="common_seal" prompt="公章" editor="seal_info_check_id"/>
                                            <a:column name="corporate_visa_seal" prompt="法人签证章" editor="seal_info_check_id"/>
                                            <a:column name="legal_seal" prompt="法人章" editor="seal_info_check_id"/>
                                            <a:column name="con_special_seal" prompt="合同专用章" editor="seal_info_check_id"/>
                                            <a:column name="financial_seal" prompt="财务章" editor="seal_info_check_id"/>
                                            <a:column name="supervisio_seal" prompt="监管专用章" editor="seal_info_check_id"/>
                                            <a:column name="seal_number_n" prompt="文书部数" editor="seal_info_combo_id"/>
                                        </a:columns>
                                        <a:editors>
                                            <a:checkBox id="seal_info_check_id"/>
                                            <a:comboBox id="seal_info_combo_id"/>
                                        </a:editors>
                                    </a:grid>
                                </a:tab>
                            </a:tabs>
                        </a:tabPanel>
Spencer Chang's avatar
Spencer Chang committed
486
                    </a:tab>
38823's avatar
38823 committed
487 488 489 490 491 492 493

                    <a:tab prompt="经营租赁" width="150">
                        <a:grid id="con560_con_contract_op_grid_ds" bindTarget="con560_contract_op_result_ds" height="350"
                                marginWidth="50" navBar="true">
                            <a:toolBar>
                                <a:button id="hn_op_atm_complement_atm_grid_save" click='save_op_et_date_btn' icon="${/request/@context_path}/images/save.png" text="保存"/>
                            </a:toolBar>
494
                            <a:columns>
38823's avatar
38823 committed
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514
                                <a:column name="contract_number" lock="true" prompt="HLS.CONTRACT_NUMBER"
                                          renderer="con560_render_op_contractMaintainDs_grid" width="100"/>
                                <a:column name="con_search_term_1" prompt="厂商合同编号" width="100"/>
                                <a:column name="vender_project_number" prompt="采购单编号" width="100"/>
                                <a:column name="bp_name" prompt="HLS.TENANT_NAME" width="150"/>
                                <a:column name="inception_of_lease" prompt="起租日期" renderer="Leaf.formatDate" width="100"/>
                                <!--                    <a:column name="lease_end_date" prompt="合同预计结束日期" renderer="Leaf.formatDate" width="140"/>-->
                                <a:column name="is_terminate" prompt="是否已结清" width="100"/>
                                <!--<a:column name="signing_user_id_n" prompt="签约人" width="100"/>-->
                                <!--                    <a:column name="signing_date" prompt="签约时间" renderer="Leaf.formatDate" width="100"/>-->
                                <!--                    <a:column name="signing_location" prompt="签约地点" width="100"/>-->
                                <!--<a:column name="bp_vender" align="center" footerRenderer="summaryRenderer" prompt="主供应商名称" width="200"/>-->
                                <a:column name="lease_item_amount" align="right" footerRenderer="summaryRenderer" prompt="租赁物总价"
                                          renderer="Leaf.formatMoney" width="120"/>
                                <!--<a:column name="owner_user_id_n" prompt="出单人" width="60"/>-->
                                <a:column name="contract_status_desc" prompt="合同状态" width="80"/>
                                <a:column name="amount_total" prompt="应收租金总额" width="80" renderer="Leaf.formatMoney"/>
                                <a:column name="received_amount_total" prompt="已收租金总额" width="80" renderer="Leaf.formatMoney"/>
                                <a:column name="amount_received_penalty" prompt="已收违约金" width="80" renderer="Leaf.formatMoney"/>
                                <a:column name="et_date" prompt="合同结束日" width="80" editorFunction="date_op_editor_func" renderer="Leaf.formatDate"/>
515 516
                            </a:columns>
                            <a:editors>
38823's avatar
38823 committed
517
                                <a:datePicker id="date_op_editor"/>
518 519
                            </a:editors>
                        </a:grid>
38823's avatar
38823 committed
520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550
                        <a:tabPanel marginHeight="400" marginWidth="30">
                            <a:tabs>
                                <a:tab prompt="未收金额" width="110">
                                    <a:grid bindTarget="unreceivedAmountDs" height="250" marginWidth="55" navBar="true">
                                        <a:columns>
                                            <a:column name="times" prompt="期数"/>
                                            <a:column name="cf_item_dis" prompt="类型"/>
                                            <a:column name="due_amount" align="right" prompt="应收金额" renderer="Leaf.formatMoney"/>
                                            <a:column name="received_amount" align="right" prompt="已收金额"
                                                      renderer="Leaf.formatMoney"/>
                                            <a:column name="due_date" prompt="预定支付日期"/>
                                            <a:column name="amount" align="right" prompt="未收金额" renderer="Leaf.formatMoney"/>
                                            <a:column name="cf_status_dis" prompt="现金流状态"/>
                                        </a:columns>
                                    </a:grid>
                                </a:tab>
                                <a:tab prompt="已收金额" width="110">
                                    <a:grid bindTarget="receivedAmountDs" height="250" marginWidth="55" navBar="true">
                                        <a:columns>
                                            <a:column name="times" prompt="期数"/>
                                            <a:column name="cf_item_dis" prompt="类型"/>
                                            <a:column name="due_amount" align="right" prompt="应收金额" renderer="Leaf.formatMoney"/>
                                            <a:column name="received_amount" align="right" prompt="已收金额"
                                                      renderer="Leaf.formatMoney"/>
                                            <a:column name="due_date" prompt="预定支付日期"/>
                                            <a:column name="cf_status_dis" prompt="现金流状态"/>
                                        </a:columns>
                                    </a:grid>
                                </a:tab>
                            </a:tabs>
                        </a:tabPanel>
551
                    </a:tab>
Spencer Chang's avatar
Spencer Chang committed
552 553 554 555
                </a:tabs>
            </a:tabPanel>
        </a:screenBody>
    </a:view>
25484's avatar
25484 committed
556
</a:screen>