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
96bdbe5a
Commit
96bdbe5a
authored
Oct 31, 2023
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进项修改
parent
b6daa11b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
37 deletions
+26
-37
acp_import_contract_lov.lwm
...pp/WEB-INF/classes/acp/ACP522/acp_import_contract_lov.lwm
+21
-34
ap_invoice_import_scanning.lview
...ebapp/modules/acp/ACP522/ap_invoice_import_scanning.lview
+5
-3
No files found.
src/main/webapp/WEB-INF/classes/acp/ACP522/acp_import_contract_lov.lwm
View file @
96bdbe5a
...
...
@@ -14,7 +14,7 @@
from (select c.contract_id,
c.contract_number,
c.contract_name,
c.
business_type,
decode(c.business_type,'LEASE','直租')
business_type,
c.search_term_1,
(SELECT description
FROM HLS_BUSINESS_TYPE_V a
...
...
@@ -45,43 +45,30 @@
union
select c.contract_id,
c.contract_number,
c.
contract_name,
c.
business_type,
' '
contract_name,
decode(c.business_type, 'OTHERS', '经营性租赁')
business_type,
c.search_term_1,
(SELECT description
FROM HLS_BUSINESS_TYPE_V a
WHERE a.business_type = c.business_type) business_type_n,
(select pp.project_number
from PRJ_PROJECT pp, prj_project_lease_item t2
where t2.source_project_id = pp.project_id
and c.project_id = t2.project_id) project_number,
c.contract_number project_number,
(select bp.bp_name
from hls_bp_master bp
where bp.bp_id =
(SELECT pp.bp_id_tenant
FROM PRJ_PROJECT pp,
prj_project_lease_item t2
where bp.bp_id = (SELECT pp.bp_id_tenant
FROM PRJ_PROJECT pp, prj_project_lease_item t2
WHERE t2.source_project_id = pp.project_id
and c.project_id = t2.project_id)) bp_id_tenant_n
from con_contract c,
con_contract_lease_item ci,
prj_project_lease_item pi,
prj_project pp
where c.contract_id = ci.contract_id
and ci.project_lease_item_id = pi.project_lease_item_id
and pi.source_project_id = pp.project_id
from con_contract c, con_contract_cashflow ccc, prj_project pp
where pp.project_id = c.project_id
and c.contract_id = ccc.contract_id
and c.data_class = 'NORMAL'
and c.contract_id =
con_contract_pkg.get_first_contract_id(pp.project_id)
and c.contract_status IN
('REPURING', 'ETING', 'INCEPT', 'PENDING')
and c.business_type = 'LEASEOPERAT'
and c.business_type = 'OTHERS'
and pp.purchase_type = 'RENTING'
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
and an.confirmation_status in ('APPROVING', 'APPROVED'))) V
#WHERE_CLAUSE#
]]>
</bm:query-sql>
...
...
@@ -89,13 +76,13 @@
</bm:operations>
<bm:fields>
<bm:field
name=
"project_number"
forDisplay=
"true"
forQuery=
"true"
prompt=
"采购单编号"
/
>
<bm:field
name=
"contract_number"
forDisplay=
"true"
forQuery=
"true"
prompt=
"
ACR310.CONTRACT_NUMBER
"
/>
<!-- <bm:field name="project_number" forDisplay="true" forQuery="true" prompt="采购单编号"/>--
>
<bm:field
name=
"contract_number"
forDisplay=
"true"
forQuery=
"true"
prompt=
"
合同编号/采购单编号
"
/>
<bm:field
name=
"contract_name"
forDisplay=
"true"
forQuery=
"true"
prompt=
"ACR310.CONTRACT_NAME"
/>
<bm:field
name=
"contract_id"
/>
<bm:field
name=
"bp_id_tenant_n"
forDisplay=
"true"
forQuery=
"true"
prompt=
"厂商"
/
>
<bm:field
name=
"search_term_1"
forDisplay=
"true"
forQuery=
"true"
prompt=
"厂商合同编号"
/
>
<bm:field
name=
"business_type
_n
"
forDisplay=
"true"
forQuery=
"true"
prompt=
"业务类型"
/>
<!-- <bm:field name="bp_id_tenant_n" forDisplay="true" forQuery="true" prompt="厂商"/>--
>
<!-- <bm:field name="search_term_1" forDisplay="true" forQuery="true" prompt="厂商合同编号"/>--
>
<bm:field
name=
"business_type"
forDisplay=
"true"
forQuery=
"true"
prompt=
"业务类型"
/>
<!-- <bm:field name="business_type" forDisplay="true" forQuery="true" prompt="业务类型"/>-->
</bm:fields>
...
...
@@ -105,12 +92,12 @@
<!-- <bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="contract_id" />-->
<!-- </bm:fields>-->
<bm:query-fields>
<bm:query-field
field=
"project_number"
queryOperator=
"like"
/
>
<!-- <bm:query-field field="project_number" queryOperator="like"/>--
>
<bm:query-field
field=
"contract_number"
queryOperator=
"like"
/>
<bm:query-field
field=
"contract_name"
queryOperator=
"like"
/>
<bm:query-field
field=
"bp_id_tenant_n"
queryOperator=
"like"
/
>
<bm:query-field
field=
"search_term_1"
queryOperator=
"like"
/
>
<bm:query-field
field=
"business_type
_n
"
queryOperator=
"like"
/>
<!-- <bm:query-field field="bp_id_tenant_n" queryOperator="like"/>--
>
<!-- <bm:query-field field="search_term_1" queryOperator="like"/>--
>
<bm:query-field
field=
"business_type"
queryOperator=
"like"
/>
<!-- <bm:query-field field="business_type" queryOperator="like"/>-->
...
...
src/main/webapp/modules/acp/ACP522/ap_invoice_import_scanning.lview
View file @
96bdbe5a
...
...
@@ -64,7 +64,9 @@
}
function acp522_save() {
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
if(record.get('business_type_n')=='经营性租赁'){
debugger;
console.log(record.get('business_type'));
if(record.get('business_type')=='经营性租赁'){
if($('acp522_acp_invoice_import_detail_ds').validate()){
$('ap_invoice_import_scanning').close();
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
...
...
@@ -106,14 +108,14 @@
<a:dataSets>
<a:dataSet
id=
"acp522_acp_invoice_import_detail_ds"
autoCreate=
"true"
>
<a:fields>
<a:field
name=
"contract_number"
prompt=
"合同编号"
required=
"true"
lovGridHeight=
"350"
lovHeight=
"5
80"
lovWidth=
"99
0"
lovLabelWidth=
"200"
<a:field
name=
"contract_number"
prompt=
"合同编号"
required=
"true"
lovGridHeight=
"350"
lovHeight=
"5
50"
lovWidth=
"55
0"
lovLabelWidth=
"200"
lovService=
"acp.ACP522.acp_import_contract_lov"
title=
"SELECT_CONTRACT"
autoComplete=
"true"
>
<a:mapping>
<a:map
from=
"contract_number"
to=
"contract_number"
/>
<a:map
from=
"contract_name"
to=
"contract_name"
/>
<a:map
from=
"contract_id"
to=
"contract_id"
/>
<a:map
from=
"business_type
_n"
to=
"business_type_n
"
/>
<a:map
from=
"business_type
"
to=
"business_type
"
/>
</a:mapping>
</a:field>
</a:fields>
...
...
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