diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessApplyApplyList.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessApplyApplyList.jsp index 88e6f144f..f770ebb1f 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessApplyApplyList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessApplyApplyList.jsp @@ -7,7 +7,13 @@ function newApply() { - AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp","ApplyType=<%=sApplyType%>", + var CurOrgID=<%=CurOrg.getOrgID()%>; + var sReturn = AsControl.RunJsp("/Tenwa/Lease/Flow/Project/BusinessApplication/CheckDistributorStatus.jsp","CurOrgID="+CurOrgID); + if(sReturn!="true"){ + AsDebug.alert("警告","当前经销商未激活!"); + return; + } + AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp","ApplyType=<%=sApplyType%>", "dialogWidth=500px;dialogHeight=300px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(sReturnInfo){ if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return; var sReturnInfos=sReturnInfo.split("@"); diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CheckDistributorStatus.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CheckDistributorStatus.jsp new file mode 100644 index 000000000..874697c88 --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CheckDistributorStatus.jsp @@ -0,0 +1,11 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/IncludeBeginMDAJAX.jsp"%><% + String CurOrgID = CurPage.getParameter("CurOrgID"); + + String sReturn = "false"; + String jobName = Sqlca.getString("SELECT distributor_status FROM distributor_info WHERE orgid='"+CurOrgID+"'"); + if(jobName != null&&jobName!="distributor_status08"){ + sReturn = "true"; + } + out.println(sReturn); +%><%@ include file="/IncludeEndAJAX.jsp"%> \ No newline at end of file