直营店逻辑修改
This commit is contained in:
parent
80bca2d0a4
commit
e91d00130c
@ -9,14 +9,14 @@
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String productId = CurPage.getParameter("ProductId");
|
||||
String distributorNo = CurPage.getParameter("distributorNo");
|
||||
String orgId = CurUser.getOrgID();
|
||||
//如果是直营店,则显示子经销。
|
||||
String sSql = "select DISTRIBUTOR_NO,F_I_TYPE from O where ORGID = :orgId";
|
||||
// F_I_TYPE=f_i_type03 直营店
|
||||
BizObject bo = JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", sSql).setParameter("orgId", orgId).getSingleResult(false);
|
||||
if(bo != null){
|
||||
distributorNo = bo.getAttribute("DISTRIBUTOR_NO").getString();
|
||||
}
|
||||
String orgId = CurUser.getOrgID();
|
||||
//如果是直营店,则显示子经销。
|
||||
String sSql = "select DISTRIBUTOR_NO,F_I_TYPE from O where ORGID = :orgId";
|
||||
// F_I_TYPE=f_i_type03 直营店
|
||||
BizObject bo = JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", sSql).setParameter("orgId", orgId).getSingleResult(false);
|
||||
if(bo != null){
|
||||
distributorNo = bo.getAttribute("DISTRIBUTOR_NO").getString();
|
||||
}
|
||||
String phaseNo = CurPage.getParameter("PhaseNo");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
|
||||
@ -25,38 +25,38 @@
|
||||
String flag = "false";
|
||||
if("0010".equals(phaseNo)||"0020".equals(phaseNo)){
|
||||
doTemp.setColInnerBtEvent("DISTRIBUTOR_NAME", "selectDistributor()");
|
||||
flag = "true";
|
||||
flag = "true";
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
|
||||
|
||||
String sButtons[][] = {
|
||||
{flag,"All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
||||
{flag,"All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
||||
// {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
};
|
||||
// sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function returnList(){
|
||||
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
||||
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
||||
}
|
||||
|
||||
|
||||
function selectDistributor(){
|
||||
AsDialog.OpenSelector("selectDistributorNew","distributorNum,<%=distributorNo%>,productId,,<%=productId%>","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
|
||||
function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
|
||||
{
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");
|
||||
setItemValue(0,0,"DISTRIBUTOR_NAME",sReturn[0]);
|
||||
setItemValue(0,0,"distributor_id",sReturn[1]);
|
||||
setItemValue(0,0,"DISTRIBUTOR_CODING",sReturn[2]);
|
||||
setCertType();
|
||||
},"请选择经销商",'');
|
||||
}
|
||||
AsDialog.OpenSelector("selectDistributorNew","distributorNum,<%=distributorNo%>,productId,,<%=productId%>","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
|
||||
function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
|
||||
{
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");
|
||||
setItemValue(0,0,"DISTRIBUTOR_NAME",sReturn[0]);
|
||||
setItemValue(0,0,"distributor_id",sReturn[1]);
|
||||
setItemValue(0,0,"DISTRIBUTOR_CODING",sReturn[2]);
|
||||
setCertType();
|
||||
},"请选择经销商",'');
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -29,12 +29,12 @@
|
||||
String distributorType = "";
|
||||
String orgId = CurUser.getOrgID();
|
||||
//如果是直营店,则显示子经销。
|
||||
String sSql = "select DISTRIBUTOR_NO,F_I_TYPE from O where ORGID = :orgId";
|
||||
// F_I_TYPE=f_i_type03 Ö±Óªµê
|
||||
String sSql = "select DISTRIBUTOR_NO,TYPE from O where ORGID = :orgId";
|
||||
// TYPE=type03 直营店 包含 中车
|
||||
BizObject bo = JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", sSql).setParameter("orgId", orgId).getSingleResult(false);
|
||||
if(bo != null){
|
||||
distributorNo = bo.getAttribute("DISTRIBUTOR_NO").getString();
|
||||
distributorType = bo.getAttribute("F_I_TYPE").getString();
|
||||
distributorType = bo.getAttribute("TYPE").getString();
|
||||
}
|
||||
System.out.println(distributorNo);
|
||||
System.out.println(distributorType);
|
||||
@ -131,7 +131,7 @@
|
||||
function checkDispalyDistributor() {
|
||||
var distributorNo22 = "<%=distributorNo%>";
|
||||
var distributorType22 = "<%=distributorType%>";
|
||||
if(distributorType22 == "f_i_type03"){
|
||||
if(distributorType22 == "type03"){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -121,9 +121,9 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
//cust_type.cust
|
||||
if("cust_type.cust".equals(custType)){
|
||||
BizObject distributorBo = JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME,"orgid=:orgid").setParameter("orgid",deptid).getSingleResult(false);
|
||||
String fiType = distributorBo.getAttribute("F_I_TYPE").toString();
|
||||
String distributorType = distributorBo.getAttribute("TYPE").toString();
|
||||
if((this.getAttribute("operationType") != null && "BAIC_MOTOR".equals(this.getAttribute("operationType").toString()))
|
||||
|| "f_i_type03".equals(fiType)){//×ÔÓªµê
|
||||
|| "type03".equals(distributorType)){//×ÔÓªµê
|
||||
distributoIid=this.getAttribute("distributorNo").toString();
|
||||
vndrName=this.getAttribute("distributorName").toString();
|
||||
}else{
|
||||
@ -195,9 +195,9 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
this.saveBusinessStatus(bsbom, tx, asUser);//ÏîÄ¿½ø¶È±í
|
||||
}else{
|
||||
BizObject distributorBo = JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME,"orgid=:orgid").setParameter("orgid",deptid).getSingleResult(false);
|
||||
String fiType = distributorBo.getAttribute("F_I_TYPE").toString();
|
||||
String fiType = distributorBo.getAttribute("TYPE").toString();
|
||||
if((this.getAttribute("operationType") != null && "BAIC_MOTOR".equals(this.getAttribute("operationType").toString()))
|
||||
|| "f_i_type03".equals(fiType)){//×ÔÓªµê
|
||||
|| "type03".equals(fiType)){//×ÔÓªµê
|
||||
distributoIid=this.getAttribute("distributorNo").toString();
|
||||
vndrName=this.getAttribute("distributorName").toString();
|
||||
}else{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user