apzl_leasing/WebContent/AppConfig/EDoc/EDocRelativeList.jsp
2018-06-03 22:26:41 +08:00

57 lines
2.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Describe: 添加电子合同模板时,关联对应的业务类型;
Input Param:
ObjectType对象类型
ObjectNo: 对象编号
ContractNo担保信息编号
*/
//获得页面参数:对象类型、对象编号、担保信息编号
String sEDocNo = CurPage.getParameter("EDocNo");
String sEDocType = CurPage.getParameter("EDocType");
if(sEDocNo == null) sEDocNo = "";
if(sEDocType == null) sEDocType = "";
sASNavigatorHtml = "电子合同模板对应的业务类型";
BizObjectManager bomOne = JBOFactory.getFactory().getManager("jbo.edoc.EDOC_RELATIVE");
ASObjectModel doTemp = new ASObjectModel(bomOne);
doTemp.setJboWhere("EDocNo=:EDocNo");
doTemp.setVisible("EDocNo,TypeNo,IsInUse",false);
//设置格式
doTemp.setHTMLStyle("TypeName"," style={width:180px} ");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style="1"; //设置为Grid风格
dwTemp.ReadOnly = "1"; //设置为只读
dwTemp.setParameter("EDocNo", sEDocNo);
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","","Button","更改关联类型","修改模板对应的业务类型","changeRecord()","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
/*~[Describe=引入新的业务类型;InputParam=无;OutPutParam=无;]~*/
function changeRecord(){
var sEDocNo = "<%=sEDocNo%>";
var sEDocType = "<%=sEDocType%>";
if(typeof(sEDocNo)=="undefined" || sEDocNo.length==0){
alert("不存在的模板编号,请先定义模板编号");
}else{
AsDialog.PopPage("/AppConfig/EDoc/EDocTerm.jsp","EDocNo="+sEDocNo+"&EDocType="+sEDocType,"dialogWidth=550px;dialogHeight=400px;left=20;top=20;status=yes;center=yes",function(sReturnValue){
if(typeof(sReturnValue)=="undefined" || sReturnValue=="_none_" || sReturnValue.length==0){
return;
}
sReturn = RunJavaMethodTrans("com.amarsoft.app.edoc.EDocManager","saveEDoc","TypeNos="+sReturnValue+",EDocNo="+sEDocNo+",EDocType="+sEDocType);
if(sReturn != "SUCCEEDED"){
alert("数据保存失败");
}
reloadSelf();
});
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>