Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
d333231c
Commit
d333231c
authored
Oct 31, 2019
by
stone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【feat】 完成金税接口导入导出功能
parent
9b8fcc77
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
609 additions
and
866 deletions
+609
-866
ACR_INVOICE_BATCH_LN.sql
src/main/database/Table/ACR_INVOICE_BATCH_LN.sql
+126
-30
ACR_INVOICE_HD.sql
src/main/database/Table/Alter/ACR_INVOICE_HD.sql
+14
-1
acr_invoice_create.lwm
.../webapp/WEB-INF/classes/acr/ACR510/acr_invoice_create.lwm
+4
-4
acr_invoice_contract_list.lwm
.../WEB-INF/classes/acr/ACR512/acr_invoice_contract_list.lwm
+7
-4
acr_invoice_interface_ln.lwm
...p/WEB-INF/classes/acr/ACR515/acr_invoice_interface_ln.lwm
+36
-11
check_vat_tmp.lwm
src/main/webapp/WEB-INF/classes/acr/ACR515/check_vat_tmp.lwm
+1
-0
delete_vat_tmp.lwm
...main/webapp/WEB-INF/classes/acr/ACR515/delete_vat_tmp.lwm
+1
-1
hls_vat_confirm.lwm
...ain/webapp/WEB-INF/classes/acr/ACR515/hls_vat_confirm.lwm
+1
-0
hls_vat_import_tmp.lwm
.../webapp/WEB-INF/classes/acr/ACR515/hls_vat_import_tmp.lwm
+22
-7
insert_vat_tmp.lwm
...main/webapp/WEB-INF/classes/acr/ACR515/insert_vat_tmp.lwm
+3
-1
acr_invoice_hd_v.lwm
src/main/webapp/WEB-INF/classes/acr/acr_invoice_hd_v.lwm
+109
-242
acr_invoice_interface_excel_sheets.lsc
...modules/acr/ACR515/acr_invoice_interface_excel_sheets.lsc
+48
-21
acr_invoice_vat.lview
src/main/webapp/modules/acr/ACR515/acr_invoice_vat.lview
+139
-483
acr_invoice_vat.screen
src/main/webapp/modules/acr/ACR515/acr_invoice_vat.screen
+1
-1
hls_acr_vat_import_data.lview
...n/webapp/modules/acr/ACR515/hls_acr_vat_import_data.lview
+81
-46
hls_acr_vat_import_showerrors.lview
...pp/modules/acr/ACR515/hls_acr_vat_import_showerrors.lview
+2
-2
hls_acr_vat_import_trans_upload.lview
.../modules/acr/ACR515/hls_acr_vat_import_trans_upload.lview
+1
-1
hls_acr_vat_import_upload.lview
...webapp/modules/acr/ACR515/hls_acr_vat_import_upload.lview
+6
-4
hls_common_javascript.lview
src/main/webapp/modules/hls/hls_common_javascript.lview
+7
-7
No files found.
src/main/database/Table/ACR_INVOICE_BATCH_LN.sql
View file @
d333231c
WHENEVER
SQLERROR
EXIT
FAILURE
ROLLBACK
;
WHENEVER
OSERROR
EXIT
FAILURE
ROLLBACK
;
-- 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
)
);
spool
ACP_INVOICE_LN
.
log
PROMPT
PROMPT
CREATING
TABLE
TRAIN_CONFIG
PROMPT
============================
PROMPT
WHENEVER
SQLERROR
CONTINUE
DROP
TABLE
ACP_INVOICE_LN
;
WHENEVER
SQLERROR
EXIT
FAILURE
ROLLBACK
alter
table
acp_invoice_ln
add
(
CONTRACT_NAME
varchar2
(
200
));
comment
on
column
acp_invoice_ln
.
CONTRACT_NAME
is
'合同名称'
;
alter
table
acp_invoice_ln
add
(
BP_NAME
varchar2
(
200
));
comment
on
column
acp_invoice_ln
.
BP_NAME
is
'客户名称'
;
alter
table
acp_invoice_ln
add
(
CONTRACT_STATUS
varchar2
(
30
));
comment
on
column
acp_invoice_ln
.
CONTRACT_STATUS
is
'合同状态'
;
alter
table
acp_invoice_ln
add
(
CONFIRMATION_STATUS
varchar2
(
30
));
comment
on
column
acp_invoice_ln
.
CONFIRMATION_STATUS
is
'确认状态'
;
SPOOL
OFF
EXIT
\ No newline at end of file
-- 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
src/main/database/Table/Alter/ACR_INVOICE_HD.sql
View file @
d333231c
...
...
@@ -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
src/main/webapp/WEB-INF/classes/acr/ACR510/acr_invoice_create.lwm
View file @
d333231c
<?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>
...
...
src/main/webapp/WEB-INF/classes/acr/ACR512/acr_invoice_contract_list.lwm
View file @
d333231c
<?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='NORMAL'"
/>
</bm:data-filters>
</bm:model>
src/main/webapp/WEB-INF/classes/acr/ACR515/acr_invoice_interface_ln.lwm
View file @
d333231c
...
...
@@ -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>
src/main/webapp/WEB-INF/classes/acr/ACR515/check_vat_tmp.lwm
View file @
d333231c
...
...
@@ -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},
...
...
src/main/webapp/WEB-INF/classes/acr/ACR515/delete_vat_tmp.lwm
View file @
d333231c
...
...
@@ -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>
...
...
src/main/webapp/WEB-INF/classes/acr/ACR515/hls_vat_confirm.lwm
View file @
d333231c
...
...
@@ -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},
...
...
src/main/webapp/WEB-INF/classes/acr/ACR515/hls_vat_import_tmp.lwm
View file @
d333231c
...
...
@@ -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"
data
baseType=
"VARCHAR2"
data
type=
"java.lang.String"
physicalName=
"SEGMENT3"
prompt=
"HLS_VAT_IMPORT_TMP.SEGMENT3"
/>
<bm:field
name=
"segment4"
data
baseType=
"VARCHAR2"
data
type=
"java.lang.String"
physicalName=
"SEGMENT4"
prompt=
"HLS_VAT_IMPORT_TMP.SEGMENT4"
/>
<bm:field
name=
"segment5"
data
baseType=
"VARCHAR2"
data
type=
"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>
...
...
src/main/webapp/WEB-INF/classes/acr/ACR515/insert_vat_tmp.lwm
View file @
d333231c
<?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});
...
...
src/main/webapp/WEB-INF/classes/acr/acr_invoice_hd_v.lwm
View file @
d333231c
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/acr/ACR515/acr_invoice_interface_excel_sheets.lsc
View file @
d333231c
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/acr/ACR515/acr_invoice_vat.lview
View file @
d333231c
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/acr/ACR515/acr_invoice_vat.screen
View file @
d333231c
...
...
@@ -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"
/>
...
...
src/main/webapp/modules/acr/ACR515/hls_acr_vat_import_data.lview
View file @
d333231c
...
...
@@ -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: 57
0,
height: 30
0
});
}
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: 90
0,
height: 47
0
});
}
]]>
</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=
"60
0"
>
<a:grid
bindTarget=
"import_data_ds"
height=
"
500"
marginWidth=
"3
0"
>
<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>
src/main/webapp/modules/acr/ACR515/hls_acr_vat_import_showerrors.lview
View file @
d333231c
...
...
@@ -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=
"
30
0"
/>
<a:column
name=
"message"
prompt=
"错误信息"
width=
"
63
0"
/>
</a:columns>
</a:grid>
</a:screenBody>
...
...
src/main/webapp/modules/acr/ACR515/hls_acr_vat_import_trans_upload.lview
View file @
d333231c
...
...
@@ -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>
src/main/webapp/modules/acr/ACR515/hls_acr_vat_import_upload.lview
View file @
d333231c
...
...
@@ -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}&kind=${/parameter/@kind}&parent_ds_id=${/parameter/@parent_ds_id}&type=${/parameter/@type}&_csrf=${/session/@_csrf.token}-->
<form
name=
"upload"
id=
"importForm"
action=
"hls_acr_vat_import_trans_upload.lview?session_id=${/parameter/@session_id}&kind=${/parameter/@kind}&parent_ds_id=${/parameter/@parent_ds_id}&type=${/parameter/@type}&_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=
"导入"
/>
...
...
src/main/webapp/modules/hls/hls_common_javascript.lview
View file @
d333231c
<?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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment