diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp
new file mode 100644
index 000000000..6aac59572
--- /dev/null
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp
@@ -0,0 +1,45 @@
+<%@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-18
+ Content: 示例详情页面
+ History Log:
+ */
+ String sFlowUnid = CurPage.getParameter("FlowUnid");
+ String sPrevUrl = CurPage.getParameter("PrevUrl");
+ String RightType= CurPage.getParameter("RightType");
+ String id = CurPage.getParameter("ID");
+ String userOrgId = CurUser.getOrgID();
+ String userId = CurUser.getUserID();
+ String customerid = UUIDUtil.getUUID();
+ if(sPrevUrl == null) sPrevUrl = "";
+
+ String sTempletNo = "GuarantorInfo";//--模板号--
+ ASObjectModel doTemp = new ASObjectModel(sTempletNo);
+ doTemp.setDefaultValue("CUSTOMERID", customerid);
+ doTemp.setDefaultValue("flowunid", sFlowUnid);
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
+ dwTemp.Style = "2";//freeform
+ //dwTemp.ReadOnly = "-2";//只读模式
+ dwTemp.genHTMLObjectWindow(id);
+ String sButtons[][] = {
+ {"true","All","Button","保存","保存所有修改","save()","","","",""},
+ {"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"},
+ };
+ sButtonPosition = "north";
+%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
+
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitList.jsp
new file mode 100644
index 000000000..74e159c51
--- /dev/null
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitList.jsp
@@ -0,0 +1,75 @@
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
+
+ String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
+ String sTempletNo = CurPage.getParameter("TempletNo");//模板号
+ String taskno=CurPage.getParameter("TaskNo");
+ String sProjectId = CurPage.getParameter("ProjectId");
+ String RightType= CurPage.getParameter("RightType");
+ String action= CurPage.getParameter("action");
+ if("queryContract".equals(action)){
+ RightType = "ReadOnly";
+ }
+ ASObjectModel doTemp = new ASObjectModel("GuarantorList");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
+ dwTemp.Style="1"; //--设置为Grid风格--
+ dwTemp.ReadOnly = "1";
+ dwTemp.setPageSize(20);
+ dwTemp.genHTMLObjectWindow(sFlowUnid);
+ String sButtons[][] =null;
+ if(null!=RightType&&RightType.equals("ReadOnly")){
+ sButtons=new String[][] {
+ {"true","","Button","详情","详情","viewAndEdit2()","","","","btn_icon_edit"}
+ };
+ } else{
+ sButtons=new String[][]{
+ {"true","","Button","新增","新增","newRecord()","","","","btn_icon_add"},
+ {"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
+ {"true","","Button","删除","删除","do_delete()","","","","btn_icon_delete"}
+ };
+ }
+%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
+
+
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/src_tenwa/com/tenwa/flow/comm/handler/LBGuaranteeUnitHandler01.java b/src_tenwa/com/tenwa/flow/comm/handler/LBGuaranteeUnitHandler01.java
index 60cd5b48e..e98ab9ad3 100644
--- a/src_tenwa/com/tenwa/flow/comm/handler/LBGuaranteeUnitHandler01.java
+++ b/src_tenwa/com/tenwa/flow/comm/handler/LBGuaranteeUnitHandler01.java
@@ -92,6 +92,7 @@ public class LBGuaranteeUnitHandler01 extends CommonHandler{
boCAT.setAttributeValue("fulladdress", bo.getAttribute("fulladdress"));
boCAT.setAttributeValue("flowunid", bo.getAttribute("FLOWUNID"));
bomCAT.saveObject(boCAT);
+ tx.commit();
}
@Override
@@ -124,6 +125,7 @@ public class LBGuaranteeUnitHandler01 extends CommonHandler{
boCAT.setAttributeValue("zipcode", bo.getAttribute("zipcode"));
boCAT.setAttributeValue("fulladdress", bo.getAttribute("fulladdress"));
bomCAT.saveObject(boCAT);
+ tx.commit();
}
}
diff --git a/src_tenwa/com/tenwa/flow/comm/handler/LBGuarantorPerUnitHandler.java b/src_tenwa/com/tenwa/flow/comm/handler/LBGuarantorPerUnitHandler.java
new file mode 100644
index 000000000..5a53856bb
--- /dev/null
+++ b/src_tenwa/com/tenwa/flow/comm/handler/LBGuarantorPerUnitHandler.java
@@ -0,0 +1,27 @@
+package com.tenwa.flow.comm.handler;
+
+import jbo.app.tenwa.customer.CUSTOMER_INFO;
+import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
+
+import com.amarsoft.are.jbo.BizObject;
+import com.amarsoft.are.jbo.BizObjectManager;
+import com.amarsoft.are.jbo.JBOFactory;
+import com.amarsoft.are.jbo.JBOTransaction;
+import com.amarsoft.awe.dw.handler.impl.CommonHandler;
+
+public class LBGuarantorPerUnitHandler extends CommonHandler{
+
+
+ @Override
+ protected void afterInsert(JBOTransaction tx, BizObject bo)
+ throws Exception {
+ String customerid = bo.getAttribute("customerid").getString();
+ BizObjectManager mci = JBOFactory.getBizObjectManager(CUSTOMER_INFO.CLASS_NAME, tx);
+ BizObject ci = mci.newObject();
+ ci.setAttributeValue("customerid", customerid);
+ ci.setAttributeValue("customername", "担保人");
+ ci.setAttributeValue("customertype", "02");
+ mci.saveObject(ci);
+ tx.commit();
+ }
+}