acr_invoice_update_query.lview 28.7 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: LR  
    $Date: 2013-7-15 下午04:39:15  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="acr512_currency_list"/>
niminmin's avatar
niminmin committed
11 12
        <a:model-query fetchAll="true" model="acr.ACR512.acr_invoice_business_type_list"
                       rootPath="acr512_business_type_list"/>
Spencer Chang's avatar
Spencer Chang committed
13 14
    </a:init-procedure>
    <a:view>
niminmin's avatar
niminmin committed
15
        <a:link id="acr512_invoice_status_change" model="acr.ACR512.alter_acr_invoice_status" modelaction="execute"/>
stone's avatar
stone committed
16 17
        <a:link id="acr513_invoice_readonly_page"
                url="${/request/@context_path}/modules/cont/CON500/con_contract_update.lview"/>
niminmin's avatar
niminmin committed
18 19
        <a:link id="acr512_invoice_update_page"
                url="${/request/@context_path}/modules/acr/ACR512/acr_invoice_update_detail.lview"/>
liyuan.chen's avatar
liyuan.chen committed
20
        <!--<a:link id="acr512_invoice_update_page" url="${/request/@context_path}/modules/cont/CON500/con_contract_update.screen"/>-->
niminmin's avatar
niminmin committed
21 22
        <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
                modelaction="update"/>
lijingjing's avatar
lijingjing committed
23 24
        <a:link id="acr512_submit_id" model="acr.ACR512.acr_invoice_hd_batch" modelaction="update"/>
        <a:link id="get_document_number_link" model="acr.ACR512.get_document_number" modelaction="query"/>
liyuan.chen's avatar
liyuan.chen committed
25 26
        <a:link id="acr512_update_for_submit_id" url="${/request/@context_path}/modules/acr/ACR512/acr_invoice_update_for_submit.lsc"/>
        <a:link id="acr_invoice_apply_detail_link" url="${/request/@context_path}/modules/acr/ACR610/acr_invoice_apply_detail.lview"/>
