经销商未激活无法发起业务申请
This commit is contained in:
parent
3cc5562bff
commit
527e923e29
@ -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("@");
|
||||
|
||||
@ -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"%>
|
||||
Loading…
x
Reference in New Issue
Block a user