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
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:s="leaf.plugin.script" xmlns:a="http://www.leaf-framework.org/application" trace="true">
<!-- <a:screen xmlns:c="leaf.application.action" xmlns:s="leaf.plugin.script" xmlns:w="leaf.plugin.export.word" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" customizationEnabled="true" trace="true"> -->
<a:init-procedure>
<s:server-script><![CDATA[
importPackage(Packages.com.test); //相当于java中的import com.esa2000.*;
importPackage(Packages.org.springframework.context);
importPackage(Packages.org.springframework.context.support);
importPackage(java.io);
var locations = ["classpath:client.xml", "classpath:context/client-demo-servlet.xml"];
var ctx = new FileSystemXmlApplicationContext(locations);
var testRealTime = ctx.getBean("testRealTime");
var bm = $bm('cont.CON591.con_contract');
var records = bm.queryAsMap({
pki_status: '2,4',
contract_id: $ctx.parameter.contract_id
}).getChildren();
for (var i = 0;i < records.length;i++) {
//CMB6226022818321234
//var check_result = testRealTime.testMerchantContractQuery("1", "10023576511","CMB6226022818321234");
var check_result = testRealTime.testMerchantContractQuery("1", "10023576511",records[i].protocol_number);
$bm('csh.CSH600.hls_protocol_ebank_data').execute({
response_xml: check_result,
function_name: 'NC_EMBK_PROTOCOL_PARSE',
request_id: '111',
contract_id: records[i].contract_id,
protocol_number: records[i].protocol_number
});
//println(res.flag);
var v_flag = $ctx.parameter.flag;
println($ctx.parameter.flag);
/* //未传送执行传送
if (v_flag == 'N') {
var result = testRealTime.testSignPKI("1", "1", //
"10023576511", "K14-2000-3113",
records[i].interface_id, //
"BCOMQDSuc2",
"BCOM",
"0201",//公私
records[i].AcctCode,//
records[i].AcctName,
"101",
records[i].IdCode,
records[i].Mobile,
"10", "100");
//解析接口数据
$bm('csh.CSH600.hls_writeoff_ebank_data').update({
response_xml: result,
function_name: 'NC_EMBK_PARSE',
request_id: '111',
interface_id: records[i].interface_id
});
} */
}
]]></s:server-script>
</a:init-procedure>
<!-- <a:service-output output="/parameter"/> -->
</a:service>