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

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

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