lijingjing's avatar
lijingjing committed
27
        <script><![CDATA[
28
        //提交复核
niminmin's avatar
niminmin committed
29 30 31 32
        function acr512_invoice_submit_selected() {
            var records = $('acr512_invoice_result_ds').getSelected();
            if (records.length == 0) {
                $L.showInfoMessage('提示', '请至少选择一条数据!');
33

niminmin's avatar
niminmin committed
34 35
            } else {
                var invoice_hd_ids = '';
36
                //判断单据的状态
niminmin's avatar
niminmin committed
37 38 39 40
                for (var i = 0; i < records.length; i++) {
                    var invoice_status = records[i].get('invoice_status');
                    if (invoice_status != 'NEW' && invoice_status != 'REJECT') {
                        $L.showErrorMessage("提示", '发票状态有误!');
41 42
                        return;
                    }
niminmin's avatar
niminmin committed
43 44 45 46 47 48

                    if (invoice_hd_ids == '') {
                        invoice_hd_ids = records[i].get('invoice_hd_id');
                    } else {
                        invoice_hd_ids = invoice_hd_ids + ',' + records[i].get('invoice_hd_id');
                    }
49
                }
niminmin's avatar
niminmin committed
50 51
                var detail_mask = Ext.getBody();
                Leaf.showConfirm('提示', "确认执行该操作?", function () {
52 53 54
                    Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
                    Leaf.request({
                        url: $('acr512_invoice_status_change').getUrl(),
niminmin's avatar
niminmin committed
55 56 57 58 59
                        para: {
                            invoice_hd_ids: invoice_hd_ids,
                            want_status: 'CONFIRMING'

                        },
60
                        success: function () {
niminmin's avatar
niminmin committed
61
                            Leaf.Masker.unmask(detail_mask, '${l:HLS.EXECUTING}');
62 63 64 65
                            Leaf.SideBar.show({
                                msg: '操作成功',
                                duration: 2000
                            });
niminmin's avatar
niminmin committed
66
                            $('acr512_invoice_result_ds').query();
67 68 69 70 71 72
                        },
                        error: function () {
                            Leaf.Masker.unmask(detail_mask, '${l:HLS.EXECUTING}');
                        },
                        scope: this
                    });
niminmin's avatar
niminmin committed
73
                }, function () {
74 75 76 77 78 79
                    Leaf.Masker.unmask(detail_mask, '${l:HLS.EXECUTING}');

                })
            }


niminmin's avatar
niminmin committed
80 81 82
        }

        function lock_current_window() {
liyuan.chen's avatar
liyuan.chen committed
83
            Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
niminmin's avatar
niminmin committed
84 85 86
        }

        function unlock_current_window() {
liyuan.chen's avatar
liyuan.chen committed
87
            Leaf.Masker.unmask(Ext.getBody());
niminmin's avatar
niminmin committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
        }

        function acr512_invoice_query() {
            $('acr512_invoice_result_ds').query();
            var records = $('acr512_invoice_result_ds').getAll();
            for (var i = 0; i < records.length; i++) {
                var record = record[i];
                var invoice_hd_id = record.get('invoice_hd_id');
                Leaf.request({
                    url: $('get_document_number_link').getUrl(),
                    para: {
                        invoice_hd_id: invoice_hd_id
                    },
                    success: function (res) {
                        var document_number = record[i].get('document_number');
                        if (res.result.record['isreturn'] > 0) {
                            return '<font color="red">' + document_number + '</font> ';
                        } else {
                            return value;
lijingjing's avatar
lijingjing committed
107
                        }
niminmin's avatar
niminmin committed
108 109
                    }
                });
Spencer Chang's avatar
Spencer Chang committed
110
            }
niminmin's avatar
niminmin committed
111 112 113 114 115 116 117
            $('acr512_invoice_result_ds').query();
        }

        function acr512_invoice_reset() {
            $('acr512_invoice_query_ds').reset();
        }

niminmin's avatar
niminmin committed
118
        function acr512_grid_update(record_id, invoice_hd_id) {
niminmin's avatar
niminmin committed
119
            var maintain_type = 'UPDATE';
niminmin's avatar
niminmin committed
120
            var currency_reocrd = $('acr512_invoice_result_ds').findById(record_id);
niminmin's avatar
niminmin committed
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
            var param = currency_reocrd.data;
            param['function_code'] = 'ACR512';
            param['winid'] = 'confirm_invoice_win';
            param['document_id'] = invoice_hd_id;
            param['function_usage'] = 'MODIFY';
            param['maintain_type'] = maintain_type;
            param['url_title'] = '${l:ACR.INVOICE_DETAIL}';
            if (param['invoice_status'] == 'CONFIRMING') {
                param['function_code'] = 'ACR512R';
                param['function_usage'] = 'QUERY';
                param['maintain_type'] = 'READONLY';
                hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'acr512_invoice_update_page', 'acr512_invoice_result_ds');
            } else {

                hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'acr512_invoice_update_page', 'acr512_invoice_result_ds');
Spencer Chang's avatar
Spencer Chang committed
136
            }
niminmin's avatar
niminmin committed
137
        }
stone's avatar
stone committed
138

niminmin's avatar
niminmin committed
139 140 141
        function acr512_document_number_render(value, record, name) {
            if (name == 'document_number') {
                if (record.get('compare_date_flag') == 'Y') {
niminmin's avatar
niminmin committed
142
                    return '<a style="color:red" href="javascript:acr512_grid_update(\'' + record.id + '\',\'' + record.get('invoice_hd_id') + '\');">' + value + '</a>';
niminmin's avatar
niminmin committed
143
                } else {
niminmin's avatar
niminmin committed
144
                    return '<a href="javascript:acr512_grid_update(\'' + record.id + '\',\'' + record.get('invoice_hd_id') + '\');">' + value + '</a>';
stone's avatar
stone committed
145
                }
Spencer Chang's avatar
Spencer Chang committed
146
            }
niminmin's avatar
niminmin committed
147 148 149 150 151 152 153 154 155 156 157 158

            // return '<a href="javascript:acr512_grid_update(' + record.id + ',' + record.get('invoice_hd_id') + ',\'' + record.get('invoice_status') + '\');">' + value + '</a>';
        }

        function acr512_formatMoney(value, record, name) {
            return Leaf.formatNumber(value);
        }

        function acr512_invoice_query_Onupdate(ds, record, name, value, oldVlaue) {
            if (name == 'document_number_f') {
                if (Leaf.isEmpty(record.get('document_number_t'))) {
                    record.set('document_number_t', value);
lijingjing's avatar
lijingjing committed
159
                }
niminmin's avatar
niminmin committed
160 161 162
            } else if (name == 'project_number_f') {
                if (Leaf.isEmpty(record.get('project_number_t'))) {
                    record.set('project_number_t', value);
Spencer Chang's avatar
Spencer Chang committed
163
                }
niminmin's avatar
niminmin committed
164 165 166
            } else if (name == 'invoice_number_f') {
                if (Leaf.isEmpty(record.get('invoice_number_t'))) {
                    record.set('invoice_number_t', value);
Spencer Chang's avatar
Spencer Chang committed
167
                }
niminmin's avatar
niminmin committed
168 169 170 171 172 173 174 175 176 177 178
            } else if (name == 'contract_number_f') {
                if (Leaf.isEmpty(record.get('contract_number_t'))) {
                    record.set('contract_number_t', value);
                }
            } else if (name == 'invoice_bp_code_f') {
                if (Leaf.isEmpty(record.get('invoice_bp_code_t'))) {
                    record.set('invoice_bp_code_t', value);
                }
            } else if (name == 'total_amount_f') {
                if (Leaf.isEmpty(record.get('total_amount_t'))) {
                    record.set('total_amount_t', value);
Spencer Chang's avatar
Spencer Chang committed
179 180
                }
            }
niminmin's avatar
niminmin committed
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204

            if (Ext.isEmpty(record.get('project_number_f')) && Ext.isEmpty(record.get('project_number_t'))) {
                record.set('query_project_number', '');
            } else {
                record.set('query_project_number', 'Y');
            }
            if (Ext.isEmpty(record.get('contract_number_f')) && Ext.isEmpty(record.get('contract_number_t'))) {
                record.set('query_contract_number', '');
            } else {
                record.set('query_contract_number', 'Y');
            }
        }

        function acr512_invoice_delete() {
            $('acr512_invoice_update_grid_ds').remove();
        }

        //发票提交

        function acr512_invoice_submit() {
            var records = $('acr512_invoice_result_ds').getSelected();
            if (records.length < 1) {
                Leaf.showMessage('${l:HLS.PROMPT}', '请选择需要审批的发票!');
                return;
Spencer Chang's avatar
Spencer Chang committed
205
            }
niminmin's avatar
niminmin committed
206 207 208 209 210
            var datas = [];
            for (var i = 0; i < records.length; i++) {

                if (records[i].get('status') == 'APPROVED' || records[i].get('statsu') == 'APPROVING') {
                    Leaf.showMessage('${l:HLS.PROMPT}', '该发票正在审批中或已审批通过,不可重复提交');
lijingjing's avatar
lijingjing committed
211 212
                    return;
                }
niminmin's avatar
niminmin committed
213 214 215 216
                if (i == 0) { //modify by wuts for hl 2018-12-23
                    var invoice_hd_ids = records[0].get('invoice_hd_id');
                } else {
                    invoice_hd_ids = invoice_hd_ids + ',' + records[i].get('invoice_hd_id');
lijingjing's avatar
lijingjing committed
217 218
                }
            }
niminmin's avatar
niminmin committed
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
            Leaf.showConfirm('提示', '您确认提交吗', function () {
                lock_current_window();
                Leaf.request({
                    url: $('acr512_submit_id').getUrl(),
                    para: {
                        invoice_hd_ids: invoice_hd_ids
                    },
                    success: function () {
                        Leaf.SideBar.show({
                            msg: '提交成功',
                            duration: 3000
                        });
                        unlock_current_window();
                        $('acr512_invoice_result_ds').query();
                    },
                    failure: function () {
                        unlock_current_window();
                    },
                    error: function () {
                        unlock_current_window();
                    },
                    scope: this
                });
            });
        }

