代码的更新
This commit is contained in:
parent
8691701542
commit
464320f109
@ -10,7 +10,7 @@
|
||||
//String ProjectName = CurPage.getParameter("ProjectName");
|
||||
/* if(sPrevUrl == null) sPrevUrl = "/DealerDeposit/DMarginChargeInfo_TempList.jsp"; */
|
||||
BizObject flow=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT","flow_unid=:flowunid").setParameter("flowunid", sFlowUnid).getSingleResult(false);
|
||||
String DISTRIBUTOR_NO=flow.getAttribute("Flow_Key").getString();
|
||||
// String DISTRIBUTOR_NO=flow.getAttribute("Flow_Key").getString();
|
||||
String sTempletNo = "DMarginChargeInfo_Temp";//--Ä£°åºÅ--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
/* doTemp.setColTips("", "²âÊÔ"); */
|
||||
|
||||
@ -16,8 +16,8 @@
|
||||
//alert(distributor_name);
|
||||
var projectName = sReturn[1]+"-"+sReturn[2];
|
||||
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
|
||||
//sParams = sParams+",FlowKey="+distributor_no+",ProjectName="+projectName+",distributor_no="+distributor_no+",distributor_name="+distributor_name;
|
||||
sParams = sParams+",FlowKey="+distributor_no+",distributor_no="+distributor_no+",distributor_name="+distributor_name;
|
||||
sParams = sParams+",FlowKey="+distributor_no+",ProjectName="+projectName+",distributor_no="+distributor_no+",distributor_name="+distributor_name;
|
||||
//sParams = sParams+",FlowKey="+distributor_no+",distributor_no="+distributor_no+",distributor_name="+distributor_name;
|
||||
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
|
||||
|
||||
@ -84,7 +84,7 @@ function saveproj_name(){
|
||||
setItemValue(0,0,"LIMIT_END_DATE",end_date);
|
||||
}
|
||||
//省市
|
||||
function selectRegionCode(){
|
||||
/* function selectRegionCode(){
|
||||
var area_code = getItemValue(0,getRow(),"DISTRIBUTOR_ADDRESS");
|
||||
AsDialog.PopView("/Common/ToolsA/AreaVFrame.jsp","AreaCode="+area_code,"dialogWidth=850px;dialogHeight=450px;center:yes;status:no;statusbar:no",function(sAreaCodeInfo){
|
||||
//增加清空功能的判断
|
||||
@ -104,6 +104,46 @@ function saveproj_name(){
|
||||
}
|
||||
}
|
||||
},'请选择省市');
|
||||
} */
|
||||
|
||||
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,"provinces",sReturn[1]);
|
||||
province=sReturn[0];
|
||||
setCertType();
|
||||
},"请选择省份",'');
|
||||
}
|
||||
// 选择市区
|
||||
function selectCityCode(){
|
||||
//alert("参数:"+province);
|
||||
if(province=="" || province==null){
|
||||
alert("请先选择省份。");
|
||||
return;
|
||||
}else{
|
||||
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("@");
|
||||
setItemValue(0,0,"DISTRIBUTOR_ADDRESS",sReturn[0]);//地区区号
|
||||
setItemValue(0,0,"DISTRIBUTOR_ADDRESSNAME",sReturn[1]);//地区
|
||||
},"请选择地区",'');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
Loading…
x
Reference in New Issue
Block a user