2018-06-03 22:26:41 +08:00

161 lines
5.0 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%@ page import="com.amarsoft.app.util.*" %>
<%@page import="jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO"%>
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List00;Describe=注释区;]~*/%>
<%
/*
Author:guosl 2017-05-09
Tester:
Content: 项目基本信息-担保单位信息
Input Param:
Output param:
History Log:
*/
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
<%
String PG_TITLE = "项目基本信息-担保单位信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List02;Describe=定义变量,获取参数;]~*/%>
<%
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
String ProductId=CurPage.getParameter("ProductId");
if(sFlowUnid == null)sFlowUnid = "";
String ID = CurPage.getParameter("id");//担保单位ID
if(ID == null)ID = "";
String sListTempletNo = CurPage.getParameter("ListTempletNo");//List页面模板号
if(sListTempletNo == null) sListTempletNo = "LBGuaranteeUnitListTemp";
String ishistory=CurPage.getParameter("IsHistory");
String nodeNo=CurPage.getParameter("NodeNo");
String taskno=CurPage.getParameter("TaskNo");
String RightType= CurPage.getParameter("RightType");
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
<%
String GuaranteeType=ProductParamUtil.getProductParameterValue(ProductId,"PRD0105","GuaranteeType");//担保类型
String[] GuaranteeTypes=GuaranteeType.split(",");
String s="";
for(int i=0;i<GuaranteeTypes.length;i++){
s=s+"'"+GuaranteeTypes[i]+"'"+",";
}
s=s.substring(0, s.length()-1);
String sTempletNo = "LBGuaranteeUnitInfoTemp";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDDDWJbo("ASSURE_METHOD","jbo.sys.CODE_LIBRARY,itemno,itemname,codeno='GuaranteeType' and itemno in ("+s+") ");
if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
}
CurPage.getCurComp().setAttribute("RightType", null);
%>
<%@ include file="/Tenwa/Lease/Flow/Comm/baseShowInfoFormal.jspf"%>
<%
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
dwTemp.ReadOnly = "-2";//只读模式
}
dwTemp.genHTMLObjectWindow(ID);
CurPage.getCurComp().setAttribute("RightType", RightType);
%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"}
};
sButtonPosition = "north";
%>
<%/*~END~*/%>
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
function saveRecord(){
var sFlowUnid = "<%=sFlowUnid%>";
setItemValue(0,getRow(),"FlowUnid",sFlowUnid);//初始化流程编号
as_save("myiframe0","");
}
/*~[Describe=返回列表页面;InputParam=无;OutPutParam=无;]~*/
function goBack(){
//要跳转的url
var url="/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteeUnitList.jsp";
//要传的参数
var sparam="FlowUnid="+"<%=sFlowUnid%>"+"&TempletNo="+"<%=sListTempletNo%>";
var righttype="<%=RightType%>";
if(righttype=="ReadOnly"){sparam=sparam+"&RightType=<%=RightType%>";}
sparam=sparam+"&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&TaskNo=<%=taskno%>&IsShowFormal=<%=isShowForaml%>&ProductId=<%=ProductId%>";
AsControl.OpenView(url,sparam,"_self","");
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
<script type="text/javascript">
/*~[Describe=选择担保单位;InputParam=无;OutPutParam=无;]~*/
function selectGuaranteeUnit(){
AsDialog.OpenSelector("selectGuaranteeUnit","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn || sReturn == "_CANCEL_"||sReturn=="_NONE_"||sReturn=="_CLEAR_")
{
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"ASSUROR",sReturn[0]);//初始化担保人ID
setItemValue(0,0,"customername", sReturn[1]); //初始化担保人姓名
},"请选担保单位");
}
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
<script type="text/javascript">
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>