liyuan.chen's avatar
liyuan.chen committed
245 246 247 248 249 250 251 252 253 254
        function acr512_invoice_insert() {
            var records = $('acr512_invoice_result_ds').getSelected();
            if (records.length < 1) {
                Leaf.showMessage('${l:HLS.PROMPT}', '请选择需要审批的发票!');
                return;
            }
            var datas = {};
            var saveData = [];
            var invoice_hd_ids = '';
            var invoice_kind = records[0].get('invoice_kind');
255 256 257
            var invoice_type = records[0].get('invoice_type');
            var full_elec_invoice_flag = records[0].get('full_elec_invoice_flag');
            debugger
liyuan.chen's avatar
liyuan.chen committed
258 259 260 261 262 263 264
            for (var i = 0; i < records.length; i++) {
                var invoice_status = records[i].get('invoice_status');
                if (invoice_status != 'NEW' && invoice_status != 'REJECT') {
                    $L.showErrorMessage("提示", '发票状态有误!');
                    return;
                }
                if(invoice_kind != records[i].get('invoice_kind')){
265 266 267 268 269 270 271 272
                    if(invoice_kind=='RECEIPT' || records[i].get('invoice_kind')=='RECEIPT'){
                        $L.showErrorMessage("提示", '收据和其它发票不能同时勾选!');
                        return;
                    }else{
                        $L.showErrorMessage("提示", '普票和专票不能同时勾选!');
                        return;
                    }

liyuan.chen's avatar
liyuan.chen committed
273
                }
274
                if(invoice_type != records[i].get('invoice_type')){
275 276 277
                    $L.showErrorMessage("提示", '纸质发票与电子发票不能同时勾选!');
                    return;
                }
278
                if(full_elec_invoice_flag != records[i].get('full_elec_invoice_flag')){
18083's avatar
18083 committed
279 280 281
                    $L.showErrorMessage("提示", '全电发票与非全电发票不能同时勾选!');
                    return;
                }
liyuan.chen's avatar
liyuan.chen committed
282 283 284 285 286 287 288 289 290 291 292 293 294
                if (invoice_hd_ids == '') {
                    invoice_hd_ids = records[i].get('invoice_hd_id');
                } else {
                    invoice_hd_ids = invoice_hd_ids + ',' + records[i].get('invoice_hd_id');
                }
                records[i].set('_status', 'update');
                saveData.push(records[i].data);

            }
            saveData.sort(function (a, b) {
                return a.invoice_hd_id - b.invoice_hd_id;
            });
            datas['invoice_hd_ids'] = invoice_hd_ids;
295
            datas['apply_mode'] = 'APPLY';
liyuan.chen's avatar
liyuan.chen committed
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
            datas['details'] = saveData;
            Leaf.showConfirm('提示', '<span style="color: #ff0000; ">发票在申请期间将无法进行修改操作!如需要取消发票申请,请点击取消申请!</span>', function () {
                lock_current_window();
                Leaf.request({
                    url: $('acr512_update_for_submit_id').getUrl(),
                    para: datas,
                    success: function (res) {
                        Leaf.SideBar.show({
                            msg: '申请成功',
                            duration: 3000
                        });
                        unlock_current_window();
                        //$('acr512_invoice_result_ds').query();
                        var win = new Leaf.Window({
                            id: 'acr_invoice_apply_detail_link_winid',
                            params: {
                                invoice_apply_id: res.result.invoice_apply_id,
                                winId: 'acr_invoice_apply_detail_link_winid'
                            },
                            url: $('acr_invoice_apply_detail_link').getUrl(),
                            title: '申请明细',
                            fullScreen: true
                        });
                        win.on('close',function(){
                            $('acr512_invoice_result_ds').query();
                        });
                    },
                    failure: function () {
                        unlock_current_window();
                    },
                    error: function () {
                        unlock_current_window();
                    },
                    scope: this
                });
            });
        }

Spencer Chang's avatar
Spencer Chang committed
334 335 336 337 338 339 340 341 342
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
        <a:dataSets>
            <a:dataSet id="acr512_currency_ds">
                <a:datas dataSource="/model/acr512_currency_list"/>
            </a:dataSet>
            <a:dataSet id="acr512_business_type_ds">
                <a:datas dataSource="/model/acr512_business_type_list"/>
            </a:dataSet>
343
             <!--<a:dataSet id="acr512_invoice_kind_ds" lookupCode="ACR510_INVOICE_KIND"/>-->
344
            <a:dataSet id="acr512_invoice_kind_type_ds" lookupCode="ACR512_INVOICE_KIND_TYPE"/>
345
            <a:dataSet id="acr512_invoice_status_ds" lookupCode="ACR510_AR_INVOICE_STATUS"/>
lijingjing's avatar
lijingjing committed
346
            <a:dataSet id="hls_lease_channel_ds" loadData="true" model="basic.hls_lease_channel_for_lov"/>
347 348
			<a:dataSet id="overdue_status_ds" lookupCode="YES_NO"/>
            <a:dataSet id="acr512_invoice_query_ds">
Spencer Chang's avatar
Spencer Chang committed
349
                <a:fields>
niminmin's avatar
niminmin committed
350 351 352 353
                    <a:field name="currency_name" displayField="currency_name" options="acr512_currency_ds"
                             returnField="currency" valueField="currency_code"/>
                    <a:field name="invoice_status_n" displayField="code_value_name" options="acr512_invoice_status_ds"
                             returnField="invoice_status" valueField="code_value"/>
354 355 356
					 <a:field name="full_elec_invoice_flag"/>
					<a:field name="full_elec_invoice_flag_n" displayField="code_value_name" options="overdue_status_ds"
                             returnField="full_elec_invoice_flag" valueField="code_value"/>
357 358
                    <!--<a:field name="invoice_kind"/>-->
                    <a:field name="invoice_kind_type"/>
Darming's avatar
Darming committed
359 360
                    <a:field name="contract_name"/>
                    <a:field name="invoice_bp_name"/>
361
                     <!--<a:field name="invoice_kind_desc" displayField="code_value_name" options="acr512_invoice_kind_ds"-->
362 363 364
                    <!--returnField="invoice_kind" valueField="code_value"/>-->
                    <a:field name="invoice_kind_type_n" displayField="code_value_name" options="acr512_invoice_kind_type_ds"
                             returnField="invoice_kind_type" valueField="code_value"/>
niminmin's avatar
niminmin committed
365 366 367 368
                    <a:field name="business_type_desc" displayField="business_type_desc"
                             options="acr512_business_type_ds" returnField="business_type" valueField="business_type"/>
                    <a:field name="created_by_name" lovGridHeight="320" lovHeight="500"
                             lovService="acr.ACR512.acr_invoice_sys_user_lov" lovWidth="500" title="开票人选择">
Spencer Chang's avatar
Spencer Chang committed
369 370 371 372 373
                        <a:mapping>
                            <a:map from="user_id" to="created_by"/>
                            <a:map from="description" to="created_by_name"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
374 375
                    <a:field name="invoice_bp_code_f" lovGridHeight="320" lovHeight="480"
                             lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500" title="客户选择">
Spencer Chang's avatar
Spencer Chang committed
376 377 378 379
                        <a:mapping>
                            <a:map from="bp_code" to="invoice_bp_code_f"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
380 381
                    <a:field name="invoice_bp_code_t" lovGridHeight="320" lovHeight="480"
                             lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500" title="客户选择">
Spencer Chang's avatar
Spencer Chang committed
382 383 384 385
                        <a:mapping>
                            <a:map from="bp_code" to="invoice_bp_code_t"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
