diff --git a/WebContent/Tenwa/Apzl/DistributorToArea/DistributorCustomerGroupCompanyRegister.jsp b/WebContent/Tenwa/Apzl/DistributorToArea/DistributorCustomerGroupCompanyRegister.jsp
index 3b24b41b0..dc21c68fc 100644
--- a/WebContent/Tenwa/Apzl/DistributorToArea/DistributorCustomerGroupCompanyRegister.jsp
+++ b/WebContent/Tenwa/Apzl/DistributorToArea/DistributorCustomerGroupCompanyRegister.jsp
@@ -2,6 +2,7 @@
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
String sTempletNo = "DistrictInfoRegister";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
+ String typeno= CurPage.getParameter("TYPENO");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
@@ -16,7 +17,7 @@
//保存
function saveRecord(){
var districtcode = getItemValue(0,getRow(0),'district_code');
-
+ setItemValue(0, 0, "productid", "<%=typeno%>")
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","checkCode","group_name="+districtcode);
if(sReturnInfo == "false"){
alert("区域编码已存在");
diff --git a/WebContent/Tenwa/Apzl/DistributorToArea/EditProvince.jsp b/WebContent/Tenwa/Apzl/DistributorToArea/EditProvince.jsp
new file mode 100644
index 000000000..62c633723
--- /dev/null
+++ b/WebContent/Tenwa/Apzl/DistributorToArea/EditProvince.jsp
@@ -0,0 +1,39 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+ /*
+ Author: undefined 2018-06-20
+ Content:
+ History Log:
+ */
+ String DISTRICT_CODE=CurPage.getParameter("disCode");
+ ASObjectModel doTemp = new ASObjectModel("districtProvinceRelation");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.MultiSelect = true; //多选
+ dwTemp.ReadOnly = "1"; //只读模式
+ dwTemp.setPageSize(10);
+ dwTemp.genHTMLObjectWindow(DISTRICT_CODE);
+
+ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
+ String sButtons[][] = {
+ //{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
+ //{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
+ {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete",""},
+ };
+%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
+
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Apzl/DistributorToArea/LmDistributorList.jsp b/WebContent/Tenwa/Apzl/DistributorToArea/LmDistributorList.jsp
index 43a07a9fe..921786b94 100644
--- a/WebContent/Tenwa/Apzl/DistributorToArea/LmDistributorList.jsp
+++ b/WebContent/Tenwa/Apzl/DistributorToArea/LmDistributorList.jsp
@@ -5,33 +5,60 @@
Content:
History Log:
*/
+ String typeno= CurPage.getParameter("TYPENO");
ASObjectModel doTemp = new ASObjectModel("COUNTRY_DISTRICT_INFO");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
- dwTemp.genHTMLObjectWindow("");
+ dwTemp.genHTMLObjectWindow(typeno);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
- {"true","","Button","区域经销商信息维护","区域经销商信息维护","viewAndEdit()","","","","btn_icon_detail",""},
- {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
+ //{"true","","Button","关联省份","关联省份","viewAndEdit()","","","","btn_icon_detail",""},
+ {"true","","Button","区域信息维护","区域信息维护","Edit()","","","","btn_icon_detail",""},
+ {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp b/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp
index e8145c7f6..fb5a257ff 100644
--- a/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp
@@ -37,7 +37,7 @@
00303ba448074b0792bd465dd2359b7c@
*/
var sReturnInfo = RunJavaMethodTrans("com.tenwa.apzl.saveunioncar.saveUnionCarUtil","saveLmDistributorToProduct",sParams);
- if(sReturnInfo=="error"){
+ if(sReturnInfo!="error"){
alert("该经销商已绑定!");
}
reloadSelf();
diff --git a/WebContent/Tenwa/Apzl/PortalToCarType/LmProductConfigurate.jsp b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductConfigurate.jsp
new file mode 100644
index 000000000..b419ba648
--- /dev/null
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductConfigurate.jsp
@@ -0,0 +1,74 @@
+<%@ page contentType="text/html; charset=GBK"%><%@
+ include file="/IncludeBegin.jsp"%><%
+ /*
+ Author: undefined 2018-06-20
+ Content:
+ History Log:
+ */
+ String PG_TITLE = "生成树图"; // 浏览器窗口标题
PG_TITLE
+ String PG_CONTENT_TITLE = " 生成树图 "; //默认的内容区标题
+ String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
+ String PG_LEFT_WIDTH = "200";//默认的treeview宽度
+
+ //获得页面参数
+ //String sExampleId = CurComp.getParameter("ObjectNo");
+ String typeNo = CurComp.getParameter("TYPENO");
+
+ //定义Treeview
+ OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "生成树图","right");
+ tviTemp.init("productConfig",null);
+
+%><%@include file="/Resources/CodeParts/View04.jsp"%>
+
+<%@ include file="/IncludeEnd.jsp"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp
index eab1f9116..aba1a22b1 100644
--- a/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp
+++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmProductDistributorList.jsp
@@ -43,9 +43,11 @@
};
}
function showCar(TYPENO){
- var sUrl="/Tenwa/Apzl/PortalToCarType/LmProductDistributorCar.jsp";
+ //var sUrl="/Tenwa/Apzl/PortalToCarType/LmProductDistributorCar.jsp";
+ var sUrl="/Tenwa/Apzl/PortalToCarType/LmProductConfigurate.jsp";
var sPara = "TYPENO="+TYPENO;
- AsDialog.PopView(sUrl,sPara,"dialogWidth=800px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){reloadSelf();},"配置车辆");
+ AsControl.OpenView(sUrl,sPara ,'_self','');
+ //AsDialog.PopView(sUrl,sPara,"dialogWidth=800px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){reloadSelf();},"配置车辆");
}
/*
function mySelectRow(){
diff --git a/WebContent/Tenwa/Core/InvoiceManager/TablesXML/SelectCatalog/SelectContractPayment.xml b/WebContent/Tenwa/Core/InvoiceManager/TablesXML/SelectCatalog/SelectContractPayment.xml
index 59afa1e52..2fa7396c4 100644
--- a/WebContent/Tenwa/Core/InvoiceManager/TablesXML/SelectCatalog/SelectContractPayment.xml
+++ b/WebContent/Tenwa/Core/InvoiceManager/TablesXML/SelectCatalog/SelectContractPayment.xml
@@ -92,8 +92,7 @@ WHERE (
flow_object fo
WHERE fbo.flow_unid = fo.objectno
AND fbo.flow_name = '璧勯噾浠樻'
- AND fo.phaseno NOT IN ('1000', '8000')) { lci,
- contract }) tab where tab.overmoney>0
+ AND fo.phaseno NOT IN ('1000', '8000'))) tab where tab.overmoney>0
]]>
diff --git a/WebContent/Tenwa/Customer/Group/GroupCompany/DistributorCustomerGroupCompanyRegister.jsp b/WebContent/Tenwa/Customer/Group/GroupCompany/DistributorCustomerGroupCompanyRegister.jsp
index 0f1c65847..b59feec94 100644
--- a/WebContent/Tenwa/Customer/Group/GroupCompany/DistributorCustomerGroupCompanyRegister.jsp
+++ b/WebContent/Tenwa/Customer/Group/GroupCompany/DistributorCustomerGroupCompanyRegister.jsp
@@ -1,10 +1,11 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
String sTempletNo = "DistributorGroupCompanyRegister";//--模板号--
+ String typeno=CurPage.getParameter("typeno");
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
- dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
+ dwTemp.genHTMLObjectWindow(typeno);
String sButtons[][] = {
{"true","All","Button","确定","注册集团信息","saveRecord()","","","","btn_icon_submit"},
@@ -17,6 +18,7 @@
function saveRecord(){
if(!iV_all("0")) return;//先检查填写完整性
var group_no = getItemValue(0,getRow(0),'group_no');
+ setItemValue(0, 0, "productid", "<%=typeno%>");
var group_name = getItemValue(0,getRow(0),'group_name');
for(var i = 0;i < group_name.length;i++){
if(group_name.charAt(i) == "'" || group_name.charAt(i) == "<" || group_name.charAt(i) == ">"){
diff --git a/WebContent/Tenwa/Customer/Group/GroupCompany/DistributorGroupCompanyList.jsp b/WebContent/Tenwa/Customer/Group/GroupCompany/DistributorGroupCompanyList.jsp
index dafb22d2e..ce49ad8a6 100644
--- a/WebContent/Tenwa/Customer/Group/GroupCompany/DistributorGroupCompanyList.jsp
+++ b/WebContent/Tenwa/Customer/Group/GroupCompany/DistributorGroupCompanyList.jsp
@@ -1,6 +1,7 @@
<%@page import="com.tenwa.comm.dataRightmanager.DataRightManager"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+ String typeno= CurPage.getParameter("TYPENO");
ASObjectModel doTemp = new ASObjectModel("DistributorGroupCompanyList");
String otherWhere=DataRightManager.getRightCondition(CurUser,"O");
//doTemp.appendJboWhere(otherWhere);
@@ -8,7 +9,7 @@
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
- dwTemp.genHTMLObjectWindow("");
+ dwTemp.genHTMLObjectWindow(typeno);
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","All","Button","修改","修改","edit()","","","","btn_icon_edit",""},
@@ -20,7 +21,7 @@
//新增
function newRecord(){
var sUrl = "/Tenwa/Customer/Group/GroupCompany/DistributorCustomerGroupCompanyRegister.jsp";
- AsDialog.PopView(sUrl,"","resizable=yes;dialogWidth=500px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(sReturnValue){
+ AsDialog.PopView(sUrl,"typeno=<%=typeno%>","resizable=yes;dialogWidth=500px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(sReturnValue){
if(typeof(sReturnValue)!=undefined && sReturnValue!=''){
var result = sReturnValue.split('&');
var group_no = result[0];
diff --git a/WebContent/Tenwa/Customer/Group/Subcompany/DistributorCustomerGroupRelationList.jsp b/WebContent/Tenwa/Customer/Group/Subcompany/DistributorCustomerGroupRelationList.jsp
index a67c3c758..e1fb33282 100644
--- a/WebContent/Tenwa/Customer/Group/Subcompany/DistributorCustomerGroupRelationList.jsp
+++ b/WebContent/Tenwa/Customer/Group/Subcompany/DistributorCustomerGroupRelationList.jsp
@@ -26,7 +26,8 @@ function newgo(){
function newRecord(){
var sUrl = "/Tenwa/Customer/Group/Subcompany/DistributorCustomerGroupRelation.jsp";
AsDialog.PopView(sUrl,"group_id="+'<%=group_id%>',"resizable=yes;dialogWidth=600px;dialogHeight=250px;center:yes;status:no;statusbar:no",function(){
- reloadSelf();
+ //reloadSelf();
+ parent.reloadSelf();
},"新增集团下属公司信息");
}
//修改
@@ -66,6 +67,7 @@ function deleteRecord(){
as_delete('myiframe0');
}
}
+ parent.reloadSelf();
}
function detail(){
var customerId=getItemValue(0, getRow(), "customer_id");
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_comm.xml b/WebContent/WEB-INF/etc/jbo/jbo_comm.xml
index c97015358..24d0d6ba0 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_comm.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_comm.xml
@@ -218,7 +218,8 @@
-
+
+
@@ -235,7 +236,7 @@
-
+
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
index f062976a7..13b6c5c5d 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml
@@ -2375,7 +2375,8 @@
-
+
+
diff --git a/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java b/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java
index 98c64d195..71326a833 100644
--- a/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java
+++ b/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java
@@ -14,6 +14,7 @@ import jbo.app.tenwa.calc.LC_RENT_PLAN;
import jbo.app.tenwa.calc.VI_LC_FUND_PLAN;
import jbo.app.tenwa.calc.VI_LC_RENT_PLAN;
import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT;
+import jbo.com.tenwa.entity.comm.own.DISTRICT_DISTRIBUTOR_RELATION;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE;
@@ -237,4 +238,19 @@ public class ColRelativeInfo {
}
return money.setScale(2).toString();
}
+ public static String getProvinceByDistrict(String districode)throws JBOException{
+ String provices="";
+ if(districode!=null&&!"".equals(districode)){
+ List boLRITs = JBOFactory.createBizObjectQuery(DISTRICT_DISTRIBUTOR_RELATION.CLASS_NAME, "DISTRICT_CODE=:DISTRICT_CODE")
+ .setParameter("DISTRICT_CODE", districode).getResultList(false);
+ for(int i=0;i=0){
+ if(lle>0){
return "success";
}
return "error";
}
public String saveLmDistributorToDistrict(JBOTransaction tx)throws Exception {
/*
- CarBrandId=admin@~
- 8009002@~
- 2018/06/12 15:03:50@~
- 7c7624a558594bff8387ca6949982b21@~
- 00303ba448074b0792bd465dd2359b7c@
- */
+ * 备注:之前的需求是区域和经销商关联,后来又改成区域不和经销商关联 而是和省份关联,
+ * 之前建的关联表不动,将省份的编号和名称分别存到关联表的经销商编号和经销商名称中
+ * */
+ String returnmess="";
String[] params = CarBrandId.split("@~");
- String DISTRICT_CODE = params[0];
- //String DISTRICT_NAME = params[1];
- //String DISTRIBUTOR_ID = params[1];
- //String DISTRIBUTOR_NO = params[3];
- //String DISTRIBUTOR_NAME = params[4];
- //String productid=params[4];
+ String districtCode = params[0];
int lle=0;
int i;
try{
BizObjectManager Lmcheck = JBOFactory.getBizObjectManager(DISTRICT_DISTRIBUTOR_RELATION.CLASS_NAME,tx);
for(i=1;i=0){
- return "success";
- }
- return "error";
+
+ if("".equals(returnmess))returnmess= "success";
+
+ return returnmess;
}
/**
* 删除经销商车型关联表的关联
diff --git a/src_tenwa/com/tenwa/flow/fund/flowpayment/CopyFundIncomeTempToFormal.java b/src_tenwa/com/tenwa/flow/fund/flowpayment/CopyFundIncomeTempToFormal.java
index f8b0f02bf..9682368e8 100644
--- a/src_tenwa/com/tenwa/flow/fund/flowpayment/CopyFundIncomeTempToFormal.java
+++ b/src_tenwa/com/tenwa/flow/fund/flowpayment/CopyFundIncomeTempToFormal.java
@@ -34,7 +34,7 @@ public class CopyFundIncomeTempToFormal extends BaseBussiness{
fromCondition.put("ID", bo.getAttribute("ID").getString());
Map otherProperty = new HashMap();
otherProperty.put("FLOWUNID", "");
- otherProperty.put("PAY_STATUS", "have_paid");
+ otherProperty.put("PAY_STATUS", "apply_pass");
String incomeID = DataOperatorUtil.copySingleJBO(LC_FUND_INCOME_TEMP.CLASS_NAME, fromCondition,LC_FUND_INCOME.CLASS_NAME, null, otherProperty,Sqlca.getTransaction());
if("feetype10".equals(bo.getAttribute("FEE_TYPE").getString())){
List boRs = bomLFIT.createQuery("flowunid=:FLOWUNID and relative_id=:RELATIVE_ID")