Merge branch 'develop' of git@git2.tenwa.com.cn:ApzlDev/apzl_leasing.git into develop
This commit is contained in:
commit
e44e9d24eb
40
WebContent/Tenwa/Comm/CustomerDoc/CustomerDoc_Info.jsp
Normal file
40
WebContent/Tenwa/Comm/CustomerDoc/CustomerDoc_Info.jsp
Normal file
@ -0,0 +1,40 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-06-21
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String sPrevUrl = CurPage.getParameter("ID");
|
||||
String docClassItemno = CurPage.getParameter("docClassItemno");
|
||||
String custid = CurPage.getParameter("custid");
|
||||
/* if(sPrevUrl == null) sPrevUrl = ""; */
|
||||
|
||||
String sTempletNo = "CustomerDoc_Info";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
//doTemp.appendJboWhere("rela.id="+relative_Id);
|
||||
/* doTemp.setColTips("", "测试"); */
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
//dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","save()","","","",""},
|
||||
{"true","All","Button","返回","返回列表","returnList()","","","",""}
|
||||
};
|
||||
/* sButtonPosition = "south"; */
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function save(){
|
||||
setItemValue(0,0,"doc_Class_Itemno","<%=docClassItemno%>");
|
||||
setItemValue(0,0,"cust_id","<%=custid%>");
|
||||
as_save("myiframe0","returnList()");
|
||||
}
|
||||
|
||||
function returnList(){
|
||||
AsControl.OpenView("/Tenwa/Comm/CustomerDoc/CustomerList.jsp", "","_self","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -8,7 +8,6 @@
|
||||
doTemp.setHtmlEvent("status","onchange","changeOtherRequired");
|
||||
doTemp.setDefaultValue("rccurrency", "01");
|
||||
doTemp.setDefaultValue("pccurrency", "01");
|
||||
// doTemp.setDefaultValue("status", "checked","checked");
|
||||
//初始化客户类别字段
|
||||
BizObjectManager typeManager = JBOFactory.getBizObjectManager(CUSTOMER_TYPE.CLASS_NAME);
|
||||
List<BizObject> types = typeManager.createQuery("customerid=:customerid and status='valid'").setParameter("customerid",customerId).getResultList(false);
|
||||
@ -59,7 +58,7 @@
|
||||
function changeOtherRequired(){
|
||||
var status = getItemValue(0,getRow(),"status");
|
||||
var country = getItemValue(0,getRow(),"countrycode");
|
||||
// if(status == "status02"){
|
||||
if(status == "status02"){
|
||||
setItemRequired(0,"custkind",true);
|
||||
setItemRequired(0,"custsource",true);
|
||||
setItemRequired(0,"certtype",true);
|
||||
@ -76,7 +75,7 @@
|
||||
setItemRequired(0,"establish_date",true);
|
||||
setItemRequired(0,"licensematurity",true);
|
||||
setItemRequired(0,"operationperiod",true);
|
||||
/*
|
||||
|
||||
}else{
|
||||
setItemRequired(0,"custkind",false);
|
||||
setItemRequired(0,"custsource",false);
|
||||
@ -94,7 +93,7 @@
|
||||
setItemRequired(0,"establish_date",false);
|
||||
setItemRequired(0,"licensematurity",false);
|
||||
setItemRequired(0,"operationperiod",false);
|
||||
} */
|
||||
}
|
||||
if(status == "status02" && country=='CHN'){
|
||||
/* setItemRequired(0,"provincecodename",true);
|
||||
setItemRequired(0,"citycodename",true); */
|
||||
@ -119,7 +118,7 @@
|
||||
}
|
||||
function changeRegisterInfo(){//客户状态为正式时注册信息必填,否则不必填
|
||||
var status = getItemValue(0,getRow(),"status");
|
||||
//if(status == "status02"){
|
||||
if(status == "status02"){
|
||||
setItemRequired(0,"economytypename",true);
|
||||
setItemRequired(0,"orgnaturename",true);
|
||||
setItemRequired(0,"orgnaturecategoryname",true);
|
||||
@ -133,7 +132,7 @@
|
||||
setItemRequired(0,"licensematurity",true);
|
||||
setItemRequired(0,"operationperiod",true);
|
||||
|
||||
/* }else{
|
||||
}else{
|
||||
setItemRequired(0,"economytypename",false);
|
||||
setItemRequired(0,"orgnaturename",false);
|
||||
setItemRequired(0,"orgnaturecategoryname",false);
|
||||
@ -146,7 +145,11 @@
|
||||
setItemRequired(0,"establish_date",false);
|
||||
setItemRequired(0,"licensematurity",false);
|
||||
setItemRequired(0,"operationperiod",false);
|
||||
} */
|
||||
setItemRequired(0,"custsource",false);
|
||||
setItemRequired(0,"certtype",false);
|
||||
setItemRequired(0,"custkind",false);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function saveRecord(){
|
||||
|
||||
@ -43,6 +43,7 @@
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$("#STATUS_0").prop("checked", true);
|
||||
init();
|
||||
ValidityCheck();
|
||||
changeOtherRequired();
|
||||
@ -75,6 +76,8 @@
|
||||
setItemRequired(0,"WORKCORP",true);//µ¥Î»Ãû³Æ
|
||||
setItemRequired(0,"certtype",true);
|
||||
setItemRequired(0,"certid",true);
|
||||
setItemRequired(0,"CERTID",true);
|
||||
|
||||
}else{
|
||||
setItemRequired(0,"CUSTSOURCE",false);
|
||||
setItemRequired(0,"CUSTKIND",false);
|
||||
@ -87,6 +90,12 @@
|
||||
setItemRequired(0,"WORKCORP",false);
|
||||
setItemRequired(0,"certtype",false);
|
||||
setItemRequired(0,"certid",false);
|
||||
|
||||
setItemRequired(0,"SEX",false);
|
||||
setItemRequired(0,"UNITKINDNAME",false);
|
||||
setItemRequired(0,"CERTID",true);
|
||||
|
||||
|
||||
}
|
||||
if(status == "status02" && country=='CHN'){
|
||||
setItemRequired(0,"provincename",true);
|
||||
|
||||
@ -86,9 +86,14 @@
|
||||
}
|
||||
// 选择市区
|
||||
function selectCityCode(){
|
||||
|
||||
AsDialog.OpenSelector("selectCityCode","province,"+province,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
|
||||
//alert("参数:"+province);
|
||||
if(province=="" || province==null){
|
||||
alert("请先选择省份。");
|
||||
return;
|
||||
}else{
|
||||
AsDialog.OpenSelector("selectCityCode","province,"+province,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
|
||||
function(sReturn){
|
||||
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
|
||||
{
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
@ -99,7 +104,7 @@
|
||||
setItemValue(0,0,"district",sReturn[1]);
|
||||
},"请选择地区",'');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -22,7 +22,8 @@
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setDefaultValue("ASSUROR", customerid);
|
||||
doTemp.setDefaultValue("PROJECT_ID", ProjectId);
|
||||
doTemp.setDefaultValue("PAYACCOUNT", sFlowUnid);//½«flowunid´«ÈëCUSTOMER_PERSON_TEMP±£´æ
|
||||
doTemp.setDefaultValue("FLOWUNID", sFlowUnid);
|
||||
doTemp.setDefaultValue("DATA_STATE", "guarantee");//标记该数据是担保人信息
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
@ -55,7 +56,7 @@
|
||||
function goBack(){
|
||||
//要跳转的url
|
||||
var url="/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitList.jsp";
|
||||
var sparam="FlowUnid="+getItemValue(0,0,"PAYACCOUNT")+"&RightType="+'<%=RightType%>';
|
||||
var sparam="FlowUnid="+getItemValue(0,0,"FLOWUNID")+"&RightType="+'<%=RightType%>';
|
||||
AsControl.OpenView(url,sparam,"_self","");
|
||||
}
|
||||
|
||||
|
||||
@ -63,6 +63,7 @@
|
||||
String sTempletNo = "LBGuaranteeUnitInfoTemp_Car";//--Ä£°åºÅ--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setDefaultValue("ASSUROR", customerid);
|
||||
doTemp.setDefaultValue("DATA_STATE", "common");//标记该数据是共同申请人
|
||||
doTemp.setHtmlEvent("CERTID","onChange","changeCertid");
|
||||
//doTemp.setHtmlEvent("DRIVERLICENSE","onchange","checkDriver");
|
||||
//doTemp.setDDDWJbo("ASSURE_METHOD","jbo.sys.CODE_LIBRARY,itemno,itemname,codeno='GuaranteeType' and itemno in ("+s+") ");
|
||||
|
||||
@ -242,11 +242,22 @@
|
||||
<%/*~[Describe=Ñ¡Ôñ²úÆ·;]~*/%>
|
||||
function selectBusinessType()
|
||||
{
|
||||
var carAttr = false;
|
||||
var lease = false;
|
||||
var carAttributes = getItemValue(0,getRow(),"carAttributes");
|
||||
if(!carAttributes){
|
||||
carAttr = false;
|
||||
}else{
|
||||
carAttr = true;
|
||||
}
|
||||
var leasehold = getItemValue(0,getRow(),"leasehold");
|
||||
|
||||
if(!leasehold){
|
||||
lease = false;
|
||||
}else{
|
||||
lease = true;
|
||||
}
|
||||
var modelid="";
|
||||
if(MyOjbect.modelid){
|
||||
if(MyOjbect.modelid&&carAttr==true&&lease==true){
|
||||
modelid=MyOjbect.modelid;
|
||||
AsDialog.OpenSelector("selectProductVersionInfo","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
|
||||
function(sReturn){
|
||||
@ -262,7 +273,15 @@
|
||||
setItemValue(0,0,"versionid",sReturn[1]);
|
||||
},"ÇëÑ¡Ôñ²úÆ·",'');
|
||||
}else{
|
||||
alert("ÇëÏÈÑ¡Ôñ³µÐÍ");
|
||||
if(modelid){
|
||||
alert("请先选择车型");
|
||||
}
|
||||
if(carAttr==false){
|
||||
alert("请先选择车辆属性");
|
||||
}
|
||||
if(lease==false){
|
||||
alert("请先选择租赁方式");
|
||||
}
|
||||
}
|
||||
|
||||
// if(carAttributes=='1'){
|
||||
|
||||
@ -2413,5 +2413,106 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_CAR_CREDIT_TEMP" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="标识编号" type="STRING" length="32"/>
|
||||
<attribute name="biz_code" label="工作流编号" type="STRING" length="100"/>
|
||||
<attribute name="flowunid" label="流程编号" type="STRING" length="100"/>
|
||||
<attribute name="diploma" label="学历" type="STRING" length="100"/>
|
||||
<attribute name="industry" label="所属行业" type="STRING" length="100"/>
|
||||
<attribute name="career" label="职业" type="STRING" length="100"/>
|
||||
<attribute name="occupation" label="职位" type="STRING" length="100"/>
|
||||
<attribute name="marriage" label="婚姻情况" type="STRING" length="100"/>
|
||||
<attribute name="work_time" label="工作时间" type="STRING" length="100"/>
|
||||
<attribute name="monthly_income" label="月均收入" type="STRING" length="100"/>
|
||||
<attribute name="annual_income" label="年收入" type="STRING" length="100"/>
|
||||
<attribute name="registered_address" label="户籍地址" type="STRING" length="100"/>
|
||||
<attribute name="home_address" label="家庭地址" type="STRING" length="100"/>
|
||||
<attribute name="contact_address" label="通讯地址" type="STRING" length="100"/>
|
||||
<attribute name="company_address" label="单位地址" type="STRING" length="100"/>
|
||||
<attribute name="house_type" label="房产类型" type="STRING" length="100"/>
|
||||
<attribute name="house_property" label="房产情况" type="STRING" length="100"/>
|
||||
<attribute name="applyer_type" label="人员类别" type="STRING" length="100"/>
|
||||
<attribute name="company_type" label="公司性质" type="STRING" length="100"/>
|
||||
<attribute name="work_phone" label="单位座机" type="STRING" length="100"/>
|
||||
<attribute name="organization_address" label="工作单位地址" type="STRING" length="100"/>
|
||||
<attribute name="device_id" label="设备ID" type="STRING" length="100"/>
|
||||
<attribute name="mobile_name_consistence" label="手机号姓名核验结果" type="STRING" length="100"/>
|
||||
<attribute name="is_cross_loan" label="是否曾跨平台借款" type="STRING" length="100"/>
|
||||
<attribute name="event_occur_time" label="事件时间" type="STRING" length="100"/>
|
||||
<attribute name="loan_date" label="贷款日期" type="STRING" length="100"/>
|
||||
<attribute name="resp_detail_type" label="归属地详情类型" type="STRING" length="100"/>
|
||||
<attribute name="loan_term" label="贷款期限" type="STRING" length="100"/>
|
||||
<attribute name="loan_amount" label="贷款金额" type="STRING" length="100"/>
|
||||
<attribute name="loan_term_unit" label="贷款期限单位" type="STRING" length="100"/>
|
||||
<attribute name="customer_channel" label="获客渠道" type="STRING" length="100"/>
|
||||
<attribute name="apply_channel" label="进件渠道" type="STRING" length="100"/>
|
||||
<attribute name="apply_province" label="进件省份" type="STRING" length="100"/>
|
||||
<attribute name="contact5_mobile" label="第五联系人手机号" type="STRING" length="100"/>
|
||||
<attribute name="contact5_id_number" label="第五联系人身份证" type="STRING" length="100"/>
|
||||
<attribute name="contact5_name" label="第五联系人姓名" type="STRING" length="100"/>
|
||||
<attribute name="contact5_relation" label="第五联系人社会关系" type="STRING" length="100"/>
|
||||
<attribute name="contact4_mobile" label="第四联系人手机号" type="STRING" length="100"/>
|
||||
<attribute name="contact4_id_number" label="第四联系人身份证" type="STRING" length="100"/>
|
||||
<attribute name="contact4_name" label="第四联系人姓名" type="STRING" length="100"/>
|
||||
<attribute name="contact4_relation" label="第四联系人社会关系" type="STRING" length="100"/>
|
||||
<attribute name="contact3_mobile" label="第三联系人手机号" type="STRING" length="100"/>
|
||||
<attribute name="contact3_id_number" label="第三联系人身份证" type="STRING" length="100"/>
|
||||
<attribute name="contact3_name" label="第三联系人姓名" type="STRING" length="100"/>
|
||||
<attribute name="contact3_relation" label="第三联系人社会关系" type="STRING" length="100"/>
|
||||
<attribute name="contact2_mobile" label="第二联系人手机号" type="STRING" length="100"/>
|
||||
<attribute name="contact2_id_number" label="第二联系人身份证" type="STRING" length="100"/>
|
||||
<attribute name="contact2_name" label="第二联系人姓名" type="STRING" length="100"/>
|
||||
<attribute name="contact2_relation" label="第二联系人社会关系" type="STRING" length="100"/>
|
||||
<attribute name="contact1_mobile" label="第一联系人手机号" type="STRING" length="100"/>
|
||||
<attribute name="contact1_id_number" label="第一联系人身份证" type="STRING" length="100"/>
|
||||
<attribute name="contact1_name" label="第一联系人姓名" type="STRING" length="100"/>
|
||||
<attribute name="contact1_relation" label="第一联系人社会关系" type="STRING" length="100"/>
|
||||
<attribute name="account_name" label="借款人姓名" type="STRING" length="100"/>
|
||||
<attribute name="id_number" label="借款人身份证" type="STRING" length="100"/>
|
||||
<attribute name="account_mobile" label="借款人手机" type="STRING" length="100"/>
|
||||
<attribute name="account_phone" label="借款人座机" type="STRING" length="100"/>
|
||||
<attribute name="card_number" label="借款人卡号" type="STRING" length="100"/>
|
||||
<attribute name="qq_number" label="借款人QQ" type="STRING" length="100"/>
|
||||
<attribute name="account_email" label="借款人邮箱" type="STRING" length="100"/>
|
||||
<attribute name="lend_company" label="借款公司名称" type="STRING" length="100"/>
|
||||
<attribute name="account_phone_work" label="借款人单位电话" type="STRING" length="100"/>
|
||||
<attribute name="organization" label="借款人工作单位" type="STRING" length="100"/>
|
||||
<attribute name="account_address_work" label="借款人单位地址" type="STRING" length="100"/>
|
||||
<attribute name="loan_purpose" label="借款用途" type="STRING" length="100"/>
|
||||
<attribute name="coborrower_name" label="共同借款人姓名" type="STRING" length="100"/>
|
||||
<attribute name="coborrower_id_number" label="共同借款人身份证" type="STRING" length="100"/>
|
||||
<attribute name="coborrower_mobile" label="共同借款人手机" type="STRING" length="100"/>
|
||||
<attribute name="coborrower_phone" label="共同借款人座机" type="STRING" length="100"/>
|
||||
<attribute name="coborrower_company_address" label="共同借款人公司地址" type="STRING" length="100"/>
|
||||
<attribute name="coborrower_company" label="共同借款人工作单位" type="STRING" length="100"/>
|
||||
<attribute name="coborrower_home_address" label="共同借款人家庭地址" type="STRING" length="100"/>
|
||||
<attribute name="coborrower_relation" label="共同借款人社会关系" type="STRING" length="100"/>
|
||||
<attribute name="surety_name" label="担保人姓名" type="STRING" length="100"/>
|
||||
<attribute name="surety_id_number" label="担保人身份证" type="STRING" length="100"/>
|
||||
<attribute name="surety_mobile" label="担保人手机" type="STRING" length="100"/>
|
||||
<attribute name="surety_phone" label="担保人座机" type="STRING" length="100"/>
|
||||
<attribute name="surety_company_address" label="担保人公司地址" type="STRING" length="100"/>
|
||||
<attribute name="surety_home_address" label="担保人家庭地址" type="STRING" length="100"/>
|
||||
<attribute name="black_box" label="black_box" type="STRING" length="100"/>
|
||||
<attribute name="token_id" label="TokenId" type="STRING" length="100"/>
|
||||
<attribute name="ip_address" label="IP" type="STRING" length="100"/>
|
||||
<attribute name="retainfield1" label="保留字段1" type="STRING" length="100"/>
|
||||
<attribute name="retainfield2" label="保留字段2" type="STRING" length="100"/>
|
||||
<attribute name="retainfield3" label="保留字段3" type="STRING" length="100"/>
|
||||
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
|
||||
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
|
||||
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="100"/>
|
||||
<attribute name="updateorgid" label="更新部门" type="STRING" length="100"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="100"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_car_credit_temp" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
</jbo>
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
@ -17,8 +17,6 @@ public class LBGuarantorPerUnitHandler extends CommonHandler{
|
||||
BizObjectManager cpt = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME, tx);
|
||||
BizObject ci = cpt.newObject();
|
||||
ci.setAttributeValue("CUSTOMERID", bo.getAttribute("ASSUROR").getString());
|
||||
ci.setAttributeValue("FLOWUNID", bo.getAttribute("PAYACCOUNT").getString());
|
||||
ci.setAttributeValue("PAYACCOUNT", bo.getAttribute("PAYACCOUNT").getString());
|
||||
ci.setAttributeValue("FULLNAME", bo.getAttribute("FULLNAME").getString());
|
||||
ci.setAttributeValue("SEX", bo.getAttribute("SEX").getString());
|
||||
ci.setAttributeValue("CERTTYPE", bo.getAttribute("CERTTYPE").getString());
|
||||
|
||||
@ -46,11 +46,13 @@ public class LBCustomerRelaProjToContractBusiness extends BaseBussiness {
|
||||
}
|
||||
for(BizObject unit:unitList){
|
||||
fromCondtion.clear();
|
||||
fromCondtion.put("customerid", unit.getAttribute("ASSUROR").getString());
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_CERT.CLASS_NAME, fromCondtion, CUSTOMER_CERT_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_ADDRESS.CLASS_NAME, fromCondtion, CUSTOMER_ADDRESS_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
if(!("guarantee".equals(unit.getAttribute("DATA_STATE").toString()))){
|
||||
fromCondtion.put("customerid", unit.getAttribute("ASSUROR").getString());
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_CERT.CLASS_NAME, fromCondtion, CUSTOMER_CERT_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_ADDRESS.CLASS_NAME, fromCondtion, CUSTOMER_ADDRESS_TEMP.CLASS_NAME, null, other, null, Sqlca);
|
||||
}
|
||||
}
|
||||
|
||||
String sMessage="true";
|
||||
|
||||
@ -1,11 +1,20 @@
|
||||
package com.tenwa.lease.flow.project.commbusiness;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
|
||||
|
||||
import com.amarsoft.app.lc.workflow.action.GetFlowAction;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
|
||||
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
|
||||
@ -17,14 +26,38 @@ public class LBGuaranteeUnitFormalToTempBusiness extends BaseBussiness {
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String flowUnid=this.getAttribute("ObjectNo").toString();
|
||||
Map map=GetFlowAction.getFlowParamByFlowUnidAndTransaction(flowUnid,Sqlca);
|
||||
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
|
||||
Map<String,String>fromCondtion=this.getDefaultFormalToTempFromCondtion();
|
||||
if(map.containsKey("IsMakeContract")){
|
||||
fromCondtion.put("CONTRACT_ID", "");
|
||||
String ProjectId=this.getAttribute("ProjectId").toString();
|
||||
// Map map=GetFlowAction.getFlowParamByFlowUnidAndTransaction(flowUnid,Sqlca);
|
||||
// LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
|
||||
// Map<String,String>fromCondtion=this.getDefaultFormalToTempFromCondtion();
|
||||
// if(map.containsKey("IsMakeContract")){
|
||||
// fromCondtion.put("CONTRACT_ID", "");
|
||||
// }
|
||||
// Map<String,String>otherProperty=this.getDefaultOtherProperty();
|
||||
// service.copyOrLoadGuaranteeUnit(Sqlca, fromCondtion, null, otherProperty, ServiceOperatorEnum.FormalToTemp, null);
|
||||
|
||||
Map<String,String> fromCondtion = new HashMap<String,String>();
|
||||
Map<String,String> otherProperty = new HashMap<String,String>();
|
||||
BizObjectManager lgut = JBOFactory.getBizObjectManager(LB_GUARANTEE_UNIT.CLASS_NAME,Sqlca);
|
||||
List<BizObject> lguts = lgut.createQuery("select * from O where DATA_STATE='guarantee' and PROJECT_ID=:projectid")
|
||||
.setParameter("projectid", ProjectId).getResultList(false);
|
||||
for (BizObject lgu:lguts) {
|
||||
if(fromCondtion.size()>0){
|
||||
fromCondtion.clear();
|
||||
}
|
||||
if(otherProperty.size()>0){
|
||||
otherProperty.clear();
|
||||
}
|
||||
fromCondtion.put("id",lgu.getAttribute("id").toString());
|
||||
otherProperty.put("FLOWUNID", flowUnid);
|
||||
DataOperatorUtil.copySingleJBO(LB_GUARANTEE_UNIT.CLASS_NAME, fromCondtion, LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, null, otherProperty, Sqlca);
|
||||
if(fromCondtion.size()>0){
|
||||
fromCondtion.clear();
|
||||
}
|
||||
fromCondtion.put("CUSTOMERID",lgu.getAttribute("ASSUROR").toString());
|
||||
DataOperatorUtil.copySingleJBO(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, null, Sqlca);
|
||||
}
|
||||
Map<String,String>otherProperty=this.getDefaultOtherProperty();
|
||||
service.copyOrLoadGuaranteeUnit(Sqlca, fromCondtion, null, otherProperty, ServiceOperatorEnum.FormalToTemp, null);
|
||||
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
|
||||
@ -37,18 +37,14 @@ public class LBGuaranteeUnitTempToFormalBusiness extends BaseBussiness {
|
||||
Map<String,String> otherProperty = new HashMap<String,String>();
|
||||
BizObjectManager lgut = JBOFactory.getBizObjectManager(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME,Sqlca);
|
||||
List<BizObject> lguts = lgut.createQuery("select * from O left join jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP cpt "
|
||||
+ "on O.ASSUROR=cpt.CUSTOMERID where cpt.flowunid=:flowUnid")
|
||||
+ "on O.ASSUROR=cpt.CUSTOMERID where O.flowunid=:flowUnid and O.DATA_STATE='guarantee'")
|
||||
.setParameter("flowUnid", flowunid).getResultList(false);
|
||||
for (BizObject lgu:lguts) {
|
||||
if(fromCondtion.size()>0){
|
||||
fromCondtion.clear();
|
||||
}
|
||||
if(otherProperty.size()>0){
|
||||
otherProperty.clear();
|
||||
}
|
||||
fromCondtion.put("id",lgu.getAttribute("id").toString());
|
||||
otherProperty.put("DATA_STATE","guarantee");
|
||||
DataOperatorUtil.copySingleJBO(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, fromCondtion, LB_GUARANTEE_UNIT.CLASS_NAME, null, otherProperty, Sqlca);
|
||||
DataOperatorUtil.copySingleJBO(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, fromCondtion, LB_GUARANTEE_UNIT.CLASS_NAME, null, null, Sqlca);
|
||||
if(fromCondtion.size()>0){
|
||||
fromCondtion.clear();
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
BizObjectManager bmLCIT = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO_TEMP.CLASS_NAME,Sqlca);
|
||||
|
||||
Sqlca.join(bm);
|
||||
String customerid = UUIDUtil.getUUID();
|
||||
String customerId = UUIDUtil.getUUID();
|
||||
|
||||
BizObject bo = bm.newObject();
|
||||
BizObject boCRT = bmCPT.newObject();
|
||||
@ -49,19 +49,38 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
bmLCI.setAttributeValue("VERSIONID", this.getAttribute("versionid"));
|
||||
|
||||
boCRT.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
|
||||
boCRT.setAttributeValue("customerid", customerid);
|
||||
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
|
||||
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
|
||||
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
|
||||
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
|
||||
boCRT.setAttributeValue("CERTID", this.getAttribute("certid"));
|
||||
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));
|
||||
|
||||
bmLP.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
|
||||
bmLP.setAttributeValue("customerid", customerid);
|
||||
bmLP.setAttributeValue("enterprisename", this.getAttribute("custname"));
|
||||
bmLP.setAttributeValue("certtype", this.getAttribute("certtype"));
|
||||
bmLP.setAttributeValue("certid", this.getAttribute("certid"));
|
||||
//根据身份证号判断是否存在该客户,如果有,则带出客户编号
|
||||
String certId = this.getAttribute("certid").toString();
|
||||
BizObject bmbo = bmCPT.createQuery("certid=:certid").setParameter("certid", certId).getSingleResult(false);
|
||||
if(bmbo != null){
|
||||
customerId = bmbo.getAttribute("CUSTOMERID").toString();
|
||||
String customerName = bmbo.getAttribute("FULLNAME").toString();
|
||||
boCRT.setAttributeValue("customerid", customerId);
|
||||
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
|
||||
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
|
||||
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
|
||||
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
|
||||
boCRT.setAttributeValue("CERTID", certId);
|
||||
boCRT.setAttributeValue("FULLNAME", customerName);
|
||||
}else{
|
||||
boCRT.setAttributeValue("customerid", customerId);
|
||||
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
|
||||
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
|
||||
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
|
||||
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
|
||||
boCRT.setAttributeValue("CERTID", this.getAttribute("certid"));
|
||||
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));
|
||||
}
|
||||
|
||||
//根据客户类型设置参数
|
||||
String certType = this.getAttribute("certtype").toString();
|
||||
if(certType.equals("Ent01")){
|
||||
bmLP.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
|
||||
bmLP.setAttributeValue("customerid", customerId);
|
||||
bmLP.setAttributeValue("enterprisename", this.getAttribute("custname"));
|
||||
bmLP.setAttributeValue("certtype", this.getAttribute("certtype"));
|
||||
bmLP.setAttributeValue("certid", this.getAttribute("certid"));
|
||||
}
|
||||
|
||||
bmLEC.setAttributeValue("FLOWUNID", this.getAttribute("FlowUnid"));
|
||||
bmLEC.setAttributeValue("MODEL", this.getAttribute("carSystem"));
|
||||
@ -71,7 +90,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
|
||||
|
||||
boLULT.setAttributeValue("project_id", this.getAttribute("ProjectId"));
|
||||
boLULT.setAttributeValue("customer_id", customerid);
|
||||
boLULT.setAttributeValue("customer_id", customerId);
|
||||
boLULT.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
|
||||
boLULT.setAttributeValue("InputOrgID", asUser.getOrgID());
|
||||
boLULT.setAttributeValue("InputUserID", asUser.getUserID());
|
||||
@ -86,6 +105,7 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
|
||||
bo.setAttributeValue("project_name",this.getAttribute("ProjectNo"));
|
||||
bo.setAttributeValue("project_manage",this.getAttribute("CurUserID"));
|
||||
bo.setAttributeValue("project_dept",asUser.getOrgID());
|
||||
|
||||
String versionid = this.getAttribute("versionid").toString();
|
||||
String bustype = this.getAttribute("businessType").toString();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user