386 387
                    <a:field name="project_number_f" lovGridHeight="320" lovHeight="480"
                             lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500" title="项目选择">
Spencer Chang's avatar
Spencer Chang committed
388 389 390 391
                        <a:mapping>
                            <a:map from="project_number" to="project_number_f"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
392 393
                    <a:field name="project_number_t" lovGridHeight="320" lovHeight="480"
                             lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500" title="项目选择">
Spencer Chang's avatar
Spencer Chang committed
394 395 396 397
                        <a:mapping>
                            <a:map from="project_number" to="project_number_t"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
398 399
                    <a:field name="contract_number_f" lovGridHeight="320" lovHeight="480"
                             lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500" title="合同选择">
Spencer Chang's avatar
Spencer Chang committed
400 401 402 403
                        <a:mapping>
                            <a:map from="contract_number" to="contract_number_f"/>
                        </a:mapping>
                    </a:field>
niminmin's avatar
niminmin committed
404 405
                    <a:field name="contract_number_t" lovGridHeight="320" lovHeight="480"
                             lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500" title="合同选择">
Spencer Chang's avatar
Spencer Chang committed
406 407 408 409
                        <a:mapping>
                            <a:map from="contract_number" to="contract_number_t"/>
                        </a:mapping>
                    </a:field>
lijingjing's avatar
lijingjing committed
410
                    <a:field name="lease_channel"/>
niminmin's avatar
niminmin committed
411 412
                    <a:field name="lease_channel_desc" displayField="description" options="hls_lease_channel_ds"
                             returnField="lease_channel" valueField="lease_channel"/>
Spencer Chang's avatar
Spencer Chang committed
413 414 415 416 417
                </a:fields>
                <a:events>
                    <a:event name="update" handler="acr512_invoice_query_Onupdate"/>
                </a:events>
            </a:dataSet>
niminmin's avatar
niminmin committed
418 419 420
            <a:dataSet id="acr512_invoice_result_ds" autoPageSize="true" autoQuery="true"
                       model="acr.ACR512.acr_invoice_update_query" queryDataSet="acr512_invoice_query_ds"
                       selectable="true"/>
Spencer Chang's avatar
Spencer Chang committed
421 422 423 424 425 426
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:toolbarButton click="acr512_invoice_query" text="HLS.QUERY"/>
                <a:toolbarButton click="acr512_invoice_reset" text="HLS.RESET"/>
lijingjing's avatar
lijingjing committed
427
                <a:toolbarButton click="acr512_invoice_delete" text="HLS.REMOVE"/>
liyuan.chen's avatar
liyuan.chen committed
428 429
                <!--<a:toolbarButton click="acr512_invoice_submit_selected" text="提交复核"/>-->
                <a:toolbarButton click="acr512_invoice_insert" text="新建申请"/>
niminmin's avatar
niminmin committed
430 431 432
                <!--
                                <a:toolbarButton click="acr512_invoice_submit" text="HLS.SUBMIT"/>
                -->
lijingjing's avatar
lijingjing committed
433

Spencer Chang's avatar
Spencer Chang committed
434
            </a:screenTopToolbar>
435
            <a:form marginWidth="200" padding="0" title="应收发票维护">
lijingjing's avatar
lijingjing committed
436
                <a:hBox labelSeparator=" ">
niminmin's avatar
niminmin committed
437 438 439 440 441 442 443
                    <a:textField name="document_number_f" bindTarget="acr512_invoice_query_ds"
                                 prompt="HLS.DOCUMENT_NUMBER_FROM" width="135"/>
                    <!--
                                        <div><![CDATA[${l:HLS.DOCUMENT_NUMBER_TO}]]></div>
                    -->
                    <a:textField name="document_number_t" bindTarget="acr512_invoice_query_ds" prompt="单据编号到"
                                 width="135"/>
Darming's avatar
Darming committed
444
                    <a:textField name="contract_name" bindTarget="acr512_invoice_query_ds" prompt="合同名称" width="353"/>
445

