Commit b3ce37ad authored by 李贺贺's avatar 李贺贺

发送电子邮件后刷新列表,附件名使用bp_code做唯一标识

parent 259e341f
......@@ -3,11 +3,12 @@
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select hb.bp_name from hls_bp_master hb where hb.bp_id = ${@bp_id}
select hb.bp_name,hb.bp_code from hls_bp_master hb where hb.bp_id = ${@bp_id}
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME"/>
<bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CODE"/>
</bm:fields>
</bm:model>
\ No newline at end of file
......@@ -117,6 +117,7 @@
msg: '发送成功',
duration: 2000
});
$('acr516_invoice_result_ds').query();
}
});
},null);
......
......@@ -37,8 +37,8 @@
bp_id: str
});
var bp_att = bp_map.getChildren();
var bp_name = bp_att[0].bp_name;
return bp_name;
//var bp_name = bp_att[0].bp_name;
return bp_att[0];
}
try {
var resultStr = $ctx.parameter.result_map;
......@@ -51,8 +51,9 @@
var fileN = [];
//转为数字
var bp_id = parseInt(key);
var bp_name = getBpName(bp_id);
//println(key);
var bp_name = getBpName(bp_id).bp_name;
var bp_code = getBpName(bp_id).bp_code;
//println(bp_code);
var hds = jm[key];
println(hds);
//转为数组
......@@ -60,8 +61,8 @@
//println(typeof hdsArr);
//println(hdsArr.length);
//压缩文件夹
var zip_filename = '['+bp_name+']'+bp_id+'电子发票.zip';
var tranfer_file_path = file_dir + zip_filename;
var zip_filename = '['+bp_name+']'+bp_code+'电子发票.zip';
var tranfer_file_path = file_dir + zip_filename;
var zipFile= new File(String(tranfer_file_path));
if(!zipFile.exists()){//如果文件夹不存在,创建文件夹
zipFile.createNewFile();
......
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