经销商

This commit is contained in:
zhouyahui 2018-06-18 23:18:08 +08:00
parent 6bce0a823a
commit 6e90ec32d7
2 changed files with 109 additions and 68 deletions

View File

@ -1,69 +1,109 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-10-11
Content:
History Log:
*/
String id = CurPage.getParameter("id");//账号id
String sflowunid = CurPage.getParameter("flowunid");
String flowunid=CurPage.getParameter("ObjectNo");
// String righttrpe=CurPage.getParameter("righttrpe");
if(id == null) id="";
String sTempletNo = "LDistributorAccountInfo"; //模板号
// if(sTempletNo == null) sTempletNo = "LDistributorAccountInfo";
BizObject flow=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT","flow_unid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false);
String DISTRIBUTOR_NO=flow.getAttribute("Flow_Key").getString();
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("FLOWUNID", flowunid);
doTemp.setDefaultValue("DISTRIBUTOR_ID", DISTRIBUTOR_NO);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="2"; //--设置为Grid风格--
/* if(righttrpe=="ReadOnly"){
dwTemp.ReadOnly = "1"; //只读模式
}
*/
dwTemp.genHTMLObjectWindow(id);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","","Button","保存","保存所有修改","save()","","","","btn_icon_save"},
{"true","","Button","返回","返回","returnList()","","","","btn_icon_return"}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function save(){
setItemValue(0,0,"sPara","<%=sflowunid%>");
as_save(0,"returnList()");
}
function returnList(){
<%-- var sUrl = "/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorAccountList.jsp";
AsControl.OpenView(sUrl,"FlowUnid=<%=flowunid%>",'_self',''); --%>
AsDialog.ClosePage();
}
//省市
function selectRegionCode(){
var area_code = getItemValue(0,getRow(),"district");
AsDialog.PopView("/Common/ToolsA/AreaVFrame.jsp","AreaCode="+area_code,"dialogWidth=850px;dialogHeight=450px;center:yes;status:no;statusbar:no",function(sAreaCodeInfo){
//增加清空功能的判断
if( sAreaCodeInfo == '_CANCEL_'){
return;
}
if(sAreaCodeInfo == "NO" || sAreaCodeInfo == '_CLEAR_'){
setItemValue(0,getRow(),"district","");
//setItemValue(0,getRow(),"DISTRIBUTOR_ADDRESSNAME","");
} else{
if(typeof(sAreaCodeInfo) != "undefined" && sAreaCodeInfo != ""){
sAreaCodeInfo = sAreaCodeInfo.split('@');
sAreaCodeValue = sAreaCodeInfo[0];//-- 行政区划代码
sAreaCodeName = sAreaCodeInfo[1];//--行政区划名称
//setItemValue(0,getRow(),"DISTRIBUTOR_ADDRESS",sAreaCodeValue);
setItemValue(0,getRow(),"district",sAreaCodeName);
}
}
},'请选择省市');
}
</script>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-10-11
Content:
History Log:
*/
String id = CurPage.getParameter("id");//账号id
String sflowunid = CurPage.getParameter("flowunid");
String flowunid=CurPage.getParameter("ObjectNo");
// String righttrpe=CurPage.getParameter("righttrpe");
if(id == null) id="";
String sTempletNo = "LDistributorAccountInfo"; //模板号
// if(sTempletNo == null) sTempletNo = "LDistributorAccountInfo";
BizObject flow=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT","flow_unid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false);
String DISTRIBUTOR_NO=flow.getAttribute("Flow_Key").getString();
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("FLOWUNID", flowunid);
doTemp.setDefaultValue("DISTRIBUTOR_ID", DISTRIBUTOR_NO);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="2"; //--设置为Grid风格--
/* if(righttrpe=="ReadOnly"){
dwTemp.ReadOnly = "1"; //只读模式
}
*/
dwTemp.genHTMLObjectWindow(id);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","","Button","保存","保存所有修改","save()","","","","btn_icon_save"},
{"true","","Button","返回","返回","returnList()","","","","btn_icon_return"}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function save(){
setItemValue(0,0,"sPara","<%=sflowunid%>");
as_save(0,"returnList()");
}
function returnList(){
<%-- var sUrl = "/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorAccountList.jsp";
AsControl.OpenView(sUrl,"FlowUnid=<%=flowunid%>",'_self',''); --%>
AsDialog.ClosePage();
}
//省市
/* function selectRegionCode(){
var area_code = getItemValue(0,getRow(),"district");
AsDialog.PopView("/Common/ToolsA/AreaVFrame.jsp","AreaCode="+area_code,"dialogWidth=850px;dialogHeight=450px;center:yes;status:no;statusbar:no",function(sAreaCodeInfo){
//增加清空功能的判断
if( sAreaCodeInfo == '_CANCEL_'){
return;
}
if(sAreaCodeInfo == "NO" || sAreaCodeInfo == '_CLEAR_'){
setItemValue(0,getRow(),"district","");
//setItemValue(0,getRow(),"DISTRIBUTOR_ADDRESSNAME","");
} else{
if(typeof(sAreaCodeInfo) != "undefined" && sAreaCodeInfo != ""){
sAreaCodeInfo = sAreaCodeInfo.split('@');
sAreaCodeValue = sAreaCodeInfo[0];//-- 行政区划代码
sAreaCodeName = sAreaCodeInfo[1];//--行政区划名称
//setItemValue(0,getRow(),"DISTRIBUTOR_ADDRESS",sAreaCodeValue);
setItemValue(0,getRow(),"district",sAreaCodeName);
}
}
},'请选择省市');
} */
var province="";
// 选择省份
function selectProvinceCode(){
AsDialog.OpenSelector("selectProvinceCode","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
{
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
// alert(sReturn[1]);
setItemValue(0,0,"provinceInfo",sReturn[1]);
province=sReturn[0];
setCertType();
},"请选择省份",'');
}
// 选择市区
function selectCityCode(){
AsDialog.OpenSelector("selectCityCode","province,"+province,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
{
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
// alert(sReturn[1]);
setItemValue(0,0,"district",sReturn[1]);
},"请选择地区",'');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -47,6 +47,7 @@ public class DistributorInfoTempToFormalBusiness extends BaseBussiness {
BizObjectManager dit = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME,Sqlca);
if(null==disStatus || disStatus.length()<=0){
dst.setAttributeValue("distributor_status", "distributor_status04");
dst.setAttributeValue("distributor_status", "distributor_status08");
}
dit.saveObject(dst);
Map<String,String>toCondtion=new HashMap<String, String>();