--refuseTime(复核人拒绝到出纳)和refuseCount(只要拒绝过都加1) 的区分
public Object handelTask(Long taskInstanceId, String selectedTransition,
User user, String comment, Object key ,Long processId) {
if(null != processId){ // 拒绝才会传此ID
BankAccountService bankAccountService = ServiceFactory.getInstance().getBankAccountService();
TransferBill transferBill = bankAccountService.loadTransferBillByProcessInstanceID(processId);
if(null != transferBill)
transferBill.setRefuseCount((transferBill.getRefuseCount() + 1)); // 拒绝次数+1
bankAccountService.saveTransferBill(transferBill);
}
return this.jbpmProcessDao.handelTask(taskInstanceId, selectedTransition,
user, comment, key);
}
BankAccountDaoImpl.java changeState
if (dataState.equals(DataState.STATE_ZHIDAN)) {
transferBill.setRefuseTime(transferBill.getRefuseTime()+1);
--JS回调的方法,后台组的报文
StringBuffer accounts=new StringBuffer("<accounts>");
for(BankAccount ba:validBankAccount){
accounts.append("<account>");
accounts.append("<id>");
accounts.append(ba.getAccountID());
accounts.append("</id>");
accounts.append("<accountNo>");
accounts.append(ba.getAccountNO());
accounts.append("</accountNo>");
accounts.append("</account>");
}
accounts.append("</accounts>");
this.write(response,accounts.toString());
--前台拿的报文
var result = response.responseXML.getElementsByTagName("account");
for(var i=0;i<result.length;i++){
var accountId = result[i].getElementsByTagName("accountNo")[0].text;
var accountNo=result[i].getElementsByTagName("accountNo")[0].text;
var accountOption=document.createElement("<option>");
accountOption.value=accountId;
accountOption.appendChild(document.createTextNode(accountNo));
select1.appendChild(accountOption);
}
--上传时候的步骤,海南移动
1.点击发布:
AddAffiche.jsp 主页面
formupload('saveAffiche')
然后调用后台
var url = "${uploadAccs}&methodName="+methodName;(saveAffiche)
2.在后台获得上传的附件的名字
for(Map.Entry<String, String> e : nameMap.entrySet()) {
script.append("<input name=\"fileName\" value=\"")
.append(e.getKey()).append("#")
.append(e.getValue()).append("\" />");
}
script.append("<input name=\"fileName\" />")
.append("<script>parent.").append(methodName).append("()</script>");
response.setContentType("text/html;charset=UTF-8");
response.getWriter().write(script.toString());
3. 因为上传附件使用如下这种方式上传
document.upload_form.action = encodeURI(encodeURI(url));
document.upload_form.submit();
所以上面2 中回写的字符串就会写到upload_form 中,这里面的信息包含上传附件名称和要调用的方法parent.saveAffiche
===========
<iframe id="upFrame" name="upFrame" style="display: none;"></iframe>
<form name="upload_form" target="upFrame" method="post" enctype="multipart/form-data" style="padding: 0; margin: 0" >
<div id="attachmentManage1"> </div>
<table id='tableId' cellspacing='0' cellpadding='0'> </table>
</form>
===========
--同时上传涉及到一个
ZteConfigFactory.setConfig(Config.IS_HN_INDIV, configApp.get(Config.IS_HN_INDIV));
可以通过这种方式得到{applicationScope.fileMaxSize}
public Object handelTask(Long taskInstanceId, String selectedTransition,
User user, String comment, Object key ,Long processId) {
if(null != processId){ // 拒绝才会传此ID
BankAccountService bankAccountService = ServiceFactory.getInstance().getBankAccountService();
TransferBill transferBill = bankAccountService.loadTransferBillByProcessInstanceID(processId);
if(null != transferBill)
transferBill.setRefuseCount((transferBill.getRefuseCount() + 1)); // 拒绝次数+1
bankAccountService.saveTransferBill(transferBill);
}
return this.jbpmProcessDao.handelTask(taskInstanceId, selectedTransition,
user, comment, key);
}
BankAccountDaoImpl.java changeState
if (dataState.equals(DataState.STATE_ZHIDAN)) {
transferBill.setRefuseTime(transferBill.getRefuseTime()+1);
--JS回调的方法,后台组的报文
StringBuffer accounts=new StringBuffer("<accounts>");
for(BankAccount ba:validBankAccount){
accounts.append("<account>");
accounts.append("<id>");
accounts.append(ba.getAccountID());
accounts.append("</id>");
accounts.append("<accountNo>");
accounts.append(ba.getAccountNO());
accounts.append("</accountNo>");
accounts.append("</account>");
}
accounts.append("</accounts>");
this.write(response,accounts.toString());
--前台拿的报文
var result = response.responseXML.getElementsByTagName("account");
for(var i=0;i<result.length;i++){
var accountId = result[i].getElementsByTagName("accountNo")[0].text;
var accountNo=result[i].getElementsByTagName("accountNo")[0].text;
var accountOption=document.createElement("<option>");
accountOption.value=accountId;
accountOption.appendChild(document.createTextNode(accountNo));
select1.appendChild(accountOption);
}
--上传时候的步骤,海南移动
1.点击发布:
AddAffiche.jsp 主页面
formupload('saveAffiche')
然后调用后台
var url = "${uploadAccs}&methodName="+methodName;(saveAffiche)
2.在后台获得上传的附件的名字
for(Map.Entry<String, String> e : nameMap.entrySet()) {
script.append("<input name=\"fileName\" value=\"")
.append(e.getKey()).append("#")
.append(e.getValue()).append("\" />");
}
script.append("<input name=\"fileName\" />")
.append("<script>parent.").append(methodName).append("()</script>");
response.setContentType("text/html;charset=UTF-8");
response.getWriter().write(script.toString());
3. 因为上传附件使用如下这种方式上传
document.upload_form.action = encodeURI(encodeURI(url));
document.upload_form.submit();
所以上面2 中回写的字符串就会写到upload_form 中,这里面的信息包含上传附件名称和要调用的方法parent.saveAffiche
===========
<iframe id="upFrame" name="upFrame" style="display: none;"></iframe>
<form name="upload_form" target="upFrame" method="post" enctype="multipart/form-data" style="padding: 0; margin: 0" >
<div id="attachmentManage1"> </div>
<table id='tableId' cellspacing='0' cellpadding='0'> </table>
</form>
===========
--同时上传涉及到一个
ZteConfigFactory.setConfig(Config.IS_HN_INDIV, configApp.get(Config.IS_HN_INDIV));
可以通过这种方式得到{applicationScope.fileMaxSize}