csh_payment_req_selected.lview 27.9 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qwm  
    $Date: 2013-5-22 上午11:10:19  
    $Revision: 1.0
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="acr512_currency_list"/>
        <a:model-query fetchAll="true" model="basic.hls_sys_time_default_value" rootPath="sys_time_default_value_list"/>
    </a:init-procedure>
    <a:view>
niminmin's avatar
niminmin committed
14 15 16 17 18 19 20 21 22 23
        <a:link id="csh_payment_req_link"
                url="${/request/@context_path}/modules/csh/CSH501/csh_payment_req_create.lview"/>
        <a:link id="csh_payment_req_cashflow_id_link"
                url="${/request/@context_path}/modules/csh/CSH501/csh_payment_req_cashflow_id.lsc"/>
        <a:link id="csh501_prepayment_link"
                url="${/request/@context_path}/modules/csh/CSH504/csh_prepayment_update.lview"/>
        <a:link id="csh501_csh_payment_req_link_id"
                url="${/request/@context_path}/modules/csh/CSH501/csh_payment_req.lview"/>
        <a:link id="csh501_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
                modelaction="update"/>
Spencer Chang's avatar
Spencer Chang committed
24 25 26

        <div/>
        <script type="text/javascript"><![CDATA[
27

Spencer Chang's avatar
Spencer Chang committed
28 29 30
        var cashflow_id = '';

        function csh501_payment_return() {
31

Spencer Chang's avatar
Spencer Chang committed
32
            $('${/parameter/@winid}').close();
33
            $('${/parameter/@ds_id}').query();
Spencer Chang's avatar
Spencer Chang committed
34 35 36
        }

        function confirmFun() {
niminmin's avatar
niminmin committed
37
            debugger;
Spencer Chang's avatar
Spencer Chang committed
38 39
            var a = $('csh_payment_req_selectedDs').getSelected();
            var record = a[0];
40

Spencer Chang's avatar
Spencer Chang committed
41 42 43
            var cashflow_id_list = [];
            var param = {};
            var contract_id_list = [];
44

Spencer Chang's avatar
Spencer Chang committed
45 46
            if (record == undefined) {
                Leaf.showMessage('${l:PROMPT_MESSAGE}', '至少选择一条现金流!', null, 250, 100);
47 48 49
                return;
            }
            //对是否为同一个厂商进行检查
niminmin's avatar
niminmin committed
50
            var vender_name = record.get('vender_name_n');
panhong18943's avatar
panhong18943 committed
51 52
            //对铁甲和非铁甲的校验
            var division = record.get('division');
niminmin's avatar
niminmin committed
53 54 55
            var vender_flag = true;
            var leaseback_count = 0, lease_count = 0;

stone's avatar
stone committed
56
            //校验发票状态必须是全部开票且发票已确认
57
            for (i = 0; i < a.length; i++) {
niminmin's avatar
niminmin committed
58 59 60 61 62 63
                //检验厂商
                if (a[i].get('vender_name_n') != vender_name) {
                    vender_flag = false;
                    $L.showErrorMessage("提示", '请选择厂商相同的现金流信息!');
                    return;
                }
panhong18943's avatar
panhong18943 committed
64 65 66 67 68
                //对铁甲和非铁甲的校验  add 18943
                if (a[i].get('division') != division) {
                    $L.showErrorMessage("提示", '铁甲业务合同和非铁甲业务合同不可同一批次申请,请确认!');
                    return;
                }
69
                //暂时去掉
70 71
                // if(a[i].get('billing_status_n')!='已开票' ||a[i].get('invoice_status_n')!='已确认'){
                //     $L.showErrorMessage("提示",'请选择开票状态为已开票,发票状态为已确认的现金流!');
72 73
                //     return;
                // }
niminmin's avatar
niminmin committed
74 75
                if (a[i].get('business_type') == 'LEASEBACK') {
                    leaseback_count += 1;
Spencer Chang's avatar
Spencer Chang committed
76
                }
niminmin's avatar
niminmin committed
77 78
                if (a[i].get('business_type') == 'LEASE') {
                    lease_count += 1;
Spencer Chang's avatar
Spencer Chang committed
79
                }
80

niminmin's avatar
niminmin committed
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
                cashflow_id = a[i].get('cashflow_id');
                var arr = {};
                contract_id_list[i] = a[i].get('contract_id');
                arr['_status'] = 'insert';
                arr['cashflow_id'] = cashflow_id;
                arr['contract_id'] = a[i].get('contract_id');
                arr['session_id'] = '${/session/@session_id}';
                cashflow_id_list.push(arr);
            }
            param['details'] = cashflow_id_list;
            //param['contract_id'] = record.get('contract_id');
            if ((leaseback_count > 0 && lease_count > 0) || leaseback_count > 1) {
                $L.showErrorMessage("提示", '直/回租需分开申请,且回租只支持单个合同申请!');
                return;
            }
            Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}');
            Leaf.request({
                url: $('csh_payment_req_cashflow_id_link').getUrl(),
                para: param,
                success: function () {
Spencer Chang's avatar
Spencer Chang committed
101

niminmin's avatar
niminmin committed
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
                    if (cashflow_id != '') {
                        Leaf.Masker.unmask(Ext.getBody());
                        var param = {};
                        var query_record = $('csh_payment_req_query_ds').getCurrentRecord();
                        param['function_code'] = 'CSH501H';
                        param['function_usage'] = 'CREATE';
                        param['document_category'] = 'PAYMENT_REQ';
                        param['business_type'] = 'PAYMENT';
                        param['business_type_n'] = '预付款申请';
                        param['payment_bp_id'] = query_record.get('bp_id');
                        param['taxpayer_type'] = record.get('taxpayer_type');
                        param['taxpayer_type_n'] = record.get('taxpayer_type_n');
                        param['con_business_type'] = record.get('con_business_type');
                        param['con_business_type_n'] = record.get('con_business_type_n');
                        param['contract_id'] = record.get('contract_id');
                        param['bp_id'] = record.get('bp_id_agent_level1');
                       // param['contract_number'] = record.get('contract_number');
                       // param['division_n'] = record.get('division_n');
                       // param['contract_name'] = record.get('contract_name');
                       // param['cdd_list_id'] = record.get('cdd_list_id');
122
                        param['division'] = record.get('division');
niminmin's avatar
niminmin committed
123
                       // param['first_contract_day'] = record.get('first_contract_day');
124

niminmin's avatar
niminmin committed
125 126 127 128 129 130
                        //add by 9188
                        if (a.length == 1) {
                            param['contract_number'] = record.get('contract_number');
                            param['bp_id_tenant_n'] = record.get('bp_id_tenant_n');
                            param['product_type_n'] = record.get('product_type_n');
                            param['product_name_write'] = record.get('product_name_write');
Spencer Chang's avatar
Spencer Chang committed
131
                        }
niminmin's avatar
niminmin committed
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
                        param['winid'] = 'csh501_csh_payment_req_link_winid';
                        param['url_title'] = '付款申请';
                        hls_doc_get_layout_code('csh501_get_layout_code_link_id', param, 'csh501_csh_payment_req_link_id', 'csh_payment_req_selectedDs');
                    }
                },
                failure: function () {
                    Leaf.showWarningMessage('', '${l:PRJ509.DATA_NOT_BACK}', null, 200, 100);
                    Leaf.Masker.unmask(Ext.getBody());
                },
                error: function () {
                    Leaf.Masker.unmask(Ext.getBody());
                },
                scope: this
            });
            // }
Spencer Chang's avatar
Spencer Chang committed
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

        }

        function csh511_prepayment_create() {

            var param = {};
            param['function_code'] = 'CSH501_PRE_D';
            param['function_usage'] = 'CREATE';
            param['document_category'] = 'PAYMENT_REQ';
            param['business_type'] = 'PREPAYMENT';
            param['winid'] = 'csh501_csh_payment_req_link_winid';
            param['url_title'] = '预付款申请';
            hls_doc_get_layout_code('csh501_get_layout_code_link_id', param, 'csh501_csh_payment_req_link_id', 'csh_payment_req_selectedDs');
        }


        function payment_req_query() {
            $('csh_payment_req_selectedDs').query();
        }

        function csh501_payment_maintain_update(ds, record, name, value, oldvalue) {
            if (name == 'pay_contract_from') {
                if (record.get('pay_contract_to') == 'undefined' || record.get('pay_contract_to') == null || record.get('pay_contract_to') == '') {
                    record.set('pay_contract_to', value);
                }
            } else if (name == 'pay_contract_to') {
                if (record.get('pay_contract_from') == 'undefined' || record.get('pay_contract_from') == null || record.get('pay_contract_from') == '') {
                    record.set('pay_contract_from', value);
                }
            } else if (name == 'due_amount_from') {
                if (record.get('due_amount_to') == 'undefined' || record.get('due_amount_to') == null || record.get('due_amount_to') == '') {
                    record.set('due_amount_to', value);
                }
            } else if (name == 'due_amount_to') {
                if (record.get('due_amount_from') == 'undefined' || record.get('due_amount_from') == null || record.get('due_amount_from') == '') {
                    record.set('due_amount_from', value);
                }
            } else if (name == 'due_date_from') {
                if (record.get('due_date_to') == 'undefined' || record.get('due_date_to') == null || record.get('due_date_to') == '') {
                    record.set('due_date_to', value);
                }
            } else if (name == 'due_date_to') {
                if (record.get('due_date_from') == 'undefined' || record.get('due_date_from') == null || record.get('due_date_from') == '') {
                    record.set('due_date_from', value);
                }
            } else if (name == 'bp_code_tenant_from') {
                if (record.get('bp_code_tenant_to') == 'undefined' || record.get('bp_code_tenant_to') == null || record.get('bp_code_tenant_to') == '') {
                    record.set('bp_code_tenant_to', value);
                }
            } else if (name == 'bp_code_tenant_to') {
                if (record.get('bp_code_tenant_from') == 'undefined' || record.get('bp_code_tenant_from') == null || record.get('bp_code_tenant_from') == '') {
                    record.set('bp_code_tenant_from', value);
                }
            } else if (name == 'project_number_from') {
                if (record.get('project_number_to') == 'undefined' || record.get('project_number_to') == null || record.get('project_number_to') == '') {
                    record.set('project_number_to', value);
                }
            } else if (name == 'project_number_to') {
                if (record.get('project_number_from') == 'undefined' || record.get('project_number_from') == null || record.get('project_number_from') == '') {
                    record.set('project_number_from', value);
                }
            }

        }

        function csh501_payment_reset() {
            $('csh_payment_req_query_ds').reset();
        }

        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
niminmin's avatar
niminmin committed
218
        <!--        <a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CSH501"/>-->
Spencer Chang's avatar
Spencer Chang committed
219
        <a:dataSets>
220
            <a:dataSet id="vender_name_ds" lookupCode="VENDER_NAME"/>
Spencer Chang's avatar
Spencer Chang committed
221 222 223 224 225 226 227
            <a:dataSet id="yes_no_ds" lookupCode="YES_NO"/>
            <a:dataSet id="vat_flag_ds">
                <a:datas>
                    <a:record name="Y" code="Y"/>
                    <a:record name="N" code="N"/>
                </a:datas>
            </a:dataSet>
niminmin's avatar
niminmin committed
228 229 230 231 232 233
            <a:dataSet id="business_type_ds">
                <a:datas>
                    <a:record name="直租" code="LEASE"/>
                    <a:record name="售后回租" code="LEASEBACK"/>
                </a:datas>
            </a:dataSet>
Spencer Chang's avatar
Spencer Chang committed
234 235 236 237 238 239 240
            <a:dataSet id="con_write_off_flag_ds" lookupCode="CON_WRITE_OFF_FLAG"/>
            <a:dataSet id="acr512_currency_ds">
                <a:datas dataSource="/model/acr512_currency_list"/>
            </a:dataSet>
            <a:dataSet id="division_ds" loadData="true" model="basic.hls_division_for_lov"/>
            <a:dataSet id="csh_payment_req_query_ds" autoCreate="true">
                <a:fields>
niminmin's avatar
niminmin committed
241 242 243
                    <!--                    <a:field name="vender_name_n" returnField="vender_name" displayField="code_value_name" valueField="code_value" options="vender_name_ds"/>-->
                    <a:field name="vender_name_n" lovGridHeight="300" lovHeight="450" lovLabelWidth="120"
                             lovService="basic.hls_bp_master_v_for_lov?bp_category=VENDER" lovWidth="600" title="厂商">
244 245 246 247 248
                        <a:mapping>
                            <a:map from="bp_name" to="vender_name_n"/>
                        </a:mapping>

                    </a:field>
Spencer Chang's avatar
Spencer Chang committed
249
                    <a:field name="times"/>
stone's avatar
stone committed
250
                    <a:field name="due_date_to"/>
niminmin's avatar
niminmin committed
251 252 253
                    <a:field name="project_number_from" lovGridHeight="300" lovHeight="450"
                             lovService="prj.PRJ501.prj_project_for_lov" lovWidth="500"
                             title="ACR510.FIELD.PROJECT_NUMBER_FROM">
Spencer Chang's avatar
Spencer Chang committed
254 255 256 257 258
                        <a:mapping>
                            <a:map from="project_number" to="project_number_from"/>
                            <a:map from="project_name" to="project_name_from"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
259 260 261
                    <a:field name="project_number_to" lovGridHeight="300" lovHeight="450"
                             lovService="prj.PRJ501.prj_project_for_lov" lovWidth="500"
                             title="ACR510.FIELD.PROJECT_NUMBER_TO">
Spencer Chang's avatar
Spencer Chang committed
262 263 264 265 266
                        <a:mapping>
                            <a:map from="project_number" to="project_number_to"/>
                            <a:map from="project_name" to="project_name_to"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
267 268 269
                    <a:field name="cf_item_desc" lovGridHeight="300" lovHeight="500"
                             lovService="hls.HLS005.hls_cashflow_item_v_lov?cf_direction=OUTFLOW" lovWidth="850"
                             title="ACR510.ACR_INVOICE_CONTRACT_CF_V.CF_ITEM_DESC">
Spencer Chang's avatar
Spencer Chang committed
270 271 272 273 274
                        <a:mapping>
                            <a:map from="cf_item" to="cf_item"/>
                            <a:map from="cf_item_desc" to="cf_item_desc"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
275 276
                    <a:field name="bp_code" lovGridHeight="300" lovHeight="450" lovLabelWidth="120"
                             lovService="basic.hls_bp_master_v_for_lov" lovWidth="600" title="承租人">
Spencer Chang's avatar
Spencer Chang committed
277 278 279 280 281 282 283 284
                        <a:mapping>
                            <a:map from="bp_id" to="bp_id"/>
                            <a:map from="bp_code" to="bp_code"/>
                            <a:map from="bp_name" to="bp_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="bp_name" readOnly="true"/>
                    <a:field name="bp_code_tenant" readOnly="true"/>
niminmin's avatar
niminmin committed
285 286 287
                    <a:field name="bp_name_tenant" lovGridHeight="300" lovHeight="450" lovLabelWidth="120"
                             lovService="csh.CSH501.hls_bp_master_same_agent_for_lov?bp_category=TENANT" lovWidth="600"
                             title="承租人">
Spencer Chang's avatar
Spencer Chang committed
288 289 290 291 292
                        <a:mapping>
                            <a:map from="bp_code" to="bp_code_tenant"/>
                            <a:map from="bp_name" to="bp_name_tenant"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
293 294 295
                    <a:field name="bp_code_tenant_from" lovGridHeight="300" lovHeight="450" lovLabelWidth="120"
                             lovService="basic.hls_bp_master_v_for_lov?bp_category='AGENT'" lovWidth="600"
                             title="HLS.TENANT_NUMBER_FROM">
Spencer Chang's avatar
Spencer Chang committed
296 297 298 299 300
                        <a:mapping>
                            <a:map from="bp_code" to="bp_code_tenant_from"/>
                            <a:map from="bp_name" to="bp_name_tenant_from"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
301 302
                    <a:field name="bp_code_tenant_to" lovGridHeight="300" lovHeight="450" lovLabelWidth="120"
                             lovService="basic.hls_bp_master_v_for_lov" lovWidth="600" title="HLS.TENANT_NUMBER_TO">
Spencer Chang's avatar
Spencer Chang committed
303 304 305 306 307
                        <a:mapping>
                            <a:map from="bp_code" to="bp_code_tenant_to"/>
                            <a:map from="bp_name" to="bp_name_tenant_to"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
308 309 310 311 312 313 314 315 316
                    <a:field name="division"/>
                    <a:field name="currency_name" displayField="currency_name" options="acr512_currency_ds"
                             returnField="currency" valueField="currency_code"/>
                    <a:field name="vat_flag" displayField="name" options="vat_flag_ds" returnField="code"
                             valueField="code"/>
                    <a:field name="business_type_n" displayField="name" options="business_type_ds"
                             returnField="business_type" valueField="code"/>
                    <a:field name="division_n" displayField="description" options="division_ds" returnField="division"
                             valueField="division"/>
Spencer Chang's avatar
Spencer Chang committed
317
                    <a:field name="outflow_id" defaultValue="${/parameter/@outflow_id}"/>
niminmin's avatar
niminmin committed
318 319 320 321
                    <a:field name="invoice_uploaded_flag_n" displayField="code_value_name" options="yes_no_ds"
                             returnField="invoice_uploaded_flag" valueField="code_value"/>
                    <a:field name="first_delay_flag_n" displayField="code_value_name" options="yes_no_ds"
                             returnField="first_delay_flag" valueField="code_value"/>
Spencer Chang's avatar
Spencer Chang committed
322
                    <a:field name="bp_id_agent_level1"/>
niminmin's avatar
niminmin committed
323 324 325
                    <a:field name="bp_id_agent_level1_n" lovGridHeight="330" lovHeight="470" lovLabelWidth="120"
                             lovService="cont.CON701.hls_bp_master_v_all_lov?bp_category=AGENT" lovWidth="700"
                             title="代理商">
Spencer Chang's avatar
Spencer Chang committed
326 327 328 329 330
                        <a:mapping>
                            <a:map from="bp_id" to="bp_id_agent_level1"/>
                            <a:map from="bp_name" to="bp_id_agent_level1_n"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
331 332 333
                    <a:field name="cf_61_write_off_flag_n" displayField="code_value_name"
                             options="con_write_off_flag_ds" returnField="cf_61_write_off_flag"
                             valueField="code_value"/>
Spencer Chang's avatar
Spencer Chang committed
334 335 336 337 338 339 340


                </a:fields>
                <a:events>
                    <a:event name="update" handler="csh501_payment_maintain_update"/>
                </a:events>
            </a:dataSet>
niminmin's avatar
niminmin committed
341 342 343
            <a:dataSet id="csh_payment_req_selectedDs" fetchAll="true" autoQuery="true"
                       model="csh.CSH501.csh_payment_req_selected" queryDataSet="csh_payment_req_query_ds"
                       selectable="true">
Spencer Chang's avatar
Spencer Chang committed
344 345
                <a:field name="cf_item"/>
                <a:field name="first_contract_day"/>
panhong18943's avatar
panhong18943 committed
346
                <a:field name="division"/>
Spencer Chang's avatar
Spencer Chang committed
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
                <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="csh501_payment_return" text="退出"/>
                <a:gridButton id="csh511_receipt_back_id" click="payment_req_query" text="HAP_QUERY"/>
                <a:gridButton click="csh501_payment_reset" text="HLS.RESET"/>
                <a:gridButton id="csh511_receipt_posted_id" click="confirmFun" text="HAP_CONFIRM"/>
                <!-- <a:gridButton id="csh511_receipt_prepayment_id" click="csh511_prepayment_create" text="预付款创建"/> -->
            </a:screenTopToolbar>
            <a:form column="4" labelWidth="100" marginWidth="40" title="CSH501.CSH_REQ_CREATE">
                <!--<a:textField name="pay_contract_from" bindTarget="csh_payment_req_query_ds" prompt="支付表编号从" width="150"/>-->
                <!--<a:textField name="pay_contract_to" bindTarget="csh_payment_req_query_ds" prompt="支付表编号从" width="150"/>-->
364
                <a:textField name="contract_number" bindTarget="csh_payment_req_query_ds" prompt="合同编号"/>
Spencer Chang's avatar
Spencer Chang committed
365 366 367 368 369 370 371 372 373 374
                <!--  <a:lov name="project_number_from" bindTarget="csh_payment_req_query_ds" prompt="HLS.PROJECT_NUMBER_FROM">
                    <a:events>
                        <a:event name="focus" handler="function(object){on_std_focus(object,&apos;PROJECT&apos;)}"/>
                    </a:events>
                </a:lov>
                <a:lov name="project_number_to" bindTarget="csh_payment_req_query_ds" prompt="HLS.PROJECT_NUMBER_TO_LANG">
                    <a:events>
                        <a:event name="focus" handler="function(object){on_std_focus(object,&apos;PROJECT&apos;)}"/>
                    </a:events>
                </a:lov> -->
375
                <a:lov name="bp_name_tenant" bindTarget="csh_payment_req_query_ds" prompt="商业伙伴名称">
Spencer Chang's avatar
Spencer Chang committed
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401
                    <a:events>
                        <a:event name="focus" handler="function(object){on_std_focus(object,&apos;BP&apos;)}"/>
                    </a:events>
                </a:lov>
                <!-- <a:textField name="serial_number" bindTarget="csh_payment_req_query_ds" prompt="机编号">
                    <a:events>
                        <a:event name="focus" handler="function(object){on_std_focus(object,&apos;BP&apos;)}"/>
                    </a:events>
                </a:textField> -->
                <!-- <a:lov name="bp_code_tenant_from" bindTarget="csh_payment_req_query_ds" prompt="HLS.TENANT_NUMBER_FROM">
                    <a:events>
                        <a:event name="focus" handler="function(object){on_std_focus(object,&apos;BP&apos;)}"/>
                    </a:events>
                </a:lov>
                <a:lov name="bp_code_tenant_to" bindTarget="csh_payment_req_query_ds" prompt="HLS.TENANT_NUMBER_TO">
                    <a:events>
                        <a:event name="focus" handler="function(object){on_std_focus(object,&apos;BP&apos;)}"/>
                    </a:events>
                </a:lov> -->
                <!-- <a:textField name="project_name" bindTarget="csh_payment_req_query_ds" prompt="CSH501.CSH_PROJECT_NAME" width="150"/> -->
                <!--<a:lov name="bp_code" bindTarget="csh_payment_req_query_ds" prompt="付款对象">-->
                <!--<a:events>-->
                <!--<a:event name="focus" handler="function(object){on_std_focus(object,&apos;BP&apos;)}"/>-->
                <!--</a:events>-->
                <!--</a:lov>-->
                <!--<a:textField name="bp_name" bindTarget="csh_payment_req_query_ds" prompt="付款对象"/>-->
niminmin's avatar
niminmin committed
402 403
                <!-- <a:textField name="times_from" bindTarget="csh_payment_req_query_ds" prompt="期次从"/>-->
                <!--                <a:lov name="cf_item_desc" bindTarget="csh_payment_req_query_ds" prompt="现金流类型"/>-->
Spencer Chang's avatar
Spencer Chang committed
404
                <a:datePicker name="due_date_from" bindTarget="csh_payment_req_query_ds" prompt="应付日期从"/>
405
                <a:datePicker name="due_date_to" bindTarget="csh_payment_req_query_ds" prompt="应付日期到"/>
niminmin's avatar
niminmin committed
406 407 408 409 410 411
                <a:lov name="vender_name_n" bindTarget="csh_payment_req_query_ds" prompt="厂商"/>
                <a:comboBox name="business_type_n" bindTarget="csh_payment_req_query_ds" prompt="业务类型"/>
                <a:numberField name="due_amount_from" allowDecimals="true" allowFormat="true"
                               bindTarget="csh_payment_req_query_ds" prompt="应付金额从"/>
                <a:numberField name="due_amount_to" allowDecimals="true" allowFormat="true"
                               bindTarget="csh_payment_req_query_ds" prompt="应付金额到"/>
Spencer Chang's avatar
Spencer Chang committed
412
                <!--<a:comboBox name="currency_name" bindTarget="csh_payment_req_query_ds" prompt="HLS.CURRENCY" width="150"/>-->
413
                <!-- <a:comboBox name="vat_flag" bindTarget="csh_payment_req_qu ery_ds" prompt="增值税标志"/> -->
Spencer Chang's avatar
Spencer Chang committed
414
                <!--<a:comboBox name="division_n" bindTarget="csh_payment_req_query_ds" prompt="产品线"/>-->
415 416
                <!--<a:textField name="times_to" bindTarget="csh_payment_req_query_ds" prompt="期次到"/>-->
                <!--<a:comboBox name="invoice_uploaded_flag_n" bindTarget="csh_payment_req_query_ds" prompt="发票上传标志"/>
Spencer Chang's avatar
Spencer Chang committed
417 418
                <a:lov name="bp_id_agent_level1_n" bindTarget="csh_payment_req_query_ds" prompt="代理商名称"/>
                <a:comboBox name="first_delay_flag_n" bindTarget="csh_payment_req_query_ds" prompt="是否首付延期"/>
419
                <a:comboBox name="cf_61_write_off_flag_n" bindTarget="csh_payment_req_query_ds" prompt="应收保费付款情况"/>-->
Spencer Chang's avatar
Spencer Chang committed
420
            </a:form>
niminmin's avatar
niminmin committed
421 422
            <a:grid id="csh_payment_req_maintain_grid_ds" bindTarget="csh_payment_req_selectedDs" marginHeight="200"
                    marginWidth="40" navBar="true">
Spencer Chang's avatar
Spencer Chang committed
423 424 425 426 427 428 429
                <a:toolBar>
                    <a:button type="excel"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="contract_number" prompt="合同号" width="120"/>
                    <a:column name="contract_name" width="150"/>
                    <!--  <a:column name="search_term_1" prompt="合同号" width="120"/> -->
430
                    <a:column name="bp_id_tenant_n" prompt="商业伙伴名称" width="120"/>
niminmin's avatar
niminmin committed
431 432 433
                    <!-- <a:column name="bp_id_agent_level1_n" prompt="代理商" width="120"/>
                     <a:column name="agent_extra_nam" prompt="代理商简称" width="120"/>
                     <a:column name="first_delay_flag_n" align="center" prompt="是否首付延期"/>-->
Spencer Chang's avatar
Spencer Chang committed
434 435 436
                    <a:column name="cf_item_desc" prompt="现金流类型" width="80"/>
                    <a:column name="times" align="center" prompt="期数" width="40"/>
                    <a:column name="due_amount" align="right" prompt="应付金额" renderer="Leaf.formatMoney" width="110"/>
437 438 439
                    <a:column name="due_date" prompt="应付日期"/>
                    <a:column name="bp_id_agent_n" prompt="代理店"/>
                    <a:column name="vender_name_n" prompt="厂商"/>
niminmin's avatar
niminmin committed
440 441 442 443 444 445 446 447 448
                    <a:column name="business_type_n" prompt="业务类型" align="center"/>
                    <a:column name="billing_status_n" prompt="开票状态" align="center"/>
                    <a:column name="invoice_status_n" prompt="发票状态" align="center"/>
                    <!-- <a:column name="received_amount" align="right" prompt="实际支付金额" renderer="Leaf.formatMoney"/>
                     <a:column name="residual_amount" align="right" prompt="剩余未支付金额" renderer="Leaf.formatMoney" width="110"/>
                     <a:column name="invoice_uploaded_flag_n" align="center" prompt="发票上传标志"/>
                     <a:column name="interface_name" prompt="企案类型"/>
                     <a:column name="status_n" prompt="企案结果"/>
                     <a:column name="pattern" prompt="机型"/>-->
Spencer Chang's avatar
Spencer Chang committed
449 450
                    <!--<a:column name="price" align="right" renderer="Leaf.formatMoney" prompt="销售价格"/>-->
                    <!--<a:column name="factory_price" align="right" renderer="Leaf.formatMoney" prompt="设备出厂价"/>-->
niminmin's avatar
niminmin committed
451 452
                    <!-- <a:column name="machine_number" prompt="机号"/>
                     <a:column name="cf_61_write_off_flag_n" prompt="应收保费收款情况"/>-->
Spencer Chang's avatar
Spencer Chang committed
453 454 455 456 457 458 459 460 461 462 463 464
                    <!--<a:column name="applied_pay_amount" align="right" prompt="CSH501.CSH_APPLIED_PAYMENT_AMOUNT" renderer="Leaf.formatMoney" width="110"/>-->
                    <!--  <a:column name="serial_number" prompt="机编号" width="120"/> -->
                    <!--<a:column name="division_n" prompt="产品线" width="150"/>-->
                    <!--<a:column name="project_name" width="170"/>-->
                    <!--<a:column name="bp_name" width="170"/>-->
                    <!--<a:column name="currency" width="60"/>-->
                    <!--<a:column name="vat_flag" align="center" prompt="增值税标志" width="60"/>-->
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>