diff --git a/WebContent/Tenwa/Core/InvoiceManager/FundPaymentInvoice/LbInvoiceInfoTemp.jsp b/WebContent/Tenwa/Core/InvoiceManager/FundPaymentInvoice/LbInvoiceInfoTemp.jsp index 5dc236322..54bf8a455 100644 --- a/WebContent/Tenwa/Core/InvoiceManager/FundPaymentInvoice/LbInvoiceInfoTemp.jsp +++ b/WebContent/Tenwa/Core/InvoiceManager/FundPaymentInvoice/LbInvoiceInfoTemp.jsp @@ -27,12 +27,41 @@ function save(HAS_GPS){ setItemValue(0,0,"contract_id", "<%=ContractId%>"); setItemValue(0,0,"flow_unid", "<%=flowunid%>"); - as_save(0,"alert('数据保存成功');"); + var infoStatus = this.getInfoIsnull(); + if(infoStatus){ + as_save(0); + }else{ + as_delete("myiframe0"); + } if(HAS_GPS=="Y"||HAS_GPS=="N"){ var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.contract.check.ContractInfoCheck","saveGps","contractid=<%=ContractId%>,hasGps="+HAS_GPS); - }; - + alert("数据保存成功"); + } + //判断页面是否输入发票信息 + function getInfoIsnull(){ + var infoStatus = false; + var invoiceCode = getItemValue(0,getRow(0),"Invoice_code"); + if(invoiceCode!=null && invoiceCode!='undefined' && invoiceCode.length>0){ + return true; + } + var invoiceNumber = getItemValue(0,getRow(0),"Invoice_number"); + if(invoiceNumber!=null && invoiceNumber!='undefined' && invoiceNumber.length>0){ + return true; + } + var invoiceDate = getItemValue(0,getRow(0),"Invoice_date"); + if(invoiceDate!=null && invoiceDate!='undefined' && invoiceDate.length>0){ + return true; + } + var invoiceMoney = getItemValue(0,getRow(0),"Invoice_money"); + if(invoiceMoney!=null && invoiceMoney!='undefined' && invoiceMoney.length>0){ + return true; + } + var taxDue = getItemValue(0,getRow(0),"tax_due"); + if(taxDue!=null && taxDue!='undefined' && taxDue.length>0){ + return true; + } + return infoStatus; } $(function(){ //setItemReadOnly(0,0,"INVOICE_DATE",true); diff --git a/src_sql/鎶曚骇SQL/V20200521/tft_20200521.sql b/src_sql/鎶曚骇SQL/V20200521/tft_20200521.sql new file mode 100644 index 000000000..2f98a15c5 --- /dev/null +++ b/src_sql/鎶曚骇SQL/V20200521/tft_20200521.sql @@ -0,0 +1,20 @@ +-- 付款申请发票信息改成非必填 +delete from awe_do_library where dono='LB_INVOICE_INFO_TEMP' and colindex='1030'; +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1030','1030','1','O','Invoice_code','Invoice_code','String','','发票代码','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/04/29 11:11:48','0','','1','','','',''); +delete from awe_do_library where dono='LB_INVOICE_INFO_TEMP' and colindex='1040'; +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1040','1040','1','O','Invoice_number','Invoice_number','String','','发票号码','','1','Text','1','1','','','','32','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/04/29 11:11:42','0','','1','','','',''); +delete from awe_do_library where dono='LB_INVOICE_INFO_TEMP' and colindex='1050'; +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1050','1050','1','O','Invoice_date','Invoice_date','String','','开票日期','','1','Date','3','2','','','','100','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/04/29 11:11:56','0','','1','','','',''); +delete from awe_do_library where dono='LB_INVOICE_INFO_TEMP' and colindex='1060'; +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1060','1060','1','O','Invoice_money','Invoice_money','String','','开票金额','','1','Text','2','1','','','','20','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/04/29 11:12:07','0','','1','','','',''); +delete from awe_do_library where dono='LB_INVOICE_INFO_TEMP' and colindex='1070'; +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('LB_INVOICE_INFO_TEMP','1070','1070','1','O','tax_due','tax_due','String','','税金','','1','Text','2','1','','','','20','1','0','0','1','1',1,'0','','','SYS_DESIGNER','2020/03/16 11:42:17','SYS_Designer','2020/04/24 16:06:23','0','','1','','','',''); +delete from SCENARIO_MODEL where scenarioid='付款申请(汽车)' and modelid='0040'; +Insert Into SCENARIO_MODEL (scenarioid,modelid,sortno,modelname,modeldescribe,modeltype,subtypeno,runcondition,status,nopassdeal,passdeal,passmessage,nopassmessage,executescript,remark,inputuser,inputorg,inputtime,updateuser,updatetime,groupid,modelkind,bizviewer) Values ('付款申请(汽车)','0040','0040','发票信息是否填写','','20','','','1','20',null,'发票信息已填写','发票信息未填写!','SELECT CASE WHEN id IS NOT NULL THEN ''true'' ELSE ''false'' END FROM lb_Invoice_info_temp WHERE flow_unid=''#{ObjectNo}''','',null,null,null,null,null,null,null,null); + + + + + + + diff --git a/src_tenwa/com/tenwa/apzl/comm/CopyLbCarLicensePlateTempToForm.java b/src_tenwa/com/tenwa/apzl/comm/CopyLbCarLicensePlateTempToForm.java index 8de7fc550..41df2ee90 100644 --- a/src_tenwa/com/tenwa/apzl/comm/CopyLbCarLicensePlateTempToForm.java +++ b/src_tenwa/com/tenwa/apzl/comm/CopyLbCarLicensePlateTempToForm.java @@ -6,6 +6,9 @@ import java.util.Map; import jbo.com.tenwa.lease.comm.LB_CAR_LICENSE_PLATE_INFO; import jbo.com.tenwa.lease.comm.LB_CAR_LICENSE_PLATE_INFO_TEMP; +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.awe.util.SqlObject; import com.amarsoft.awe.util.Transaction; import com.tenwa.comm.util.jboutil.DataOperatorUtil; import com.tenwa.flow.baseBussion.BaseBussiness; @@ -20,6 +23,11 @@ public class CopyLbCarLicensePlateTempToForm extends BaseBussiness{ fromCondtion.put("FLOWUNID", flowunid); Map toCondtion = new HashMap(); toCondtion.put("contract_id", contract_id); + BizObject lclpit = JBOFactory.createBizObjectQuery(LB_CAR_LICENSE_PLATE_INFO_TEMP.CLASS_NAME, "FLOWUNID=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + if(lclpit !=null && lclpit.getAttribute("plate_number") !=null ){ + Sqlca.executeSQL(new SqlObject("UPDATE LB_EQUIPMENT_CAR SET LICENSE_PLATE_NUMBER='"+lclpit.getAttribute("plate_number").getString()+"' WHERE contract_id='"+contract_id+"'")); + } + DataOperatorUtil.copySingleJBO(LB_CAR_LICENSE_PLATE_INFO_TEMP.CLASS_NAME, fromCondtion, LB_CAR_LICENSE_PLATE_INFO.CLASS_NAME, toCondtion, null, Sqlca); return "true"; } diff --git a/鎶ヨ〃/姹借溅绫绘姤琛ㄤ簩/妗f褰掓。鎶ヨ〃鏂.xml b/鎶ヨ〃/姹借溅绫绘姤琛ㄤ簩/妗f褰掓。鎶ヨ〃鏂.xml index 72f1adfae..60c8d4915 100644 --- a/鎶ヨ〃/姹借溅绫绘姤琛ㄤ簩/妗f褰掓。鎶ヨ〃鏂.xml +++ b/鎶ヨ〃/姹借溅绫绘姤琛ㄤ簩/妗f褰掓。鎶ヨ〃鏂.xml @@ -36,25 +36,51 @@ archive 2c9023815726a036015726a496b00001 COMPLEXSQL - SELECT di.distributor_name,lci.contract_number,lcs.status_name,LUL.CUSTOMER_NAME,lec.frame_number,lfi.fact_date,lcl.PLATE_NUMBER,LEC.REGDATE, + SELECT lci.subjectname,di.distributor_name,lci.contract_number,lcs.itemname AS status_name,LUL.CUSTOMER_NAME,lec.frame_number,lfi.fact_date,lcl.PLATE_NUMBER,LEC.REGDATE, CASE WHEN lcl.is_pledge='Y'THEN '瀹屾垚' ELSE '鏈畬鎴' END AS is_pledge, -lcl.pledge_date,lfa.ARCHIVING_PERSON,DATEDIFF(lcl.pledge_date,lfi.fact_date) AS pledge_plan, +lcl.pledge_date,lfa.ARCHIVING_PERSON,lfa.ARCHIVING_CABINET_NO asarchivingCabinetNo ,lfa.FILE_NUMBER as fileNumber,DATEDIFF(lcl.pledge_date,lfi.fact_date) AS pledge_plan, CASE WHEN lcl.is_delay='Y' THEN '鎻愪氦寤惰繜鐢宠' WHEN lcl.is_delay='N' THEN '鏈彁浜ゅ欢杩熺敵璇' ELSE lcl.is_delay END AS is_delay, lcl.delay_date,DATEDIFF(lcl.delay_date,lfi.fact_date) AS delay_plan, -CASE WHEN IFNULL(lfa.ARCHIVING_TIME,'鏈畬鎴')=lfa.ARCHIVING_TIME THEN '褰掓。瀹屾垚' ELSE '褰掓。鏈畬鎴' END AS is_ARCHIVING, -lfa.ARCHIVING_TIME,lfm.ARCHIVING_TIME as times +IFNULL(cl.itemname,'鏈綊妗') AS is_ARCHIVING, +LEFT(en.endtime,10) AS ARCHIVING_TIME,CASE WHEN (lfm.ALLHANDOVERSTATUS='all' OR lfm.ALLHANDOVERSTATUS='绯荤粺褰掓。') THEN lfm.ARCHIVING_TIME ELSE '' END AS times FROM lb_contract_info lci LEFT JOIN LB_FILE_ARCHIVING_INFO lfa ON lci.id=lfa.contract_id LEFT JOIN lb_equipment_car lec ON lec.contract_id=lci.id LEFT JOIN distributor_info di ON di.distributor_no=lci.distributor_id LEFT JOIN lb_car_license_plate_info lcl ON lcl.contract_id=lci.id LEFT JOIN lc_fund_income lfi ON lfi.contract_id=lci.id AND lfi.fee_type='feetype10' AND lfi.settle_method<>'settlemethod11' AND lfi.pay_status='have_paid' LEFT JOIN lb_union_lessee lul ON lul.PROJECT_ID = lci.PROJECT_ID -left join lb_contract_status lcs on lcs.status_code = lci.contract_status -left join LB_FILE_MAILARCHIVING_INFO lfm on lfm.contract_id=lci.id +LEFT JOIN (SELECT bs.contract_number,cl.itemname + FROM business_status AS bs, + ( + SELECT contract_number,MAX(inputtime) AS inputtime FROM business_status WHERE contract_number LIKE 'BQAP(%' GROUP BY contract_number + ) AS bb,code_library cl + WHERE bs.inputtime=bb.inputtime AND bb.contract_number = bs.contract_number AND bs.business_status=cl.itemno AND cl.codeno='BusinessStatus' +) lcs ON lcs.contract_number=lci.contract_no +LEFT JOIN LB_FILE_MAILARCHIVING_INFO lfm ON lfm.contract_id=lci.id LEFT JOIN code_library cl ON cl.codeno='allHandOverStatus' AND cl.itemno=lfm.ALLHANDOVERSTATUS LEFT JOIN (SELECT ft.endtime AS endtime,fbo.contract_id AS contract_id + FROM flow_task ft LEFT JOIN flow_bussiness_object fbo ON fbo.flow_unid=ft.objectno WHERE ft.flowno='MortgageFileFlow' AND ft.phaseno='1000' GROUP BY fbo.contract_id) en ON en.contract_id=lci.id WHERE lci.businesstype='1' AND (lci.contract_status='31' OR lci.contract_status='100') ORDER BY lfi.fact_date DESC + + 2c9c81b969188a33016fa447da2e04b4 + subjectname + STRING + + + subjectname + 210 + 22 + true + + false + false + false + false + + + + 2c9c81b969188a33016ce6c61e6e00dc distributor_name @@ -63,7 +89,7 @@ ORDER BY lfi.fact_date DESC distributor_name 100 - 18 + 23 true false @@ -82,7 +108,7 @@ ORDER BY lfi.fact_date DESC contract_number 150 - 19 + 24 true false @@ -101,7 +127,7 @@ ORDER BY lfi.fact_date DESC status_name 100 - 20 + 25 true false @@ -120,7 +146,7 @@ ORDER BY lfi.fact_date DESC CUSTOMER_NAME 100 - 21 + 26 true false @@ -139,7 +165,7 @@ ORDER BY lfi.fact_date DESC frame_number 150 - 22 + 27 true false @@ -158,7 +184,7 @@ ORDER BY lfi.fact_date DESC fact_date 100 - 23 + 28 true false @@ -177,7 +203,7 @@ ORDER BY lfi.fact_date DESC PLATE_NUMBER 100 - 24 + 29 true false @@ -196,7 +222,7 @@ ORDER BY lfi.fact_date DESC REGDATE 100 - 25 + 30 true false @@ -215,7 +241,7 @@ ORDER BY lfi.fact_date DESC is_pledge 100 - 26 + 31 true false @@ -234,7 +260,7 @@ ORDER BY lfi.fact_date DESC pledge_date 100 - 27 + 32 true false @@ -253,7 +279,45 @@ ORDER BY lfi.fact_date DESC ARCHIVING_PERSON 100 - 28 + 33 + true + + false + false + false + false + + + + + + 2c9c81b671a16ace01723e0266980004 + asarchivingCabinetNo + STRING + + + asarchivingCabinetNo + 100 + 34 + true + + false + false + false + false + + + + + + 2c9c81b671a16ace01723e0266980005 + fileNumber + STRING + + + fileNumber + 100 + 35 true false @@ -272,7 +336,7 @@ ORDER BY lfi.fact_date DESC pledge_plan 180 - 29 + 36 true false @@ -291,7 +355,7 @@ ORDER BY lfi.fact_date DESC is_delay 120 - 30 + 37 true false @@ -310,7 +374,7 @@ ORDER BY lfi.fact_date DESC delay_date 120 - 31 + 38 true false @@ -329,26 +393,7 @@ ORDER BY lfi.fact_date DESC delay_plan 220 - 32 - true - - false - false - false - false - - - - - - 2c9c81b969188a33016ce6c61e6e00d9 - is_ARCHIVING - STRING - - - is_ARCHIVING - 100 - 33 + 39 true false @@ -364,10 +409,29 @@ ORDER BY lfi.fact_date DESC ARCHIVING_TIME STRING - + ARCHIVING_TIME 100 - 34 + 40 + true + + false + false + false + false + + + + + + 2c9c81b969188a33016ce6c61e6e00d9 + is_ARCHIVING + STRING + + + is_ARCHIVING + 100 + 41 true false @@ -383,10 +447,10 @@ ORDER BY lfi.fact_date DESC times STRING - + times 100 - 35 + 42 true false @@ -452,6 +516,16 @@ ORDER BY lfi.fact_date DESC TEXT 4 + + 2c9c81b969188a33016fa447da2e04b3 + subjectname + subjectname + + FILTER + STRING + TEXT + 5 + 20