niminmin's avatar
niminmin committed
446 447 448 449 450 451 452 453 454 455 456 457 458 459
                    <!--                    <a:lov name="contract_number_f" bindTarget="acr512_invoice_query_ds" prompt="合同编号从" width="135"/>-->
                    <!--
                                        <div><![CDATA[${l:HLS.CONTRACT_NUMBER_TO}]]></div>
                    -->
                    <!--                    <a:lov name="contract_number_t" bindTarget="acr512_invoice_query_ds" prompt="合同编号到" width="135"/>-->
                    <!--  <a:lov name="project_number_f" bindTarget="acr512_invoice_query_ds" prompt="HLS.PROJECT_NUMBER_FROM" width="135"/>
                      <div><![CDATA[${l:HLS.DOCUMENT_NUMBER_TO}]]></div>
                      <a:lov name="project_number_t" bindTarget="acr512_invoice_query_ds" prompt="" width="135"/>-->
                    <!--
                                        <a:comboBox name="business_type_desc" bindTarget="acr512_invoice_query_ds" prompt="HLS.BUSINESS_TYPE_DESC" width="135"/>
                    -->
                    <!--
                                        <a:comboBox name="lease_channel_desc" bindTarget="acr512_invoice_query_ds" prompt="商业模式" width="135"/>
                    -->
lijingjing's avatar
lijingjing committed
460 461 462
                    <!-- <a:comboBox name="currency_name" bindTarget="acr512_invoice_query_ds" prompt="HLS.CURRENCY" width="135"/> -->
                </a:hBox>
                <a:hBox labelSeparator=" ">
niminmin's avatar
niminmin committed
463 464 465 466 467 468 469
                    <a:datePicker name="accounting_date_f" bindTarget="acr512_invoice_query_ds" prompt="记账日期从"
                                  width="135"/>
                    <!--
                                        <div><![CDATA[${l:HLS.ACCOUNT_DATE_TO}]]></div>
                    -->
                    <a:datePicker name="accounting_date_t" bindTarget="acr512_invoice_query_ds" prompt="记账日期到"
                                  width="135"/>
470
                    <a:lov name="created_by_name" bindTarget="acr512_invoice_query_ds" prompt="创建人" width="135"/>
niminmin's avatar
niminmin committed
471 472
                    <a:textField name="invoice_title" bindTarget="acr512_invoice_query_ds" prompt="ACR.INVOICE_TITLE"
                                 width="135"/>
18083's avatar
18083 committed
473
				     <a:comboBox name="full_elec_invoice_flag_n" bindTarget="acr512_invoice_query_ds" prompt="是否全电发票" width="135"/>
474

lijingjing's avatar
lijingjing committed
475 476
                </a:hBox>
                <a:hBox labelSeparator=" ">
niminmin's avatar
niminmin committed
477 478 479 480 481 482 483 484 485 486 487 488
                    <a:datePicker name="invoice_date_f" bindTarget="acr512_invoice_query_ds" prompt="发票日期从"
                                  width="135"/>
                    <!--
                                        <div><![CDATA[${l:ACR.INVOICE_DATE_TO}]]></div>
                    -->
                    <a:datePicker name="invoice_date_t" bindTarget="acr512_invoice_query_ds" prompt="发票日期到"
                                  width="135"/>
                    <!--                    <a:lov name="invoice_bp_code_f" bindTarget="acr512_invoice_query_ds" prompt="客户编号从" width="135"/>-->
                    <!--
                                        <div><![CDATA[${l:HLS.CUSTOMER_NUMBER_TO}]]></div>
                    -->
                    <!--                    <a:lov name="invoice_bp_code_t" bindTarget="acr512_invoice_query_ds" prompt="客户编号到" width="135"/>-->
Darming's avatar
Darming committed
489
                    <a:textField name="invoice_bp_name" bindTarget="acr512_invoice_query_ds" prompt="客户名称" width="135"/>
490
                     <!--<a:comboBox name="invoice_kind_desc" bindTarget="acr512_invoice_query_ds" prompt="ACR.INVOICE_KIND"-->
