1.分润增加重复校验。
This commit is contained in:
parent
9853ad2f0d
commit
4d6635ee6b
@ -10,7 +10,6 @@ include
|
||||
dwTemp.Style = "2";//freeform
|
||||
dwTemp.ReadOnly = "0";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
|
||||
};
|
||||
@ -44,6 +43,14 @@ include
|
||||
parent.AsDialog.ClosePage();
|
||||
}
|
||||
function saveRecord(sPostEvents) {
|
||||
var distributor_id = getItemValue(0, 0, "distributor_id");
|
||||
var product_id = getItemValue(0, 0, "product_id");
|
||||
var sReturn = AsControl.RunJsp("/Tenwa/Lease/Flow/Project/BusinessApplication/CheckSplittingRatio.jsp","product_id="+product_id+"&distributor_id="+distributor_id);
|
||||
if(sReturn=="true"){
|
||||
alert("当前渠道商的产品已配置分润利率,请勿重复配置!");
|
||||
return;
|
||||
}
|
||||
|
||||
as_save("myiframe0", "goBack()");
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
||||
String CurOrgID = CurPage.getParameter("CurOrgID");
|
||||
String productId = CurPage.getParameter("product_id");
|
||||
String distributorId = CurPage.getParameter("distributor_id");
|
||||
String sReturn = "false";
|
||||
String jobName = Sqlca.getString("SELECT id FROM lb_splitting_ratio WHERE product_id='"+productId+"' and distributor_id='"+distributorId+"'");
|
||||
if(jobName != null){
|
||||
sReturn = "true";
|
||||
}
|
||||
out.println(sReturn);
|
||||
%><%@ include file="/IncludeEndAJAX.jsp"%>
|
||||
@ -1,6 +1,7 @@
|
||||
package com.tenwa.flow.comm.handler.flowmanage;
|
||||
|
||||
import com.amarsoft.app.awe.config.InitDBType;
|
||||
import com.amarsoft.app.util.ProductParamUtil;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.awe.util.ASResultSet;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
@ -453,4 +454,10 @@ public class OverdueProjectCache {
|
||||
}
|
||||
return penalty;
|
||||
}
|
||||
//삿혤끓틔적쪽
|
||||
public static String getYearRate(String productId) throws Exception{
|
||||
String yearRate = ProductParamUtil.getProductParameterValue(productId, "PRD0350", "product_rate", "ProductRate");
|
||||
|
||||
return yearRate;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user