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
a2d1fce7
Commit
a2d1fce7
authored
Dec 29, 2019
by
stone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【feat】报价增加历史合同信息的字段
parent
37ac32ec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
17 deletions
+32
-17
prj_project_history_display.lwm
...B-INF/classes/prj/PRJ501N/prj_project_history_display.lwm
+5
-17
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+8
-0
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+6
-0
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+13
-0
No files found.
src/main/webapp/WEB-INF/classes/prj/PRJ501N/prj_project_history_display.lwm
View file @
a2d1fce7
...
@@ -5,26 +5,14 @@
...
@@ -5,26 +5,14 @@
$Revision: 1.0
$Revision: 1.0
$Purpose:
$Purpose:
-->
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
<bm:query-sql>
<![CDATA[
select tt.* from ( SELECT t1.project_number,
select * from(
t1.contract_number,
select *
t1.bp_code,
FROM con_contract_history_lv t1
t1.bp_name,
WHERE t1.bp_id = ${@bp_id} )tt
t1.overdue_max_days,
t1.overdue_max_amount,
t1.bp_type,
t1.bp_class,
t1.bp_id,
t1.description,
t1.project_id,
t1.contract_id,
t1.bp_category
FROM prj_project_history_lv t1
WHERE t1.bp_id = ${@bp_id}
and t1.project_id <>
${@project_id}) tt
#WHERE_CLAUSE#
#WHERE_CLAUSE#
]]>
</bm:query-sql>
]]>
</bm:query-sql>
</bm:operation>
</bm:operation>
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
a2d1fce7
...
@@ -476,6 +476,7 @@
...
@@ -476,6 +476,7 @@
//更新时调用
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');;
//选择承租人带出开票信息
//选择承租人带出开票信息
if(prj_project_ds_id==ds.id
&&
prj_project_ds_id){
if(prj_project_ds_id==ds.id
&&
prj_project_ds_id){
if(name=="bp_id_tenant"
&&
value){
if(name=="bp_id_tenant"
&&
value){
...
@@ -510,7 +511,14 @@
...
@@ -510,7 +511,14 @@
},
},
scope: this
scope: this
});
});
//根据承租人查找该承租人的历史合同信息
$(prj_project_history_ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query');
$(prj_project_history_ds_id).setQueryParameter("bp_id",value);
$(prj_project_history_ds_id).query();
}
}
}
}
if(name=='pay_method'){
if(name=='pay_method'){
if ( record.get('pay_method') == 'WIRE_TRANSFER') {
if ( record.get('pay_method') == 'WIRE_TRANSFER') {
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
a2d1fce7
...
@@ -489,6 +489,8 @@ function prj501n_contract_number_renderer(id, name, query_only){
...
@@ -489,6 +489,8 @@ function prj501n_contract_number_renderer(id, name, query_only){
//更新时调用
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
//选择承租人带出开票信息
//选择承租人带出开票信息
if(prj_project_ds_id==ds.id
&&
prj_project_ds_id){
if(prj_project_ds_id==ds.id
&&
prj_project_ds_id){
if(name=="bp_id_tenant"
&&
value){
if(name=="bp_id_tenant"
&&
value){
...
@@ -523,6 +525,10 @@ function prj501n_contract_number_renderer(id, name, query_only){
...
@@ -523,6 +525,10 @@ function prj501n_contract_number_renderer(id, name, query_only){
},
},
scope: this
scope: this
});
});
//根据承租人查找该承租人的历史合同信息
$(prj_project_history_ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query');
$(prj_project_history_ds_id).setQueryParameter("bp_id",value);
$(prj_project_history_ds_id).query();
}
}
}
}
if(name=='pay_method'){
if(name=='pay_method'){
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
View file @
a2d1fce7
...
@@ -599,6 +599,19 @@ function prj501n_contract_number_renderer(id, name, query_only){
...
@@ -599,6 +599,19 @@ function prj501n_contract_number_renderer(id, name, query_only){
//更新时调用
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function(ds,
record,
name,
value,
old_value,
bp_seq)
{
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function(ds,
record,
name,
value,
old_value,
bp_seq)
{
//选择承租人带出开票信息
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
prj_project_history_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_HISTORY_INGO',
'hls_bp_master');;
if(
prj_project_ds_id=
=ds.id
&&prj_project_ds_id){
if(
name=
="bp_id_tenant"
&&
value){
//根据承租人查找该承租人的历史合同信息
$(prj_project_history_ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query');
$(prj_project_history_ds_id).setQueryParameter("bp_id",value);
$(prj_project_history_ds_id).query();
}
}
if(
name=
='pay_method'){
if(
name=
='pay_method'){
if
(
record.get('pay_method')
==
'WIRE_TRANSFER')
{
if
(
record.get('pay_method')
==
'WIRE_TRANSFER')
{
record.set('bank_account_id',null);
record.set('bank_account_id',null);
...
...
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