Commit 814b4b50 authored by Spencer Chang's avatar Spencer Chang

Merge branch 'feature/con_change_feature_v6' into develop

parents 7d5aa7d6 db3a5adb
create or replace function F_DAYS2STR(P_DAYS in number default 0)
return varchar2 is
--将天数转换成天时分秒格式
V_DAYS number := NVL(P_DAYS, 0);
V_D number; --天
V_H number; --小时
V_M number; --分
V_S number; --秒
result varchar2(200);
begin
V_D := TRUNC(V_DAYS);
V_H := TRUNC((V_DAYS - V_D) * 24);
V_M := TRUNC((V_DAYS - V_D - V_H / 24) * 24 * 60);
V_S := TRUNC((V_DAYS - V_D - V_H / 24 - V_M / 24 / 60) * 24 * 60 * 60);
select DECODE(V_D, 0, '', V_D || '天') || DECODE(V_H, 0, '', V_H || '小时') ||
DECODE(V_M, 0, '', V_M || '分') || DECODE(V_S, 0, '', V_S || '秒')
into result
from DUAL;
return(result);
end;
/
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool REGISTER_ZJWFL5110.log
set feedback off
set define off
begin
sys_function_assign_pkg.func_bm_load('ZJWFL5110','zjwfl.ZJWFL5110.cus_zj_wfl_instance_node_recipient');
end;
/
commit;
set feedback on
set define on
spool off
exit
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="ZJ_WFL_INSTANCE_NODE_RECIPIENT">
<bm:fields>
<bm:field name="instance_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INSTANCE_ID" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.INSTANCE_ID"/>
<bm:field name="approve_count" databaseType="NUMBER" datatype="java.lang.Long" physicalName="APPROVE_COUNT" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.APPROVE_COUNT"/>
<bm:field name="node_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="NODE_ID" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.NODE_ID"/>
<bm:field name="submitted_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SUBMITTED_BY" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.NODE_ID"/>
<bm:field name="submitted_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SUBMITTED_BY_NAME"/>
<bm:field name="seq_number" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SEQ_NUMBER" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.SEQ_NUMBER"/>
<bm:field name="user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="USER_ID" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.USER_ID"/>
<bm:field name="date_limit" databaseType="DATE" datatype="java.util.Date" physicalName="DATE_LIMIT" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.DATE_LIMIT"/>
<bm:field name="record_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RECORD_ID" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.RECORD_ID"/>
<bm:field name="commision_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMMISION_BY" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.COMMISION_BY"/>
<bm:field name="commision_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMMISION_DESC" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.COMMISION_DESC"/>
<bm:field name="last_notify_date" databaseType="DATE" datatype="java.util.Date" physicalName="LAST_NOTIFY_DATE" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.LAST_NOTIFY_DATE"/>
<bm:field name="hierarchy_record_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="HIERARCHY_RECORD_ID" prompt="ZJ_WFL_INSTANCE_NODE_RECIPIENT.HIERARCHY_RECORD_ID"/>
<bm:field name="workflow_id" databaseType="NUMBER" datatype="java.lang.Long" forInsert="false" forUpdate="false"/>
<bm:field name="workflow_code" databaseType="VARCHAR2" datatype="java.lang.String" forInsert="false" forUpdate="false"/>
<bm:field name="document_info" databaseType="VARCHAR2" datatype="java.lang.String" forInsert="false" forUpdate="false"/>
<bm:field name="workflow_info" databaseType="VARCHAR2" datatype="java.lang.String" forInsert="false" forUpdate="false"/>
<bm:field name="node_desc" databaseType="VARCHAR2" datatype="java.lang.String" forInsert="false" forUpdate="false"/>
<bm:field name="workflow_desc" databaseType="VARCHAR2" datatype="java.lang.String" forInsert="false" forUpdate="false"/>
<bm:field name="creation_date_format" databaseType="VARCHAR2" datatype="java.lang.String" forInsert="false" forUpdate="false"/>
<bm:field name="residence_date_format" databaseType="VARCHAR2" datatype="java.lang.String" forInsert="false" forUpdate="false"/>
<bm:field name="urgent_type"/>
<bm:field name="position_code"/>
<bm:field name="node_sequence_num"/>
<bm:field name="record_type"/>
<bm:field name="isreturn"/>
<bm:field name="finance_amount"/>
<bm:field name="down_payment_ratio"/>
<bm:field name="price_list_n"/>
<bm:field name="division"/>
<bm:field name="expand_flag"/>
<bm:field name="child_workflow_desc"/>
<bm:field name="color_flag"/>
<bm:field name="credit_flag"/>
<bm:field name="return_flag"/>
<bm:field name="times"/>
<bm:field name="fin_manager_name"/>
</bm:fields>
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT
t1.instance_id,
t1.approve_count,
t1.submitted_by,
t1.submitted_by_name,
t1.node_id,
t1.node_desc,
t1.hierarchy_record_id,
t1.seq_number,
t1.sequence_num,
t1.user_id,
t1.date_limit,
t1.record_id,
t1.commision_by,
t1.commision_desc,
t1.last_notify_date,
t1.workflow_id,
t1.workflow_code,
t1.workflow_desc,
t1.serial_number,
NULL child_workflow_desc,
t1.workflow_desc
|| '-'||t1.node_desc workflow_info,
t1.document_info,
0 isreturn,
TO_CHAR(t1.creation_date, 'yyyy-mm-dd hh24:mi:ss') AS creation_date_format,
F_DAYS2STR(SYSDATE-t1.creation_date) residence_date_format,
t1.urgent_type,
null position_code,
null node_sequence_num,
t1.record_type,
null finance_amount, --申请融资总额
NVL(TO_CHAR(t1.down_payment_ratio*100 ,'fm999,999,999,999,999,990.009'),0)||'%' down_payment_ratio, --首付款比例
t1.times, --期数
null price_list_n, --产品方案
null division,
'Y' expand_flag,
'N' color_flag,
t1.return_flag,
(SELECT pc.credit_flag
FROM
prj_project pp,prj_project_credit pc
WHERE
pp.wfl_instance_id = t1.instance_id
and pp.project_id = pc.project_id) credit_flag, --征信标志
(select ee.name
from exp_employees ee,prj_project pp
where pp.fin_manager = ee.employee_id
and pp.wfl_instance_id = t1.instance_id) fin_manager_name
FROM
zj_wfl_instance_node_rcpt_v t1 #WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:features>
<f:standard-who/>
</bm:features>
<bm:primary-key>
<bm:pk-field name="record_id"/>
</bm:primary-key>
<bm:data-filters>
<bm:data-filter enforceOperations="query" expression="t1.user_id = ${/session/@user_id}"/>
</bm:data-filters>
<bm:query-fields>
<bm:query-field name="any_info" queryExpression="(t1.workflow_desc like &apos;%&apos;|| ${@any_info} || &apos;%&apos; or t1.node_desc like &apos;%&apos;|| ${@any_info} || &apos;%&apos; or t1.document_info like &apos;%&apos;|| ${@any_info} || &apos;%&apos; or to_char(t1.creation_date, &apos;yyyy-mm-dd hh24:mi:ss&apos;) like &apos;%&apos;|| ${@any_info} || &apos;%&apos; or t1.submitted_by_name like &apos;%&apos;|| ${@any_info} || &apos;%&apos; )"/>
<bm:query-field name="workflow_info" queryExpression="(t1.workflow_desc like &apos;%&apos;|| ${@workflow_info} || &apos;%&apos; or t1.node_desc like &apos;%&apos;|| ${@workflow_info} || &apos;%&apos;)"/>
<bm:query-field name="document_info" queryExpression="t1.document_info like &apos;%&apos;|| ${@document_info} || &apos;%&apos;"/>
</bm:query-fields>
</bm:model>
......@@ -123,9 +123,7 @@
</#if>
</div>
<div class="button-login">
<button class="btn blue" onclick="submit_function()" type="submit" style="min-width:100%;width: 100%;"><@spring.message
"hap.login"/>
</button>
<button class="btn blue" onclick="submit_function()" type="submit" style="min-width:100%;width: 100%;">登录</button>
</div>
</div>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author$
$Date$
$Revision$
$Purpose: 皮肤选择
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:init-procedure><![CDATA[
]]></a:init-procedure>
<a:view>
<style>
iframe{
width:100%;
height:100%;
}
</style>
<iframe id="wfl_common_iframe" src="${/parameter/@url}?instance_id=${/parameter/@instance_id}&amp;node_id=${/parameter/@node_id}&amp;record_id=${/parameter/@record_id}&amp;workflow_id=${/parameter/@workflow_id}&amp;record_type=${/parameter/@record_type}&amp;url_type=${/parameter/@url_type}"></iframe>
</a:view>
</a:screen>
......@@ -31,7 +31,7 @@
function open_before_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
param['contract_id'] = record.get('history_contract_id');
param['contract_id'] = record.get('source_contract_id');
param['function_code'] = 'CON301';
param['function_usage'] = 'QUERY';
param['download'] = 'Y';
......@@ -43,6 +43,7 @@
function open_after_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
param['contract_id'] = record.get('change_req_id');
param['function_code'] = 'CON301';
param['function_usage'] = 'QUERY';
param['download'] = 'Y';
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment