经销商集团

This commit is contained in:
amarsoft 2018-06-18 17:24:56 +08:00
parent e2c88b4aba
commit b7da16a3ef
11 changed files with 495 additions and 3 deletions

View File

@ -0,0 +1,40 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
String rightType = CurPage.getParameter("rightType");
if(rightType ==null)rightType="";
String group_no = CurPage.getParameter("group_no");
if(group_no ==null)group_no="";
String group_name = CurPage.getParameter("group_name");
if(group_name ==null)group_name="";
String sTempletNo = "DistributorCustomerGroupCompany";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if(rightType.equals("ReadOnly")){
dwTemp.ReadOnly = "1";//只读模式
}
dwTemp.genHTMLObjectWindow(CurPage.getParameter("group_no"));
CurPage.getCurComp().setAttribute("RightType", rightType);
String compClientID = request.getParameter("CompClientID");
dwTemp.replaceColumn("groupList", "<iframe type='iframe' name=\"frame_list_group\" width=\"100%\" height=\"250\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Customer/Group/Subcompany/DistributorCustomerGroupRelationList.jsp?group_no="+group_no+"&CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"true","All","Button","保存","保存","saveRecord()","","","","btn_icon_save"},
{"true","","Button","返回","返回列表","goBack()","","","","btn_icon_return"}
};
sButtonPosition = "north";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
//保存
function saveRecord(){
var date = new Date();
var updatetime = date.toJSON().substring(0,10).replace(/-/g,"/")+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
setItemValue(0,getRow(),"updatetime",updatetime);
as_save("myiframe0");
}
//返回
function goBack(){
CHANGED=false;//跳转新页面时是否弹框提示已修改本页。
AsControl.OpenView("/Tenwa/Customer/Group/GroupCompany/DistributorGroupCompanyList.jsp","","_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,73 @@
<%@page import="com.tenwa.comm.dataRightmanager.DataRightManager"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
ASObjectModel doTemp = new ASObjectModel("DistributorcustGroupCompanyList");
String otherWhere=DataRightManager.getRightCondition(CurUser,"O");
doTemp.appendJboWhere(otherWhere);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","All","Button","修改","修改","edit()","","","","btn_icon_edit",""},
{"true","","Button","详情","详情","view()","","","","btn_icon_detail",""},
{"true","All","Button","废弃","废弃","del()","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
//新增
function newRecord(){
var sUrl = "/Tenwa/Customer/Group/GroupCompany/CustomerGroupCompanyRegister.jsp";
AsDialog.PopView(sUrl,"","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];
var group_name = result[1];
AsControl.OpenView("/Tenwa/Customer/Group/GroupCompany/CustomerGroupCompany.jsp","group_no="+group_no+'&group_name='+group_name,"_self","");
}
},"新增集团");
}
//详情
function view(){
var sUrl = "/Tenwa/Customer/Group/GroupCompany/CustomerGroupCompany.jsp";
var group_no = getItemValue(0,getRow(0),'group_no');
if(typeof(group_no)=="undefined" || group_no.length==0 ){
alert("请选择一条信息!");
return ;
}
AsControl.OpenView(sUrl,"group_no="+group_no+'&rightType=ReadOnly',"_self","");
}
//修改
function edit(){
var sUrl = "/Tenwa/Customer/Group/GroupCompany/CustomerGroupCompany.jsp";
var group_no = getItemValue(0,getRow(0),'group_no');
if(typeof(group_no)=="undefined" || group_no.length==0 ){
alert("请选择一条信息!");
return ;
}
AsControl.OpenView(sUrl,"group_no="+group_no,"_self","");
}
//废弃
function del(){
if(confirm("是否确认废弃该客户?")){
var id = getItemValue(0,getRow(),"id");
if(typeof(id)=="undefined" || id.length==0 ){
alert("请选择一条信息!");
return ;
}
var status = getItemValue(0,getRow(),"status");
if(status == "status03"){
alert("操作失败,该客户状态已是废弃状态");
return;
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","del","id="+id);
if(sReturnInfo == "true"){
alert("操作成功");
reloadSelf();
}
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,11 @@
<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBegin.jsp"%><%
String PG_TITLE = "隐藏左侧区域的Main页面"; // 浏览器窗口标题 <title> PG_TITLE </title>
String PG_CONTENT_TITLE = "<strong class='pt9white'>集团客户</strong>"; //默认的内容区标题
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
String PG_LEFT_WIDTH = "1";//默认的treeview宽度
%><%@include file="/Resources/CodeParts/Main04.jsp"%>
<script type="text/javascript">
AsControl.OpenView("/Tenwa/Customer/Group/GroupCompany/CustomerGroupCompanyList.jsp","","right","");
</script>
<%@ include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,42 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
String sTempletNo = "DistributorGroupCompanyRegister";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
String sButtons[][] = {
{"true","All","Button","确定","注册集团信息","saveRecord()","","","","btn_icon_submit"},
{"true","All","Button","取消","取消","goBack()","","","","btn_icon_close"},
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
//保存
function saveRecord(){
if(!iV_all("0")) return;//先检查填写完整性
var group_no = getItemValue(0,getRow(0),'group_no');
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) == ">"){
alert("集团名称含有非法字符");
return;
}
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","distributor_group_name","group_name="+group_name);
if(sReturnInfo != "false"){
if(sReturnInfo == 'status01')alert("该集团名称已存在(潜在)");
if(sReturnInfo == 'status02')alert("该集团名称已存在(正式)");
if(sReturnInfo == 'status03')alert("该集团名称已存在(废弃)");
if(sReturnInfo == 'status04')alert("该集团名称已存在(草稿)");
return;
}
var param = group_no+"&"+group_name;
as_save("myiframe0","parent.AsDialog.ClosePage('"+param+"')");
}
function goBack(){
parent.AsDialog.ClosePage();
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,73 @@
<%@page import="com.tenwa.comm.dataRightmanager.DataRightManager"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
ASObjectModel doTemp = new ASObjectModel("DistributorGroupCompanyList");
String otherWhere=DataRightManager.getRightCondition(CurUser,"O");
//doTemp.appendJboWhere(otherWhere);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","All","Button","修改","修改","edit()","","","","btn_icon_edit",""},
{"true","","Button","详情","详情","view()","","","","btn_icon_detail",""},
{"true","All","Button","废弃","废弃","del()","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
//新增
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){
if(typeof(sReturnValue)!=undefined && sReturnValue!=''){
var result = sReturnValue.split('&');
var group_no = result[0];
var group_name = result[1];
AsControl.OpenView("/Tenwa/Customer/Group/GroupCompany/DistributorCustomerGroupCompany.jsp","group_no="+group_no+'&group_name='+group_name,"_self","");
}
},"新增集团");
}
//详情
function view(){
var sUrl = "/Tenwa/Customer/Group/GroupCompany/DistributorCustomerGroupCompany.jsp";
var group_no = getItemValue(0,getRow(0),'group_no');
if(typeof(group_no)=="undefined" || group_no.length==0 ){
alert("请选择一条信息!");
return ;
}
AsControl.OpenView(sUrl,"group_no="+group_no+'&rightType=ReadOnly',"_self","");
}
//修改
function edit(){
var sUrl = "/Tenwa/Customer/Group/GroupCompany/DistributorCustomerGroupCompany.jsp";
var group_no = getItemValue(0,getRow(0),'group_no');
if(typeof(group_no)=="undefined" || group_no.length==0 ){
alert("请选择一条信息!");
return ;
}
AsControl.OpenView(sUrl,"group_no="+group_no,"_self","");
}
//废弃
function del(){
if(confirm("是否确认废弃该客户?")){
var id = getItemValue(0,getRow(),"id");
if(typeof(id)=="undefined" || id.length==0 ){
alert("请选择一条信息!");
return ;
}
var status = getItemValue(0,getRow(),"status");
if(status == "status03"){
alert("操作失败,该客户状态已是废弃状态");
return;
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","dis_del","id="+id);
if(sReturnInfo == "true"){
alert("操作成功");
reloadSelf();
}
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,48 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
String rightType = CurPage.getParameter("rightType");
if(rightType == null) rightType = "";
String group_id = CurPage.getParameter("group_id");
if(group_id == null) group_id = "";
String sTempletNo = "DistributorGroupRelation";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if(rightType.equals("ReadOnly")){
dwTemp.ReadOnly = "1";//只读模式
}
CurPage.getCurComp().setAttribute("RightType", rightType);
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
//保存
function saveRecord(){
as_save("myiframe0","parent.AsDialog.ClosePage()");
}
//返回
function goBack(){
parent.AsDialog.ClosePage();
reloadSelf();
}
//从数据库表中取客户名称
function selectCustomerName(){
AsDialog.OpenSelector("selectdistriInfo","","dialogWidth=" + parseInt(window.screen.width * 0.7) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"distributor_id",sReturn[0]);
setItemValue(0,0,"DISTRIBUTOR_NO",sReturn[1]);
setItemValue(0,0,"DISTRIBUTOR_NAME",sReturn[2]);
setItemValue(0,0,"group_id",'<%=group_id%>');
},"请选择集团客户成员",'');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,81 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
ASObjectModel doTemp = new ASObjectModel("DistributorGroupRelationList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
String group_id = CurPage.getParameter("group_no");
if(group_id == null)group_id ="";
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(group_id);
String sButtons[][] = {
{"true","All","Button","新增成员","新增成员","newRecord()","","","","btn_icon_add",""},
{"true","All","Button","修改","查看/修改详情","viewAndEdit()","","","","btn_icon_edit"},
{"true","","Button","详情","查看/修改详情","view()","","","","btn_icon_detail",""},
{"true","All","Button","删除","删除集团成员信息","deleteRecord()","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newgo(){
var sUrl = "/Tenwa/Customer/Group/GroupCompany/DistributorCustomerGroupCompanyList.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
//新增
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();
},"新增集团下属公司信息");
}
//修改
function viewAndEdit(){
var flag = "viewAndEdit";
var sUrl = "/Tenwa/Customer/Group/Subcompany/DistributorCustomerGroupRelation.jsp";
var id = getItemValue(0,getRow(0),'id');
if(typeof(id)=="undefined" || id.length==0 ){
alert("请选择一条信息!");
return ;
}
AsDialog.PopView(sUrl,"id="+id+"&flag="+flag+"&group_id="+'<%=group_id%>',"resizable=yes;dialogWidth=600px;dialogHeight=250px;center:yes;status:no;statusbar:no",function(){
reloadSelf();
},"修改集团下属公司信息");
}
//详情
function view(){
var sUrl = "/Tenwa/Customer/Group/Subcompany/DistributorCustomerGroupRelation.jsp";
var id = getItemValue(0,getRow(0),'id');
if(typeof(id)=="undefined" || id.length==0 ){
alert("请选择一条信息!");
return ;
}
AsDialog.PopView(sUrl,'id=' +id+'&rightType=ReadOnly',"resizable=yes;dialogWidth=600px;dialogHeight=250px;center:yes;status:no;statusbar:no",function(){
reloadSelf();
},"集团下属公司详细信息");
}
// 删除
function deleteRecord(){
var id = getItemValue(0,getRow(),"id");
if (typeof(id)=="undefined" || id.length==0){
alert(getHtmlMessage('1'));
return;
}else {
if(confirm("确定要删除?"))
{
as_delete('myiframe0');
}
}
}
function detail(){
var customerId=getItemValue(0, getRow(), "customer_id");
AsDialog.OpenObject("Customer",customerId,"002",null,function(){
})
}
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
getObj(0,i,"customername").innerHTML='<a onclick="javascript:detail()" style="color: blue;">'+getObj(0,i,"customername").innerHTML+'</a> ';;
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -1259,7 +1259,7 @@
<attribute name="SUB_DISTRIBUTOR" label="子经销商" type="STRING" length="32"/>
<attribute name="WHOLESALE_BUSINESS" label="批售业务" type="STRING" length="32"/>
<attribute name="TYPE" label="类型" type="STRING" length="32"/>
<attribute name="ORGID" label="部门编号" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -2350,5 +2350,47 @@
</managerProperties>
</manager>
</class>
<class name="DISTRIBUTOR_GROUP_COMPANY" label="" keyAttributes="id">
<attributes>
<attribute name="id" label="序列号" type="STRING" length="32"/>
<attribute name="group_no" label="集团编号" type="STRING" length="32"/>
<attribute name="group_name" label="集团名称" type="STRING" length="200"/>
<attribute name="memo" label="备注" type="STRING" length="20000"/>
<attribute name="status" label="状态" type="STRING" length="10"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="32"/>
<attribute name="inputorgid" label="登记机构" type="STRING" length="32"/>
<attribute name="inputtime" label="登记日期" type="STRING" length="20"/>
<attribute name="updateuserid" label="更新人" type="STRING" length="32"/>
<attribute name="updateorgid" label="更新机构" type="STRING" length="32"/>
<attribute name="updatetime" label="更新日期" type="STRING" length="20"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="distributor_group_company" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="DISTRIBUTOR_GROUP_RELATION" label="" keyAttributes="id">
<attributes>
<attribute name="id" label="序列号" type="STRING" length="32"/>
<attribute name="distributor_id" label="经销商编号" type="STRING" length="200"/>
<attribute name="memo" label="备注" type="STRING" length="20000"/>
<attribute name="status" label="状态" type="STRING" length="32"/>
<attribute name="group_id" label="集团编号" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="32"/>
<attribute name="inputorgid" label="登记机构" type="STRING" length="32"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="32"/>
<attribute name="updateuserid" label="更新人" type="STRING" length="32"/>
<attribute name="updateorgid" label="更新机构" type="STRING" length="32"/>
<attribute name="updatetime" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="distributor_group_relation" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package>
</jbo>

View File

@ -1,6 +1,7 @@
package com.tenwa.customer.controller.group;
import jbo.app.tenwa.customer.CUSTOMER_GROUP_COMPANY;
import jbo.app.tenwa.customer.DISTRIBUTOR_GROUP_COMPANY;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
@ -48,6 +49,19 @@ public class CustomerGroupCompanyController {
return "false";
}
public String dis_del(JBOTransaction tx)throws Exception{
BizObjectManager bom = JBOFactory.getBizObjectManager(DISTRIBUTOR_GROUP_COMPANY.CLASS_NAME);
tx.join(bom);
//将此集团信息设置为废弃状态
BizObjectQuery boq = bom.createQuery("update O set status = 'status03' where id=:id ");
boq.setParameter("id",id);
int i = boq.executeUpdate();
if(i == 1){
return "true";
}
return "false";
}
/**
* 集团名称不可重复
* @param tx
@ -65,4 +79,16 @@ public class CustomerGroupCompanyController {
return "false";
}
}
public String distributor_group_name(JBOTransaction tx)throws Exception{
BizObjectManager bom = JBOFactory.getBizObjectManager(DISTRIBUTOR_GROUP_COMPANY.CLASS_NAME);
tx.join(bom);
//查询该集团名称是否已存在
BizObject CUSTOMER_GROUP_COMPANY = bom.createQuery("group_name=:group_name").setParameter("group_name",group_name).getSingleResult(false);
if(CUSTOMER_GROUP_COMPANY != null){
return CUSTOMER_GROUP_COMPANY.getAttribute("status").toString();
}else{
return "false";
}
}
}

View File

@ -0,0 +1,54 @@
package com.tenwa.customer.handler.group;
import jbo.app.tenwa.customer.CUSTOMER_GROUP_RELATION;
import jbo.app.tenwa.customer.DISTRIBUTOR_GROUP_RELATION;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.dw.handler.impl.CommonHandler;
public class DistributorGroupRelationHandler extends CommonHandler{
@Override
protected void initDisplayForAdd(BizObject bo) throws Exception {
//获取当前客户ID
String group_no=this.asPage.getAttribute("group_id").toString();
bo.setAttributeValue("group_id",group_no);
super.initDisplayForAdd(bo);
}
@Override
protected boolean validityCheck(BizObject bo, boolean isInsert) {
try {
String Id = bo.getAttribute("id").getString();
String distributor_id = bo.getAttribute("distributor_id").getString();
String groupId = bo.getAttribute("group_id").getString();
BizObjectManager bom = JBOFactory.getBizObjectManager(DISTRIBUTOR_GROUP_RELATION.CLASS_NAME);
if("".equals(Id)){
BizObject cgr = bom.createQuery("group_id=:group_id and distributor_id=:distributor_id ").setParameter("group_id",groupId).setParameter("distributor_id",distributor_id).getSingleResult(false);
if(cgr!=null){
this.errors="该集团已存在此客户!";
return false;
}
}else{
BizObject b=bom.createQuery("id=:id").setParameter("id", Id).getSingleResult(false);
String bdistributor_id=b.getAttribute("distributor_id").toString();
if(!(bdistributor_id.equals(distributor_id))){
BizObject cgr = bom.createQuery("group_id=:group_id and distributor_id=:distributor_id ").setParameter("group_id",groupId).setParameter("distributor_id",distributor_id).getSingleResult(false);
if(cgr!=null){
this.errors="该集团已存在此客户!";
return false;
}
}
}
} catch (JBOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return super.validityCheck(bo, isInsert);
}
}

View File

@ -4,6 +4,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP;
import jbo.app.tenwa.customer.CUSTOMER_ADDRESS;
import jbo.app.tenwa.customer.CUSTOMER_ADDRESS_TEMP;
import jbo.app.tenwa.customer.CUSTOMER_CERT;
@ -42,11 +43,12 @@ public class DistributorInfoTempToFormalBusiness extends BaseBussiness {
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
BizObject dst= DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, fromCondtion, Sqlca);
String disStatus = dst.getAttribute("distributor_status").toString();
dst.setAttributeValue("orgid",orgid );
BizObjectManager dit = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME,Sqlca);
if(null==disStatus || disStatus.length()<=0){
dst.setAttributeValue("distributor_status", "distributor_status04");
BizObjectManager dit = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME,Sqlca);
dit.saveObject(dst);
}
dit.saveObject(dst);
Map<String,String>toCondtion=new HashMap<String, String>();
DistributorCompare dc=new DistributorCompare();
fromCondtion.clear();