<bm:fieldname="language_name"expression="(select s.code_value_name from sys_code_values_v s where s.code = 'CON_LANGUAGE' and s.code_value=t1.language)"forInsert="false"forUpdate="false"prompt="CON_CLAUSE_TEMPLET.TEMPLET_USAGE"/>
<bm:fieldname="vender_id_n"expression="(decode(vender_id,-100,'买断机',(select scv.bp_name from hls_bp_master scv where scv.enabled_flag='Y' and scv.bp_id = t1.vender_id)))"forInsert="false"forUpdate="false"/>
queryexpression:"t1.agent_extra_nam like '%'||${@agent_extra_nam}||'%'"
},
{
name:'contract_number',
queryexpression:"t1.contract_number like '%'||${@contract_number}||'%'"
},
{
field:'contract_status',
queryoperator:"="
},
{
field:'division',
queryoperator:"="
},
{
field:'business_type',
queryoperator:"="
}
];
varadd_datafilters=[
{
name:'bp_id_agent_level1',
expression:"(${/session/@user_id} = 1 or t1.bp_id_agent_level1 = decode((select su.bp_category from sys_user su where su.user_id =${/session/@user_id}),'AGENT',(select su.bp_id from sys_user su where su.user_id =${/session/@user_id}),'EMPLOYEE',t1.bp_id_agent_level1))"
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());
var up_file_token_url = 'http://hlsapp.hand-china.com/hl_dr_dev/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=admin&password=admin'; //文件上传获取token的地址
//系统参数获取
function info_query(parameter_code) {
var info = new Object();
var data = null;
var parameter_map = $bm('wx.WX100.sys_parameter_value').queryAsMap({
parameter_code:parameter_code
});
var data = parameter_map.getChildren();
info.code_value = data[0].code_value;
return info;
}
//获取电子签署的flow_id
var sign_cancel_bm = $bm('cont.CON505.contract_sign_cancel');
var sign_cancel_map = sign_cancel_bm.queryAsMap({
contract_id:$ctx.parameter.contract_id
});
var flow_Id = sign_cancel_map.getChildren()[0].ele_flow_id;
var revokeParam = {
flowId:flow_Id
}
//调用中台取消流程
var info = info_query('HL_SIGN_FLOW_CANCEL');
var httpUrl = info.code_value;
var logs_bm = $bm('wx.WX100.con_ele_savelogs');
try {
var token_sign_result = EleFileUpHttpPost.post(up_file_token_url, null, null);
} catch (e) {
raise_app_error('上传文件获取token失败,请联系技术人员检查!');
}
var token_sign_result_ob = JSON.parse(token_sign_result);
var access_sign_token = token_sign_result_ob.access_token;
var result = EleFileUpHttpPost.post(httpUrl, JSON.stringify(revokeParam), access_sign_token);