2018-06-28 10:45:39 +08:00

66 lines
2.9 KiB
Plaintext

<%@page import="com.tenwa.reckon.util.UUIDUtil"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-27
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "CustomerFamilyJoinTempInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setColTips("", "");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
String FlowUnid = CurPage.getParameter("FlowUnid");
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+FlowUnid+"'");
// dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));flowunid + "," + customerid
String Partner = Sqlca.getString("select Partner_ from CUSTOMER_FAMILY_TEMP where flowunid='"+FlowUnid+"'");
System.out.print("+++++++++++++++++++++++++++++"+Partner);
if(Partner.equals("Y")){
dwTemp.genHTMLObjectWindow(FlowUnid + "," + customerid);
}else{
dwTemp.genHTMLObjectWindow(FlowUnid);
}
String sButtons[][] = {
{"true","","Button","保存","保存","newRecord()","","","","btn_icon_add"},
//{"true","All","Button","保存","保存所有修改","save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function newRecord(){
debugger;
var name = getItemValue(0,0,"name");
var certid = getItemValue(0,0,"certid");
var shukou = getItemValue(0,0,"shukou");
var suname = getItemValue(0,0,"suname");
var suphone = getItemValue(0,0,"suphone");
var sposition = getItemValue(0,0,"sposition");
var smincome = getItemValue(0,0,"smincome");
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerFamilyJoin","saveCustomerFamily",
"customerid=<%=UUIDUtil.getUUID()%>,flowunid=<%=FlowUnid%>,tel="+getItemValue(0,0,"tel")+",name="+getItemValue(0,0,"name")+",certid="+getItemValue(0,0,"certid")+",shukou="+getItemValue(0,0,"shukou")+",suname="+getItemValue(0,0,"suname")+",suphone="+getItemValue(0,getRow(0),"suphone")+",sposition="+getItemValue(0,getRow(0),"sposition")+",smincome="+getItemValue(0,getRow(0),"smincome"));
if(sResult == "1"){
alert("新增成功!");
reloadSelf();
}
if(sResult == "2"){
alert("已存在共同申请人!");
reloadSelf();
}
if(sResult == "3"){
alert("新增失败!");
reloadSelf();
}
}
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>