1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2013-9-18 下午01:18:03
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select bp.project_id,
bp.bp_id,
bp.bp_name,
(select t.description
from hls_bp_type t
where t.bp_type = bp.bp_type) bp_type,
to_char(round((nanshan_score_pkg.get_specified_item('NS_NORMAL',
'B179',
bp.bp_id,
1) -
nanshan_score_pkg.get_specified_item('NS_NORMAL',
'B180',
bp.bp_id,
1) -
nanshan_score_pkg.get_specified_item('NS_NORMAL',
'B189',
bp.bp_id,
1) -
nanshan_score_pkg.get_specified_item('NS_NORMAL',
'B190',
bp.bp_id,
1) -
nanshan_score_pkg.get_specified_item('NS_NORMAL',
'B191',
bp.bp_id,
1)),
4)/power(10,9), 'fm9999999990.9999')||'亿' net_capital
from prj_project_bp bp
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID"/>
<bm:field name="bp_type" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="BP_TYPE" prompt="HLS.BP_TYPE"/>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="BP_NAME" prompt="HLS.BP_NAME"/>
<bm:field name="net_capital" forInsert="true"/>
</bm:fields>
<bm:query-fields>
<bm:query-field field="bp_type" queryOperator="like"/>
<bm:query-field field="bp_name" queryOperator="like"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filter enforceOperations="query" expression="bp.project_id=${@project_id}"/>
</bm:data-filters>
</bm:model>