114 lines
4.5 KiB
Plaintext
114 lines
4.5 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
|
|
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
|
if(sFlowUnid == null)sFlowUnid = "";
|
|
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
|
|
if(sTempletNo == null) sTempletNo = "LBRiskAlertTempInfo";
|
|
String RightType= CurPage.getParameter("RightType");
|
|
if(RightType == null) RightType = "";
|
|
String taskno=CurPage.getParameter("TaskNo");
|
|
if(taskno == null) taskno = "";
|
|
String ishistory=CurPage.getParameter("IsHistory");
|
|
String nodeNo=CurPage.getParameter("NodeNo");
|
|
if(ishistory == null) ishistory = "";
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
CurPage.getCurComp().setAttribute("RightType", null);
|
|
doTemp.setHtmlEvent("ALERT_OBJECT","onchange","changeObject");
|
|
if(null!=ishistory&&ishistory.equals("true")){
|
|
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
|
}
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//
|
|
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
|
dwTemp.ReadOnly = "-2";//只读模式
|
|
RightType="ReadOnly";
|
|
}
|
|
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
|
CurPage.getCurComp().setAttribute("RightType", RightType);
|
|
String sButtons[][] =null;
|
|
sButtons =new String[][] {
|
|
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}
|
|
};
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
changeObject();
|
|
});
|
|
function saveRecord(){
|
|
as_save("myiframe0");
|
|
}
|
|
|
|
function changeObject(){
|
|
var alertObject = getItemValue(0,getRow(),"ALERT_OBJECT");
|
|
if(typeof(alertObject)!=undefined && alertObject!=''){
|
|
if(alertObject=='alert_object01'){//指定客户
|
|
setItemRequired(0,"ALERT_INDUSTRY", false);
|
|
setItemRequired(0,"ALERT_PROVINCE_NAME", false);
|
|
setItemRequired(0,"customername", true);
|
|
}else if(alertObject=='alert_object02'){//指定行业
|
|
setItemRequired(0,"customername", false);
|
|
setItemRequired(0,"ALERT_PROVINCE_NAME", false);
|
|
setItemRequired(0,"ALERT_INDUSTRY", true);
|
|
}else if(alertObject=='alert_object03'){//指定区域
|
|
setItemRequired(0,"customername", false);
|
|
setItemRequired(0,"ALERT_INDUSTRY", false);
|
|
setItemRequired(0,"ALERT_PROVINCE_NAME", true);
|
|
}else{
|
|
setItemRequired(0,"customername", false);
|
|
setItemRequired(0,"ALERT_INDUSTRY", true);
|
|
setItemRequired(0,"ALERT_PROVINCE_NAME", true);
|
|
}
|
|
}
|
|
}
|
|
function selectCustomer(){
|
|
|
|
var flowno="<%=CurPage.getParameter("FlowNo")%>";
|
|
var selname="";
|
|
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
|
|
var businessType="";
|
|
var businessType1="";
|
|
if(flowno=="RiskAlertFlow"){
|
|
businessType="1";
|
|
businessType1="1";
|
|
}else{
|
|
businessType="2";
|
|
businessType1="3";
|
|
}
|
|
|
|
|
|
var userid="<%=CurUser.getUserID()%>";
|
|
AsDialog.OpenSelector("SelectCustomerForRiskAlert","userid,"+userid+",businessType,"+businessType+",businessType1,"+businessType1,"",function(sReturn){
|
|
if(!sReturn||sReturn=="_CANCEL_" || sReturn=="_NONE_"){
|
|
return;
|
|
}
|
|
sReturn = sReturn.split("@");
|
|
setItemValue(0,0,"ALERT_CUSTOMER", sReturn[0]);
|
|
setItemValue(0,0,"customername", sReturn[1]);
|
|
setItemValue(0,0,"contract_no", sReturn[2]);
|
|
},"请选择预警客户");
|
|
}
|
|
function selectProviceCode(){//选择省份
|
|
var provincecode = getItemValue(0,getRow(),"ALERT_PROVINCE");
|
|
var provincecodename = getItemValue(0,getRow(),"ALERT_PROVINCE_NAME");
|
|
AsDialog.SetTreeValue("SelectProvice", "__0000", "ALERT_PROVINCE=itemno@ALERT_PROVINCE_NAME=itemname","itemno","itemname", [provincecode,provincecodename], false, true,"",function(sReturn){
|
|
sReturn = sReturn.split("@");
|
|
if(sReturn[0]!=provincecode){
|
|
setItemValue(0,getRow(),"ALERT_CITY","");
|
|
setItemValue(0,getRow(),"ALERT_CITY_NAME","");
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectCityCode(){//选择城市
|
|
var provincecode = getItemValue(0,getRow(),"ALERT_PROVINCE");
|
|
if(typeof(provincecode)!=undefined && provincecode != ''){
|
|
var citycode = getItemValue(0,getRow(),"ALERT_CITY");
|
|
var citycodename = getItemValue(0,getRow(),"ALERT_CITY_NAME");
|
|
var param = provincecode.substr(0,2);
|
|
AsDialog.SetTreeValue("SelectCity", param+'0000,'+param+'__00', "ALERT_CITY=itemno@ALERT_CITY_NAME=itemname","itemno","itemname", [citycode,citycodename], false, true);
|
|
}
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |