更新经销商分类
This commit is contained in:
parent
39f62de2b0
commit
855cb2d022
@ -3,6 +3,7 @@
|
||||
String sTempletNo = "DistributorGroupCompanyRegister";//--模板号--
|
||||
String typeno=CurPage.getParameter("typeno");
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setHtmlEvent("group_no","onChange","checkGroupNo");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
dwTemp.genHTMLObjectWindow(typeno);
|
||||
@ -15,7 +16,8 @@
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
//保存
|
||||
function saveRecord(){
|
||||
function saveRecord(){
|
||||
if(!checkGroupNo()) return;
|
||||
if(!iV_all("0")) return;//先检查填写完整性
|
||||
var group_no = getItemValue(0,getRow(0),'group_no');
|
||||
setItemValue(0, 0, "productid", "<%=typeno%>");
|
||||
@ -40,5 +42,16 @@
|
||||
function goBack(){
|
||||
parent.AsDialog.ClosePage();
|
||||
}
|
||||
|
||||
//校验编号是否存在
|
||||
function checkGroupNo(){
|
||||
var group_no = getItemValue(0,0,'group_no');
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","distributor_group_no","group_no="+group_no);
|
||||
if("false" ==sReturnInfo){
|
||||
alert("该编号已存在,请重新输入!!!");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -42,6 +42,7 @@
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function save(){
|
||||
debugger;
|
||||
setItemValue(0,0,"flowunid","<%=FlowUnid%>");
|
||||
setItemValue(0,0,"acc_type","Debit");
|
||||
var res=RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "getCustIdByFlowunid", "FlowUnid=<%=FlowUnid%>");
|
||||
@ -69,10 +70,10 @@ setItemValue(0,0,"acc_type","Debit");
|
||||
|
||||
iV_all("0");
|
||||
|
||||
if(frame_list.window.save(customerid,projectid,contractid)&&frame_lists.window.save(customerid,projectid,contractid)){
|
||||
//if(frame_list.window.save(customerid,projectid,contractid)&&frame_lists.window.save(customerid,projectid,contractid)){
|
||||
as_save("0","re");
|
||||
|
||||
}
|
||||
//}
|
||||
//reloadSelf();
|
||||
}
|
||||
function re(){
|
||||
|
||||
@ -14,6 +14,7 @@ import com.amarsoft.are.jbo.JBOTransaction;
|
||||
public class CustomerGroupCompanyController {
|
||||
private String id = "";
|
||||
private String group_name = "";
|
||||
private String group_no = "";
|
||||
|
||||
public String getGroup_name() {
|
||||
return group_name;
|
||||
@ -31,6 +32,14 @@ public class CustomerGroupCompanyController {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getGroup_no() {
|
||||
return group_no;
|
||||
}
|
||||
|
||||
public void setGroup_no(String group_no) {
|
||||
this.group_no = group_no;
|
||||
}
|
||||
|
||||
/**
|
||||
* ·ÏÆú
|
||||
* @param tx
|
||||
@ -104,4 +113,14 @@ public class CustomerGroupCompanyController {
|
||||
return "success";
|
||||
}
|
||||
}
|
||||
|
||||
public String distributor_group_no(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager dgcm = JBOFactory.getBizObjectManager(DISTRIBUTOR_GROUP_COMPANY.CLASS_NAME);
|
||||
BizObject dgc = dgcm.createQuery("group_no=:group_no").setParameter("group_no", group_no).getSingleResult(false);
|
||||
if(dgc == null){
|
||||
return "true";
|
||||
}else{
|
||||
return "false";
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -12,7 +12,7 @@ public class CustomerGroupCompanyHandler extends CommonHandler{
|
||||
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||
String groupCompanyNumber = SerialNumberUtil.getGroupCompanyNumber(tx);
|
||||
tx.commit();
|
||||
bo.setAttributeValue("group_no", groupCompanyNumber);
|
||||
// bo.setAttributeValue("group_no", groupCompanyNumber);
|
||||
super.initDisplayForAdd(bo);
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,7 +29,10 @@ public class LBAfterBusinessThree extends BaseBussiness {
|
||||
BizObjectManager lecbom = JBOFactory.getBizObjectManager(LC_CALC_CONDITION_TEMP.CLASS_NAME, Sqlca);
|
||||
BizObject condition = lecbom.createQuery("FlowUnid=:flowunid").setParameter("flowunid",flowUnid).getSingleResult(false);
|
||||
String sMessage="";
|
||||
Double money=condition.getAttribute("clean_lease_money").getDouble();
|
||||
Double money = 0.0;
|
||||
if(null!=condition){
|
||||
money=condition.getAttribute("clean_lease_money").getDouble();
|
||||
}
|
||||
if(200000<money){//走第四个节点
|
||||
sMessage="false";
|
||||
}else {
|
||||
|
||||
@ -29,7 +29,10 @@ public class LBAfterBusinessTwo extends BaseBussiness {
|
||||
BizObjectManager lecbom = JBOFactory.getBizObjectManager(LC_CALC_CONDITION_TEMP.CLASS_NAME, Sqlca);
|
||||
BizObject condition = lecbom.createQuery("FlowUnid=:flowunid").setParameter("flowunid",flowUnid).getSingleResult(false);
|
||||
String sMessage="";
|
||||
Double money=condition.getAttribute("clean_lease_money").getDouble();
|
||||
Double money = 0.0;
|
||||
if(null!=condition){
|
||||
money=condition.getAttribute("clean_lease_money").getDouble();
|
||||
}
|
||||
if(200000<money){//走第五个节点
|
||||
sMessage="true";
|
||||
}else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user