添加客户历史查询跳转只读处理

This commit is contained in:
yjf 2023-09-22 18:49:42 +08:00
parent 56388ead12
commit 2cf16d9064
6 changed files with 66 additions and 41 deletions

View File

@ -49,10 +49,10 @@
}
let sTaskNo = AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","getFlowEndRelativeTaskNo", "ObjectNo="+flowunid+",projectId="+projectId);
if(typeof(sTaskNo)=="undefined" || sTaskNo.length==0) {
alert("流程未结束,无法查看");
alert("流程任务不存在,请联系管理员");
return;
}
var param ="TaskNo="+sTaskNo+"&ViewID=001&RightType=ReadOnly&delTabs=扣款卡信息,客户历史信息查询";
var param ="TaskNo="+sTaskNo+"&ViewID=001&RightType=ReadOnly&IsHistory=true&delTabs=扣款卡信息,客户历史信息查询";
AsControl.OpenNewWin("/Tenwa/Core/FlowManager/FlowPage/FlowPageViewTab.jsp",param)
}

View File

@ -42,16 +42,17 @@
function viewHisTabLocal() {
var flowunid = getItemValue(0,getRow(),"FLOWUNID");
var projectId = getItemValue(0,getRow(),"PROJECT_ID");
var businessStatus = getItemValue(0,getRow(),"BUSINESS_STATUS")
if (flowunid.length == 0 && projectId.length == 0) {
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
let sTaskNo = AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","getFlowEndRelativeTaskNo", "ObjectNo="+flowunid+",projectId="+projectId);
let sTaskNo = AsControl.RunJavaMethodTrans("com.amarsoft.app.flow.FlowAction","getFlowEndRelativeTaskNo", "ObjectNo="+flowunid+",businessStatus="+businessStatus+",projectId="+projectId);
if(typeof(sTaskNo)=="undefined" || sTaskNo.length==0) {
alert("流程未结束,无法查看");
alert("流程任务不存在,请联系管理员");
return;
}
var param ="TaskNo="+sTaskNo+"&ViewID=001&RightType=ReadOnly&delTabs=扣款卡信息,客户历史信息查询";
var param ="TaskNo="+sTaskNo+"&ViewID=001&RightType=ReadOnly&IsHistoryNew=true&delTabs=扣款卡信息,客户历史信息查询";
AsControl.OpenNewWin("/Tenwa/Core/FlowManager/FlowPage/FlowPageViewTab.jsp",param)
}

View File

@ -1,11 +1,10 @@
<%@page import="com.sun.org.apache.xalan.internal.xsltc.compiler.sym"%>
<%@page import="com.tenwa.reckon.product.ASObjectWindowCalc"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-07-10
Content: 示例详情页面
History Log:
History Log:
*/
String userId= CurUser.getUserID();
String userName = CurUser.getUserName();
@ -23,6 +22,7 @@
String customertype = CurPage.getParameter("customertype");
String channel = CurPage.getParameter("channel");
String flowName = CurPage.getParameter("FlowName");
String ishistoryNew = CurComp.getParameter("IsHistoryNew");
String falg = "false";
@ -40,7 +40,7 @@
if((null!=sPhaseNo&&sPhaseNo.equals("0010")) && ("BusinessApplyFlow".equals(FlowNo) ||"BusinessChangeFlow".equals(FlowNo))){
doTemp.setReadOnly("LEAS_FORM", true);
doTemp.setReadOnly("PROJECT_SOURCE", false);
};
if("ReadOnly".equals(rightType)){
doTemp.setReadOnly("INPUTNAME", true);
@ -70,12 +70,13 @@
dwTemp.setGroupHidden("0020");
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
dwTemp.replaceColumn("customer_info", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"1200px\" frameborder=\"0\" src=\""+sWebRootPath+userll+compClientID+"&sPhaseNo="+sPhaseNo+"\"></iframe>", CurPage.getObjectWindowOutput());
if ("true".equals(ishistoryNew)) falg = "false";
String sButtons[][] = {
{falg,"","Button","保存","保存","save()","","","","btn_icon_saveNew",""},
{"true","","Button","资料清单","资料清单","openFileList('1')","","","","btn_icon_saveNew",""},
{("BusinessApplyFlow".equals(FlowNo)||"BusinessChangeFlow".equals(FlowNo))&&("0030".equals(sPhaseNo)||"0040".equals(sPhaseNo)||"0050".equals(sPhaseNo)||"0060".equals(sPhaseNo)||"0070".equals(sPhaseNo))?"true":"false","","Button","信审资料","信审资料","openFileList('2')","","","","btn_icon_saveNew",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function() {
@ -87,7 +88,7 @@
//去除项目审批信息难看样式
})
function save(){
if(!checkinputName()){
return;
}
@ -121,7 +122,7 @@
return;
}
var operationType="<%=operationType%>";
if(customerType=="01"||customerT=="01"){//法人
//as_save("myiframe0","frame_list.window.saveCompany();");
// if("BAIC_MOTOR"==operationType){
@ -138,7 +139,7 @@
//as_save("myiframe0","frame_list.window.as_save(0);");
}
}
function checkTel(){//校验手机号格式和不为空校验
var mobile = getItemValue(0,getRow(0),"inputTel");
if(mobile==""){
@ -153,7 +154,7 @@
return false;
}
}
function checkinputName(){
var inputName = getItemValue(0,getRow(0),"inputName");
if(inputName==""){
@ -164,7 +165,7 @@
return true;
}
}
function checkZcProjectNumber(){
var zcProjectNumber = getItemValue(0,getRow(0),"ZC_PROJECT_NUMBER");
if(zcProjectNumber==""){
@ -175,7 +176,7 @@
return true;
}
}
function checkZcContractNumber(){
var zcContractNumber = getItemValue(0,getRow(0),"ZC_CONTRACT_NUMBER");
if(zcContractNumber==""){
@ -241,4 +242,4 @@
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -4,7 +4,7 @@
/*
Author: undefined 2018-06-27
Content: 示例详情页面
History Log:
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
String customerType = CurPage.getParameter("CustomerType");
@ -15,8 +15,9 @@
String showtype = CurPage.getParameter("ShowType");
String sPhaseNo=CurPage.getParameter("PhaseNo");
String IsHistory = CurPage.getParameter("IsHistory");
String ishistoryNew = CurComp.getParameter("IsHistoryNew");
if(sPrevUrl == null) sPrevUrl = "";
String falg = "false";
if("0010".equals(sPhaseNo) || "0020".equals(sPhaseNo) ){
@ -59,7 +60,8 @@
}else{
dwTemp.genHTMLObjectWindow(FlowUnid);
}
}
}
if ("true".equals(ishistoryNew)) falg = "false";
String sButtons[][] = {
//{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add"},
{falg,"","Button","保存","保存","viewAndEdit()","","","","btn_icon_edit"},
@ -96,7 +98,7 @@
//$("#FULLNAME").attr("style","color:red;");
$("#TEL").css("color","red");
}
var certResult = checkCertIdAll();
if(certResult=="4"){
//$("#FULLNAME").attr("style","color:red;");
@ -227,11 +229,11 @@
}
if("Ind01"==certtype){
if(certId.length!=18){
setErrorTips("certid","身份证必须是18位");
setErrorTips("certid","身份证必须是18位");
return false;
}
if(CheckLicense(certId)){
setErrorTips("certid","");
setErrorTips("certid","");
return true;
}else{
setErrorTips("certId","身份证格式不正确!");
@ -267,7 +269,7 @@
return false;
} */
}
function checkSuphone(){//校验单位电话格式和不为空
var suphone = getItemValue(0,getRow(0),"suphone");
if(suphone==""){
@ -284,7 +286,7 @@
return false;
}
}
function checkTelRepeat(){//校验共同申请人手机号重复
var customerType = "03";
var tel = getItemValue(0,getRow(),"tel");
@ -417,7 +419,7 @@
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
//根据身份证号判断性别
function ValidityCheck(){
var certID = getItemValue(0,getRow(),"CERTID");
@ -447,7 +449,7 @@
}else{
setItemReadOnly(0,0,"SEX",false);
}
checkCertidRepeat();
birthdayCheck();
}
@ -488,7 +490,7 @@
setErrorTips("CERTID","");
return true;
}
function checkMobileAll(mobile){//检验所有手机号
var sParams = "mobile="+mobile+",flowunid="+"<%=flowunid%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams);
@ -500,8 +502,8 @@
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertIdAll",sParams);
return sReturnInfo;
}
function deleteRecord(){
function deleteRecord(){
var ID = getItemValue(0,getRow(),"ID");
if(typeof(ID) == "undefined" || ID.length == 0 ){
alert("无数据可删除 ");
@ -514,4 +516,4 @@
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -69,6 +69,7 @@ public class FlowAction {
private String AssignSumbitType;// 指派处理方式
private String nextNodeType;
private String projectId; //项目id
private String businessStatus; //业务状态
private FlowService flowService;
@ -236,6 +237,14 @@ public class FlowAction {
return projectId;
}
public String getBusinessStatus() {
return businessStatus;
}
public void setBusinessStatus(String businessStatus) {
this.businessStatus = businessStatus;
}
//处理重复提交数据重复,只适用单体服务
private static Set<String> taskSet = new HashSet<>();
@ -747,16 +756,29 @@ public class FlowAction {
*/
public String getFlowEndRelativeTaskNo(JBOTransaction tx) throws Exception {
String taskSerialNo = "";
String sql = "select ft.RELATIVESERIALNO from flow_bussiness_object fbo join flow_task ft on fbo.flow_unid = ft.objectno where fbo.flow_name = '业务申请流程' and ft.phaseno = '1000'";
if (StringUtils.isNotBlank(objectNo)) {
sql += " and fbo.flow_unid = '" + objectNo + "'";
} else {
sql += " and fbo.proj_id = '" + projectId + "'";
}
String sql = null;
Transaction Sqlca = Transaction.createTransaction(tx);
ASResultSet asResultSet = Sqlca.getASResultSet(new SqlObject(sql));
if (asResultSet.next()) {
taskSerialNo = asResultSet.getString("RELATIVESERIALNO");
if (StringUtils.isNotBlank(businessStatus)) { //流程中处理
if ("业务取消".equals(businessStatus)) {
sql = "select serialno as RELATIVESERIALNO from flow_task where objectno = '" + objectNo + "' order by begintime desc limit 1";
} else {
sql = "select ft.serialno as RELATIVESERIALNO from flow_task ft join flow_object fo on ft.objectno = fo.objectno and ft.phaseno = fo.phaseno where ft.objectno = '" + objectNo + "'";
}
ASResultSet as = Sqlca.getASResultSet(new SqlObject(sql));
if (as.next()) {
taskSerialNo = as.getString("RELATIVESERIALNO");
}
} else {
sql = "select ft.RELATIVESERIALNO from flow_bussiness_object fbo join flow_task ft on fbo.flow_unid = ft.objectno where fbo.flow_name = '业务申请流程' and ft.phaseno = '1000'";
if (StringUtils.isNotBlank(objectNo)) {
sql += " and fbo.flow_unid = '" + objectNo + "'";
} else {
sql += " and fbo.proj_id = '" + projectId + "'";
}
ASResultSet asResultSet = Sqlca.getASResultSet(new SqlObject(sql));
if (asResultSet.next()) {
taskSerialNo = asResultSet.getString("RELATIVESERIALNO");
}
}
return taskSerialNo;
}

View File

@ -15,8 +15,7 @@ public class ProjectHisInsertBusiness extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid = this.getAttribute("FlowUnid").toString();
String flowunid = this.getAttribute("ObjectNo").toString();
StringBuilder querySqlSb = new StringBuilder();
querySqlSb.append(" select certid from customer_family_temp where Partner_ = 'Y' and flowunid = '"+flowunid+"'")