102 lines
4.1 KiB
Plaintext
102 lines
4.1 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==null){
|
|
dwTemp.genHTMLObjectWindow(FlowUnid);
|
|
}else if(Partner.equals("Y")){
|
|
dwTemp.genHTMLObjectWindow(FlowUnid + "," + customerid);
|
|
}else{
|
|
dwTemp.genHTMLObjectWindow(FlowUnid);
|
|
}
|
|
|
|
|
|
String sButtons[][] = {
|
|
//{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add"},
|
|
{"true","","Button","保存","保存","viewAndEdit()","","","","btn_icon_edit"},
|
|
//{"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(){
|
|
var name = getItemValue(0,0,"name");
|
|
var certid = getItemValue(0,0,"certid");
|
|
var tel = getItemValue(0,0,"tel");
|
|
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");
|
|
if(name=="" || certid==""){
|
|
alert("请输入信息!");
|
|
return;
|
|
}
|
|
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 viewAndEdit(){
|
|
// var ID = getItemValue(0,getRow(0),'ID');
|
|
// if("undefined"==ID||""==ID || null==ID){
|
|
// AsDebug.showMessage("提示","请选中一条数据!","","",true);
|
|
// return;
|
|
// }
|
|
// var sUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp";
|
|
// var sparam = 'ID='+ID;
|
|
// AsControl.OpenView(sUrl,sparam,"_self","");
|
|
var name = getItemValue(0,0,"name");
|
|
var certid = getItemValue(0,0,"certid");
|
|
var tel = getItemValue(0,0,"tel");
|
|
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");
|
|
if(name=="" || certid=="" || tel==""){
|
|
alert("请输入共同申请人信息!");
|
|
return;
|
|
}else{
|
|
var flowunid = getItemValue(0,0,"flowunid");
|
|
if(null==flowunid||""==flowunid){
|
|
setItemValue(0, 0, "flowunid", "<%=FlowUnid%>");
|
|
setItemValue(0, 0, "Partner_", "Y");
|
|
}
|
|
as_save(0);
|
|
}
|
|
}
|
|
function returnList(){
|
|
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |