修改微信公众号提交的修改操作
This commit is contained in:
parent
18dbc3f390
commit
82e71fe6a2
@ -83,6 +83,12 @@
|
||||
}
|
||||
|
||||
function save(){
|
||||
//校验是否已经生成直接扣款委托书
|
||||
var fileMeassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "isEntrustFile", "FlowUnid="+"<%=FlowUnid%>"+",contractid="+"<%=contractId%>");
|
||||
if("success" != fileMeassge){
|
||||
alert(fileMeassge);
|
||||
return ;
|
||||
}
|
||||
var TelRes=checkTel();
|
||||
if(TelRes==false){
|
||||
return;
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String contractid = CurPage.getParameter("ContractId");
|
||||
String customerType = CurPage.getParameter("CustomerType");
|
||||
String projectId = CurPage.getParameter("ProjectId");
|
||||
String falg = "false";
|
||||
if("03".equals(customerType)){
|
||||
falg = "true";
|
||||
@ -33,6 +34,12 @@
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function generatepdf(){
|
||||
var signMessage = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","isSign","ProjectId="+"<%=projectId%>");
|
||||
if("success"!=signMessage){
|
||||
alert(signMessage);
|
||||
return ;
|
||||
}
|
||||
|
||||
var results = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","selectStatus","FlowUnid="+"<%=flowunid%>"+",contract_id="+"<%=contractid%>");
|
||||
if("3"==results||"4"==results){
|
||||
alert("已发起电子签约,无法再次生成扣款书!!!");
|
||||
|
||||
168
WebContent/Tenwa/wechat/WechatBankNumberDocList.jsp
Normal file
168
WebContent/Tenwa/wechat/WechatBankNumberDocList.jsp
Normal file
@ -0,0 +1,168 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_simplelist.jspf"%>
|
||||
<%@ page import="com.tenwa.doc.action.DocListInitAction" %>
|
||||
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
||||
<%
|
||||
/*
|
||||
带出业务申请时附件的专用页面
|
||||
Author: undefined 2016-09-01
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
|
||||
String bankInfoId = CurPage.getParameter("bankinfoid");
|
||||
String RightType ="";
|
||||
String sObjectType = "";
|
||||
String username = "";
|
||||
String sTempletNo="WechatBankNumberDocList";
|
||||
if(sTempletNo==null){
|
||||
sTempletNo="FlowPayDocList";
|
||||
}
|
||||
|
||||
String compClientID = request.getParameter("bankInfoId");
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
//doTemp.appendJboWhere(" and rela.proj_id='"+ProjectId+"' and rela.objecttype='BusinessApplyFlow'");
|
||||
|
||||
doTemp.setLockCount(2);
|
||||
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "0";
|
||||
dwTemp.setPageSize(50);
|
||||
dwTemp.genHTMLObjectWindow(bankInfoId);
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] =null;
|
||||
|
||||
sButtons=new String[][]{
|
||||
{"false","","Button","保存","保存所有修改","saveRecord()","","","",""},
|
||||
};
|
||||
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
var rowSpan="One_Classify";
|
||||
</script>
|
||||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
window.onload=function(){
|
||||
/* var RowCount = getRowCount(0);
|
||||
for(var i=0;i<RowCount;i++){
|
||||
if($("#INPUT_myiframe0_Doc_Nature_"+i+"_2").text()=="必备"){
|
||||
$("#INPUT_myiframe0_Doc_Nature_"+i+"_2").attr("style","color:red");
|
||||
}
|
||||
} */
|
||||
|
||||
heping();
|
||||
$("#DWTD").width( document.body.offsetWidth - 10);
|
||||
$("#DWTD").width( document.body.offsetHeight - 20);
|
||||
document.getElementById('DWTD').innerHTML = '<div style="width:'+(document.body.offsetWidth - 10)+'px;height:'+(document.body.offsetHeight - 40)+'px;overflow: scroll;">'+document.getElementById('DWTD').innerHTML+'</div>';
|
||||
}
|
||||
function heping(){
|
||||
$("#TR_Right_myiframe0_0").attr("class","color_zebra1");
|
||||
huanhang("Doc_Name");
|
||||
}
|
||||
|
||||
function huanhang(col){
|
||||
var tab=document.getElementById("myiframe0");
|
||||
var a= getColIndex(0,col);
|
||||
for(var i=0;i<tab.rows.length-1;i++){
|
||||
$("#INPUT_myiframe0_"+col+"_"+i+"_"+a).parent().attr("style","white-space: pre-wrap;");
|
||||
}
|
||||
}
|
||||
|
||||
function selectFile(){
|
||||
objectinfo={};
|
||||
objectinfo.title="附件一览"
|
||||
AsControl.OpenTab("/Tenwa/Comm/Document/LBDocumentList.jsp","ObjectNo=20170427000001",objectinfo);
|
||||
}
|
||||
function saveRecord(){
|
||||
as_save("myiframe0","heping()");
|
||||
location.reload();
|
||||
}
|
||||
//在加载完表格后调用
|
||||
function afterSearch(){
|
||||
var sRightType="<%=RightType%>";
|
||||
var sObjectType="<%=sObjectType%>";//该流程类型
|
||||
var isReview="<%=CurPage.getParameter("isReview")%>";
|
||||
var username="<%=username%>";
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
if(getObj(0,i,"operation")!=null&&getObj(0,i,"operation")!="null"){
|
||||
getObj(0,i,"operation").innerHTML='<a class="box" onclick="upload(\''+getItemValue(0,i,"id")+'\')" style={color:#000;text-decoration:underline;}><font color="blue">上传</font></a>';
|
||||
}
|
||||
var filelist=getObj(0,i,"filelist").innerHTML;
|
||||
var obj=eval('('+filelist+')');
|
||||
var html="";
|
||||
for(var file in obj){
|
||||
html+='<a onclick=downloadFile(\''+obj[file]['id']+'\')><font color="blue">'+obj[file]['filename']+'</font></a>';
|
||||
html+='【上传时间:'+obj[file]['inputtime']+'】';
|
||||
//html+='【上传人:'+obj[file]['inputuser']+'】';
|
||||
if(obj[file]['image']=="true"){
|
||||
html+='<a class="btn_icon btn_icon_search" onclick="showImage(\''+obj[file]['id']+'\',\''+obj[file]['filename']+'\');"> </a>';
|
||||
}
|
||||
html+='</br>';
|
||||
}
|
||||
getObj(0,i,"filelist").innerHTML=html;
|
||||
getObj(0,i,"filelist").style["white-space"]="pre-wrap";
|
||||
if($("#INPUT_myiframe0_Doc_Nature_"+i+"_2").text()=="必备"){
|
||||
$("#INPUT_myiframe0_Doc_Nature_"+i+"_2").attr("style","color:red");
|
||||
}
|
||||
};
|
||||
}
|
||||
function showPDF(id,name){
|
||||
var sUrl="/Tenwa/Comm/DocList/showPDF.jsp";
|
||||
var param="attrid="+id;
|
||||
AsControl.OpenPage(sUrl,param,"","");
|
||||
}
|
||||
function showWord(id,name){
|
||||
var sUrl="/Tenwa/Comm/DocList/showWord.jsp";
|
||||
var param="attrid="+id;
|
||||
AsControl.OpenPage(sUrl,param,"","");
|
||||
}
|
||||
function showImage(id,name){
|
||||
var sUrl="/Tenwa/Comm/DocList/showImage.jsp";
|
||||
var param="attrid="+id;
|
||||
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;",function(message){
|
||||
|
||||
},name);
|
||||
}
|
||||
function editOffice(id,filename){
|
||||
var filetype=filename.substr(filename.indexOf(".")+1);
|
||||
var status=2;
|
||||
AsDialog.PopView("/Tenwa/Core/OfficeTemplate/OnlineOperation/online/editOfficeOnLine.jsp","filetype="+filetype+"&status="+status+"&id="+id+"&CompClientID=<%=compClientID%>","dialogWidth=1024px;dialogHeight=1000px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sPhaseInfo){
|
||||
if(typeof(sPhaseInfo)=="undefined" || sPhaseInfo=="" || sPhaseInfo==null || sPhaseInfo=="null" || sPhaseInfo=="_CANCEL_") {
|
||||
return;
|
||||
}else if(sPhaseInfo == "Success" || sPhaseInfo == "success"){
|
||||
alert("提交成功!");
|
||||
reloadSelf();
|
||||
}else{
|
||||
alert("提交失败!");
|
||||
}
|
||||
},"编辑文档");
|
||||
}
|
||||
|
||||
function upload(id){
|
||||
//saveRecord();
|
||||
|
||||
var param="Library_id="+id;
|
||||
var sUrl="/Tenwa/Comm/DocList/DocListInfo.jsp";
|
||||
AsDialog.PopView(sUrl,param,"dialogWidth=480px;dialogHeight=400px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(message){
|
||||
var str=RunJavaMethodTrans("com.tenwa.doc.action.DocListAction","updateBussinessCheck","library_id="+id+",BussinessCheck=DocCheck_0");
|
||||
// reloadSelf();
|
||||
location.reload();
|
||||
heping();
|
||||
},"上传附件");
|
||||
}
|
||||
function downloadFile(id){
|
||||
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
|
||||
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
|
||||
}
|
||||
function deleteFile(id){
|
||||
var sParams="attId="+id+",BussinessCheck=DocCheck_2";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.doc.action.DocListAction","deleteAttr",sParams);
|
||||
reloadSelf();
|
||||
heping();
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -5,12 +5,16 @@
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String bankInfoId = CurPage.getParameter("bankinfoid");
|
||||
String compClientID = request.getParameter("CompClientID");
|
||||
String sTempletNo = "WechatBanknumberChange";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("bankinfoid"));
|
||||
|
||||
dwTemp.genHTMLObjectWindow(bankInfoId);
|
||||
System.out.println(sWebRootPath);
|
||||
dwTemp.replaceColumn("docFile", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"500px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/wechat/WechatBankNumberDocList.jsp?CompClientID="+compClientID+"&bankinfoid="+bankInfoId+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
||||
{"true","All","Button","否决","否决","returnList()","","","","btn_icon_close"},
|
||||
|
||||
@ -41,6 +41,7 @@ public class ChangeWechatSubmitStatus extends BaseBussiness{
|
||||
if(wbc != null){
|
||||
wbc.setAttributeValue("STATUS", "ͨ¹ý");
|
||||
wbc.setAttributeValue("flowStatus", "ͨ¹ý");
|
||||
wbc.setAttributeValue("UPDATETIME", date);
|
||||
|
||||
wbc.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion"));
|
||||
wbcMange.saveObject(wbc);
|
||||
@ -60,14 +61,15 @@ public class ChangeWechatSubmitStatus extends BaseBussiness{
|
||||
BizObject fo = foManager.createQuery(" SerialNo=:SerialNo ").setParameter("SerialNo", ft == null ? "" : ft.getAttribute("SerialNo").toString()).getSingleResult(false);
|
||||
|
||||
BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME,Sqlca);
|
||||
BizObject wbc = wasMange.createQuery(" flowUnid=:flowUnid " ).setParameter("contractNo", flowunid).getSingleResult(true);
|
||||
if(wbc != null){
|
||||
wbc.setAttributeValue("STATUS", "ͨ¹ý");
|
||||
wbc.setAttributeValue("flowStatus", "ͨ¹ý");
|
||||
wbc.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion"));
|
||||
BizObject was = wasMange.createQuery(" flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true);
|
||||
if(was != null){
|
||||
was.setAttributeValue("STATUS", "ͨ¹ý");
|
||||
was.setAttributeValue("flowStatus", "ͨ¹ý");
|
||||
was.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion"));
|
||||
was.setAttributeValue("UPDATETIME", date);
|
||||
|
||||
wasMange.saveObject(wbc);
|
||||
BizObject bum = bumManager.createQuery(" id=:id").setParameter("id", wbc.getAttribute("messgeId").toString()).getSingleResult(true);
|
||||
wasMange.saveObject(was);
|
||||
BizObject bum = bumManager.createQuery(" id=:id").setParameter("id", was.getAttribute("messgeId").toString()).getSingleResult(true);
|
||||
if(bum != null ){
|
||||
bum.setAttributeValue("message_status", "has_process");
|
||||
bum.setAttributeValue("is_read", "has_read");
|
||||
|
||||
@ -51,6 +51,7 @@ public class ChangeWechatSubmitStatusVeto extends BaseBussiness{
|
||||
wbc.setAttributeValue("STATUS", "·ñ¾ö");
|
||||
wbc.setAttributeValue("flowStatus", "·ñ¾ö");
|
||||
wbc.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion"));
|
||||
wbc.setAttributeValue("UPDATETIME", date);
|
||||
wbcMange.saveObject(wbc);
|
||||
BizObject bum = bumManager.createQuery(" id=:id").setParameter("id", wbc.getAttribute("messgeId").toString()).getSingleResult(true);
|
||||
if(bum != null ){
|
||||
@ -73,13 +74,14 @@ public class ChangeWechatSubmitStatusVeto extends BaseBussiness{
|
||||
|
||||
|
||||
BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME,Sqlca);
|
||||
BizObject wbc = wasMange.createQuery(" flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true);
|
||||
if(wbc != null){
|
||||
wbc.setAttributeValue("STATUS", "·ñ¾ö");
|
||||
wbc.setAttributeValue("flowStatus", "·ñ¾ö");
|
||||
wbc.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion"));
|
||||
wasMange.saveObject(wbc);
|
||||
BizObject bum = bumManager.createQuery(" id=:id").setParameter("id", wbc.getAttribute("messgeId").toString()).getSingleResult(true);
|
||||
BizObject was = wasMange.createQuery(" flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true);
|
||||
if(was != null){
|
||||
was.setAttributeValue("STATUS", "·ñ¾ö");
|
||||
was.setAttributeValue("flowStatus", "·ñ¾ö");
|
||||
was.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion"));
|
||||
was.setAttributeValue("UPDATETIME", date);
|
||||
wasMange.saveObject(was);
|
||||
BizObject bum = bumManager.createQuery(" id=:id").setParameter("id", was.getAttribute("messgeId").toString()).getSingleResult(true);
|
||||
if(bum != null ){
|
||||
bum.setAttributeValue("message_status", "has_process");
|
||||
bum.setAttributeValue("is_read", "has_read");
|
||||
|
||||
@ -74,12 +74,12 @@ public class WechatCustomerInfoChange {
|
||||
|
||||
public String saveChange(JBOTransaction tx) {
|
||||
try {
|
||||
Date date1 = new Date() ; //获取系统时间
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); //日期格式
|
||||
String date = sdf.format(date1); //将系统时间转换成上方指定类型
|
||||
String date = this.getNewData("yyyy/MM/dd HH:mm:ss");
|
||||
BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BASIC_CHANGE.CLASS_NAME, tx);
|
||||
BizObject wbc = wbcMange.createQuery(" id=:id ").setParameter("id", basicChangeId).getSingleResult(true);
|
||||
wbc.setAttributeValue("status", "通过");
|
||||
wbc.setAttributeValue("UPDATETIME", date);
|
||||
|
||||
wbcMange.saveObject(wbc);
|
||||
|
||||
BizObjectManager cpMange = JBOFactory.getBizObjectManager(CUSTOMER_PERSON.CLASS_NAME, tx);
|
||||
@ -110,12 +110,11 @@ public class WechatCustomerInfoChange {
|
||||
|
||||
public String refuseChange(JBOTransaction tx) {
|
||||
try {
|
||||
Date date1 = new Date() ; //获取系统时间
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); //日期格式
|
||||
String date = sdf.format(date1); //将系统时间转换成上方指定类型
|
||||
String date = this.getNewData("yyyy/MM/dd HH:mm:ss");
|
||||
BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BASIC_CHANGE.CLASS_NAME, tx);
|
||||
BizObject wbc = wbcMange.createQuery(" id=:id ").setParameter("id", basicChangeId).getSingleResult(true);
|
||||
wbc.setAttributeValue("status", "拒绝");
|
||||
wbc.setAttributeValue("UPDATETIME", date);
|
||||
wbcMange.saveObject(wbc);
|
||||
BizObjectManager bbmMange = JBOFactory.getBizObjectManager(BT_BUSSINESS_MESSAGE.CLASS_NAME, tx);
|
||||
BizObject bbm = bbmMange.createQuery(" id=:id ").setParameter("id", wbc.getAttribute("MESSGEID").toString()).getSingleResult(true);
|
||||
@ -163,10 +162,7 @@ public class WechatCustomerInfoChange {
|
||||
//微信提交不需要走流程直接否决
|
||||
public String vetoSubmit(JBOTransaction tx){
|
||||
try {
|
||||
Date date1 = new Date() ; //获取系统时间
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); //日期格式
|
||||
String date = sdf.format(date1); //将系统时间转换成上方指定类型
|
||||
|
||||
String date = this.getNewData("yyyy/MM/dd HH:mm:ss");
|
||||
BizObjectManager bbmMange = JBOFactory.getBizObjectManager(BT_BUSSINESS_MESSAGE.CLASS_NAME, tx);
|
||||
if("bank".equals(type)){
|
||||
BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME, tx);
|
||||
@ -175,6 +171,7 @@ public class WechatCustomerInfoChange {
|
||||
return "该申请在流程中或者已申请不能进行否决!";
|
||||
}else {
|
||||
wbc.setAttributeValue("status", "否决");
|
||||
wbc.setAttributeValue("UPDATETIME", date);
|
||||
wbcMange.saveObject(wbc);
|
||||
BizObject bbm = bbmMange.createQuery(" id=:id ").setParameter("id", wbc.getAttribute("messgeId").toString()).getSingleResult(true);
|
||||
if(bbm != null){
|
||||
@ -193,6 +190,7 @@ public class WechatCustomerInfoChange {
|
||||
return "该申请在流程中或者已申请不能进行否决!";
|
||||
}else {
|
||||
was.setAttributeValue("status", "否决");
|
||||
was.setAttributeValue("UPDATETIME", date);
|
||||
wasMange.saveObject(was);
|
||||
BizObject bbm = bbmMange.createQuery(" id=:id ").setParameter("id", was.getAttribute("messgeId").toString()).getSingleResult(true);
|
||||
if(bbm != null){
|
||||
@ -257,4 +255,11 @@ public class WechatCustomerInfoChange {
|
||||
return "系统异常!";
|
||||
}
|
||||
}
|
||||
//获取指定个格式的当前系统时间
|
||||
public String getNewData(String datetype){
|
||||
Date date1 = new Date() ; //获取系统时间
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(datetype); //日期格式
|
||||
String date = sdf.format(date1); //将系统时间转换成上方指定类型
|
||||
return date;
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_HIS;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
|
||||
import jbo.app.tenwa.doc.LB_DOCRELATIVE;
|
||||
import jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP;
|
||||
@ -367,6 +368,35 @@ public class DebitCardAction {
|
||||
return "success";
|
||||
}
|
||||
|
||||
//合同变更校验是否已经签约
|
||||
public String IsSignStatus(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager cahManage = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT_HIS.CLASS_NAME);
|
||||
List<BizObject> cahs = cahManage.createQuery(" account=:account and acc_number=:acc_number and bank_name=:bank_name and mobile=:mobile ")
|
||||
.setParameter("account", account).setParameter("acc_number", acc_number).setParameter("bank_name", bank_name).setParameter("mobile", mobile).getResultList(false);
|
||||
for (BizObject cah : cahs) {
|
||||
if("Y".equals(cah.getAttribute("sign_status").toString())){
|
||||
return "Y";
|
||||
}
|
||||
}
|
||||
return "N";
|
||||
}
|
||||
|
||||
//校验是否已经生成直接扣款委托书
|
||||
public String isEntrustFile(JBOTransaction tx){
|
||||
try {
|
||||
BizObjectManager ldrManage = JBOFactory.getBizObjectManager(LB_DOCRELATIVE.CLASS_NAME, tx);
|
||||
BizObject ldr = ldrManage.createQuery("OBJECTTYPE='ChangeCar' and FLOW_UNID=:flowunid and CONTRACT_ID=:contractid ").setParameter("flowunid",FlowUnid).setParameter("contractid",contractid).getSingleResult(false);
|
||||
if(ldr == null){
|
||||
return "success";
|
||||
}else{
|
||||
return "直接扣款委托书已生成,无法重新保存数据!";
|
||||
}
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return "获取状态失败!";
|
||||
}
|
||||
|
||||
public String getMobile() {
|
||||
return mobile;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -35,7 +35,8 @@ public class LBCustomerRelaProjToContractBusiness extends BaseBussiness {
|
||||
Map<String,String>fromCondtion=new HashMap<String,String>();
|
||||
fromCondtion.put("PROJECT_ID",this.getAttribute("ProjectId").toString());
|
||||
String customerType = this.getAttribute("customertype").toString();
|
||||
|
||||
String flowName = this.getAttribute("FlowName").toString();
|
||||
|
||||
Map<String,String> other=new HashMap<String, String>();
|
||||
other.put("flowunid",this.getAttribute("ObjectNo").toString());
|
||||
DataOperatorUtil.copyJBOSet(LB_GUARANTEE_UNIT.CLASS_NAME, fromCondtion, LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, null, other, null,Sqlca);
|
||||
@ -46,7 +47,7 @@ public class LBCustomerRelaProjToContractBusiness extends BaseBussiness {
|
||||
for(BizObject union:unionList){
|
||||
fromCondtion.clear();
|
||||
fromCondtion.put("customerid", union.getAttribute("customer_id").getString());
|
||||
if("01".equals(customerType)){
|
||||
if("ºÏÍ¬ÖÆ×÷Á÷³Ì".equals(flowName)&&"01".equals(this.getAttribute("customertype").toString())){
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_COMPANY.CLASS_NAME, fromCondtion, CUSTOMER_COMPANY_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
}else if ("03".equals(customerType)){
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user