凭证接口

This commit is contained in:
xiezhiwen 2018-09-19 20:48:38 +08:00
parent 99d6166ab9
commit d82a343c35
4 changed files with 450 additions and 390 deletions

View File

@ -37,11 +37,7 @@
function NCInterface(){
alert("´«Ê俪ʼ");
var mes = RunJavaMethodTrans("com.tenwa.voucher.serviceImp.VoucherSysJointNCServiceImpl","sendVoucherData","");
if("true"==mes){
alert("传输成功");
}else{
alert("传输失败");
}
alert("传输完成");
}
function synVoucherCode(){

View File

@ -50,6 +50,10 @@ public class SerialNumberUtil {
public static synchronized String getRentOutNoNumber(JBOTransaction tx) throws Exception{
return SerialNumberUtil.getSerialNumber("PR{year}{month}{maxOrderNumber}",4,null, "", null, tx);
}
public static synchronized String getVoucherPCNumber(JBOTransaction tx) throws Exception{
return SerialNumberUtil.getSerialNumber("AP{year}{month}{day}-{maxOrderNumber}",3,null, "ƾ֤½Ó¿ÚÅú´Î", null, tx);
}
/**
* ͨÁª´ú¿ÛÁ÷Ë®ºÅ
* @param tx

View File

@ -3,5 +3,5 @@ package com.tenwa.voucher.service;
import com.amarsoft.are.jbo.JBOTransaction;
public interface VoucherSysJointNCService {
public String sendVoucherData(JBOTransaction tx)throws Exception;
public void sendVoucherData(JBOTransaction tx)throws Exception;
}