491 492
                    <!--width="135"/>-->
                    <a:comboBox name="invoice_kind_type_n" bindTarget="acr512_invoice_query_ds" prompt="发票种类" width="135"/>
493
                    <a:comboBox name="invoice_status_n" bindTarget="acr512_invoice_query_ds" prompt="发票状态" width="135"/>
lijingjing's avatar
lijingjing committed
494
                </a:hBox>
Spencer Chang's avatar
Spencer Chang committed
495
            </a:form>
niminmin's avatar
niminmin committed
496 497
            <a:grid id="acr512_invoice_update_grid_ds" bindTarget="acr512_invoice_result_ds" marginHeight="250"
                    marginWidth="30" navBar="true">
Spencer Chang's avatar
Spencer Chang committed
498
                <a:columns>
niminmin's avatar
niminmin committed
499 500 501 502 503 504 505 506 507
                    <a:column name="document_number" lock="true" prompt="HLS.DOCUMENT_NUMBER"
                              renderer="acr512_document_number_render" width="120"/>
                    <a:column name="invoice_bp_name" autoAdjust="false" prompt="HLS.CUSTOMER_NAME" showTitle="true"
                              width="100"/>
                    <a:column name="contract_name" autoAdjust="false" prompt="HLS.CONTRACT_NAME" showTitle="true"
                              width="150"/>
                    <!--
                                        <a:column name="business_type_desc" prompt="HLS.BUSINESS_TYPE_DESC" width="80"/>
                    -->
508
                     <!--<a:column name="invoice_type_n"  prompt="开票类型" width="100"/>-->
509 510
                    <!--<a:column name="invoice_kind_desc" prompt="ACR.INVOICE_KIND" width="100"/>-->
                    <a:column name="invoice_kind_type_n"  prompt="发票种类" width="200"/>
lijingjing's avatar
lijingjing committed
511
                    <!-- <a:column name="invoice_number" prompt="ACR.INVOICE_NUMBER" width="120"/> -->
Spencer Chang's avatar
Spencer Chang committed
512 513 514 515
                    <a:column name="invoice_date" prompt="ACR.INVOICE_DATE" width="100"/>
                    <!-- <a:column name="project_name" autoAdjust="false" prompt="HLS.PROJECT_NAME" showTitle="true" width="150"/> -->
                    <!-- <a:column name="contract_number" prompt="HLS.CONTRACT_NUMBER" width="120"/> -->
                    <!-- <a:column name="bp_code" prompt="HLS.CUSTOMER_NUMBER" width="100"/> -->
niminmin's avatar
niminmin committed
516 517
                    <a:column name="invoice_title" autoAdjust="false" prompt="ACR.INVOICE_TITLE" showTitle="true"
                              width="150"/>
lijingjing's avatar
lijingjing committed
518
                    <!-- <a:column name="total_amount" align="right" prompt="ACR.TOTAL_AMOUNT" renderer="Aurora.formatMoney" width="100"/> -->
Spencer Chang's avatar
Spencer Chang committed
519
                    <!-- <a:column name="currency" prompt="HLS.CURRENCY" width="80"/> -->
520
                    <a:column name="created_by_name" autoAdjust="false" prompt="创建人" showTitle="true" width="150"/>
Spencer Chang's avatar
Spencer Chang committed
521 522
                    <a:column name="invoice_status_desc" prompt="ACR.INVOICE_STATUS" width="100"/>
                    <a:column name="accounting_date" prompt="HLS.ACCOUNT_DATE" width="100"/>
lijingjing's avatar
lijingjing committed
523
                    <!--  <a:column name="compare_date_flag" prompt="比较日期" width="100"/> -->
Spencer Chang's avatar
Spencer Chang committed
524
                    <!-- <a:column name="project_number" prompt="HLS.PROJECT_NUMBER" width="120"/> -->
525
					<a:column name="full_elec_invoice_flag_n"  prompt="是否全电发票" width="200"/>
Spencer Chang's avatar
Spencer Chang committed
526 527 528 529 530
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>