Commit 64d82828 authored by stone's avatar stone

Merge branch 'feature/gld_interface_feat' into develop

parents 4d8b4d51 d333231c
-- Create table
create table ACR_INVOICE_BATCH_LN
(
invoice_batch_ln_id NUMBER not null,
invoice_hd_id NUMBER not null,
line_type VARCHAR2(30) not null,
line_number NUMBER,
cashflow_id NUMBER,
cf_item NUMBER,
cf_type NUMBER,
product_id NUMBER,
product_name VARCHAR2(2000),
specification VARCHAR2(2000),
quantity NUMBER,
uom VARCHAR2(30),
price NUMBER,
price_quantity NUMBER,
price_quantity_uom VARCHAR2(30),
net_price NUMBER,
tax_type_id NUMBER,
tax_type_rate NUMBER,
tax_included_flag VARCHAR2(1),
tax_amount NUMBER,
net_amount NUMBER,
total_amount NUMBER,
responsibility_center_id NUMBER,
account_id NUMBER,
description VARCHAR2(1000),
ref_v01 VARCHAR2(2000),
ref_v02 VARCHAR2(2000),
ref_v03 VARCHAR2(2000),
ref_v04 VARCHAR2(2000),
ref_v05 VARCHAR2(2000),
ref_v06 VARCHAR2(2000),
ref_v07 VARCHAR2(2000),
ref_v08 VARCHAR2(2000),
ref_v09 VARCHAR2(2000),
ref_v10 VARCHAR2(2000),
ref_n01 NUMBER,
ref_n02 NUMBER,
ref_n03 NUMBER,
ref_n04 NUMBER,
ref_n05 NUMBER,
ref_n06 NUMBER,
ref_n07 NUMBER,
ref_n08 NUMBER,
ref_n09 NUMBER,
ref_n10 NUMBER,
ref_d01 DATE,
ref_d02 DATE,
ref_d03 DATE,
ref_d04 DATE,
ref_d05 DATE,
created_by NUMBER,
creation_date DATE,
last_updated_by NUMBER,
last_update_date DATE,
lease_channel VARCHAR2(30)
);
-- Add comments to the table
comment on table ACR_INVOICE_BATCH_LN
is '应收发票行(行合并)';
-- Add comments to the columns
comment on column ACR_INVOICE_BATCH_LN.invoice_batch_ln_id
is '发票行ID';
comment on column ACR_INVOICE_BATCH_LN.invoice_hd_id
is '发票ID';
comment on column ACR_INVOICE_BATCH_LN.line_type
is '行类型';
comment on column ACR_INVOICE_BATCH_LN.line_number
is '行号';
comment on column ACR_INVOICE_BATCH_LN.cashflow_id
is '现金流ID';
comment on column ACR_INVOICE_BATCH_LN.cf_item
is '现金流项目';
comment on column ACR_INVOICE_BATCH_LN.cf_type
is '现金流类型';
comment on column ACR_INVOICE_BATCH_LN.product_id
is '商品ID';
comment on column ACR_INVOICE_BATCH_LN.product_name
is '商品名称';
comment on column ACR_INVOICE_BATCH_LN.specification
is '规格型号';
comment on column ACR_INVOICE_BATCH_LN.quantity
is '数量';
comment on column ACR_INVOICE_BATCH_LN.uom
is '计量单位';
comment on column ACR_INVOICE_BATCH_LN.price
is '单价(金税能算就不使用)';
comment on column ACR_INVOICE_BATCH_LN.price_quantity
is '价格数量(暂不需要)';
comment on column ACR_INVOICE_BATCH_LN.price_quantity_uom
is '价格数量单位(暂不需要)';
comment on column ACR_INVOICE_BATCH_LN.net_price
is '税前单价';
comment on column ACR_INVOICE_BATCH_LN.tax_type_id
is '税种';
comment on column ACR_INVOICE_BATCH_LN.tax_type_rate
is '税率';
comment on column ACR_INVOICE_BATCH_LN.tax_included_flag
is '含税标志';
comment on column ACR_INVOICE_BATCH_LN.tax_amount
is '税额';
comment on column ACR_INVOICE_BATCH_LN.net_amount
is '税前金额';
comment on column ACR_INVOICE_BATCH_LN.total_amount
is '含税金额';
comment on column ACR_INVOICE_BATCH_LN.responsibility_center_id
is '责任中心';
comment on column ACR_INVOICE_BATCH_LN.account_id
is '科目';
comment on column ACR_INVOICE_BATCH_LN.description
is '行备注/行摘要';
comment on column ACR_INVOICE_BATCH_LN.created_by
is '创建者';
comment on column ACR_INVOICE_BATCH_LN.creation_date
is '创建日期';
comment on column ACR_INVOICE_BATCH_LN.last_updated_by
is '最后更新者';
comment on column ACR_INVOICE_BATCH_LN.last_update_date
is '最后更新日期';
comment on column ACR_INVOICE_BATCH_LN.lease_channel
is '商业模式';
alter table ACR_INVOICE_BATCH_LN
add constraint ACR_INVOICE_BATCH_LN_PK primary key (INVOICE_BATCH_LN_ID);
CREATE SEQUENCE ACR_INVOICE_BATCH_LN_s;
\ No newline at end of file
......@@ -3,4 +3,17 @@ comment on column acr_invoice_hd.claim_status
is '认领状态';
alter table acr_invoice_hd add (invoice_code varchar2(200));
comment on column acr_invoice_hd.invoice_code is '发票代码';
\ No newline at end of file
comment on column acr_invoice_hd.invoice_code is '发票代码';
ALTER TABLE acr_invoice_hd ADD merge_flag VARCHAR2(30) default 'N';
ALTER TABLE acr_invoice_hd ADD status VARCHAR2(20);
ALTER TABLE acr_invoice_hd ADD batch_id NUMBER ;
ALTER TABLE acr_invoice_hd ADD ref_merge_flag VARCHAR2(30);
comment on column ACR_INVOICE_HD.merge_flag
is '是否进行行合并';
comment on column ACR_INVOICE_HD.status
is '审批状态';
comment on column ACR_INVOICE_HD.batch_id
is '审批批次ID';
\ No newline at end of file
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment21 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment22 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment23 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment24 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment25 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment26 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment27 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment28 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment29 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment30 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment31 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment32 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment33 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment34 VARCHAR2(200);
ALTER TABLE HLS_VAT_IMPORT_TMP ADD segment35 VARCHAR2(200);
\ No newline at end of file
ALTER TABLE con_contract_case_record ADD wfl_instance_id NUMBER;
COMMENT ON COLUMN con_contract_case_record.wfl_instance_id IS '罚息减免工作流id';
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: DJ
$Date: 2013-7-4 下午5:06:06
$Revision: 1.0
$Purpose:
$Author: DJ
$Date: 2013-7-4 下午5:06:06
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:fields>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: LR
$Date: 2013-7-17 下午02:06:20
$Revision: 1.0
$Purpose:
$Author: LR
$Date: 2013-7-17 下午02:06:20
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
......@@ -27,4 +27,7 @@
<bm:query-field field="contract_number" queryOperator="like"/>
<bm:query-field field="contract_name" queryOperator="like"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter name="data_class" expression="t.data_Class=&apos;NORMAL&apos;"/>
</bm:data-filters>
</bm:model>
......@@ -12,7 +12,16 @@
</bm:operations>
<bm:fields>
<bm:field name="invoice_hd_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_HD_ID"/>
<bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="bp_code"/>
<bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="description"/>
<bm:field name="vat_red_notice_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="vat_red_notice_num"/>
<bm:field name="ref_vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ref_vat_invoice_code"/>
<bm:field name="ref_invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ref_invoice_number"/>
<bm:field name="created_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="created_by_name"/>
<bm:field name="confirmed_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="confirmed_by_name"/>
<bm:field name="invoice_kind_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_KIND_N"/>
<bm:field name="invoice_title" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="invoice_title"/>
<bm:field name="invoice_bp_address_phone_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="invoice_bp_address_phone_num"/>
<bm:field name="document_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_NUMBER"/>
<bm:field name="invoice_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_DATE"/>
<bm:field name="invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_NUMBER"/>
......@@ -21,6 +30,7 @@
<bm:field name="bp_address_phone_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ADDRESS_PHONE_NUM"/>
<bm:field name="bp_bank_account" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_BANK_ACCOUNT"/>
<bm:field name="product_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_NAME"/>
<bm:field name="product_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="product_code"/>
<bm:field name="specification" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPECIFICATION"/>
<bm:field name="uom" databaseType="CHAR" datatype="java.lang.String" physicalName="UOM"/>
<bm:field name="quantity" databaseType="NUMBER" datatype="java.lang.Long" physicalName="QUANTITY"/>
......@@ -28,18 +38,33 @@
<bm:field name="tax_type_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_TYPE_RATE"/>
<bm:field name="tax_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_AMOUNT"/>
<bm:field name="total_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_AMOUNT"/>
<bm:field name="product_item" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_ITEM"/>
<bm:field name="discount" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT"/>
<bm:field name="discount_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="discount_amount"/>
<bm:field name="dicount_tax_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="dicount_tax_amount"/>
<!-- <bm:field name="product_item" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_ITEM"/>-->
<!-- <bm:field name="discount" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT"/>-->
<bm:field name="discount_rate" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT_RATE"/>
<bm:field name="discount_tax" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT_TAX"/>
<bm:field name="line_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LINE_NAME"/>
<!-- <bm:field name="discount_tax" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT_TAX"/>-->
<!-- <bm:field name="line_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LINE_NAME"/>-->
<bm:field name="rec_man" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REC_MAN"/>
<bm:field name="check_man" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CHECK_MAN"/>
<bm:field name="notes" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NOTES"/>
<bm:field name="blue_number"/>
<bm:field name="blue_code"/>
<bm:field name="tax_number"/>
<bm:field name="benefit"/>
<bm:field name="benefit_notes"/>
<bm:field name="rec_man_tax_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="rec_man_tax_num"/>
<bm:field name="del_man" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="del_man"/>
<bm:field name="del_man_tax_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="del_man_tax_num"/>
<bm:field name="place_of_sending" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="place_of_sending"/>
<bm:field name="car_type_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="car_type_num"/>
<bm:field name="car_ship_tonnage" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="car_ship_tonnage"/>
<bm:field name="product_info" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="product_info"/>
<bm:field name="code_version" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="code_version"/>
<bm:field name="tax_type_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="tax_type_code"/>
<bm:field name="preferential_policy_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="preferential_policy_flag"/>
<bm:field name="preferential_policy_content" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="preferential_policy_content"/>
<bm:field name="zero_tax_rate_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="zero_tax_rate_flag"/>
<bm:field name="reduce_amount" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="reduce_amount"/>
<!-- <bm:field name="check_man" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CHECK_MAN"/>-->
<!-- <bm:field name="notes" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NOTES"/>-->
<!-- <bm:field name="blue_number"/>-->
<!-- <bm:field name="blue_code"/>-->
<!-- <bm:field name="tax_number"/>-->
<!-- <bm:field name="benefit"/>-->
<!-- <bm:field name="benefit_notes"/>-->
</bm:fields>
</bm:model>
......@@ -2,6 +2,7 @@
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<!--包没有改变-->
<bm:update-sql><![CDATA[
BEGIN
hls_vat_import_pkg.check_vat_tmp(p_batch_id => ${/session/@session_id},
......
......@@ -3,7 +3,7 @@
<bm:operations>
<bm:operation name="execute">
<bm:update-sql><![CDATA[begin
hls_vat_import_pkg.delete_vat_tmp(
hls_vat_import_bak_pkg.delete_vat_tmp(
p_batch_id => ${/session/@session_id});
end;]]></bm:update-sql>
<bm:parameters>
......
......@@ -2,6 +2,7 @@
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<!--没有改变-->
<bm:update-sql><![CDATA[
BEGIN
hls_vat_import_pkg.hls_vat_confirm(p_batch_id => ${/session/@session_id},
......
......@@ -11,9 +11,9 @@
<bm:field name="vat_date" databaseType="DATE" datatype="java.util.Date" physicalName="VAT_DATE" prompt="HLS_VAT_IMPORT_TMP.VAT_DATE"/>
<bm:field name="segment1" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT1" prompt="HLS_VAT_IMPORT_TMP.SEGMENT1"/>
<bm:field name="segment2" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT2" prompt="HLS_VAT_IMPORT_TMP.SEGMENT2"/>
<bm:field name="segment3" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT3" prompt="HLS_VAT_IMPORT_TMP.SEGMENT3"/>
<bm:field name="segment4" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT4" prompt="HLS_VAT_IMPORT_TMP.SEGMENT4"/>
<bm:field name="segment5" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT5" prompt="HLS_VAT_IMPORT_TMP.SEGMENT5"/>
<bm:field name="segment3" datatype="java.lang.String" physicalName="SEGMENT3" prompt="HLS_VAT_IMPORT_TMP.SEGMENT3"/>
<bm:field name="segment4" datatype="java.lang.String" physicalName="SEGMENT4" prompt="HLS_VAT_IMPORT_TMP.SEGMENT4"/>
<bm:field name="segment5" datatype="java.lang.String" physicalName="SEGMENT5" prompt="HLS_VAT_IMPORT_TMP.SEGMENT5"/>
<bm:field name="segment6" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT6" prompt="HLS_VAT_IMPORT_TMP.SEGMENT6"/>
<bm:field name="segment7" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT7" prompt="HLS_VAT_IMPORT_TMP.SEGMENT7"/>
<bm:field name="segment8" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT8" prompt="HLS_VAT_IMPORT_TMP.SEGMENT8"/>
......@@ -25,10 +25,25 @@
<bm:field name="segment14" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT14" prompt="HLS_VAT_IMPORT_TMP.SEGMENT14"/>
<bm:field name="segment15" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT15" prompt="HLS_VAT_IMPORT_TMP.SEGMENT15"/>
<bm:field name="segment16" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT16" prompt="HLS_VAT_IMPORT_TMP.SEGMENT16"/>
<bm:field name="segment17" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT17" prompt="HLS_VAT_IMPORT_TMP.SEGMENT17"/>
<bm:field name="segment18" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT18" prompt="HLS_VAT_IMPORT_TMP.SEGMENT18"/>
<bm:field name="segment19" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT19" prompt="HLS_VAT_IMPORT_TMP.SEGMENT19"/>
<bm:field name="segment20" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT20" prompt="HLS_VAT_IMPORT_TMP.SEGMENT20"/>
<bm:field name="segment17" datatype="java.lang.String" physicalName="SEGMENT17" prompt="HLS_VAT_IMPORT_TMP.SEGMENT17"/>
<bm:field name="segment18" physicalName="SEGMENT18" prompt="HLS_VAT_IMPORT_TMP.SEGMENT18"/>
<bm:field name="segment19" datatype="java.lang.Double" physicalName="SEGMENT19" prompt="HLS_VAT_IMPORT_TMP.SEGMENT19"/>
<bm:field name="segment20" datatype="java.lang.Double" physicalName="SEGMENT20" prompt="HLS_VAT_IMPORT_TMP.SEGMENT20"/>
<bm:field name="segment21" datatype="java.lang.Double"/>
<bm:field name="segment22"/>
<bm:field name="segment23"/>
<bm:field name="segment24"/>
<bm:field name="segment25"/>
<bm:field name="segment26"/>
<bm:field name="segment27"/>
<bm:field name="segment28" datatype="java.lang.Double"/>
<bm:field name="segment29"/>
<bm:field name="segment30"/>
<bm:field name="segment31"/>
<bm:field name="segment32"/>
<bm:field name="segment33"/>
<bm:field name="segment34"/>
<bm:field name="segment35" datatype="java.lang.Double"/>
<bm:field name="status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS" prompt="HLS_VAT_IMPORT_TMP.STATUS"/>
</bm:fields>
<bm:features>
......
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<!-- 将hls_vat_import_pkg改为hls_vat_import_bak_pkg-->
<bm:operation name="execute">
<bm:update-sql><![CDATA[
BEGIN
hls_vat_import_pkg.insert_vat_tmp(p_user_id => ${/session/@user_id},
hls_vat_import_bak_pkg.insert_vat_tmp(p_user_id => ${/session/@user_id},
p_header_id => ${/session/@session_id},
p_batch_id => ${/session/@session_id},
p_kind =>${/parameter/@kind});
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: DJ
$Date: 2013-9-2 上午10:16:09
$Revision: 1.0
$Purpose:
$Author: DJ
$Date: 2013-9-2 上午10:16:09
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1"
baseTable="ACR_INVOICE_HD_V" defaultOrderBy="">
<bm:fields>
<bm:field name="invoice_hd_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_HD_ID"/>
<bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID"/>
<bm:field name="document_number" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="DOCUMENT_NUMBER" prompt="HLS.DOCUMENT_NUMBER"/>
<bm:field name="document_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_TYPE"
prompt="HLS.DOCUMENT_TYPE"/>
<bm:field name="document_type_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="DOCUMENT_TYPE_DESC" prompt="HLS.DOCUMENT_TYPE_DESC"/>
<bm:field name="document_category" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="DOCUMENT_CATEGORY" prompt="HLS.DOCUMENT_CATEGORY"/>
<bm:field name="document_category_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="DOCUMENT_CATEGORY_DESC" prompt="HLS.DOCUMENT_CATEGORY_DESC"/>
<bm:field name="business_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BUSINESS_TYPE"
prompt="HLS.BUSINESS_TYPE"/>
<bm:field name="business_type_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="BUSINESS_TYPE_DESC" prompt="HLS.BUSINESS_TYPE_DESC"/>
<bm:field name="billing_method" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="BILLING_METHOD" prompt="ACR.BILLING_METHOD"/>
<bm:field name="billing_method_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="BILLING_METHOD_DESC" prompt="ACR.BILLING_METHOD_DESC"/>
<bm:field name="lease_organization" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="LEASE_ORGANIZATION" prompt="HLS.LEASE_ORGANIZATION"/>
<bm:field name="lease_organization_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="LEASE_ORGANIZATION_DESC" prompt="HLS.LEASE_ORGANIZATION_DESC"/>
<bm:field name="lease_channel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_CHANNEL"
prompt="HLS.LEASE_CHANNEL"/>
<bm:field name="lease_channel_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="LEASE_CHANNEL_DESC" prompt="HLS.LEASE_CHANNEL_DESC"/>
<bm:field name="division" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION"
prompt="HLS.DIVISION"/>
<bm:field name="division_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION_DESC"
prompt="HLS.DIVISION_DESC"/>
<bm:field name="manual_invoice_flag" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="MANUAL_INVOICE_FLAG" prompt="ACR.MANUAL_INVOICE_FLAG"/>
<bm:field name="document_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_NUMBER" prompt="HLS.DOCUMENT_NUMBER"/>
<bm:field name="document_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_TYPE" prompt="HLS.DOCUMENT_TYPE"/>
<bm:field name="document_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_TYPE_DESC" prompt="HLS.DOCUMENT_TYPE_DESC"/>
<bm:field name="document_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_CATEGORY" prompt="HLS.DOCUMENT_CATEGORY"/>
<bm:field name="document_category_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_CATEGORY_DESC" prompt="HLS.DOCUMENT_CATEGORY_DESC"/>
<bm:field name="business_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BUSINESS_TYPE" prompt="HLS.BUSINESS_TYPE"/>
<bm:field name="business_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BUSINESS_TYPE_DESC" prompt="HLS.BUSINESS_TYPE_DESC"/>
<bm:field name="billing_method" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BILLING_METHOD" prompt="ACR.BILLING_METHOD"/>
<bm:field name="billing_method_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BILLING_METHOD_DESC" prompt="ACR.BILLING_METHOD_DESC"/>
<bm:field name="lease_organization" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_ORGANIZATION" prompt="HLS.LEASE_ORGANIZATION"/>
<bm:field name="lease_organization_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_ORGANIZATION_DESC" prompt="HLS.LEASE_ORGANIZATION_DESC"/>
<bm:field name="lease_channel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_CHANNEL" prompt="HLS.LEASE_CHANNEL"/>
<bm:field name="lease_channel_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_CHANNEL_DESC" prompt="HLS.LEASE_CHANNEL_DESC"/>
<bm:field name="division" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION" prompt="HLS.DIVISION"/>
<bm:field name="division_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION_DESC" prompt="HLS.DIVISION_DESC"/>
<bm:field name="manual_invoice_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MANUAL_INVOICE_FLAG" prompt="ACR.MANUAL_INVOICE_FLAG"/>
<bm:field name="invoice_bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_BP_ID"/>
<bm:field name="invoice_bp_code" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="INVOICE_BP_CODE" prompt="ACR.INVOICE_BP_CODE"/>
<bm:field name="invoice_bp_name" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="INVOICE_BP_NAME" prompt="ACR.INVOICE_BP_NAME"/>
<bm:field name="invoice_title" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_TITLE"
prompt="ACR.INVOICE_TITLE"/>
<bm:field name="bp_tax_registry_num" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="BP_TAX_REGISTRY_NUM" prompt="ACR.BP_TAX_REGISTRY_NUM"/>
<bm:field name="bp_address_phone_num" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="BP_ADDRESS_PHONE_NUM" prompt="ACR.BP_ADDRESS_PHONE_NUM"/>
<bm:field name="bp_bank_account" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="BP_BANK_ACCOUNT" prompt="ACR.BP_BANK_ACCOUNT"/>
<bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION"
prompt="HLS.DESCRIPTION"/>
<bm:field name="total_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_AMOUNT"
prompt="ACR.TOTAL_AMOUNT"/>
<bm:field name="tax_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_AMOUNT"
prompt="ACR.TAX_AMOUNT"/>
<bm:field name="net_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="NET_AMOUNT"
prompt="不含税金额"/>
<bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY"
prompt="HLS.CURRENCY"/>
<bm:field name="currency_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_DESC"
prompt="HLS.CURRENCY_DESC"/>
<bm:field name="exchange_rate_type" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="EXCHANGE_RATE_TYPE" prompt="HLS.EXCHANGE_RATE_TYPE"/>
<bm:field name="exchange_rate_type_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="EXCHANGE_RATE_TYPE_DESC" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/>
<bm:field name="exchange_rate_quotation" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="EXCHANGE_RATE_QUOTATION" prompt="ACR.EXCHANGE_RATE_QUOTATION"/>
<bm:field name="exchange_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="EXCHANGE_RATE"
prompt="HLS.EXCHANGE_RATE"/>
<bm:field name="distribution_set_id" databaseType="NUMBER" datatype="java.lang.Long"
physicalName="DISTRIBUTION_SET_ID"/>
<bm:field name="internal_period_num" databaseType="NUMBER" datatype="java.lang.Long"
physicalName="INTERNAL_PERIOD_NUM" prompt="ACR.INTERNAL_PERIOD_NUM"/>
<bm:field name="period_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERIOD_NAME"
prompt="HLS.PERIOD_NAME"/>
<bm:field name="accounting_date" databaseType="DATE" datatype="java.util.Date" physicalName="ACCOUNTING_DATE"
prompt="ACR.ACCOUNTING_DATE"/>
<bm:field name="invoice_date" databaseType="DATE" datatype="java.util.Date" physicalName="INVOICE_DATE"
prompt="ACR.INVOICE_DATE"/>
<!--<bm:field name="invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_NUMBER" prompt="ACR.INVOICE_NUMBER"/>-->
<bm:field name="invoice_status" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="INVOICE_STATUS" prompt="ACR.INVOICE_STATUS"/>
<bm:field name="invoice_status_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="INVOICE_STATUS_DESC" prompt="ACR.INVOICE_STATUS"/>
<bm:field name="invoice_bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_BP_CODE" prompt="ACR.INVOICE_BP_CODE"/>
<bm:field name="invoice_bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_BP_NAME" prompt="ACR.INVOICE_BP_NAME"/>
<bm:field name="invoice_title" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_TITLE" prompt="ACR.INVOICE_TITLE"/>
<bm:field name="bp_tax_registry_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_TAX_REGISTRY_NUM" prompt="ACR.BP_TAX_REGISTRY_NUM"/>
<bm:field name="bp_address_phone_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ADDRESS_PHONE_NUM" prompt="ACR.BP_ADDRESS_PHONE_NUM"/>
<bm:field name="bp_bank_account" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_BANK_ACCOUNT" prompt="ACR.BP_BANK_ACCOUNT"/>
<bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="HLS.DESCRIPTION"/>
<bm:field name="total_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_AMOUNT" prompt="ACR.TOTAL_AMOUNT"/>
<bm:field name="tax_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_AMOUNT" prompt="ACR.TAX_AMOUNT"/>
<bm:field name="net_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="NET_AMOUNT" prompt="不含税金额"/>
<bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY" prompt="HLS.CURRENCY"/>
<bm:field name="currency_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_DESC" prompt="HLS.CURRENCY_DESC"/>
<bm:field name="exchange_rate_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXCHANGE_RATE_TYPE" prompt="HLS.EXCHANGE_RATE_TYPE"/>
<bm:field name="exchange_rate_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXCHANGE_RATE_TYPE_DESC" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/>
<bm:field name="exchange_rate_quotation" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXCHANGE_RATE_QUOTATION" prompt="ACR.EXCHANGE_RATE_QUOTATION"/>
<bm:field name="exchange_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="EXCHANGE_RATE" prompt="HLS.EXCHANGE_RATE"/>
<bm:field name="distribution_set_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="DISTRIBUTION_SET_ID"/>
<bm:field name="internal_period_num" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INTERNAL_PERIOD_NUM" prompt="ACR.INTERNAL_PERIOD_NUM"/>
<bm:field name="period_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERIOD_NAME" prompt="HLS.PERIOD_NAME"/>
<bm:field name="accounting_date" databaseType="DATE" datatype="java.util.Date" physicalName="ACCOUNTING_DATE" prompt="ACR.ACCOUNTING_DATE"/>
<bm:field name="invoice_date" databaseType="DATE" datatype="java.util.Date" physicalName="INVOICE_DATE" prompt="ACR.INVOICE_DATE"/>
<bm:field name="invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_NUMBER" prompt="ACR.INVOICE_NUMBER"/>
<bm:field name="invoice_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_STATUS" prompt="ACR.INVOICE_STATUS"/>
<bm:field name="invoice_status_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_STATUS_DESC" prompt="ACR.INVOICE_STATUS"/>
<bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID"/>
<bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="PROJECT_NUMBER" prompt="HLS.PROJECT_NUMBER"/>
<bm:field name="project_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NAME"
prompt="HLS.PROJECT_NAME"/>
<bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NUMBER" prompt="HLS.PROJECT_NUMBER"/>
<bm:field name="project_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NAME" prompt="HLS.PROJECT_NAME"/>
<bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID"/>
<bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="CONTRACT_NUMBER" prompt="HLS.CONTRACT_NUMBER"/>
<bm:field name="contract_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NAME"
prompt="HLS.CONTRACT_NAME"/>
<bm:field name="reversed_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REVERSED_FLAG"
prompt="ACR.REVERSED_FLAG"/>
<bm:field name="source_invoice_header_id" databaseType="NUMBER" datatype="java.lang.Long"
physicalName="SOURCE_INVOICE_HEADER_ID"/>
<bm:field name="create_je_flag" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="CREATE_JE_FLAG" prompt="ACR.CREATE_JE_FLAG"/>
<bm:field name="gld_interface_flag" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="GLD_INTERFACE_FLAG" prompt="ACR.GLD_INTERFACE_FLAG"/>
<bm:field name="confirmed_date" databaseType="DATE" datatype="java.util.Date" physicalName="CONFIRMED_DATE"
prompt="ACR.CONFIRMED_DATE"/>
<bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER" prompt="HLS.CONTRACT_NUMBER"/>
<bm:field name="contract_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NAME" prompt="HLS.CONTRACT_NAME"/>
<bm:field name="reversed_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REVERSED_FLAG" prompt="ACR.REVERSED_FLAG"/>
<bm:field name="source_invoice_header_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_INVOICE_HEADER_ID"/>
<bm:field name="create_je_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CREATE_JE_FLAG" prompt="ACR.CREATE_JE_FLAG"/>
<bm:field name="gld_interface_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GLD_INTERFACE_FLAG" prompt="ACR.GLD_INTERFACE_FLAG"/>
<bm:field name="confirmed_date" databaseType="DATE" datatype="java.util.Date" physicalName="CONFIRMED_DATE" prompt="ACR.CONFIRMED_DATE"/>
<bm:field name="confirmed_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONFIRMED_BY"/>
<bm:field name="confirmed_by_name" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="CONFIRMED_BY_NAME" prompt="ACR.CONFIRMED_BY_NAME"/>
<bm:field name="posted_date" databaseType="DATE" datatype="java.util.Date" physicalName="POSTED_DATE"
prompt="ACR.POSTED_DATE"/>
<bm:field name="confirmed_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONFIRMED_BY_NAME" prompt="ACR.CONFIRMED_BY_NAME"/>
<bm:field name="posted_date" databaseType="DATE" datatype="java.util.Date" physicalName="POSTED_DATE" prompt="ACR.POSTED_DATE"/>
<bm:field name="posted_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="POSTED_BY"/>
<bm:field name="posted_by_name" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="POSTED_BY_NAME" prompt="ACR.POSTED_BY_NAME"/>
<bm:field name="created_by_name" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="CREATED_BY_NAME" prompt="ACR.CREATED_BY_NAME"/>
<bm:field name="invoice_kind" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_KIND"
prompt="ACR.INVOICE_KIND"/>
<bm:field name="invoice_kind_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="INVOICE_KIND_DESC" prompt="ACR.INVOICE_KIND_DESC"/>
<bm:field name="vat_interface_status" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="VAT_INTERFACE_STATUS" prompt="ACR.VAT_INTERFACE_STATUS"/>
<bm:field name="vat_interface_status_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="VAT_INTERFACE_STATUS_DESC" prompt="ACR.VAT_INTERFACE_STATUS_DESC"/>
<!-- <bm:field name="vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INVOICE_CODE" prompt="ACR.VAT_INVOICE_CODE"/>-->
<bm:field name="vat_invoice_status" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="VAT_INVOICE_STATUS"/>
<bm:field name="vat_red_notice_num" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="VAT_RED_NOTICE_NUM"/>
<bm:field name="ref_vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="REF_VAT_INVOICE_CODE"/>
<bm:field name="ref_invoice_number" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="REF_INVOICE_NUMBER"/>
<bm:field name="ref_v01" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V01"
prompt="ACR_INVOICE_HD_V.REF_V01"/>
<bm:field name="ref_v02" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V02"
prompt="ACR_INVOICE_HD_V.REF_V02"/>
<bm:field name="ref_v03" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V03"
prompt="ACR_INVOICE_HD_V.REF_V03"/>
<bm:field name="ref_v04" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V04"
prompt="ACR_INVOICE_HD_V.REF_V04"/>
<bm:field name="ref_v05" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V05"
prompt="ACR_INVOICE_HD_V.REF_V05"/>
<bm:field name="ref_v06" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V06"
prompt="ACR_INVOICE_HD_V.REF_V06"/>
<bm:field name="ref_v07" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V07"
prompt="ACR_INVOICE_HD_V.REF_V07"/>
<bm:field name="ref_v08" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V08"
prompt="ACR_INVOICE_HD_V.REF_V08"/>
<bm:field name="ref_v09" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V09"
prompt="ACR_INVOICE_HD_V.REF_V09"/>
<bm:field name="ref_v10" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V10"
prompt="ACR_INVOICE_HD_V.REF_V10"/>
<bm:field name="ref_n01" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N01"
prompt="ACR_INVOICE_HD_V.REF_N01"/>
<bm:field name="ref_n02" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N02"
prompt="ACR_INVOICE_HD_V.REF_N02"/>
<bm:field name="ref_n03" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N03"
prompt="ACR_INVOICE_HD_V.REF_N03"/>
<bm:field name="ref_n04" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N04"
prompt="ACR_INVOICE_HD_V.REF_N04"/>
<bm:field name="ref_n05" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N05"
prompt="ACR_INVOICE_HD_V.REF_N05"/>
<bm:field name="ref_n06" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N06"
prompt="ACR_INVOICE_HD_V.REF_N06"/>
<bm:field name="ref_n07" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N07"
prompt="ACR_INVOICE_HD_V.REF_N07"/>
<bm:field name="ref_n08" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N08"
prompt="ACR_INVOICE_HD_V.REF_N08"/>
<bm:field name="ref_n09" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N09"
prompt="ACR_INVOICE_HD_V.REF_N09"/>
<bm:field name="ref_n10" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N10"
prompt="ACR_INVOICE_HD_V.REF_N10"/>
<bm:field name="ref_d01" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D01"
prompt="ACR_INVOICE_HD_V.REF_D01"/>
<bm:field name="ref_d02" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D02"
prompt="ACR_INVOICE_HD_V.REF_D02"/>
<bm:field name="ref_d03" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D03"
prompt="ACR_INVOICE_HD_V.REF_D03"/>
<bm:field name="ref_d04" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D04"
prompt="ACR_INVOICE_HD_V.REF_D04"/>
<bm:field name="ref_d05" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D05"
prompt="ACR_INVOICE_HD_V.REF_D05"/>
<bm:field name="posted_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POSTED_BY_NAME" prompt="ACR.POSTED_BY_NAME"/>
<bm:field name="created_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CREATED_BY_NAME" prompt="ACR.CREATED_BY_NAME"/>
<bm:field name="invoice_kind" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_KIND" prompt="ACR.INVOICE_KIND"/>
<bm:field name="invoice_kind_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_KIND_DESC" prompt="ACR.INVOICE_KIND_DESC"/>
<bm:field name="vat_interface_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INTERFACE_STATUS" prompt="ACR.VAT_INTERFACE_STATUS"/>
<bm:field name="vat_interface_status_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INTERFACE_STATUS_DESC" prompt="ACR.VAT_INTERFACE_STATUS_DESC"/>
<bm:field name="vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INVOICE_CODE" prompt="ACR.VAT_INVOICE_CODE"/>
<bm:field name="vat_invoice_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INVOICE_STATUS"/>
<bm:field name="vat_red_notice_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_RED_NOTICE_NUM"/>
<bm:field name="ref_vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_VAT_INVOICE_CODE"/>
<bm:field name="ref_invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_INVOICE_NUMBER"/>
<bm:field name="ref_v01" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V01" prompt="ACR_INVOICE_HD_V.REF_V01"/>
<bm:field name="ref_v02" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V02" prompt="ACR_INVOICE_HD_V.REF_V02"/>
<bm:field name="ref_v03" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V03" prompt="ACR_INVOICE_HD_V.REF_V03"/>
<bm:field name="ref_v04" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V04" prompt="ACR_INVOICE_HD_V.REF_V04"/>
<bm:field name="ref_v05" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V05" prompt="ACR_INVOICE_HD_V.REF_V05"/>
<bm:field name="ref_v06" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V06" prompt="ACR_INVOICE_HD_V.REF_V06"/>
<bm:field name="ref_v07" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V07" prompt="ACR_INVOICE_HD_V.REF_V07"/>
<bm:field name="ref_v08" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V08" prompt="ACR_INVOICE_HD_V.REF_V08"/>
<bm:field name="ref_v09" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V09" prompt="ACR_INVOICE_HD_V.REF_V09"/>
<bm:field name="ref_v10" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V10" prompt="ACR_INVOICE_HD_V.REF_V10"/>
<bm:field name="ref_n01" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N01" prompt="ACR_INVOICE_HD_V.REF_N01"/>
<bm:field name="ref_n02" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N02" prompt="ACR_INVOICE_HD_V.REF_N02"/>
<bm:field name="ref_n03" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N03" prompt="ACR_INVOICE_HD_V.REF_N03"/>
<bm:field name="ref_n04" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N04" prompt="ACR_INVOICE_HD_V.REF_N04"/>
<bm:field name="ref_n05" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N05" prompt="ACR_INVOICE_HD_V.REF_N05"/>
<bm:field name="ref_n06" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N06" prompt="ACR_INVOICE_HD_V.REF_N06"/>
<bm:field name="ref_n07" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N07" prompt="ACR_INVOICE_HD_V.REF_N07"/>
<bm:field name="ref_n08" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N08" prompt="ACR_INVOICE_HD_V.REF_N08"/>
<bm:field name="ref_n09" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N09" prompt="ACR_INVOICE_HD_V.REF_N09"/>
<bm:field name="ref_n10" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N10" prompt="ACR_INVOICE_HD_V.REF_N10"/>
<bm:field name="ref_d01" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D01" prompt="ACR_INVOICE_HD_V.REF_D01"/>
<bm:field name="ref_d02" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D02" prompt="ACR_INVOICE_HD_V.REF_D02"/>
<bm:field name="ref_d03" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D03" prompt="ACR_INVOICE_HD_V.REF_D03"/>
<bm:field name="ref_d04" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D04" prompt="ACR_INVOICE_HD_V.REF_D04"/>
<bm:field name="ref_d05" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D05" prompt="ACR_INVOICE_HD_V.REF_D05"/>
<bm:field name="owner_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="OWNER_USER_ID"/>
<bm:field name="owner_user_name" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="OWNER_USER_NAME" prompt="ACR.OWNER_USER_NAME"/>
<bm:field name="express_date" databaseType="DATE" datatype="java.util.Date" physicalName="EXPRESS_DATE"
prompt="ACR.EXPRESS_DATE"/>
<bm:field name="express_status" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="EXPRESS_STATUS" prompt="ACR.EXPRESS_STATUS"/>
<bm:field name="express_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_NUM"
prompt="ACR.EXPRESS_NUM"/>
<bm:field name="express_company" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="EXPRESS_COMPANY" prompt="ACR.EXPRESS_COMPANY"/>
<bm:field name="owner_user_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="OWNER_USER_NAME" prompt="ACR.OWNER_USER_NAME"/>
<bm:field name="express_date" databaseType="DATE" datatype="java.util.Date" physicalName="EXPRESS_DATE" prompt="ACR.EXPRESS_DATE"/>
<bm:field name="express_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_STATUS" prompt="ACR.EXPRESS_STATUS"/>
<bm:field name="express_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_NUM" prompt="ACR.EXPRESS_NUM"/>
<bm:field name="express_company" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_COMPANY" prompt="ACR.EXPRESS_COMPANY"/>
<bm:field name="express_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="EXPRESS_BY"/>
<bm:field name="express_note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_NOTE"
prompt="ACR.EXPRESS_NOTE"/>
<bm:field name="tax_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="tax_code"/>
<bm:field name="tax_msg" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="tax_msg"/>
<!--<bm:field name="error_code" expression="(select aeih.error_code from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="error_message" expression="(select aeih.error_message from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>-->
<bm:field name="ele_invoice_status"
expression="nvl((select nvl(aeih.status, 'NEW') from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id),'NEW')"/>
<bm:field name="ele_invoice_status_desc"
expression="nvl((select decode(nvl(aeih.status, 'NEW'), 'NEW', '未传入', 'IMPORT', '已传入', 'DOWNLOAD', '已下载', 'FAILURE', '数据有误') from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id),'未传入')"/>
<bm:field name="ele_invoice_hd_id"
expression="(select aeih.ele_invoice_hd_id from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="swno"
expression="(select t.swno from (select aih.invoice_hd_id,aeih.status,aeih.swno from acr_ele_invoice_hd aeih, acr_invoice_hd aih where aeih.invoice_hd_id(+) = aih.invoice_hd_id) t where t.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="yfpdm"
expression="(select t.yfpdm from (select aih.invoice_hd_id,aeih.status,aeih.yfpdm from acr_ele_invoice_hd aeih, acr_invoice_hd aih where aeih.invoice_hd_id(+) = aih.invoice_hd_id) t where t.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="yfphm"
expression="(select t.yfphm from (select aih.invoice_hd_id,aeih.status,aeih.yfphm from acr_ele_invoice_hd aeih, acr_invoice_hd aih where aeih.invoice_hd_id(+) = aih.invoice_hd_id) t where t.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="billing_way" expression="(case when t1.invoice_date &lt; to_date('20190101','yyyymmdd') then '20' else t1.billing_way end)"/>
<bm:field name="billing_way_desc"
expression="(Select v.code_value_name From sys_code_values_v v Where v.code = 'DS_INVOICE_CATEGORY' And v.code_value = (case when t1.invoice_date &lt; to_date('20190101','yyyymmdd') then '20' else t1.billing_way end))"/>
<bm:field name="bp_agent_name"/>
<bm:field name="invoice_number"
expression="(nvl(t1.invoice_number,(Select he.yfphm From acr_ele_invoice_hd he Where he.invoice_hd_id = t1.invoice_hd_id)))"/>
<bm:field name="vat_invoice_code"
expression="(nvl(t1.vat_invoice_code,(Select he.yfpdm From acr_ele_invoice_hd he Where he.invoice_hd_id = t1.invoice_hd_id)) )"/>
<bm:field name="express_note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_NOTE" prompt="ACR.EXPRESS_NOTE"/>
<bm:field name="billing_way_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="billing_way_desc" prompt="开票方式"/>
</bm:fields>
<bm:query-fields>
<bm:query-field name="bp_agent_name" queryExpression="t1.bp_agent_name like ${@bp_agent_name}"/>
<bm:query-field name="document_number_f" queryExpression="t1.document_number &gt;= ${@document_number_f}"/>
<bm:query-field name="document_number_t" queryExpression="t1.document_number &lt;= ${@document_number_t}"/>
<bm:query-field name="contract_number_f" queryExpression="t1.contract_number &gt;= ${@contract_number_f}"/>
<bm:query-field name="contract_number_t" queryExpression="t1.contract_number &lt;= ${@contract_number_t}"/>
<bm:query-field name="invoice_number_f" queryExpression="t1.invoice_number &gt;= ${@invoice_number_f}"/>
<bm:query-field name="invoice_number_t" queryExpression="t1.invoice_number &lt;= ${@invoice_number_t}"/>
<bm:query-field name="invoice_date_f"
queryExpression="t1.invoice_date &gt;= to_date(${@invoice_date_f},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="invoice_date_t"
queryExpression="t1.invoice_date &lt;= to_date(${@invoice_date_t},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="accounting_date_f"
queryExpression="t1.accounting_date &gt;= to_date(${@accounting_date_f},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="accounting_date_t"
queryExpression="t1.accounting_date &lt;= to_date(${@accounting_date_t},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="invoice_date_f" queryExpression="t1.invoice_date &gt;= to_date(${@invoice_date_f},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="invoice_date_t" queryExpression="t1.invoice_date &lt;= to_date(${@invoice_date_t},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="accounting_date_f" queryExpression="t1.accounting_date &gt;= to_date(${@accounting_date_f},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="accounting_date_t" queryExpression="t1.accounting_date &lt;= to_date(${@accounting_date_t},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="total_amount_f" queryExpression="t1.total_amount &gt;= ${@total_amount_f}"/>
<bm:query-field name="total_amount_t" queryExpression="t1.total_amount &lt;= ${@total_amount_t}"/>
<bm:query-field name="invoice_bp_code_f" queryExpression="t1.invoice_bp_code &gt;= ${@invoice_bp_code_f}"/>
<bm:query-field name="invoice_bp_code_t" queryExpression="t1.invoice_bp_code &lt;= ${@invoice_bp_code_t}"/>
<bm:query-field name="currency" queryExpression="t1.currency = ${@currency}"/>
<bm:query-field name="invoice_status" queryExpression="t1.invoice_status = ${@invoice_status}"/>
<bm:query-field name="vat_interface_status"
queryExpression="t1.vat_interface_status = ${@vat_interface_status}"/>
<bm:query-field name="vat_interface_status" queryExpression="t1.vat_interface_status = ${@vat_interface_status}"/>
<bm:query-field name="business_type" queryExpression="t1.business_type = ${@business_type}"/>
<bm:query-field name="invoice_kind" queryExpression="t1.invoice_kind = ${@invoice_kind}"/>
<bm:query-field name="invoice_title" queryExpression="t1.invoice_title like ${@invoice_title}"/>
<bm:query-field name="created_by" queryExpression="t1.created_by = ${@created_by}"/>
<bm:query-field name="received_flag"
queryExpression="(nvl(t1.express_status,&apos;UNDELIVERED&apos;) !=&apos;RECEIVED&apos; or ${@received_flag}=&apos;Y&apos;)"/>
<bm:query-field name="received_flag" queryExpression="(nvl(t1.express_status,&apos;UNDELIVERED&apos;) !=&apos;RECEIVED&apos; or ${@received_flag}=&apos;Y&apos;)"/>
<bm:query-field name="express_status" queryExpression="t1.express_status = ${@express_status}"/>
<bm:query-field name="confirmed_by" queryExpression="t1.confirmed_by = ${@confirmed_by}"/>
<bm:query-field name="query_contract_number"
queryExpression="exists (select 1 from hls_document_flow_all_v df, con_contract cc where df.contract_id = cc.contract_id and df.ar_invoice_hd_id = t1.invoice_hd_id and cc.contract_number between nvl(${@contract_number_f}, cc.contract_number) and nvl(${@contract_number_t}, cc.contract_number))"/>
<bm:query-field name="query_project_number"
queryExpression="exists (select 1 from hls_document_flow_all_v df, prj_project pp where df.ar_invoice_hd_id = t1.invoice_hd_id and df.project_id = pp.project_id and pp.project_number between nvl(${@project_number_f}, pp.project_number) and nvl(${@project_number_t}, pp.project_number))"/>
<bm:query-field name="billing_way" queryExpression="(case when t1.invoice_date &lt; to_date('20190101','yyyymmdd') then '20' else t1.billing_way end) = ${@billing_way}"/>
<bm:query-field name="query_contract_number" queryExpression="exists (select 1 from hls_document_flow_all_v df, con_contract cc where df.contract_id = cc.contract_id and df.ar_invoice_hd_id = t1.invoice_hd_id and cc.contract_number between nvl(${@contract_number_f}, cc.contract_number) and nvl(${@contract_number_t}, cc.contract_number))"/>
<bm:query-field name="query_project_number" queryExpression="exists (select 1 from hls_document_flow_all_v df, prj_project pp where df.ar_invoice_hd_id = t1.invoice_hd_id and df.project_id = pp.project_id and pp.project_number between nvl(${@project_number_f}, pp.project_number) and nvl(${@project_number_t}, pp.project_number))"/>
<bm:query-field name="ele_invoice_status" queryExpression="nvl((select nvl(aeih.status, 'NEW') from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id),'NEW') = ${@ele_invoice_status}"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter enforceOperations="query"
expression="t1.company_id = ${/session/@company_id} and t1.reversed_flag = &apos;N&apos;"/>
<bm:data-filter enforceOperations="query"
expression="(t1.invoice_status=&apos;CONFIRM&apos; OR t1.invoice_status=&apos;POST&apos;)"/>
<bm:data-filter enforceOperations="query"
expression="(t1.invoice_kind = &apos;0&apos; or t1.invoice_kind = &apos;2&apos;)"/>
<bm:data-filter enforceOperations="query" expression="t1.company_id = ${/session/@company_id} and t1.reversed_flag = &apos;N&apos;"/>
<bm:data-filter enforceOperations="query" expression="(t1.invoice_status=&apos;CONFIRM&apos; OR t1.invoice_status=&apos;POST&apos;)"/>
<bm:data-filter enforceOperations="query" expression="(t1.invoice_kind = &apos;0&apos; or t1.invoice_kind = &apos;2&apos;)"/>
</bm:data-filters>
<bm:features>
<f:standard-who/>
......
......@@ -2,15 +2,16 @@
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="execute">
<bm:parameters >
<!--<bm:parameters >
<bm:parameter name ="v_status" dataType="java.lang.Long" input ="false" output ="true" outputPath="@v_status" />
</bm:parameters >
</bm:parameters >-->
<bm:update-sql><![CDATA[
DECLARE
v_status number;
begin
v_status := contract_penalty_reduction.contract_penalty_status(p_record_id => ${@record_id});
${@v_status}:=v_status;
contract_penalty_reduction.remit_workflow_start(p_record_id =>${@record_id},
p_company_id=>${/session/@company_id},
p_user_id =>${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
......
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<doc readOnly="true" pageSize="A4" header="1.5" footer="1.75" top="2.54" bottom="2.54" left="3.17" right="3.17" >
<body>
<p align="left" line="400" >
<t fontFamily="黑体" fontSize="24" fontColor="000000" >附件二</t>
</p>
<p align="center" line="400" >
<t fontFamily="宋体" fontSize="32" fontColor="000000" >实际租金支付表</t>
</p>
<p indFirstLine="1" line="400" >
<t fontFamily="仿宋" fontSize="24" fontColor="000000" >注:《租金支付概算表》与《实际租金支付表》不一致的,以本《实际租金支付表》为准。</t>
</p>
<p line="400" >
<t fontFamily="宋体" fontSize="24" fontColor="000000" >甲方(承租人):(盖章) 乙方(出租人): (盖章)</t>
</p>
<p line="400" >
<t fontFamily="宋体" fontSize="24" fontColor="000000" >法定代表人(负责人)或授权代表: 法定代表人(负责人)或授权代表:</t>
</p>
<p line="400" >
<t fontFamily="宋体" fontSize="24" fontColor="000000" >年 月 日 年 月 日 </t>
</p>
</body>
</doc>
\ No newline at end of file
......@@ -29,6 +29,7 @@
f_hls.winNoMask(win);
return;
}
debugger
var datas = ds.getJsonData();
winNoMask(win);
......
......@@ -109,12 +109,14 @@
winNoMask();
return;
}
debugger
var datas = ds.getJsonData(true);
for (var i = 0; i < datas.length; i++) {
datas[i].final_bill_flag = final_bill_flag;
datas[i].cat_ini_flag = cat_ini_flag;
}
Leaf.request({
url: $('svcLink_save_selected').getUrl(),
para: datas,
......@@ -340,7 +342,7 @@
<a:gridButton click="contractDs_grid_query" text="HLS.QUERY"/>
<a:gridButton click="allConditionDs_reset" text="重置"/>
<!-- <a:gridButton click="contractDs_grid_clear" text="ACR510.BUTTON.CLEAR_CONTRACT"/>-->
<a:gridButton click="invoiceHd_confirm" text="ACR510.BUTTON.COMFIRM"/>
<a:gridButton click="invoiceHd_confirm" text="继续"/>
<!--<a:gridButton click="acr510n_excel" text="导出"/>-->
</a:screenTopToolbar>
<a:queryForm id="condition_queryForm" bindTarget="allConditionDs" createSearchButton="false"
......
......@@ -4,49 +4,76 @@
<a:model-query fetchAll="true" model="acr.ACR515.acr_invoice_interface_ln" rootPath="/model/datasource"/>
<dr:excel-report enableTask="false" filename="invoice.xls">
<dr:styles>
<dr:cell-style name="cell1" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="宋体" height="9"/>
<dr:cell-style name="cell1" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="宋体" height="10"/>
</dr:cell-style>
<dr:cell-style name="cell2" align="ALIGN_RIGHT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
<dr:cell-style name="cell2" align="ALIGN_RIGHT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="Arial" height="10"/>
</dr:cell-style>
<dr:cell-style name="cell3" align="ALIGN_LEFT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="宋体" height="9"/>
<dr:cell-style name="cell3" align="ALIGN_LEFT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="宋体" height="10"/>
</dr:cell-style>
<dr:cell-style name="cell4" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
<dr:cell-style name="cell4" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="Arial" height="10"/>
</dr:cell-style>
<dr:cell-style name="header" align="ALIGN_LEFT" borderbottom="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" cell_style_id="2" foregroundcolor="BLACK">
<dr:cell-style name="header" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" cell_style_id="2" foregroundcolor="BLACK" vertical="VERTICAL_BOTTOM">
<dr:font bold="true" cell_style_id="2" fontname="宋体" height="10"/>
</dr:cell-style>
</dr:styles>
<dr:sheets>
<dr:sheet name="收入确认" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11" displayGridlines="true">
<dr:dynamic-content cell="A" dataModel="/model/datasource" row="1">
<dr:dynamic-content cell="A" dataModel="/model/datasource">
<dr:columns>
<dr:table-column cellStyle="cell4" field="invoice_kind_n" title="发票类型" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell4" field="invoice_kind_n" title="发票种类" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="document_number" title="单据号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="invoice_date" title="单据日期" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell3" field="bp_name" title="发票抬头" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="bp_tax_registry_num" title="纳税人税号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell3" field="bp_code" title="客户编号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell3" field="bp_name" title="客户名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="bp_tax_registry_num" title="客户税号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="bp_address_phone_num" title="客户地址电话" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell3" field="bp_bank_account" title="客户开户行账号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="product_name" title="性质" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="specification" title="规格" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell3" field="bp_bank_account" title="客户银行及账号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="description" title="备注" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="vat_red_notice_num" title="专用发票红票通知单号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="ref_vat_invoice_code" title="普通发票红票对应正数发票代码" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="ref_invoice_number" title="普通发票红票对应正数发票号码" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="created_by_name" title="开票人" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="confirmed_by_name" title="复核人" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="received_by_name" title="收款人" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="invoice_title" title="销方银行及帐号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="invoice_bp_address_phone_num" title="销方地址电话" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="product_code" title="商品编号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="product_name" title="商品名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="specification" title="规格型号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="uom" title="计量单位" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell4" field="quantity" title="数量" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="price" title="单价" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="total_amount" title="含税金额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="tax_type_rate" title="税率" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="tax_amount" title="税额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="total_amount" title="开票金额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="discount_amount" title="折扣金额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="dicount_tax_amount" title="折扣税额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="price" title="无税单价" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="discount_rate" title="折扣率" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="rec_man" title="收货人" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="rec_man_tax_num" title="收货人纳税人识别号" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="del_man" title="发货人" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="del_man_tax_num" title="发货人纳税人识别号" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="place_of_sending" title="起运地、经由、到达地" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="car_type_num" title="车种车号" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="car_ship_tonnage" title="车船吨位" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="product_info" title="运输货物信息" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="code_version" title="编码版本号" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="tax_type_code" title="税收分类编码" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="preferential_policy_flag" title="是否享受优惠政策" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="preferential_policy_content" title="享受税收优惠政策内容" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="zero_tax_rate_flag" title="零税率标识" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="reduce_amount" title="扣除额" titlestyle="header" type="Number"/>
<!-- <dr:table-column cellStyle="cell1" field="total_amount" title="开票金额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="product_item" title="商品税目" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="discount" title="折扣金额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="discount_rate" title="折扣率" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="discount_tax" title="折扣税额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="line_name" title="清单行商品名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="rec_man" title="收款人" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="check_man" title="复核人" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="notes" title="备注" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="rec_man" title="收款人" titlestyle="header" type="content"/> -->
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: LR
$Date: 2013-7-18 上午09:34:43
$Revision: 1.0
$Purpose:
$Author: LR
$Date: 2013-7-18 上午09:34:43
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
<a:screen xmlns:s="leaf.plugin.script" xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="acr515_currency_list"/>
<a:model-query fetchAll="true" model="acr.ACR512.acr_invoice_business_type_list"
rootPath="acr515_business_type_list"/>
<a:model-query fetchAll="true" model="acr.ACR512.acr_invoice_business_type_list" rootPath="acr515_business_type_list"/>
</a:init-procedure>
<a:view>
<a:link id="bmLink_vat_pause_or_submit" model="acr.ACR515.acr_invoice_vat" modelaction="batch_update"/>
<a:link id="bmLink_vat_receive" model="acr.ACR515.acr_invoice_vat" modelaction="execute"/>
<a:link id="acr515_update_post_link"
url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_insert_tmp.lsc"/>
<a:link id="acr515_interface_excel_link"
url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_interface_excel_sheets.lsc"/>
<a:link id="acr515_interface_network_link"
url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_interface_network_sheets.lsc"/>
<a:link id="acr515_interface_import_link"
url="${/request/@context_path}/modules/acr/ACR515/hls_acr_vat_import_data.lview"/>
<a:link id="invoice_attachment_uploadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="acr515_update_post_link" url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_insert_tmp.lsc"/>
<a:link id="acr515_interface_excel_link" url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_interface_excel_sheets.lsc"/>
<a:link id="acr515_interface_network_link" url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_interface_network_sheets.lsc"/>
<a:link id="acr515_interface_import_link" url="${/request/@context_path}/modules/acr/ACR515/hls_acr_vat_import_data.lview"/>
<a:screen-include screen="modules/hls/hls_common_javascript.lview"/>
<a:link id="ds_hls_paperinv_makeinv_link"
url="${/request/@context_path}/modules/interface/INTERFACE_JINSUI/ds_hls_paperinv_makeinv.lsc"/>
<script type="text/javascript"><![CDATA[
<script><![CDATA[
function acr515_invoice_query() {
$('acr515_invoiceVatDs').query();
}
......@@ -94,7 +85,7 @@
Leaf.request({
url: $('bmLink_vat_pause_or_submit').getUrl(),
para: datas,
success: function (res) {
success: function(res) {
f_hls.winNoMask();
Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
......@@ -102,10 +93,10 @@
});
acr515_invoice_refresh();
},
failure: function () {
failure: function() {
f_hls.winNoMask();
},
error: function () {
error: function() {
f_hls.winNoMask();
},
scope: this
......@@ -116,7 +107,7 @@
Leaf.request({
url: $('bmLink_vat_receive').getUrl(),
para: {},
success: function (res) {
success: function(res) {
f_hls.winNoMask();
Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
......@@ -124,10 +115,10 @@
});
acr515_invoice_refresh();
},
failure: function () {
failure: function() {
f_hls.winNoMask();
},
error: function () {
error: function() {
f_hls.winNoMask();
},
scope: this
......@@ -135,6 +126,7 @@
}
function acr515_vat_create() {
f_hls.winMask();
......@@ -145,7 +137,7 @@
return;
}
var datas = [];
for (var i = 0; i < records.length; i++) {
for (var i = 0;i < records.length;i++) {
var obj = {};
obj['invoice_hd_id'] = records[i].get('invoice_hd_id');
obj['_status'] = 'insert';
......@@ -165,7 +157,7 @@
return;
}
var datas = [];
for (var i = 0; i < records.length; i++) {
for (var i = 0;i < records.length;i++) {
var obj = {};
obj['invoice_hd_id'] = records[i].get('invoice_hd_id');
obj['type'] = type;
......@@ -190,7 +182,7 @@
return;
}
var datas = [];
for (var i = 0; i < records.length; i++) {
for (var i = 0;i < records.length;i++) {
var obj = {};
obj['invoice_hd_id'] = records[i].get('invoice_hd_id');
......@@ -202,6 +194,8 @@
}
function acr515_invoice_post() {
var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected();
if (records.length == 0) {
......@@ -210,16 +204,16 @@
}
var param = {};
var saveData = [];
var kind = $('acr515_invoiceVatParaDs').getAt(0).get('invoice_kind');
var url;
if (kind == '0') { //如果是转票弹出 正常金税发票
url = $('acr515_interface_excel_link').getUrl();
} else {//否则弹出电子发票
url = $('acr515_interface_network_link').getUrl();
}
//var kind = $('acr515_invoiceVatParaDs').getAt(0).get('invoice_kind');
// if (kind=='0') { //如果是转票弹出 正常金税发票
// url = $('acr515_interface_excel_link').getUrl();
// } else {//否则弹出电子发票
// url = $('acr515_interface_network_link').getUrl();
// }
var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
for (var i = 0; i < records.length; i++) {
for (var i = 0;i < records.length;i++) {
saveData.push({
'invoice_hd_id': records[i].get('invoice_hd_id'),
'_status': 'insert'
......@@ -229,463 +223,142 @@
Leaf.request({
url: $('acr515_update_post_link').getUrl(),
para: param,
success: function () {
success: function() {
Leaf.Masker.unmask(detail_mask);
window.open(url);
var _url=$('acr515_interface_excel_link').getUrl();
window.open(_url);
ds.query();
},
failure: function () {
failure: function() {
Leaf.Masker.unmask(detail_mask);
},
error: function () {
error: function() {
Leaf.Masker.unmask(detail_mask);
},
scope: this
});
}
function acr515_invoice_import(){
//传入金税接口
function acr515_invoice_post_interface() {
var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected();
if (records.length == 0) {
Leaf.showMessage('提示', '请选择要传入金税接口的数据');
return;
}
var saveData = [];
for (var i = 0; i < records.length; i++) {
if (records[i].get('ele_invoice_status') != 'NEW') {
if(records[i].get('ele_invoice_status') == 'FAILURE'){
//还可继续传入
}else{
Leaf.showMessage('提示', '所选数据中存在已传入或者已下载的单据,请检查!');
return;
}
}
saveData.push({
'invoiceHdId': records[i].get('invoice_hd_id')
});
}
//设置header token
var header = $jq('meta[name=_csrf_header]').attr('content');
var token = $jq('meta[name=_csrf]').attr('content');
$jq(document).ajaxSend(function (e, xhr, options) {
xhr.setRequestHeader(header, token);
});
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
$jq.ajax({
url: '${/request/@context_path}/acr/invoice/info/submit',
method: 'post',
dataType: "json",
contentType: 'application/json;charset=UTF-8',
data: JSON.stringify(saveData),
success: function (args) {
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
if (args.success) {
$('acr515_invoiceVatDs').query();
Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});
} else {
Leaf.showMessage('提示', args.message);
return;
}
},
failure: function (args) {
$('acr515_invoiceVatDs').query();
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'failure',
duration: 2000
});
},
error: function (args) {
$('acr515_invoiceVatDs').query();
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'error',
duration: 2000
});
},
});
}
//下载电子发票
function acr515_invoice_download_interface() {
var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected();
if (records.length == 0) {
Leaf.showMessage('提示', '请选择要下载电子发票的数据');
return;
}
var saveData = [];
for (var i = 0; i < records.length; i++) {
//update by zhuxianfei 20181229
//允许客户多次下载发票,目的是多次推送短信通知和邮件通知
/*if (records[i].get('ele_invoice_status') != 'IMPORT') {
Leaf.showMessage('提示', '所选数据中存在未传入或者已下载的单据,请检查!');
return;
} else if (!Leaf.isEmpty(records[i].get('invoice_number'))) {
Leaf.showMessage('提示', '所选数据中存在已开票的单据,请检查!');
return;
}*/
saveData.push({
'invoiceHdId': records[i].get('invoice_hd_id')
});
}
//设置header token
var header = $jq('meta[name=_csrf_header]').attr('content');
var token = $jq('meta[name=_csrf]').attr('content');
$jq(document).ajaxSend(function (e, xhr, options) {
xhr.setRequestHeader(header, token);
});
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
$jq.ajax({
url: '${/request/@context_path}/acr/invoice/info/download',
method: 'post',
dataType: "json",
contentType: 'application/json;charset=UTF-8',
data: JSON.stringify(saveData),
success: function (args) {
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
if (args.success) {
$('acr515_invoiceVatDs').query();
Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});
} else {
Leaf.showMessage('提示', args.message);
return;
}
},
failure: function (args) {
$('acr515_invoiceVatDs').query();
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'failure',
duration: 2000
});
},
error: function (args) {
$('acr515_invoiceVatDs').query();
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'error',
duration: 2000
});
},
});
}
function acr515_invoice_import() {
var kind = $('acr515_invoiceVatParaDs').getAt(0).get('invoice_kind');
window.location.href = $('acr515_interface_import_link').getUrl() + '?kind=' + kind;
kind=2;
window.location.href = $('acr515_interface_import_link').getUrl()+'?kind='+kind;
}
function summaryRenderer(datas, name) {
var sum = 0;
var sum1 = 0;
var sum2 = 0;
if (name == "invoice_title") {
var sum=0;
var sum1=0;
var sum2=0;
if(name=="invoice_title"){
return '合计:<font color="red"></font>';
}
if (name == "total_amount") {
for (var i = 0; i < datas.length; i++) {
var record = datas[i];
var payment_amount_vl = record.get("total_amount");
var payment_amount = parseFloat(payment_amount_vl);
if (!isNaN(payment_amount)) {
sum += payment_amount;
if(name=="total_amount"){
for(var i=0;i<datas.length;i++){
var record=datas[i];
var payment_amount_vl=record.get("total_amount");
var payment_amount=parseFloat(payment_amount_vl);
if(!isNaN(payment_amount)){
sum+=payment_amount;
}
}
return '<font color="red">' + Leaf.formatNumber(sum, 2) + '</font>';
return '<font color="red">' + Leaf.formatNumber(sum ,2)+ '</font>';
}
if (name == "tax_amount") {
for (var j = 0; j < datas.length; j++) {
var record1 = datas[j];
var payment_amount_vl1 = record1.get("tax_amount");
var payment_amount1 = parseFloat(payment_amount_vl1);
if (!isNaN(payment_amount1)) {
sum1 += payment_amount1;
if(name=="tax_amount"){
for(var j=0;j<datas.length;j++){
var record1=datas[j];
var payment_amount_vl1=record1.get("tax_amount");
var payment_amount1=parseFloat(payment_amount_vl1);
if(!isNaN(payment_amount1)){
sum1+=payment_amount1;
}
}
return '<font color="red">' + Leaf.formatNumber(sum1, 2) + '</font>';
return '<font color="red">' + Leaf.formatNumber(sum1 ,2)+ '</font>';
}
if (name == "net_amount") {
for (var k = 0; k < datas.length; k++) {
var record2 = datas[k];
var payment_amount_vl2 = record2.get("net_amount");
var payment_amount2 = parseFloat(payment_amount_vl2);
if (!isNaN(payment_amount2)) {
sum2 += payment_amount2;
if(name=="net_amount"){
for(var k=0;k<datas.length;k++){
var record2=datas[k];
var payment_amount_vl2=record2.get("net_amount");
var payment_amount2=parseFloat(payment_amount_vl2);
if(!isNaN(payment_amount2)){
sum2+=payment_amount2;
}
}
return '<font color="red">' + Leaf.formatNumber(sum2, 2) + '</font>';
return '<font color="red">' + Leaf.formatNumber(sum2 ,2)+ '</font>';
}
}
//pdf附件
function downloadPdf(val, rec, name) {
if (rec.get('ele_invoice_status') == 'DOWNLOAD') {
return '<a href=javascript:detail_upload_window(' + rec.get('ele_invoice_hd_id') + ')>pdf附件</a>';
}
}
function detail_upload_window(id) {
var url = $('invoice_attachment_uploadFile_id').getUrl() + '?table_name=ACR_ELE_INVOICE_HD&header_id=' + id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'invoice_attachment_uploadFile_id_win',
width: 850,
height: 400
});
win.on('close', function () {
});
}
//纸质发票接口
function acr_paperinv_post_interface() {
debugger;
var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected();
if (records.length == 0) {
Leaf.showMessage('提示', '请选择要传入金税接口的数据');
return;
}
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
for (var i = 0; i < records.length; i++) {
if (records[i].get('ele_invoice_status') != 'NEW') {
Leaf.showMessage('提示', '所选数据中存在已传入或者已下载的单据,请检查!');
return;
}
else if (!Leaf.isEmpty(records[i].get('invoice_number'))) {
Leaf.showMessage('提示', '所选数据中存在已开票的单据,请检查!');
return;
}
Leaf.request({
url: '${/request/@context_path}/modules/interface/INTERFACE_JINSUI/hls_paperinv_makeinv.lsc',
para: {
invoiceHdId: records[i].get('invoice_hd_id')
},
success: function (res) {
var resCode = res.resCode;
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
/* Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});*/
Leaf.showMessage('提示', '开票成功!');
},
failure: function (args) {
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'failure',
duration: 2000
});
},
error: function (args) {
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'error',
duration: 2000
});
},
scope: this,
sync: true
});
}
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
$('acr515_invoiceVatDs').query();
}
//纸质发票接口
function do_acr_paperinv_post_interface() {
var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected();
if (records.length == 0) {
Leaf.showMessage('提示', '请选择要传入金税接口的数据');
return;
}
var datas = [];
for (var i = 0; i < records.length; i++) {
if (records[i].get('ele_invoice_status') != 'NEW') {
Leaf.showMessage('提示', '所选数据中存在已传入或者已下载的单据,请检查!');
return;
} else if (!Leaf.isEmpty(records[i].get('invoice_number'))) {
Leaf.showMessage('提示', '所选数据中存在已开票的单据,请检查!');
return;
} else {
var obj = {};
obj['invoice_hd_id'] = records[i].get('invoice_hd_id');
obj['_status'] = 'update';
datas[i] = obj;
}
}
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
//url: '${/request/@context_path}/modules/interface/INTERFACE_JINSUI/ds_hls_paperinv_makeinv.lsc',
url: $('ds_hls_paperinv_makeinv_link').getUrl(),
para: datas,
success: function () {
//$('acr515_invoiceVatDs').query($('acr515_invoiceVatDs').currentPage);
acr515_invoice_query()
Leaf.Masker.unmask(Ext.getBody());
Leaf.showMessage('提示', '开票成功!');
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}
//红字发票接口
function do_acr_redinvoice_interface() {
}
function details_export() {
$('acr515_invoiceVatDs_grid')._export(null,'金税接口');
}
]]></script>
<a:dataSets>
<a:dataSet id="acr515_invoiceKindDs" lookupCode="ACR510_INVOICE_KIND"/>
<a:dataSet id="acr515_invoiceStatusDs" lookupCode="ACR510_AR_INVOICE_STATUS"/>
<a:dataSet id="acr515_express_status_ds" lookupCode="ACR518_EXPRESS_STATUS"/>
<a:dataSet id="acr515_vat_interface_status_ds" lookupCode="ACR515_VAT_INTERFACE_STATUS"/>
<a:dataSet id="acr515_businessTypeDs">
<a:datas dataSource="/model/acr515_business_type_list"/>
</a:dataSet>
<a:dataSet id="acr515_currencyDs">
<a:datas dataSource="/model/acr515_currency_list"/>
</a:dataSet>
<a:dataSet id="acr515_invoiceKindDs" lookupCode="ACR510_INVOICE_KIND"/>
<a:dataSet id="acr515_invoiceWay" lookupCode="DS_INVOICE_CATEGORY"/>
<a:dataSet id="ele_invoice_status_ds" lookupCode="ELE_INVOICE_STATUS"/>
<a:dataSet id="acr515_invoiceStatusDs" lookupCode="ACR510_AR_INVOICE_STATUS"/>
<a:dataSet id="acr515_express_status_ds" lookupCode="ACR518_EXPRESS_STATUS"/>
<a:dataSet id="acr515_vat_interface_status_ds" lookupCode="ACR515_VAT_INTERFACE_STATUS"/>
<a:dataSet id="acr515_invoiceVatParaDs" autoCreate="true" model="acr.acr_invoice_hd_v">
<a:fields>
<a:field name="currency_desc" displayField="currency_name" options="acr515_currencyDs"
returnField="currency" valueField="currency_code"/>
<a:field name="currency_desc" displayField="currency_name" options="acr515_currencyDs" returnField="currency" valueField="currency_code"/>
<a:field name="invoice_kind"/>
<a:field name="invoice_kind_desc" displayField="code_value_name"
options="acr515_invoiceKindDs" returnField="invoice_kind"
valueField="code_value"/>
<a:field name="invoice_status_desc" displayField="code_value_name" options="acr515_invoiceStatusDs"
returnField="invoice_status" valueField="code_value"/>
<a:field name="vat_interface_status"/>
<a:field name="vat_interface_status_desc" displayField="code_value_name"
options="acr515_vat_interface_status_ds" returnField="vat_interface_status"
valueField="code_value"/>
<a:field name="business_type_desc" displayField="business_type_desc" options="acr515_businessTypeDs"
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="ACR.CREATED_BY_NAME">
<a:field name="invoice_kind_desc" displayField="code_value_name" options="acr515_invoiceKindDs" returnField="invoice_kind" valueField="code_value"/>
<a:field name="invoice_status_desc" displayField="code_value_name" options="acr515_invoiceStatusDs" returnField="invoice_status" valueField="code_value"/>
<a:field name="vat_interface_status" defaultValue="UNTRANSFERED"/>
<a:field name="vat_interface_status_desc" defaultValue="未传金税" displayField="code_value_name" options="acr515_vat_interface_status_ds" returnField="vat_interface_status" valueField="code_value"/>
<a:field name="business_type_desc" displayField="business_type_desc" options="acr515_businessTypeDs" 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="ACR.CREATED_BY_NAME">
<a:mapping>
<a:map from="user_id" to="created_by"/>
<a:map from="description" to="created_by_name"/>
</a:mapping>
</a:field>
<a:field name="confirmed_by_name" lovGridHeight="320" lovHeight="500"
lovService="acr.ACR512.acr_invoice_sys_user_lov" lovWidth="500"
title="ACR.CONFIRMED_BY_NAME">
<a:field name="confirmed_by_name" lovGridHeight="320" lovHeight="500" lovService="acr.ACR512.acr_invoice_sys_user_lov" lovWidth="500" title="ACR.CONFIRMED_BY_NAME">
<a:mapping>
<a:map from="user_id" to="confirmed_by"/>
<a:map from="description" to="confirmed_by_name"/>
</a:mapping>
</a:field>
<a:field name="invoice_bp_code_f" lovGridHeight="320" lovHeight="480"
lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500"
title="ACR.INVOICE_BP_CODE">
<a:field name="invoice_bp_code_f" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500" title="ACR.INVOICE_BP_CODE">
<a:mapping>
<a:map from="bp_code" to="invoice_bp_code_f"/>
</a:mapping>
</a:field>
<a:field name="invoice_bp_code_t" lovGridHeight="320" lovHeight="480"
lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500"
title="ACR.INVOICE_BP_CODE">
<a:field name="invoice_bp_code_t" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500" title="ACR.INVOICE_BP_CODE">
<a:mapping>
<a:map from="bp_code" to="invoice_bp_code_t"/>
</a:mapping>
</a:field>
<a:field name="project_number_f" lovGridHeight="320" lovHeight="480"
lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500"
title="HLS.PROJECT_NUMBER_FROM">
<a:field name="project_number_f" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500" title="HLS.PROJECT_NUMBER_FROM">
<a:mapping>
<a:map from="project_number" to="project_number_f"/>
</a:mapping>
</a:field>
<a:field name="project_number_t" lovGridHeight="320" lovHeight="480"
lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500"
title="HLS.PROJECT_NUMBER_FROM">
<a:field name="project_number_t" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500" title="HLS.PROJECT_NUMBER_FROM">
<a:mapping>
<a:map from="project_number" to="project_number_t"/>
</a:mapping>
</a:field>
<a:field name="contract_number_f" lovGridHeight="320" lovHeight="480"
lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500"
title="HLS.CONTRACT_NUMBER_FROM">
<a:field name="contract_number_f" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500" title="HLS.CONTRACT_NUMBER_FROM">
<a:mapping>
<a:map from="contract_number" to="contract_number_f"/>
</a:mapping>
</a:field>
<a:field name="contract_number_t" lovGridHeight="320" lovHeight="480"
lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500"
title="HLS.CONTRACT_NUMBER_FROM">
<a:field name="contract_number_t" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500" title="HLS.CONTRACT_NUMBER_FROM">
<a:mapping>
<a:map from="contract_number" to="contract_number_t"/>
</a:mapping>
</a:field>
<a:field name="received_flag" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
<a:field name="express_status_name" displayField="code_value_name"
options="acr515_express_status_ds" returnField="express_status" valueField="code_value"/>
<a:field name="billing_way"/>
<a:field name="billing_way_desc" displayField="code_value_name"
options="acr515_invoiceWay" returnField="billing_way"
valueField="code_value"/>
<a:field name="ele_invoice_status_desc" displayField="code_value_name"
options="ele_invoice_status_ds" returnField="ele_invoice_status"
valueField="code_value"/>
<a:field name="__async__" defaultValue="Y" prompt="异步导出"/>
<a:field name="express_status_name" displayField="code_value_name" options="acr515_express_status_ds" returnField="express_status" valueField="code_value"/>
</a:fields>
<a:events>
<a:event name="update" handler="onUpdate_acr515_invoiceVatParaDs"/>
</a:events>
</a:dataSet>
<a:dataSet id="acr515_invoiceVatDs" autoPageSize="true" maxPageSize="10000" model="acr.acr_invoice_hd_v"
queryDataSet="acr515_invoiceVatParaDs" selectable="true">
<a:dataSet id="acr515_invoiceVatDs" autoPageSize="true" maxPageSize="10000" model="acr.acr_invoice_hd_v" queryDataSet="acr515_invoiceVatParaDs" selectable="true">
<a:fields><![CDATA[
]]>
</a:fields>
]]></a:fields>
<a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_acr515_invoiceVatDs"/>
</a:events>
......@@ -698,93 +371,76 @@
<a:gridButton click="acr515_invoice_reset" text="HLS.RESET"/>
<a:gridButton click="acr515_invoice_post" text="开票"/>
<a:gridButton click="acr515_invoice_import" text="导入开票结果"/>
<a:gridButton click="acr515_invoice_post_interface" text="传入电子金税接口"/>
<a:gridButton click="acr515_invoice_download_interface" text="下载电子发票"/>
<!-- <a:gridButton click="acr515_vat_pause" text="暂挂"/>
<a:gridButton click="acr515_vat_cancel_pause" text="取消暂挂"/>
<a:gridButton click="acr515_vat_create" text="传入接口"/>
<a:gridButton click="acr515_vat_delete" text="删除接口"/>
<a:gridButton click="acr515_vat_receive" text="更新开票信息"/> -->
<!-- <a:gridButton click="acr_paperinv_post_interface" text="纸质发票开票接口"/>-->
<a:gridButton click="do_acr_paperinv_post_interface" text="纸质发票开票接口"/>
<a:gridButton click="details_export" text="导出"/>
<!-- <a:gridButton click="do_acr_redinvoice_interface" text="纸质发票开票接口"/>-->
</a:screenTopToolbar>
<a:form column="6" marginWidth="30" padding="0">
<a:textField name="document_number_f" bindTarget="acr515_invoiceVatParaDs"
prompt="单据号" width="135"/>
<a:textField name="document_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/>
<a:textField name="invoice_number_f" bindTarget="acr515_invoiceVatParaDs"
prompt="发票号" width="135"/>
<a:textField name="invoice_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/>
<a:lov name="contract_number_f" bindTarget="acr515_invoiceVatParaDs"
prompt="合同号" width="135"/>
<a:lov name="contract_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/>
<a:datePicker name="invoice_date_f" bindTarget="acr515_invoiceVatParaDs"
prompt="发票日期" width="135"/>
<a:datePicker name="invoice_date_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/>
<a:datePicker name="accounting_date_f" bindTarget="acr515_invoiceVatParaDs"
prompt="记账日期" width="135"/>
<a:datePicker name="accounting_date_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/>
<a:numberField name="total_amount_f" allowFormat="true" bindTarget="acr515_invoiceVatParaDs"
prompt="发票金额" width="135"/>
<a:numberField name="total_amount_t" allowFormat="true" bindTarget="acr515_invoiceVatParaDs"
prompt="TO" width="135"/>
<a:lov name="created_by_name" bindTarget="acr515_invoiceVatParaDs" width="135"/>
<a:textField name="invoice_title" bindTarget="acr515_invoiceVatParaDs" width="135"/>
<a:comboBox name="invoice_status_desc" bindTarget="acr515_invoiceVatParaDs" width="135"/>
<a:comboBox name="billing_way_desc" prompt="开票方式" bindTarget="acr515_invoiceVatParaDs" width="135"/>
<a:comboBox name="invoice_kind_desc" bindTarget="acr515_invoiceVatParaDs" width="135"/>
<a:comboBox name="vat_interface_status_desc" bindTarget="acr515_invoiceVatParaDs" prompt="金税状态"
width="135"/>
<a:textField name="bp_agent_name" bindTarget="acr515_invoiceVatParaDs" prompt="代理商" width="135"/>
<a:comboBox name="ele_invoice_status_desc" prompt="电子发票状态" bindTarget="acr515_invoiceVatParaDs" width="135"/>
<a:form column="1" marginWidth="30" padding="0">
<a:hBox labelSeparator=" " labelWidth="100">
<a:textField name="document_number_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.DOCUMENT_NUMBER_FROM" width="150"/>
<div><![CDATA[${l:HLS.DOCUMENT_NUMBER_TO}]]></div>
<a:textField name="document_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:lov name="project_number_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.PROJECT_NUMBER_FROM" width="150"/>
<div><![CDATA[${l:HLS.DOCUMENT_NUMBER_TO}]]></div>
<a:lov name="project_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:comboBox name="business_type_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:comboBox name="currency_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
</a:hBox>
<a:hBox labelSeparator=" " labelWidth="100">
<a:textField name="invoice_number_f" bindTarget="acr515_invoiceVatParaDs" prompt="ACR.INVOICE_NUMBER_FROM" width="150"/>
<div><![CDATA[${l:ACR.INVOICE_NUMBER_TO}]]></div>
<a:textField name="invoice_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:lov name="contract_number_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.CONTRACT_NUMBER_FROM" width="150"/>
<div></div>
<a:lov name="contract_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:comboBox name="invoice_kind_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:lov name="created_by_name" bindTarget="acr515_invoiceVatParaDs" width="150"/>
</a:hBox>
<a:hBox labelSeparator=" " labelWidth="100">
<a:datePicker name="invoice_date_f" bindTarget="acr515_invoiceVatParaDs" prompt="ACR.INVOICE_DATE_FROM" width="150"/>
<div><![CDATA[${l:ACR.INVOICE_DATE_TO}]]></div>
<a:datePicker name="invoice_date_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:lov name="invoice_bp_code_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.CUSTOMER_NUMBER_FROM" width="150"/>
<div><![CDATA[${l:HLS.CUSTOMER_NUMBER_TO}]]></div>
<a:lov name="invoice_bp_code_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:textField name="invoice_title" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:lov name="confirmed_by_name" bindTarget="acr515_invoiceVatParaDs" width="150"/>
</a:hBox>
<a:hBox labelSeparator=" " labelWidth="100">
<a:datePicker name="accounting_date_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.ACCOUNT_DATE_FROM" width="150"/>
<div><![CDATA[${l:HLS.ACCOUNT_DATE_TO}]]></div>
<a:datePicker name="accounting_date_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:numberField name="total_amount_f" allowFormat="true" bindTarget="acr515_invoiceVatParaDs" prompt="ACR.TOTAL_AMOUNT_FROM" width="150"/>
<div><![CDATA[${l:ACR.TOTAL_AMOUNT_TO}]]></div>
<a:numberField name="total_amount_t" allowFormat="true" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:comboBox name="invoice_status_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:comboBox name="vat_interface_status_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
</a:hBox>
</a:form>
<a:grid id="acr515_invoiceVatDs_grid" bindTarget="acr515_invoiceVatDs" marginHeight="300" marginWidth="30"
navBar="true">
<a:grid id="acr515_invoiceVatDs_grid" bindTarget="acr515_invoiceVatDs" marginWidth="80" navBar="true" height="300">
<a:columns>
<a:column name="contract_number" width="120"/>
<a:column name="document_number" lock="true" width="120"/>
<!-- <a:column name="business_type_desc" width="80"/>-->
<a:column name="bp_agent_name" prompt="代理商" width="100"/>
<a:column name="billing_way_desc" prompt="开票方式" width="100"/>
<a:column name="business_type_desc" width="80"/>
<a:column name="billing_way_desc" width="80" prompt="开票方式"/>
<a:column name="invoice_kind_desc" width="100"/>
<a:column name="invoice_number" width="120" prompt="发票号码"/>
<a:column name="vat_invoice_code" width="120" prompt="发票代码"/>
<a:column name="invoice_number" width="120"/>
<a:column name="invoice_date" renderer="Leaf.formatDate" width="100"/>
<a:column name="invoice_bp_code" width="100"/>
<a:column name="invoice_bp_name" autoAdjust="false" showTitle="true" width="150"/>
<a:column name="invoice_title" autoAdjust="false" footerRenderer="summaryRenderer" showTitle="true"
width="150"/>
<a:column name="total_amount" align="right" footerRenderer="summaryRenderer"
renderer="Leaf.formatMoney" width="100"/>
<a:column name="tax_amount" align="right" footerRenderer="summaryRenderer"
renderer="Leaf.formatMoney" width="100"/>
<a:column name="net_amount" align="right" footerRenderer="summaryRenderer"
renderer="Leaf.formatMoney" width="100"/>
<a:column name="invoice_title" autoAdjust="false" footerRenderer="summaryRenderer" showTitle="true" width="150"/>
<a:column name="total_amount" align="right" footerRenderer="summaryRenderer" renderer="Leaf.formatMoney" width="100"/>
<a:column name="tax_amount" align="right" footerRenderer="summaryRenderer" renderer="Leaf.formatMoney" width="100"/>
<a:column name="net_amount" align="right" footerRenderer="summaryRenderer" renderer="Leaf.formatMoney" width="100"/>
<a:column name="currency" width="80"/>
<a:column name="created_by_name" autoAdjust="false" showTitle="true" width="150"/>
<a:column name="confirmed_by_name" autoAdjust="false" showTitle="true" width="150"/>
<a:column name="invoice_status_desc" width="100"/>
<a:column name="vat_interface_status_desc" prompt="金税状态" width="100"/>
<a:column name="vat_interface_status_desc" width="100"/>
<a:column name="accounting_date" renderer="Leaf.formatDate" width="100"/>
<a:column name="create_je_flag" width="60"/>
<a:column name="bp_tax_registry_num" prompt="纳税人识别号"/>
<a:column name="ele_invoice_status_desc" prompt="电子发票状态"/>
<a:column name="swno" prompt="电子发票流水号" width="100"/>
<!-- <a:column name="yfpdm" prompt="发票代码" width="100"/>
<a:column name="yfphm" prompt="发票号码" width="100"/>-->
<a:column name="download" prompt="电子发票下载" renderer="downloadPdf" align="center"/>
<a:column name="tax_code" prompt="金税返回code"/>
<a:column name="tax_msg" prompt="金税返回massage" width="200"/>
<a:column name="error_code" prompt="电子发票返回错误code"/>
<a:column name="error_message" prompt="电子发票返回错误message" width="200"/>
<!-- <a:column name="create_je_flag" width="60"/> -->
</a:columns>
</a:grid>
</a:screenBody>
......
......@@ -5,7 +5,7 @@
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.aurora-framework.org/application" customizationEnabled="true">
<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="acr515_currency_list"/>
<a:model-query fetchAll="true" model="acr.ACR512.acr_invoice_business_type_list" rootPath="acr515_business_type_list"/>
......
......@@ -6,9 +6,9 @@
<a:link id="hls_acr_vat_import_shw_err_link" url="${/request/@context_path}/modules/acr/ACR515/hls_acr_vat_import_showerrors.lview"/>
<a:link id="acr515_check_import_link" model="acr.ACR515.check_vat_tmp" modelaction="execute"/>
<a:link id="acr515_confirm_import_link" model="acr.ACR515.hls_vat_confirm" modelaction="execute"/>
<script type="text/javascript"><![CDATA[
//$('submitbtn').disable();
<script><![CDATA[
//$('submitbtn').disable();
function importbtn() {
new Leaf.Window({
id: 'upload_window',
......@@ -18,44 +18,44 @@
height: 280
});
}
function checkbtn() {
Leaf.request({
url: $('acr515_check_import_link').getUrl(),
success: function(args) {
$('submitbtn_id').enable();
},
scopr: this
});
}
function submitbtn() {
var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
Leaf.request({
url: $('acr515_confirm_import_link').getUrl(),
success: function(args) {
Leaf.showMessage('提示信息', '操作成功', $('import_data_ds').query());
Leaf.Masker.unmask(detail_mask, '${l:HLS.EXECUTING}');
},
failure: function() {
Leaf.Masker.unmask(detail_mask, '${l:HLS.EXECUTING}');
},
error: function() {
Leaf.Masker.unmask(detail_mask, '${l:HLS.EXECUTING}');
}
});
}
function showerrorbtn() {
new Leaf.Window({
id: 'show_error_window',
url: $('hls_acr_vat_import_shw_err_link').getUrl(),
title: '错误数据',
width: 570,
height: 300
});
}
function checkbtn() {
Leaf.request({
url: $('acr515_check_import_link').getUrl(),
success: function(args) {
$('submitbtn_id').enable();
},
scopr: this
});
}
function submitbtn() {
var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
Leaf.request({
url: $('acr515_confirm_import_link').getUrl(),
success: function(args) {
Leaf.showMessage('提示信息', '操作成功', $('import_data_ds').query());
Leaf.Masker.unmask(detail_mask, '${l:HLS.EXECUTING}');
},
failure: function() {
Leaf.Masker.unmask(detail_mask, '${l:HLS.EXECUTING}');
},
error: function() {
Leaf.Masker.unmask(detail_mask, '${l:HLS.EXECUTING}');
}
});
}
function showerrorbtn() {
new Leaf.Window({
id: 'show_error_window',
url: $('hls_acr_vat_import_shw_err_link').getUrl(),
prompt: '错误数据',
width: 900,
height: 470
});
}
]]></script>
<a:dataSets>
<a:dataSet id="import_data_ds" autoQuery="true" fetchAll="true" model="acr.ACR515.hls_vat_import_tmp"/>
......@@ -67,17 +67,52 @@
<a:button id="submitbtn_id" click="submitbtn" text="确定"/>
<a:button click="showerrorbtn" text="显示错误信息"/>
</a:hBox>
<a:grid bindTarget="import_data_ds" height="300" width="600">
<a:grid bindTarget="import_data_ds" height="500" marginWidth="30">
<a:columns>
<a:column name="vat_doc_number" prompt="系统单据号" width="150"/>
<a:column name="segment1" prompt="作废标志" width="150"/>
<a:column name="segment2" prompt="发票种类" width="150"/>
<a:column name="vat_doc_number" prompt="单据号" width="150"/>
<a:column name="vat_code" prompt="发票代码" width="150"/>
<a:column name="vat_number" prompt="发票号码" width="150"/>
<a:column name="vat_date_str" prompt="发票日期" width="100"/>
<a:column name="segment3" prompt="客户编号" width="150"/>
<a:column name="segment4" prompt="客户名称" width="150"/>
<a:column name="segment5" prompt="客户税号" width="150"/>
<a:column name="segment6" prompt="客户地址电话" width="150"/>
<a:column name="segment7" prompt="客户银行及帐号" width="150"/>
<a:column name="vat_date_str" prompt="开票日期" width="150"/>
<a:column name="segment8" prompt="备注" width="150"/>
<a:column name="segment9" prompt="开票人" width="150"/>
<a:column name="segment10" prompt="收款人" width="150"/>
<a:column name="segment11" prompt="复核人" width="150"/>
<a:column name="segment12" prompt="销方银行及帐号" width="150"/>
<a:column name="segment13" prompt="销方地址电话" width="150"/>
<a:column name="segment14" prompt="商品编号" width="150"/>
<a:column name="segment15" prompt="商品名称" width="150"/>
<a:column name="segment16" prompt="规格型号" width="150"/>
<a:column name="segment17" prompt="计量单位" width="150"/>
<a:column name="segment18" prompt="数量" width="150"/>
<a:column name="segment19" prompt="金额(含税)" width="150"/>
<a:column name="segment20" prompt="税率" width="150"/>
<a:column name="segment21" prompt="税额" width="150"/>
<a:column name="segment22" prompt="收货人" width="150"/>
<a:column name="segment23" prompt="收货人纳税人识别号" width="150"/>
<a:column name="segment24" prompt="发货人" width="150"/>
<a:column name="segment25" prompt="发货人纳税人识别号" width="150"/>
<a:column name="segment26" prompt="起运地、经由、到达地" width="150"/>
<a:column name="segment27" prompt="车种车号" width="150"/>
<a:column name="segment28" prompt="车船吨位" width="150"/>
<a:column name="segment29" prompt="运输货物信息" width="150"/>
<a:column name="segment30" prompt="编码版本号" width="150"/>
<a:column name="segment31" prompt="税收分类编码" width="150"/>
<a:column name="segment32" prompt="是否享受优惠政策" width="150"/>
<a:column name="segment33" prompt="享受税收优惠政策内容" width="150"/>
<a:column name="segment34" prompt="零税率标识" width="150"/>
<a:column name="segment35" prompt="扣除额" width="150"/>
</a:columns>
</a:grid>
</a:screenBody>
<script type="text/javascript"><![CDATA[
$('submitbtn_id').disable();
<script><![CDATA[
$('submitbtn_id').disable();
]]></script>
</a:view>
</a:screen>
......@@ -5,11 +5,11 @@
<a:dataSet id="hls_vat_import_error_ds" autoQuery="true" model="acr.ACR515.hls_vat_import_logs"/>
</a:dataSets>
<a:screenBody>
<a:grid bindTarget="hls_vat_import_error_ds" height="270" width="554">
<a:grid bindTarget="hls_vat_import_error_ds" height="370" width="880">
<a:columns>
<a:column name="batch_line_id" prompt="序号" width="100"/>
<a:column name="vat_doc_number" prompt="单据号" width="150"/>
<a:column name="message" prompt="错误信息" width="300"/>
<a:column name="message" prompt="错误信息" width="630"/>
</a:columns>
</a:grid>
</a:screenBody>
......
......@@ -8,7 +8,7 @@
<a:view>
<a:link id="hls_acr_vat_import_link" url="${/request/@context_path}/modules/acr/ACR515/hls_acr_vat_import_data.lview"/>
<script type="text/javascript"><![CDATA[
window.location.href = $('hls_acr_vat_import_link').getUrl();
window.location.href = $('hls_acr_vat_import_link').getUrl();
]]></script>
</a:view>
</a:screen>
......@@ -7,11 +7,11 @@
if (document.getElementById('importFile').value) {
var fileName = document.getElementById('importFile').value;
var fileType = fileName.substr(fileName.lastIndexOf("."));
/*if (fileType != '.xls') {
if (fileType != '.xls') {
alert('请选择正确的导入文件!');
} else {*/
} else {
document.getElementById('importForm').submit();
/*}*/
}
}
}
]]></script>
......@@ -34,7 +34,9 @@
<a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/>
</a:fieldSet>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="导入文件" width="400">
<form name="upload" id="importForm" action="hls_acr_vat_import_trans_upload.lview?kind=${/parameter/@kind}" enctype="multipart/form-data" method="post">
<!-- modules/prj/PRJ501N/prj_lease_item_trans_upload.lview?session_id=${/parameter/@session_id}&amp;kind=${/parameter/@kind}&amp;parent_ds_id=${/parameter/@parent_ds_id}&amp;type=${/parameter/@type}&amp;_csrf=${/session/@_csrf.token}-->
<form name="upload" id="importForm" action="hls_acr_vat_import_trans_upload.lview?session_id=${/parameter/@session_id}&amp;kind=${/parameter/@kind}&amp;parent_ds_id=${/parameter/@parent_ds_id}&amp;type=${/parameter/@type}&amp;_csrf=${/session/@_csrf.token}" enctype="multipart/form-data" method="post">
<label style="margin-left:10px;margin-top:10px;"><![CDATA[请选择文件:]]></label>
<input name="CONTENT" id="importFile" style="margin-bottom:4px;width:160px;height:22px;" type="file"/>
<input onclick="saveClick()" style="margin-left:10px;margin-top:10px;width:60px;" type="button" value="导入"/>
......
......@@ -28,7 +28,10 @@
// }
// });
Leaf.onReady(function(){
var ds_id1 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_case_record');
console.log(ds_id1)
})
function open_detail_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
if (record.dirty || !record.data.contract_id) {
......@@ -37,6 +40,7 @@
}
var param = record.data;
var case_status_submit = '${/parameter/@case_status_submit}';
if (case_status_submit == 'APPROVED' || case_status_submit == 'APPROVING') {
param['function_code'] = 'CON1020_M_R';
param['maintain_type'] = 'QUERY';
......@@ -46,6 +50,13 @@
param['maintain_type'] = 'UPDATE';
param['function_usage'] = 'UPDATE';
}
//如果是工作流页面进入,设为只读
if ( '${/parameter/@function_usage}'=='QUERY'){
param['function_code'] = 'CON1020_M_R';
param['maintain_type'] = 'QUERY';
param['function_usage'] = 'QUERY';
}
param['penalty_reduce_id'] = record.data.penalty_reduce_id;
param['copy_contract_id'] = record.data.copy_contract_id;
param['contract_id'] = record.data.contract_id;
......@@ -99,6 +110,8 @@
//提交起案
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
getXml();
$('${/parameter/@layout_code}_user_button1').disable();
$('${/parameter/@layout_code}_user_button2').disable();
......@@ -115,17 +128,20 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return;
}
/*小额不用审批直接通过*/
//将小额审批改为工作工作流审批
//所有的单据都默认为小额审批
Leaf.request({
url: $('con_contract_penalty_reduction_link').getUrl(),
para: {
record_id: record_id
},
success: function (res) {
var v_status = res.result.v_status;
if (v_status == 1) {
// var v_status = res.result.v_status;
//if (v_status == 1) {
Leaf.showMessage('${l:PROMPT}', '提交成功');
}
else {
//}
/*else {
Leaf.request({
url: $('get_xml').getUrl(),
para: {
......@@ -143,7 +159,7 @@
},
scope: this
});
}
}*/
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure: function () {
......@@ -234,38 +250,48 @@
var ds_id1 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_case_record');
var record1 = $(ds_id1).getCurrentRecord();
var ds_id2 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_penalty_reduce');
var record2 = $(ds_id2).getSelected();
var record2 = $(ds_id2).getAll();
if (record2.length == 0) {
Leaf.showMessage('提示', '请选择一条数据!');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return;
}
var param_list = [];
var param = {};
for (var i = 0; i < record2.length; i++) {
//放在外面程序会报错,由于param是同一个对象,第二次penalty_reduce_id会将第一次的覆盖
var param = {};
param['record_id'] = record1.data.record_id;
param['penalty_reduce_id'] = record2[i].get('penalty_reduce_id');
param['_status'] = 'update';
param_list.push(param);
}
Leaf.request({
url: $('con_contract_penalty_cancle_link').getUrl(),
para: param_list,
success: function (res) {
Leaf.SideBar.show({
msg: '取消成功',
duration: 2000
});
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
$L.showConfirm('提示','确认取消该批次的修改信息?',function () {
Leaf.request({
url: $('con_contract_penalty_cancle_link').getUrl(),
para: param_list,
success: function (res) {
Leaf.SideBar.show({
msg: '取消成功',
duration: 2000
});
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
},function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
})
};
//保存submitsuccess调用
......
......@@ -15,6 +15,24 @@
<script type="text/javascript"><![CDATA[
jQuery.noConflict();
//取消按钮
/* window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_case_record');
var records=$(ds_id).getSelected();
//只有新建的单据才能够取消操作
if(records.length<1){
$L.showInfoMessage("提示",'至少选择一条记录为新建的记录!');
return ;
}
///
for (var i=0;i<records.length;i++){
}
}*/
function open_contract_win123() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_case_record');
var param = {};
......@@ -29,7 +47,7 @@
function open_contract_detail_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
if (record.data.status == 'APPROVED' || record.data.status == 'APPROVING') {
if (record.data.status == 'APPROVED' || record.data.status == 'APPROVING'||record.data.status == 'CANCEL') {
param['function_code'] = 'CON1020_C_R';
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'QUERY';
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: DJ
$Date: 2013-11-30 下午4:29:15
$Revision: 1.0
$Purpose:
$Author: DJ
$Date: 2013-11-30 下午4:29:15
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:init-procedure><![CDATA[
......@@ -11,14 +11,14 @@
<a:view>
<script src="${/request/@context_path}/modules/hls/javascripts/hls.js" type="text/javascript"/>
<script type="text/javascript"><![CDATA[
if(!window.f_hls)
{
var f_hls = new HLS({
context_path : '${/request/@context_path}'
});
}
function hlsCommon_validateCode(record,name,value)
{
if(f_hls.validateCode(value))
......@@ -30,7 +30,7 @@
return '代码只能包含字母、数字和下划线!';
}
}
]]></script>
</a:view>
</a:screen>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment