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
105e5e79
Commit
105e5e79
authored
Oct 10, 2023
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进项导入(经租)
parent
b7aeb65f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
343 additions
and
23 deletions
+343
-23
acp_import_contract_lov.lwm
...pp/WEB-INF/classes/acp/ACP522/acp_import_contract_lov.lwm
+22
-6
ap_invoice_import_g_jz_queryfields.js
...script/layoutconfig/ap_invoice_import_g_jz_queryfields.js
+4
-0
ap_invoice_import_scanning.lview
...ebapp/modules/acp/ACP522/ap_invoice_import_scanning.lview
+37
-17
jz_invoice_import_detail.lview
.../webapp/modules/acp/ACP522/jz_invoice_import_detail.lview
+280
-0
No files found.
src/main/webapp/WEB-INF/classes/acp/ACP522/acp_import_contract_lov.lwm
View file @
105e5e79
...
@@ -10,14 +10,24 @@
...
@@ -10,14 +10,24 @@
<bm:operation
name=
"query"
>
<bm:operation
name=
"query"
>
<bm:query-sql>
<bm:query-sql>
<![CDATA[
<![CDATA[
select *
select *
from (select c.contract_id, c.contract_number, c.contract_name
from (select c.contract_id,
c.contract_number,
c.contract_name,
c.business_type,
(SELECT description
FROM HLS_BUSINESS_TYPE_V a
WHERE a.business_type = c.business_type) business_type_n
from con_contract c
from con_contract c
where c.data_class = 'NORMAL'
where c.data_class = 'NORMAL'
and c.contract_status IN ('REPURING','ETING','INCEPT','PENDING')
and c.contract_status IN
and c.business_type <>
'LEASEBACK'
('REPURING', 'ETING', 'INCEPT', 'PENDING')
and not exists (select 1 from acp_invoice_ln an where an.contract_id=c.contract_id and an.confirmation_status in('APPROVING','APPROVED'))
and c.business_type <>
'LEASEBACK'
) V
and not exists
(select 1
from acp_invoice_ln an
where an.contract_id = c.contract_id
and an.confirmation_status in ('APPROVING', 'APPROVED'))) V
#WHERE_CLAUSE#
#WHERE_CLAUSE#
]]>
</bm:query-sql>
]]>
</bm:query-sql>
</bm:operation>
</bm:operation>
...
@@ -27,6 +37,9 @@
...
@@ -27,6 +37,9 @@
<bm:field
name=
"contract_number"
forDisplay=
"true"
forQuery=
"true"
prompt=
"ACR310.CONTRACT_NUMBER"
/>
<bm:field
name=
"contract_number"
forDisplay=
"true"
forQuery=
"true"
prompt=
"ACR310.CONTRACT_NUMBER"
/>
<bm:field
name=
"contract_name"
forDisplay=
"true"
forQuery=
"true"
prompt=
"ACR310.CONTRACT_NAME"
/>
<bm:field
name=
"contract_name"
forDisplay=
"true"
forQuery=
"true"
prompt=
"ACR310.CONTRACT_NAME"
/>
<bm:field
name=
"contract_id"
/>
<bm:field
name=
"contract_id"
/>
<bm:field
name=
"business_type_n"
forDisplay=
"true"
forQuery=
"true"
prompt=
"业务类型"
/>
<bm:field
name=
"business_type"
forDisplay=
"true"
forQuery=
"true"
prompt=
"业务类型"
/>
</bm:fields>
</bm:fields>
<!-- <bm:fields>-->
<!-- <bm:fields>-->
<!-- <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="contract_number" prompt="ACR310.CONTRACT_NUMBER"/>-->
<!-- <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="contract_number" prompt="ACR310.CONTRACT_NUMBER"/>-->
...
@@ -36,5 +49,8 @@
...
@@ -36,5 +49,8 @@
<bm:query-fields>
<bm:query-fields>
<bm:query-field
field=
"contract_number"
queryOperator=
"like"
/>
<bm:query-field
field=
"contract_number"
queryOperator=
"like"
/>
<bm:query-field
field=
"contract_name"
queryOperator=
"like"
/>
<bm:query-field
field=
"contract_name"
queryOperator=
"like"
/>
<bm:query-field
field=
"business_type_n"
queryOperator=
"like"
/>
<bm:query-field
field=
"business_type"
queryOperator=
"like"
/>
</bm:query-fields>
</bm:query-fields>
</bm:model>
</bm:model>
src/main/webapp/WEB-INF/server-script/layoutconfig/ap_invoice_import_g_jz_queryfields.js
0 → 100644
View file @
105e5e79
var
override_queryfields
=
[
];
override
();
src/main/webapp/modules/acp/ACP522/ap_invoice_import_scanning.lview
View file @
105e5e79
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
<a:link
id=
"con_contract_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"con_contract_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"ap_invoice_import_detail_link1"
<a:link
id=
"ap_invoice_import_detail_link1"
url=
"${/request/@context_path}/modules/acp/ACP522/ap_invoice_import_detail.lview"
/>
url=
"${/request/@context_path}/modules/acp/ACP522/ap_invoice_import_detail.lview"
/>
<a:link
id=
"jz_invoice_import_detail_link1"
url=
"${/request/@context_path}/modules/acp/ACP522/jz_invoice_import_detail.lview"
/>
<script>
<![CDATA[
<script>
<![CDATA[
function invoice_inf_process(dataset, record, name, value, oldvalue) {
function invoice_inf_process(dataset, record, name, value, oldvalue) {
...
@@ -60,24 +62,41 @@
...
@@ -60,24 +62,41 @@
}
}
}
}
}
}
function acp522_save() {
function acp522_save() {
if($('acp522_acp_invoice_import_detail_ds').validate()){
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
$('ap_invoice_import_scanning').close();
if(record.get('business_type')=='LEASE'){
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
if($('acp522_acp_invoice_import_detail_ds').validate()){
var record_id=record.id;
$('ap_invoice_import_scanning').close();
var ds_id=record.ds.id
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
// var record = $(ds_id).findById(record_id);
var record_id=record.id;
var param = record.data;
var ds_id=record.ds.id;
param['function_usage'] = 'MODIFY';
console.log(record.get('business_type'));
param['function_code'] = 'ACP522I';
var param = record.data;
param['contract_id'] = record.get('contract_id');
param['function_usage'] = 'MODIFY';
param['url_title'] = '进项发票详情';
param['function_code'] = 'ACP522I';
param['winId'] = 'aaaaa';
param['contract_id'] = record.get('contract_id');
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, 'ap_invoice_import_detail_link1', ds_id);
//param['business_type'] = record.get('business_type');
param['url_title'] = '进项发票详情';
param['winId'] = 'aaaaa';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, 'ap_invoice_import_detail_link1', ds_id);
}
}else{
if($('acp522_acp_invoice_import_detail_ds').validate()){
$('ap_invoice_import_scanning').close();
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
var record_id=record.id;
var ds_id=record.ds.id;
var param = record.data;
param['function_usage'] = 'MODIFY';
param['function_code'] = 'ACP522J';
param['contract_id'] = record.get('contract_id');
//param['business_type'] = record.get('business_type');
param['url_title'] = '进项发票详情(经租)';
param['winId'] = 'bbbbb';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, 'jz_invoice_import_detail_link1', ds_id);
}
}
}
}
}
function acp522_back() {
function acp522_back() {
$('ap_invoice_import_scanning').close();
$('ap_invoice_import_scanning').close();
}
}
...
@@ -94,6 +113,7 @@
...
@@ -94,6 +113,7 @@
<a:map
from=
"contract_number"
to=
"contract_number"
/>
<a:map
from=
"contract_number"
to=
"contract_number"
/>
<a:map
from=
"contract_name"
to=
"contract_name"
/>
<a:map
from=
"contract_name"
to=
"contract_name"
/>
<a:map
from=
"contract_id"
to=
"contract_id"
/>
<a:map
from=
"contract_id"
to=
"contract_id"
/>
<a:map
from=
"business_type"
to=
"business_type"
/>
</a:mapping>
</a:mapping>
</a:field>
</a:field>
</a:fields>
</a:fields>
...
...
src/main/webapp/modules/acp/ACP522/jz_invoice_import_detail.lview
0 → 100644
View file @
105e5e79
This diff is collapsed.
Click to expand it.
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