65 lines
2.3 KiB
Plaintext
65 lines
2.3 KiB
Plaintext
<%@page import="com.itextpdf.text.log.SysoCounter"%>
|
|
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include
|
|
file="/Frame/resources/include/include_begin_info.jspf"%>
|
|
<%
|
|
|
|
String sTempletNo = "CommissionChargeConfigInfo";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
dwTemp.ReadOnly = "0";//只读模式
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
|
String sButtons[][] = {
|
|
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
|
|
};
|
|
sButtonPosition = "south";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function selectSplitting(){
|
|
AsDialog.OpenSelector("selectSplitting", "", "dialogWidth=" + parseInt(window.screen.width * 0.6) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px", function(sReturn){
|
|
if(!sReturn||sReturn=="_CANCEL_"){
|
|
//alert(getHtmlMessage('1'));
|
|
return;
|
|
}
|
|
sReturn = sReturn.split("@");
|
|
setItemValue(0, getRow(), "distributor_id",sReturn[0]);
|
|
setItemValue(0, getRow(), "product_id",sReturn[1]);
|
|
setItemValue(0, getRow(), "distributor_name",sReturn[2]);
|
|
setItemValue(0, getRow(), "product_name",sReturn[3]);
|
|
}, "请选择分润配置")
|
|
}
|
|
|
|
function goBack(){
|
|
parent.AsDialog.ClosePage();
|
|
}
|
|
function saveRecord() {
|
|
|
|
if(!checkRatio()){
|
|
return;
|
|
};
|
|
as_save("myiframe0", "goBack()");
|
|
}
|
|
function checkRatio(){
|
|
|
|
var firstRatio = getItemValue(0, 0, "ratio_1") == null ? 0: getItemValue(0, 0, "ratio_1");
|
|
var secondRatio = getItemValue(0, 0, "ratio_2") == null ? 0 : getItemValue(0, 0, "ratio_2");
|
|
var thirdRatio = getItemValue(0, 0, "ratio_3") == null ? 0 : getItemValue(0, 0, "ratio_3");
|
|
var fourthRatio = getItemValue(0, 0, "ratio_4") == null ? 0 : getItemValue(0, 0, "ratio_4");
|
|
|
|
for(var i=1;i<5;i++){
|
|
var ratio = getItemValue(0, 0, "ratio_"+i);
|
|
var charge = getItemValue(0, 0, "charge_"+i)
|
|
if(ratio==null||ratio==""){
|
|
setItemValue(0, 0, "ratio_"+i, "0") ;
|
|
}
|
|
if(charge==null||charge==""){
|
|
setItemValue(0, 0, "charge_"+i, "0") ;
|
|
}
|
|
|
|
}
|
|
return true;
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|