Commit 15233c0c authored by niminmin's avatar niminmin

Merge branch 'feature/报表及线上问题对应' into develop

# Conflicts:
#	src/main/webapp/modules/cont/CON500/con_doc_batch_create.lsc
parents 00479ad3 9981eb86
Pipeline #5764 canceled with stages
package leaf.plugin.word2pdf;
import java.io.*;
import com.aspose.cells.Workbook;
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
import com.aspose.words.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class AsposeUtil {
private static final Logger logger = LoggerFactory.getLogger(AsposeUtil.class);
//校验license
private static boolean judgeLicense() {
boolean result = false;
try {
InputStream is = AsposeUtil.class.getClassLoader().getResourceAsStream("license.xml");
License aposeLic = new License();
aposeLic.setLicense(is);
result = true;
} catch (Exception e) {
e.printStackTrace();
}
return result;
}
// 转换
public static void trans(String filePath, String pdfPath, String type) {
if (!judgeLicense()) {
logger.error("error","license错误");
}
try {
logger.info("as开始:" + filePath);
long old = System.currentTimeMillis();
File file = new File(pdfPath);
if (file.exists()) {
file.delete();
}
toPdf(file, filePath, type);
long now = System.currentTimeMillis();
logger.info("完成:" + pdfPath);
logger.info("共耗时:" + ((now - old) / 1000.0) + "秒");
} catch (Exception e) {
logger.error("pdf转换失败", e);
}
}
private static void toPdf(File file, String filePath, String type) {
if ("word".equals(type) || "txt".equals(type)) {
wordofpdf(file, filePath);
} else if ("excel".equals(type)) {
exceOfPdf(file, filePath);
} else if ("ppt".equals(type)) {
pptofpdf(file, filePath);
}else{
logger.error("error", "暂不支持该类型:"+type);
}
}
private static void wordofpdf(File file, String filePath) {
FileOutputStream os = null;
Document doc;
try {
os = new FileOutputStream(file);
doc = new Document(filePath);
doc.save(os, com.aspose.words.SaveFormat.PDF);
} catch (Exception e) {
logger.error("pdf转换失败", e);
} finally {
try {
os.close();
} catch (IOException e) {
logger.error("pdf转换失败", e);
}
}
}
private static void exceOfPdf(File file, String filePath) {
FileOutputStream os = null;
try {
os = new FileOutputStream(file);
Workbook wb = new Workbook(filePath);
wb.save(os, com.aspose.cells.SaveFormat.PDF);
} catch (Exception e) {
logger.error("pdf转换失败", e);
} finally {
try {
os.close();
} catch (IOException e) {
logger.error("pdf转换失败", e);
}
}
}
private static void pptofpdf(File file, String filePath) {
FileOutputStream os = null;
try {
os = new FileOutputStream(file);
Presentation pres = new Presentation(filePath);// 输入pdf路径
pres.save(os, SaveFormat.Pdf);
} catch (Exception e) {
logger.error("pdf转换失败", e);
} finally {
try {
os.close();
} catch (IOException e) {
logger.error("pdf转换失败", e);
}
}
}
public static void main(String[] args) throws Exception {
// String jacobDllPath = "D:\\ideaProjects\\leaf-hlcm\\src\\main\\webapp\\WEB-INF\\server-script\\jacob\\jacob-1.18-x64.dll";
// System.setProperty("jacob.dll.path", jacobDllPath);
// System.setProperty("com.jacob.debug", "true");
// trans("D:\\u01\\hls_file\\excel\\8F5D12B0B1504518928FDD193C67A0A5con28168",
// "D:\\hand-Prpjects\\融资租赁合同文本-5pdf.pdf","word");
// cutPdf("D:\\\\hand-Prpjects\\\\付款请求书打印.pdf");
// excel2pdf("D:\\work\\leafProjects\\YondaTl\\src\\test.xlsx",
// "D:\\work\\leafProjects\\YondaTl\\src\\付款通知书NEW.pdf");
// excel2pdfOrientation("D:\\work\\leafProjects\\YondaTl\\src\\test.xlsx",
// "D:\\work\\leafProjects\\YondaTl\\src\\付款通知书NEW.pdf");
}
}
package leaf.plugin.word2pdf;
public class Test {
public static void testWord(String path_word, String pafpath) throws Exception {
String word1 = path_word + "01正方数字.docx";
String word2 = path_word + "02正方数字.docx";
String word3 = path_word + "03正方数字.doc";
String word4 = path_word + "04正方数字.doc";
String word5 = path_word + "05正方数字.docx";
String word6 = path_word + "06正方数字.doc";
AsposeUtil.trans(word1, pafpath + "aspose-word-01测试.pdf","word");
AsposeUtil.trans(word2, pafpath + "aspose-word-02测试.pdf","word");
AsposeUtil.trans(word3, pafpath + "aspose-word-03测试.pdf","word");
AsposeUtil.trans(word4, pafpath + "aspose-word-04测试.pdf","word");
AsposeUtil.trans(word5, pafpath + "aspose-word-05测试.pdf","word");
AsposeUtil.trans(word6, pafpath + "aspose-word-06测试.pdf","word");
}
public static void testWord2(String path_word, String pafpath) throws Exception {
String word1 = path_word + "01.docx";
String word2 = path_word + "02.docx";
String word3 = path_word + "03.doc";
String word4 = path_word + "04.doc";
String word5 = path_word + "05.docx";
String word6 = path_word + "06.doc";
AsposeUtil.trans(word1, pafpath + "aspose-word-01.pdf","word");
AsposeUtil.trans(word2, pafpath + "aspose-word-02.pdf","word");
AsposeUtil.trans(word3, pafpath + "aspose-word-03.pdf","word");
AsposeUtil.trans(word4, pafpath + "aspose-word-04.pdf","word");
AsposeUtil.trans(word5, pafpath + "aspose-word-05.pdf","word");
AsposeUtil.trans(word6, pafpath + "aspose-word-06.pdf","word");
}
public static void testTxt(String path_word, String pafpath) throws Exception {
String txt1 = path_word + "01jvm.txt";
String txt2 = path_word + "02jvm.txt";
String txt3 = path_word + "03jvm.txt";
AsposeUtil.trans(txt1, pafpath + "aspose-txt-01测试.pdf","txt");
AsposeUtil.trans(txt2, pafpath + "aspose-txt-02测试.pdf","txt");
AsposeUtil.trans(txt3, pafpath + "aspose-txt-03测试.pdf","txt");
}
public static void testTxt2(String path_word, String pafpath) throws Exception {
String txt1 = path_word + "01jvm.txt";
String txt2 = path_word + "02jvm.txt";
String txt3 = path_word + "03jvm.txt";
AsposeUtil.trans(txt1, pafpath + "aspose-txt-01.pdf","txt");
AsposeUtil.trans(txt2, pafpath + "aspose-txt-02.pdf","txt");
AsposeUtil.trans(txt3, pafpath + "aspose-txt-03.pdf","txt");
}
public static void testExcel(String path_word, String pafpath) throws Exception {
String txt1 = path_word + "01部门开发任务管理.xlsx";
String txt2 = path_word + "02部门开发任务管理.xlsx";
String txt3 = path_word + "03部门开发任务管理.xlsx";
AsposeUtil.trans(txt1, pafpath + "aspose-excel-01测试.pdf","txt");
AsposeUtil.trans(txt2, pafpath + "aspose-excel-02测试.pdf","txt");
AsposeUtil.trans(txt3, pafpath + "aspose-excel-03测试.pdf","txt");
}
public static void testExcel2(String path_word, String pafpath) throws Exception {
String txt1 = path_word + "01.xlsx";
String txt2 = path_word + "02.xlsx";
String txt3 = path_word + "03.xlsx";
AsposeUtil.trans(txt1, pafpath + "aspose-excel-01.pdf","txt");
AsposeUtil.trans(txt2, pafpath + "aspose-excel-02.pdf","txt");
AsposeUtil.trans(txt3, pafpath + "aspose-excel-03.pdf","txt");
}
public static void testPPt(String path_ppt, String pafpath) throws Exception {
String txt1 = path_ppt + "01jquery.pptx";
String txt2 = path_ppt + "02jquery.pptx";
String txt3 = path_ppt + "03jquery.ppt";
AsposeUtil.trans(txt1, pafpath + "aspose-ppt-01测试.pdf","ppt");
AsposeUtil.trans(txt2, pafpath + "aspose-ppt-02测试.pdf","ppt");
AsposeUtil.trans(txt3, pafpath + "aspose-ppt-03测试.pdf","ppt");
}
public static void testPPt2(String path_ppt, String pafpath) throws Exception {
String txt1 = path_ppt + "01jquery.pptx";
String txt2 = path_ppt + "02jquery.pptx";
String txt3 = path_ppt + "03jquery培训.ppt";
AsposeUtil.trans(txt1, pafpath + "aspose-ppt-01.pdf","ppt");
AsposeUtil.trans(txt2, pafpath + "aspose-ppt-02.pdf","ppt");
AsposeUtil.trans(txt3, pafpath + "aspose-ppt-03.pdf","ppt");
}
public static void winTest() throws Exception {
String path_word = "C:/Users/Administrator.DESKTOP-QN9A3AA/Desktop/office/测试文档/转换前文档/01word/";
String path_txt = "C:/Users/Administrator.DESKTOP-QN9A3AA/Desktop/office/测试文档/转换前文档/02txt/";
String path_excel = "C:/Users/Administrator.DESKTOP-QN9A3AA/Desktop/office/测试文档/转换前文档/03excel/";
String path_ppt = "C:/Users/Administrator.DESKTOP-QN9A3AA/Desktop/office/测试文档/转换前文档/04ppt/";
String pafpath = "C:/Users/Administrator.DESKTOP-QN9A3AA/Desktop/office/测试文档/pdf/";
System.out.println("************************");
testWord(path_word, pafpath);
System.out.println("************************");
testTxt(path_txt, pafpath);
System.out.println("************************");
testExcel(path_excel, pafpath);
System.out.println("************************");
testPPt(path_ppt, pafpath);
}
public static void LinuxTest() throws Exception {
String path_word = "/software/songyan/hah/01word/";
String path_txt = "/software/songyan/hah/02txt/";
String path_excel = "/software/songyan/hah/03excel/";
String path_ppt = "/software/songyan/hah/04ppt/";
String pafpath = "/software/songyan/hah/pdf/";
System.out.println("************************");
testWord(path_word, pafpath);
System.out.println("************************");
testTxt(path_txt, pafpath);
System.out.println("************************");
testExcel(path_excel, pafpath);
System.out.println("************************");
testPPt(path_ppt, pafpath);
}
public static void LinuxTest2() throws Exception {
String path_word = "/software/songyan/hah/01word/";
String path_txt = "/software/songyan/hah/02txt/";
String path_excel = "/software/songyan/hah/03excel/";
String path_ppt = "/software/songyan/hah/04ppt/";
String pafpath = "/software/songyan/hah/pdf/";
System.out.println("************************");
testWord2(path_word, pafpath);
System.out.println("************************");
testTxt2(path_txt, pafpath);
System.out.println("************************");
testExcel2(path_excel, pafpath);
System.out.println("************************");
testPPt2(path_ppt, pafpath);
}
public static void main(String[] args) throws Exception {
winTest();
}
}
\ No newline at end of file
......@@ -28,9 +28,10 @@ public class WordToPdf {
// 添加jacob-1.18-x64.dll到C:\Java\jre1.7.0_79\bin目录 或者按照以下代码进行设置
// D:\work\leafProjects\MX_leasing\web\WEB-INF\server-script\jacob\jacob-1.18-x64.dll
jacobDllPath = webInfPath + "/server-script/jacob/" + jacobDllName;
jacobDllPath = webInfPath + "/server-script/jacob/" + jacobDllName;
System.setProperty("jacob.dll.path", jacobDllPath);
System.setProperty("com.jacob.debug", "true");
logger.info("加载的配置文件路径:" + jacobDllPath);
}
public static boolean word2pdf(String inFilePath, String outFilePath) {
......@@ -41,8 +42,11 @@ public class WordToPdf {
Dispatch doc = null;
boolean flag = false;
try {
ComThread.InitMTA();
app = new ActiveXComponent("Word.Application");
// logger.info("Word转PDF开始启动...234");
app.setProperty("Visible", new Variant(false));
// logger.info("Word转PDF开始启动...456");
Dispatch docs = app.getProperty("Documents").toDispatch();
logger.info("打开文档:" + inFilePath);
doc = Dispatch.invoke(
......@@ -64,7 +68,9 @@ public class WordToPdf {
logger.info("转换完成,用时:" + (end - start) + "ms");
flag = true;
} catch (Exception e) {
// logger.error("error",e);
logger.info("Word转PDF出错:" + e.getMessage());
// logger.info("Word转PDF出错:" + e.toString());
flag = false;
logger.info("关闭文档");
if (app != null) {
......@@ -168,6 +174,7 @@ public class WordToPdf {
public static void main(String[] args) throws Exception {
// String jacobDllPath = "D:\\ideaProjects\\leaf-hlcm\\src\\main\\webapp\\WEB-INF\\server-script\\jacob\\jacob-1.18-x64.dll";
// System.setProperty("jacob.dll.path", jacobDllPath);
// System.setProperty("com.jacob.debug", "true");
......
package leaf.plugin.word2pdf;
import com.artofsolving.jodconverter.DocumentConverter;
import com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection;
import com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection;
import com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
public class doc2pdf2 {
private static final Logger logger = LoggerFactory.getLogger(doc2pdf2.class);
/**
* doc转pdf(程序启动openoffice)
*
* @param inFilePath 输入文件
* @param outFilePath 输出文件
* @return
*/
public static boolean doc2pdf2(String officePath, String inFilePath, String outFilePath) {
boolean result = false;
// 源文件目录
File inputFile = new File(inFilePath);
if (!inputFile.exists()) {
System.out.println("源文件不存在!");
return false;
}
// 输出文件目录
File outputFile = new File(outFilePath);
if (outputFile.exists()) {
outputFile.delete();
}
// OpenOffice的安装目录
// String OpenOffice_HOME = "C:/Program Files (x86)/OpenOffice 4";//G:/Program Files (x86)/OpenOffice
String OpenOffice_HOME = officePath;
if (OpenOffice_HOME.charAt(OpenOffice_HOME.length() - 1) != '/') {
OpenOffice_HOME += "/";
}
Process process = null;
try {
logger.info("Word转PDF开始启动...");
logger.info("Word转PDF开始启动..."+outFilePath);
// 启动OpenOffice的服务
String command = OpenOffice_HOME
+ "program/soffice.exe -headless -accept=\"socket,host=127.0.0.1,port=8100;urp;\"";
// System.out.println(command);
logger.info("Word转PDF开始启动...命令"+command);
process = Runtime.getRuntime().exec(command);
// 连接 OpenOffice实例,运行在8100端口
OpenOfficeConnection connection = new SocketOpenOfficeConnection("127.0.0.1", 8100);
connection.connect();
logger.info("Word转PDF开始启动...3232323");
// 转换
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(inputFile, outputFile);
// 关闭连接
connection.disconnect();
// 销毁OpenOffice服务的进程
process.destroy();
logger.info("****pdf转换成功,PDF输出:" + outputFile.getPath() + "****");
return true;
} catch (Exception e) {
logger.error("pdf转换失败", e);
} finally {
if (process != null) {
process.destroy();
}
}
return result;
}
public static void main(String[] args) throws Exception {
// String jacobDllPath = "D:\\ideaProjects\\leaf-hlcm\\src\\main\\webapp\\WEB-INF\\server-script\\jacob\\jacob-1.18-x64.dll";
// System.setProperty("jacob.dll.path", jacobDllPath);
// System.setProperty("com.jacob.debug", "true");
doc2pdf2("C:/Program Files (x86)/OpenOffice 4","D:\\u01\\hls_file\\excel\\1C676966F0684947A67356CDB537C45Ccon28167.docx",
"D:\\hand-Prpjects\\融资租赁合同文本-4pdf.pdf");
// cutPdf("D:\\\\hand-Prpjects\\\\付款请求书打印.pdf");
// excel2pdf("D:\\work\\leafProjects\\YondaTl\\src\\test.xlsx",
// "D:\\work\\leafProjects\\YondaTl\\src\\付款通知书NEW.pdf");
// excel2pdfOrientation("D:\\work\\leafProjects\\YondaTl\\src\\test.xlsx",
// "D:\\work\\leafProjects\\YondaTl\\src\\付款通知书NEW.pdf");
}
}
<License>
<Data>
<Products>
<Product>Aspose.Total for Java</Product>
<Product>Aspose.Words for Java</Product>
</Products>
<EditionType>Enterprise</EditionType>
<SubscriptionExpiry>20991231</SubscriptionExpiry>
<LicenseExpiry>20991231</LicenseExpiry>
<SerialNumber>8bfe198c-7f0c-4ef8-8ff0-acc3237bf0d7</SerialNumber>
</Data>
<Signature>sNLLKGMUdF0r8O1kKilWAGdgfs2BvJb/2Xp8p5iuDVfZXmhppo+d0Ran1P9TKdjV4ABwAgKXxJ3jcQTqE/2IRfqwnPf8itN8aFZlV3TJPYeD3yWE7IT55Gz6EijUpC7aKeoohTb4w2fpox58wWoF3SNp6sK6jDfiAUGEHYJ9pjU=</Signature>
</License>
\ No newline at end of file
......@@ -64,6 +64,9 @@
<bm:field name="secondary_lease"/>
<bm:field name="vender_id"/>
<bm:field name="vender_id_n" expression="(select scv.bp_name from hls_bp_master scv where scv.enabled_flag=&apos;Y&apos; and scv.bp_id = t1.vender_id)" forInsert="false" forUpdate="false"/>
<bm:field name="pay_method"/>
<bm:field name="pay_method_n" expression="(select code_value_name from sys_code_values_v scv where scv.code=&apos;PAY_METHODS&apos; and scv.code_value = t1.pay_method)" forInsert="false" forUpdate="false"/>
<bm:field name="finance_type_n" expression="(select code_value_name from sys_code_values_v scv where scv.code=&apos;FINANCE_TYPE&apos; and scv.code_value = t1.finance_type)" forInsert="false" forUpdate="false"/>
</bm:fields>
......
......@@ -36,7 +36,8 @@
ct.contract_id = cc.contract_id
) to_file_name,
lt.pwd,
cc.content_id
cc.content_id,
t.templet_code
FROM
fnd_atm_attachment faa,
fnd_atm_attachment_multi m,
......@@ -69,5 +70,6 @@
<bm:field name="to_file_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TO_FILE_NAME"/>
<bm:field name="pwd" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PWD"/>
<bm:field name="content_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTENT_ID"/>
<bm:field name="templet_code" databaseType="VARCHAR2" datatype="java.lang.String"/>
</bm:fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: sf
$Date: 2019-01-14 16:29:48
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select *
from SYS_ROLE_VL t1
#WHERE_CLAUSE#
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="role_id" queryOperator="="/>
</bm:query-fields>
</bm:model>
......@@ -9,18 +9,246 @@
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select t.*,
m.bp_name bp_id_agent_level1_n,
(select m.bp_code from hls_bp_master m where m.bp_id = t.bp_id) bp_code,
(select contract_number from con_contract where contract_id=t.contract_id) contract_number,
g.account_code account_id_n,
(select description_text from fnd_descriptions where description_id = g.description_id and language = 'ZHS' ) account_name
from con_cashflow_monthly_temp t,hls_bp_master m,gld_accounts g
where m.bp_id = t.agent_bp_id
and g.account_id = t.account_id
and t.session_id = ${/session/@session_id}
order by t.contract_id desc,g.account_code
select *
from (select t.unreceived_sum_amount,
t.overdue_sum_amount,
not_due_sum_amount,
t.overdue_amount_1,
t.overdue_amount_2,
t.overdue_amount_3,
t.overdue_amount_left,
t.not_due_amount_1,
t.not_due_amount_2,
t.not_due_amount_3,
t.not_due_amount_4,
t.not_due_amount_5,
t.not_due_amount_6,
t.not_due_amount_left,
t.not_due_amount_7,
t.not_due_amount_8,
t.not_due_amount_9,
t.not_due_amount_10,
t.not_due_amount_11,
t.not_due_amount_12,
t.not_due_amount_13,
t.not_due_amount_14,
t.not_due_amount_15,
t.not_due_amount_16,
t.not_due_amount_17,
t.not_due_amount_18,
t.not_due_amount_19,
t.not_due_amount_20,
t.not_due_amount_21,
t.not_due_amount_22,
t.not_due_amount_23,
t.not_due_amount_24,
t.not_due_amount_25,
t.not_due_amount_26,
t.not_due_amount_27,
t.not_due_amount_28,
t.not_due_amount_29,
t.not_due_amount_30,
t.not_due_amount_31,
t.not_due_amount_32,
t.not_due_amount_33,
t.not_due_amount_34,
t.not_due_amount_35,
t.not_due_amount_36,
t.not_due_amount_37,
t.not_due_amount_38,
t.not_due_amount_39,
t.not_due_amount_40,
t.not_due_amount_41,
t.not_due_amount_42,
t.not_due_amount_43,
t.not_due_amount_44,
t.not_due_amount_45,
t.not_due_amount_46,
t.not_due_amount_47,
t.not_due_amount_48,
t.not_due_amount_48_left,
t.not_due_amount_year_1,
t.not_due_amount_year_2,
t.not_due_amount_year_3,
t.not_due_amount_year_4,
t.not_due_amount_year_5,
t.not_due_amount_year_5_left,
m.bp_name bp_id_agent_level1_n,
(select m.bp_code from hls_bp_master m where m.bp_id = t.bp_id) bp_code,
(select contract_number
from con_contract
where contract_id = t.contract_id) contract_number,
t.account_code account_id_n,
(select description_text
from fnd_descriptions
where description_id = g.description_id
and language = 'ZHS') account_name,
t.contract_id,
t.bp_id,
t.agent_bp_id,
((select v.bp_name from hls_bp_master v where v.bp_id = t.vender_id)||'/'||(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'DIVISION' AND v.code_value = t.division))division_n
from con_cashflow_monthly_temp t, hls_bp_master m, gld_accounts g
where m.bp_id = t.agent_bp_id
and g.account_id(+) = t.account_id
and t.session_id = ${/session/@session_id}
union
select tt.unreceived_sum_amount,
tt.overdue_sum_amount,
not_due_sum_amount,
tt.overdue_amount_1,
tt.overdue_amount_2,
tt.overdue_amount_3,
tt.overdue_amount_left,
tt.not_due_amount_1,
tt.not_due_amount_2,
tt.not_due_amount_3,
tt.not_due_amount_4,
tt.not_due_amount_5,
tt.not_due_amount_6,
tt.not_due_amount_left,
tt.not_due_amount_7,
tt.not_due_amount_8,
tt.not_due_amount_9,
tt.not_due_amount_10,
tt.not_due_amount_11,
tt.not_due_amount_12,
tt.not_due_amount_13,
tt.not_due_amount_14,
tt.not_due_amount_15,
tt.not_due_amount_16,
tt.not_due_amount_17,
tt.not_due_amount_18,
tt.not_due_amount_19,
tt.not_due_amount_20,
tt.not_due_amount_21,
tt.not_due_amount_22,
tt.not_due_amount_23,
tt.not_due_amount_24,
tt.not_due_amount_25,
tt.not_due_amount_26,
tt.not_due_amount_27,
tt.not_due_amount_28,
tt.not_due_amount_29,
tt.not_due_amount_30,
tt.not_due_amount_31,
tt.not_due_amount_32,
tt.not_due_amount_33,
tt.not_due_amount_34,
tt.not_due_amount_35,
tt.not_due_amount_36,
tt.not_due_amount_37,
tt.not_due_amount_38,
tt.not_due_amount_39,
tt.not_due_amount_40,
tt.not_due_amount_41,
tt.not_due_amount_42,
tt.not_due_amount_43,
tt.not_due_amount_44,
tt.not_due_amount_45,
tt.not_due_amount_46,
tt.not_due_amount_47,
tt.not_due_amount_48,
tt.not_due_amount_48_left,
tt.not_due_amount_year_1,
tt.not_due_amount_year_2,
tt.not_due_amount_year_3,
tt.not_due_amount_year_4,
tt.not_due_amount_year_5,
tt.not_due_amount_year_5_left,
m.bp_name bp_id_agent_level1_n,
(select m.bp_code
from hls_bp_master m
where m.bp_id = tt.bp_id) bp_code,
(select contract_number
from con_contract
where contract_id = tt.contract_id) contract_number,
'小计:' account_id_n,
null account_name,
tt.contract_id,
tt.bp_id,
tt.agent_bp_id,
((select v.bp_name from hls_bp_master v where v.bp_id = tt.vender_id)||'/'||(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'DIVISION' AND v.code_value = tt.division))division_n
from (select sum(nvl(t.unreceived_sum_amount, 0)) unreceived_sum_amount,
sum(nvl(t.overdue_sum_amount, 0)) overdue_sum_amount,
sum(nvl(t.not_due_sum_amount, 0)) not_due_sum_amount,
sum(nvl(t.overdue_amount_1, 0)) overdue_amount_1,
sum(nvl(t.overdue_amount_2, 0)) overdue_amount_2,
sum(nvl(t.overdue_amount_3, 0)) overdue_amount_3,
sum(nvl(t.overdue_amount_left, 0)) overdue_amount_left,
sum(nvl(t.not_due_amount_1, 0)) not_due_amount_1,
sum(nvl(t.not_due_amount_2, 0)) not_due_amount_2,
sum(nvl(t.not_due_amount_3, 0)) not_due_amount_3,
sum(nvl(t.not_due_amount_4, 0)) not_due_amount_4,
sum(nvl(t.not_due_amount_5, 0)) not_due_amount_5,
sum(nvl(t.not_due_amount_6, 0)) not_due_amount_6,
sum(nvl(t.not_due_amount_left, 0)) not_due_amount_left,
sum(nvl(t.not_due_amount_7, 0)) not_due_amount_7,
sum(nvl(t.not_due_amount_8, 0)) not_due_amount_8,
sum(nvl(t.not_due_amount_9, 0)) not_due_amount_9,
sum(nvl(t.not_due_amount_10, 0)) not_due_amount_10,
sum(nvl(t.not_due_amount_11, 0)) not_due_amount_11,
sum(nvl(t.not_due_amount_12, 0)) not_due_amount_12,
sum(nvl(t.not_due_amount_13, 0)) not_due_amount_13,
sum(nvl(t.not_due_amount_14, 0)) not_due_amount_14,
sum(nvl(t.not_due_amount_15, 0)) not_due_amount_15,
sum(nvl(t.not_due_amount_16, 0)) not_due_amount_16,
sum(nvl(t.not_due_amount_17, 0)) not_due_amount_17,
sum(nvl(t.not_due_amount_18, 0)) not_due_amount_18,
sum(nvl(t.not_due_amount_19, 0)) not_due_amount_19,
sum(nvl(t.not_due_amount_20, 0)) not_due_amount_20,
sum(nvl(t.not_due_amount_21, 0)) not_due_amount_21,
sum(nvl(t.not_due_amount_22, 0)) not_due_amount_22,
sum(nvl(t.not_due_amount_23, 0)) not_due_amount_23,
sum(nvl(t.not_due_amount_24, 0)) not_due_amount_24,
sum(nvl(t.not_due_amount_25, 0)) not_due_amount_25,
sum(nvl(t.not_due_amount_26, 0)) not_due_amount_26,
sum(nvl(t.not_due_amount_27, 0)) not_due_amount_27,
sum(nvl(t.not_due_amount_28, 0)) not_due_amount_28,
sum(nvl(t.not_due_amount_29, 0)) not_due_amount_29,
sum(nvl(t.not_due_amount_30, 0)) not_due_amount_30,
sum(nvl(t.not_due_amount_31, 0)) not_due_amount_31,
sum(nvl(t.not_due_amount_32, 0)) not_due_amount_32,
sum(nvl(t.not_due_amount_33, 0)) not_due_amount_33,
sum(nvl(t.not_due_amount_34, 0)) not_due_amount_34,
sum(nvl(t.not_due_amount_35, 0)) not_due_amount_35,
sum(nvl(t.not_due_amount_36, 0)) not_due_amount_36,
sum(nvl(t.not_due_amount_37, 0)) not_due_amount_37,
sum(nvl(t.not_due_amount_38, 0)) not_due_amount_38,
sum(nvl(t.not_due_amount_39, 0)) not_due_amount_39,
sum(nvl(t.not_due_amount_40, 0)) not_due_amount_40,
sum(nvl(t.not_due_amount_41, 0)) not_due_amount_41,
sum(nvl(t.not_due_amount_42, 0)) not_due_amount_42,
sum(nvl(t.not_due_amount_43, 0)) not_due_amount_43,
sum(nvl(t.not_due_amount_44, 0)) not_due_amount_44,
sum(nvl(t.not_due_amount_45, 0)) not_due_amount_45,
sum(nvl(t.not_due_amount_46, 0)) not_due_amount_46,
sum(nvl(t.not_due_amount_47, 0)) not_due_amount_47,
sum(nvl(t.not_due_amount_48, 0)) not_due_amount_48,
sum(nvl(t.not_due_amount_48_left, 0)) not_due_amount_48_left,
sum(nvl(t.not_due_amount_year_1, 0)) not_due_amount_year_1,
sum(nvl(t.not_due_amount_year_2, 0)) not_due_amount_year_2,
sum(nvl(t.not_due_amount_year_3, 0)) not_due_amount_year_3,
sum(nvl(t.not_due_amount_year_4, 0)) not_due_amount_year_4,
sum(nvl(t.not_due_amount_year_5, 0)) not_due_amount_year_5,
sum(nvl(t.not_due_amount_year_5_left, 0)) not_due_amount_year_5_left,
t.contract_id,
t.bp_id,
t.agent_bp_id,
t.vender_id,
t.division
from con_cashflow_monthly_temp t
where t.session_id = ${/session/@session_id}
group by t.contract_id, t.bp_id, t.agent_bp_id,t.vender_id,t.division) tt,
hls_bp_master m
where m.bp_id = tt.agent_bp_id) ttt
order by ttt.contract_id, ttt.account_id_n
]]></bm:query-sql>
</bm:operation>
<bm:operation name="update">
......@@ -45,6 +273,7 @@
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="division_n"/>
<bm:field name="contract_id"/>
<bm:field name="bp_code"/>
<bm:field name="contract_number"/>
......@@ -65,6 +294,55 @@
<bm:field name="not_due_amount_5"/>
<bm:field name="not_due_amount_6"/>
<bm:field name="not_due_amount_left"/>
<bm:field name="not_due_amount_7"/>
<bm:field name="not_due_amount_8"/>
<bm:field name="not_due_amount_9"/>
<bm:field name="not_due_amount_10"/>
<bm:field name="not_due_amount_11"/>
<bm:field name="not_due_amount_12"/>
<bm:field name="not_due_amount_13"/>
<bm:field name="not_due_amount_14"/>
<bm:field name="not_due_amount_15"/>
<bm:field name="not_due_amount_16"/>
<bm:field name="not_due_amount_17"/>
<bm:field name="not_due_amount_18"/>
<bm:field name="not_due_amount_19"/>
<bm:field name="not_due_amount_20"/>
<bm:field name="not_due_amount_21"/>
<bm:field name="not_due_amount_22"/>
<bm:field name="not_due_amount_23"/>
<bm:field name="not_due_amount_24"/>
<bm:field name="not_due_amount_25"/>
<bm:field name="not_due_amount_26"/>
<bm:field name="not_due_amount_27"/>
<bm:field name="not_due_amount_28"/>
<bm:field name="not_due_amount_29"/>
<bm:field name="not_due_amount_30"/>
<bm:field name="not_due_amount_31"/>
<bm:field name="not_due_amount_32"/>
<bm:field name="not_due_amount_33"/>
<bm:field name="not_due_amount_34"/>
<bm:field name="not_due_amount_35"/>
<bm:field name="not_due_amount_36"/>
<bm:field name="not_due_amount_37"/>
<bm:field name="not_due_amount_38"/>
<bm:field name="not_due_amount_39"/>
<bm:field name="not_due_amount_40"/>
<bm:field name="not_due_amount_41"/>
<bm:field name="not_due_amount_42"/>
<bm:field name="not_due_amount_43"/>
<bm:field name="not_due_amount_44"/>
<bm:field name="not_due_amount_45"/>
<bm:field name="not_due_amount_46"/>
<bm:field name="not_due_amount_47"/>
<bm:field name="not_due_amount_48"/>
<bm:field name="not_due_amount_48_left"/>
<bm:field name="not_due_amount_year_1"/>
<bm:field name="not_due_amount_year_2"/>
<bm:field name="not_due_amount_year_3"/>
<bm:field name="not_due_amount_year_4"/>
<bm:field name="not_due_amount_year_5"/>
<bm:field name="not_due_amount_year_5_left"/>
......
......@@ -16,9 +16,10 @@
</bm:parameters>
<bm:update-sql><![CDATA[
BEGIN
cus_con_et_pkg.calc_et_date_amount(p_contract_id => ${@contract_id},
cus_con_et_pkg.calc_et_date_amount(p_change_req_id =>${@change_req_id},
p_contract_id => ${@contract_id},
p_et_date => TO_DATE(${@termination_date},'yyyy-mm-dd'),
p_ET_FEE => ${@et_fee},
p_ET_FEE => ${@et_fee},
p_et_interest_rate => ${@et_interest_rate},
p_et_total_amount => ${@et_total_amount},
p_et_due_amount => ${@et_due_amount},
......
......@@ -5,7 +5,7 @@
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
......
<License>
<Data>
<Products>
<Product>Aspose.Total for Java</Product>
<Product>Aspose.Words for Java</Product>
</Products>
<EditionType>Enterprise</EditionType>
<SubscriptionExpiry>20991231</SubscriptionExpiry>
<LicenseExpiry>20991231</LicenseExpiry>
<SerialNumber>8bfe198c-7f0c-4ef8-8ff0-acc3237bf0d7</SerialNumber>
</Data>
<Signature>sNLLKGMUdF0r8O1kKilWAGdgfs2BvJb/2Xp8p5iuDVfZXmhppo+d0Ran1P9TKdjV4ABwAgKXxJ3jcQTqE/2IRfqwnPf8itN8aFZlV3TJPYeD3yWE7IT55Gz6EijUpC7aKeoohTb4w2fpox58wWoF3SNp6sK6jDfiAUGEHYJ9pjU=</Signature>
</License>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: WangYu
$Date: 2014-4-25 上午09:30:21
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT v.*,
--未收金额
(due_amount-received_amount) unreceived_amount
FROM (SELECT
t.contract_number,
(SELECT bp_name FROM hls_bp_master h WHERE h.bp_id=t.bp_id_tenant) bp_tenant_name,
(SELECT H.extra_nam FROM hls_bp_master h WHERE h.bp_id=t.bp_id_agent_level1) agent_extra_name,
to_char(t.lease_start_date, 'yyyy-mm-dd') lease_start_date,
ccli.machine_number,
ccli.modelcd,
( ccc.times||(SELECT ci.description FROM hls_cashflow_item ci WHERE ci.cf_item=ccc.cf_item) ) times,
to_char(ccc.due_date, 'yyyy-mm-dd') due_date,
(NVL(t.int_rate_display, 0) * 100 || '%') int_rate_display, --利率
--应收款金额
(ccc.due_amount - NVL((SELECT SUM(cwo.write_off_due_amount) FROM csh_transaction t,csh_write_off cwo
WHERE cwo.cashflow_id=ccc.cashflow_id
AND t.transaction_id=cwo.csh_transaction_id
AND NVL(cwo.reversed_flag,'N')='N'
AND TRUNC(T.transaction_date) <=TRUNC(to_date(${@before_end},'yyyy-mm-dd'))),0))due_amount,
--已收款金额
NVL((SELECT SUM(cwo.write_off_due_amount) FROM csh_transaction t,csh_write_off cwo
WHERE cwo.cashflow_id=ccc.cashflow_id
AND t.transaction_id=cwo.csh_transaction_id
AND NVL(cwo.reversed_flag,'N')='N'
AND TRUNC(T.transaction_date) >= TRUNC(to_date(${@cur_begin},'yyyy-mm-dd'))
AND TRUNC(T.transaction_date) <= TRUNC(to_date(${@cur_end},'yyyy-mm-dd'))
),0) received_amount,
--相减
--逾期日
(
CASE
WHEN (ccc.due_amount- NVL((SELECT SUM(cwo.write_off_due_amount) FROM csh_transaction t,csh_write_off cwo
WHERE cwo.cashflow_id=ccc.cashflow_id
AND t.transaction_id=cwo.csh_transaction_id
AND NVL(cwo.reversed_flag,'N')='N'
AND TRUNC(T.transaction_date) <= TRUNC(to_date(${@cur_end},'yyyy-mm-dd'))
),0)) >0 THEN
FLOOR(TO_date(${@cur_end},'yyyy-mm-dd')-ccc.due_date)
ELSE
0
END
) overdue_days,
--保证金
NVL((select sum((nvl(tt.transaction_amount, 0) - nvl(tt.write_off_amount, 0) -
nvl(tt.returned_amount, 0)))
from csh_transaction tt
where tt.transaction_type = 'DEPOSIT'
AND tt.deposit_trans_type = 'rent_deposit'
AND NVL(tt.reversed_flag,'N')='N'
and tt.ref_contract_id = T.contract_id),0) deposit_amount
from con_contract_cashflow ccc,con_contract t,con_contract_lease_item ccli
WHERE ccc.contract_id=t.contract_id
AND ccli.contract_id(+)=t.contract_id
AND ccc.cf_item IN (1,8,200)
AND ((t.contract_status ='INCEPT'
AND ((TRUNC(ccc.due_date)<=TRUNC(to_date(${@before_end},'yyyy-mm-dd'))
AND ccc.due_amount > NVL((SELECT SUM(cwo.write_off_due_amount) FROM csh_transaction t,csh_write_off cwo
WHERE cwo.cashflow_id=ccc.cashflow_id
AND t.transaction_id=cwo.csh_transaction_id
AND NVL(cwo.reversed_flag,'N')='N'
AND TRUNC(T.transaction_date) <=TRUNC(to_date(${@before_end},'yyyy-mm-dd'))),0)
)
OR(
TRUNC(ccc.due_date)<=TRUNC(to_date(${@cur_end},'yyyy-mm-dd')) AND TRUNC(ccc.due_date) > TRUNC(to_date(${@before_end},'yyyy-mm-dd'))
))) or( t.contract_status ='TERMINATE' and exists (select 1 from csh_transaction t,csh_write_off cwo WHERE cwo.cashflow_id=ccc.cashflow_id
AND t.transaction_id=cwo.csh_transaction_id
AND NVL(cwo.reversed_flag,'N')='N'
and TRUNC(T.transaction_date) > TRUNC(to_date(${@before_end},'yyyy-mm-dd')))))
order by t.contract_id
) v
]]></bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
rpt5012_rental_balance_pkg.rental_balance_insert(
p_month =>${@month},
p_user_id =>${/session/@user_id},
p_batch_id =>${@batch_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="agent_extra_name"/>
<bm:field name="bp_tenant_name"/>
<bm:field name="contract_number"/>
<bm:field name="lease_start_date"/>
<bm:field name="modelcd"/>
<bm:field name="machine_number"/>
<bm:field name="int_rate_display"/>
<bm:field name="times"/>
<bm:field name="due_date"/>
<bm:field name="due_amount"/>
<bm:field name="received_amount"/>
<bm:field name="unreceived_amount"/>
<bm:field name="overdue_days"/>
<bm:field name="deposit_amount"/>
</bm:fields>
<!-- <bm:query-fields>-->
<!-- <bm:query-field field="bp_id_tenant_n" queryExpression="t1.bp_id_tenant_n = ${@bp_id_tenant_n}"/>-->
<!-- <bm:query-field field="account_name" queryExpression="t1.account_name = ${@account_name}"/>-->
<!-- <bm:query-field field="account_id_n" queryExpression="t1.account_id_n = ${@account_id_n}"/>-->
<!-- </bm:query-fields>-->
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: WangYu
$Date: 2014-4-25 上午09:30:21
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select
(SELECT m.extra_nam
FROM hls_bp_master m
WHERE m.bp_id = ct.bp_id_agent_level1) agent_extra_name, --代理店简称
(SELECT m.bp_name FROM hls_bp_master m WHERE m.bp_id = ct.bp_id_tenant) AS bp_tenant_name, --承租人名称
ct.contract_number, --合同编号
to_char(ct.lease_start_date, 'yyyy-mm-dd') lease_start_date, --租赁期开始日
(SELECT ccli.modelcd
FROM con_contract_lease_item ccli
WHERE ccli.contract_id = ct.contract_id) modelcd, --机型
(SELECT i.machine_number
FROM con_contract_lease_item i
WHERE i.contract_id = ct.contract_id
AND i.equipment_type = 'MAIN') machine_number, --机号
(NVL(ct.int_rate_display, 0) * 100 || '%') int_rate_display, --利率
ct.lease_times, --租赁期间
(NVL(ct.down_payment_ratio, 0) * 100 || '%') down_payment_ratio, --首付比例
ct.lease_item_amount as lease_item_amount, --设备款
NVL(ct.residual_value, 0) residual_amount, --留购金
NVL(ct.total_rental, 0) + NVL(ct.down_payment, 0) +
NVL(ct.residual_value, 0) contract_amount, --合同金额
NVL(ct.down_payment, 0) down_payment, --首付款
(case when ct.contract_status='TERMINATE' then
0 else
((select sum(ccw.due_amount)
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_item in (1, 200)) -
nvl((select sum(nvl(cw.write_off_due_amount, 0))
from csh_transaction cn, csh_write_off cw
where cw.csh_transaction_id = cn.transaction_id
and cw.cf_item in (1, 200)
and cw.contract_id = ct.contract_id
and NVL(cw.reversed_flag,'N')='N'
and trunc(cn.transaction_date) <=
trunc(to_date(${@cur_end},'yyyy-mm-dd'))),
0))
end )month_due_amount, --当月末应收款余额(合计)
(case when ct.contract_status='TERMINATE' then
0 else
((select sum(ccw.principal)
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_item in (1, 200)) -
nvl((select sum(nvl(cw.write_off_principal, 0))
from csh_transaction cn, csh_write_off cw
where cw.csh_transaction_id = cn.transaction_id
and cw.cf_item in (1, 200)
and cw.contract_id = ct.contract_id
and NVL(cw.reversed_flag,'N')='N'
and trunc(cn.transaction_date) <=
trunc(to_date(${@cur_end},'yyyy-mm-dd'))),
0))
end) month_due_principal, --当月末本金余额(合计)
(case when ct.contract_status='TERMINATE' then
0 else
((select sum(ccw.interest)
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_item in (1, 200)) -
nvl((select sum(nvl(cw.write_off_interest, 0))
from csh_transaction cn, csh_write_off cw
where cw.csh_transaction_id = cn.transaction_id
and cw.cf_item in (1, 200)
and cw.contract_id = ct.contract_id
and NVL(cw.reversed_flag,'N')='N'
and trunc(cn.transaction_date) <=
trunc(to_date(${@cur_end},'yyyy-mm-dd'))),
0)) end ) month_interest, --当月末利息余额(合计)
(case when ct.contract_status='TERMINATE' then
0 else
((select sum(ccw.due_amount)
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_item in (8)) -
nvl((select sum(nvl(cw.write_off_due_amount, 0))
from csh_transaction cn, csh_write_off cw
where cw.csh_transaction_id = cn.transaction_id
and cw.cf_item in (8)
and cw.contract_id = ct.contract_id
and NVL(cw.reversed_flag,'N')='N'
and trunc(cn.transaction_date) <=
trunc(to_date(${@cur_end},'yyyy-mm-dd'))),
0)) end ) month_residual, --当月末留购金余额
(case when ct.contract_status='TERMINATE' then
0 else
con_contract_pkg.get_business_times(p_contract_id => ct.contract_id,
p_calc_date => to_date(${@cur_end},'yyyy-mm-dd'),
p_contract_inception_date => ct.contract_inception_date) end) business_due_times, --逾期期数
(case when ct.contract_status='TERMINATE' then
0 else
(nvl((select sum(ccw.due_amount)-sum(nvl((SELECT SUM(nvl(cwo.write_off_due_amount, 0))
FROM csh_write_off cwo, csh_transaction cn
WHERE nvl(cwo.reversed_flag, 'N') = 'N'
AND cwo.contract_id = ccw.contract_id
AND cwo.times = ccw.times
and cwo.csh_transaction_id = cn.transaction_id
AND cwo.cf_item = ccw.cf_item
and trunc(cn.transaction_date) <=
trunc(to_date(${@cur_end}, 'yyyy-mm-dd'))),
0))
from con_contract_cashflow ccw
where ccw.contract_id =ct.contract_id
and ccw.cf_item in (1, 200, 8)
and trunc(ccw.due_date) <= trunc(to_date(${@cur_end}, 'yyyy-mm-dd'))),0)
-nvl((select sum((nvl(tt.transaction_amount, 0) - nvl(tt.write_off_amount, 0) -
nvl(tt.returned_amount, 0)))
from csh_transaction tt
where tt.transaction_type = 'DEPOSIT'
AND tt.deposit_trans_type = 'rent_deposit'
and tt.ref_contract_id = ct.contract_id),0)) end ) business_due_amount, --当月末逾期金额(合计)
(select sum((nvl(tt.transaction_amount, 0) - nvl(tt.write_off_amount, 0) -
nvl(tt.returned_amount, 0)))
from csh_transaction tt
where tt.transaction_type = 'DEPOSIT'
AND tt.deposit_trans_type = 'rent_deposit'
and tt.ref_contract_id = ct.contract_id) deposit_amount, --保证金金额
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'CON500_CONTRACT_STATUS'
AND v.code_value = ct.contract_status) AS contract_status_n, --合同金额
(select to_char(due_date, 'yyyy-mm-dd')
from con_contract_cashflow
where contract_id = ct.contract_id
and cf_item = 8) residual_date ,-- 合同终了
to_char(ct.et_date, 'yyyy-mm-dd') terminate_date
from con_contract ct
where ct.contract_status not in ('CANCEL')
order by ct.bp_id_agent_level1
]]></bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
rpt5012_rental_balance_pkg.rental_balance_insert(
p_month =>${@month},
p_user_id =>${/session/@user_id},
p_batch_id =>${@batch_id}
);
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
rpt5012_rental_balance_pkg.get_month_date(
p_month =>${@month},
p_cur_begin =>${@cur_begin},
p_cur_end =>${@cur_end},
p_before_begin =>${@before_begin},
p_before_end =>${@before_end}
);
end;
]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="cur_begin" dataType="date" input="true" output="true"
outputPath="/parameter/@cur_begin"/>
<bm:parameter name="cur_end" dataType="date" input="true" output="true"
outputPath="/parameter/@cur_end"/>
<bm:parameter name="before_begin" dataType="date" input="true" output="true"
outputPath="/parameter/@before_begin"/>
<bm:parameter name="before_end" dataType="date" input="true" output="true"
outputPath="/parameter/@before_end"/>
</bm:parameters>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="agent_extra_name"/>
<bm:field name="bp_tenant_name"/>
<bm:field name="contract_number"/>
<bm:field name="lease_start_date"/>
<bm:field name="modelcd"/>
<bm:field name="machine_number"/>
<bm:field name="int_rate_display"/>
<bm:field name="lease_times"/>
<bm:field name="down_payment_ratio"/>
<bm:field name="lease_item_amount"/>
<bm:field name="residual_amount"/>
<bm:field name="contract_amount"/>
<bm:field name="down_payment"/>
<bm:field name="month_due_amount"/>
<bm:field name="month_due_principal"/>
<bm:field name="month_interest"/>
<bm:field name="month_residual"/>
<bm:field name="business_due_times"/>
<bm:field name="business_due_amount"/>
<bm:field name="deposit_amount"/>
<bm:field name="contract_status_n"/>
<bm:field name="residual_date"/>
<bm:field name="terminate_date"/>
</bm:fields>
<!-- <bm:query-fields>-->
<!-- <bm:query-field field="bp_id_tenant_n" queryExpression="t1.bp_id_tenant_n = ${@bp_id_tenant_n}"/>-->
<!-- <bm:query-field field="account_name" queryExpression="t1.account_name = ${@account_name}"/>-->
<!-- <bm:query-field field="account_id_n" queryExpression="t1.account_id_n = ${@account_id_n}"/>-->
<!-- </bm:query-fields>-->
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: WangYu
$Date: 2014-4-25 上午09:30:21
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select t.*
from con_rental_balance_rpt t
where t.month = ${@month}
order by t.contract_id desc
]]></bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
rpt5012_rental_balance_pkg.rental_balance_insert(
p_month =>${@month},
p_user_id =>${/session/@user_id},
p_batch_id =>${@batch_id}
);
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="agent_extra_name"/>
<bm:field name="bp_tenant_name"/>
<bm:field name="contract_number"/>
<bm:field name="lease_start_date"/>
<bm:field name="modelcd"/>
<bm:field name="machine_number"/>
<bm:field name="int_rate_diaplay"/>
<bm:field name="lease_times"/>
<bm:field name="down_payment_ratio"/>
<bm:field name="lease_item_amount"/>
<bm:field name="residual_amount"/>
<bm:field name="contract_amount"/>
<bm:field name="down_payment"/>
<bm:field name="month_due_amount"/>
<bm:field name="month_due_principal"/>
<bm:field name="month_interest"/>
<bm:field name="month_residual"/>
<bm:field name="business_due_times"/>
<bm:field name="business_due_amount"/>
<bm:field name="deposit_amount"/>
<bm:field name="contract_status_n"/>
<bm:field name="residual_date"/>
<bm:field name="terminate_date"/>
</bm:fields>
<!-- <bm:query-fields>-->
<!-- <bm:query-field field="bp_id_tenant_n" queryExpression="t1.bp_id_tenant_n = ${@bp_id_tenant_n}"/>-->
<!-- <bm:query-field field="account_name" queryExpression="t1.account_name = ${@account_name}"/>-->
<!-- <bm:query-field field="account_id_n" queryExpression="t1.account_id_n = ${@account_id_n}"/>-->
<!-- </bm:query-fields>-->
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select null agent_extra_name, --代理店简称
null null_column,
(SELECT m.bp_name
FROM hls_bp_master m
WHERE m.bp_id = ct.bp_id_tenant) AS bp_tenant_name, --承租人名称
null branch_company, --分公司
ct.contract_number, --合同编号
to_char(ct.lease_start_date, 'yyyy-mm-dd') lease_start_date, --租赁期开始日
(select to_char(due_date, 'yyyy-mm-dd')
from con_contract_cashflow
where contract_id = ct.contract_id
and cf_item = 8) residual_date, -- 合同终了
to_char(ct.et_date, 'yyyy-mm-dd') terminate_date, --合同到期日
(SELECT i.machine_number
FROM con_contract_lease_item i
WHERE i.contract_id = ct.contract_id
AND i.equipment_type = 'MAIN') machine_number, --机号
(SELECT ccli.modelcd
FROM con_contract_lease_item ccli
WHERE ccli.contract_id = ct.contract_id) modelcd, --机型
NVL(ct.total_rental, 0) + NVL(ct.down_payment, 0) +
NVL(ct.residual_value, 0) contract_amount, --合同金额
ct.lease_times, --租赁期间
ct.lease_item_amount as lease_item_amount, --设备款
NVL(ct.down_payment, 0) down_payment, --首付款
NVL(ct.residual_value, 0) residual_amount, --留购金
NVL(ct.down_payment, 0)+nvl((select sum(nvl((SELECT SUM(nvl(cwo.write_off_due_amount, 0))
FROM csh_write_off cwo, csh_transaction cn
WHERE nvl(cwo.reversed_flag, 'N') = 'N'
AND cwo.contract_id = ccw.contract_id
AND cwo.times = ccw.times
and cwo.csh_transaction_id = cn.transaction_id
AND cwo.cf_item = ccw.cf_item
and trunc(cn.transaction_date) <=
trunc(to_date(${@before_end}, 'yyyy-mm-dd'))),
0))
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_status = 'RELEASE'
and ccw.cf_direction = 'INFLOW'
and ccw.cf_item in (1,8)
and trunc(ccw.due_date) <=
trunc(to_date(${@before_end}, 'yyyy-mm-dd'))) ,0)before_received_amount ,--截至上月底已收的
(NVL(ct.total_rental, 0) + NVL(ct.residual_value, 0)-nvl( (select sum(nvl((SELECT SUM(nvl(cwo.write_off_due_amount, 0))
FROM csh_write_off cwo, csh_transaction cn
WHERE nvl(cwo.reversed_flag, 'N') = 'N'
AND cwo.contract_id = ccw.contract_id
AND cwo.times = ccw.times
and cwo.csh_transaction_id = cn.transaction_id
AND cwo.cf_item = ccw.cf_item
and trunc(cn.transaction_date) <=
trunc(to_date(${@before_end}, 'yyyy-mm-dd'))),
0))
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_status = 'RELEASE'
and ccw.cf_direction = 'INFLOW'
and ccw.cf_item in (1,8)
and trunc(ccw.due_date) <=
trunc(to_date(${@before_end}, 'yyyy-mm-dd'))),0)) before_due_left, --上月末应收款余额
(select ccw.times
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_item in (1, 200, 250)
and ccw.cf_status = 'RELEASE'
and ccw.cf_direction = 'INFLOW'
and trunc(ccw.due_date) <=
trunc(to_date(${@cur_end}, 'yyyy-mm-dd'))
and trunc(ccw.due_date) >=
trunc(to_date(${@cur_begin}, 'yyyy-mm-dd'))
and rownum = 1) times, --当月期次
(select to_char(ccw.due_date, 'yyyy-mm-dd')
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_item in (1, 200, 250)
and ccw.cf_status = 'RELEASE'
and ccw.cf_direction = 'INFLOW'
and trunc(ccw.due_date) <=
trunc(to_date(${@cur_end}, 'yyyy-mm-dd'))
and trunc(ccw.due_date) >=
trunc(to_date(${@cur_begin}, 'yyyy-mm-dd'))
and rownum = 1) due_date, --当月应收日期
(select sum(ccw.due_amount)
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_item in (1)
and ccw.cf_status = 'RELEASE'
and ccw.cf_direction = 'INFLOW'
and trunc(ccw.due_date) <=
trunc(to_date(${@cur_end}, 'yyyy-mm-dd'))
and trunc(ccw.due_date) >=
trunc(to_date(${@cur_begin}, 'yyyy-mm-dd'))) due_amount, --当月应收租金
0 advance_received_amount, --截止上月末提前支付
(select sum(ccw.due_amount - nvl((SELECT SUM(nvl(cwo.write_off_due_amount, 0))
FROM csh_write_off cwo, csh_transaction cn
WHERE nvl(cwo.reversed_flag, 'N') = 'N'
AND cwo.contract_id = ccw.contract_id
AND cwo.times = ccw.times
and cwo.csh_transaction_id = cn.transaction_id
AND cwo.cf_item = ccw.cf_item
and trunc(cn.transaction_date) <=
trunc(to_date(${@before_end}, 'yyyy-mm-dd'))),
0))
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_status = 'RELEASE'
and ccw.cf_direction = 'INFLOW'
and ccw.cf_item in (1)
and trunc(ccw.due_date) <=
trunc(to_date(${@before_end}, 'yyyy-mm-dd'))) before_overdue_amount, --截止上月末逾期租金
(nvl((select sum(ccw.due_amount)
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_item in (1)
and ccw.cf_status = 'RELEASE'
and ccw.cf_direction = 'INFLOW'
and trunc(ccw.due_date) <=
trunc(to_date(${@cur_end}, 'yyyy-mm-dd'))
and trunc(ccw.due_date) >=
trunc(to_date(${@cur_begin}, 'yyyy-mm-dd'))),
0) +
nvl((select sum(ccw.due_amount - nvl((SELECT SUM(nvl(cwo.write_off_due_amount, 0))
FROM csh_write_off cwo, csh_transaction cn
WHERE nvl(cwo.reversed_flag, 'N') = 'N'
AND cwo.contract_id = ccw.contract_id
AND cwo.times = ccw.times
and cwo.csh_transaction_id = cn.transaction_id
AND cwo.cf_item = ccw.cf_item
and trunc(cn.transaction_date) <=
trunc(to_date(${@before_end}, 'yyyy-mm-dd'))),
0))
from con_contract_cashflow ccw
where ccw.contract_id = ct.contract_id
and ccw.cf_status = 'RELEASE'
and ccw.cf_direction = 'INFLOW'
and ccw.cf_item in (1)
and trunc(ccw.due_date) <=
trunc(to_date(${@before_end}, 'yyyy-mm-dd'))),
0)) due_total, --本月合计应收
con_contract_pkg.get_business_times(p_contract_id => ct.contract_id, p_calc_date => to_date(${@cur_end}, 'yyyy-mm-dd'), p_contract_inception_date => ct.contract_inception_date) over_due_times, --逾期期次
(SELECT SUM(cwo.write_off_due_amount)
FROM csh_transaction t, csh_write_off cwo
WHERE cwo.cf_item in (1, 8, 9)
and cwo.contract_id=ct.contract_id
AND t.transaction_id = cwo.csh_transaction_id
AND NVL(cwo.reversed_flag, 'N') = 'N'
and nvl(t.reversed_flag, 'N') = 'N'
AND TRUNC(T.transaction_date) <=
TRUNC(to_date(${@cur_end}, 'yyyy-mm-dd'))
AND TRUNC(T.transaction_date) >=
TRUNC(to_date(${@cur_begin}, 'yyyy-mm-dd'))) cur_real,
(SELECT SUM(cwo.write_off_due_amount)
FROM csh_transaction t, csh_write_off cwo
WHERE cwo.cf_item in (1, 8, 9)
and cwo.contract_id=ct.contract_id
AND t.transaction_id = cwo.csh_transaction_id
AND NVL(cwo.reversed_flag, 'N') = 'N'
and nvl(t.reversed_flag, 'N') = 'N'
AND TRUNC(T.transaction_date) <=
trunc(add_months(to_date(${@month}, 'YYYYMM'), 0)-1)
AND TRUNC(T.transaction_date) >=
trunc(add_months(to_date(${@month}, 'YYYYMM'), -1))) before1_real,
(SELECT SUM(cwo.write_off_due_amount)
FROM csh_transaction t, csh_write_off cwo
WHERE cwo.cf_item in (1, 8, 9)
and cwo.contract_id=ct.contract_id
AND t.transaction_id = cwo.csh_transaction_id
AND NVL(cwo.reversed_flag, 'N') = 'N'
and nvl(t.reversed_flag, 'N') = 'N'
AND TRUNC(T.transaction_date) <=
trunc(add_months(to_date(${@month}, 'YYYYMM'), -1)-1)
AND TRUNC(T.transaction_date) >=
trunc(add_months(to_date(${@month}, 'YYYYMM'), -2))) before2_real,
(SELECT SUM(cwo.write_off_due_amount)
FROM csh_transaction t, csh_write_off cwo
WHERE cwo.cf_item in (1, 8, 9)
and cwo.contract_id=ct.contract_id
AND t.transaction_id = cwo.csh_transaction_id
AND NVL(cwo.reversed_flag, 'N') = 'N'
and nvl(t.reversed_flag, 'N') = 'N'
AND TRUNC(T.transaction_date) <=
trunc(add_months(to_date(${@month}, 'YYYYMM'), -2)-1)
AND TRUNC(T.transaction_date) >=
trunc(add_months(to_date(${@month}, 'YYYYMM'), -3))) before3_real,
(SELECT SUM(cwo.write_off_due_amount)
FROM csh_transaction t, csh_write_off cwo
WHERE cwo.cf_item in (1, 8, 9)
and cwo.contract_id=ct.contract_id
AND t.transaction_id = cwo.csh_transaction_id
AND NVL(cwo.reversed_flag, 'N') = 'N'
and nvl(t.reversed_flag, 'N') = 'N'
AND TRUNC(T.transaction_date) <=
trunc(add_months(to_date(${@month}, 'YYYYMM'), -3)-1)
AND TRUNC(T.transaction_date) >=
trunc(add_months(to_date(${@month}, 'YYYYMM'), -4))) before4_real,
(SELECT SUM(cwo.write_off_due_amount)
FROM csh_transaction t, csh_write_off cwo
WHERE cwo.cf_item in (1, 8, 9)
and cwo.contract_id=ct.contract_id
AND t.transaction_id = cwo.csh_transaction_id
AND NVL(cwo.reversed_flag, 'N') = 'N'
and nvl(t.reversed_flag, 'N') = 'N'
AND TRUNC(T.transaction_date) <=
trunc(add_months(to_date(${@month}, 'YYYYMM'), -4)-1)
AND TRUNC(T.transaction_date) >=
trunc(add_months(to_date(${@month}, 'YYYYMM'), -5))) before5_real
from con_contract ct
where ct.contract_status = 'INCEPT'
and con_contract_pkg.get_business_times(p_contract_id => ct.contract_id,
p_calc_date => to_date(${@cur_end},
'yyyy-mm-dd'),
p_contract_inception_date => ct.contract_inception_date) >= 3
order by ct.bp_id_agent_level1
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<!-- <bm:fields>
<bm:field name="record_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RECORD_ID" prompt="RPT5010_DAY_REPORT.RECORD_ID"/>
<bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID" prompt="RPT5010_DAY_REPORT.CONTRACT_ID"/>
<bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER" prompt="RPT5010_DAY_REPORT.CONTRACT_NUMBER"/>
<bm:field name="tenant_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TENANT_NAME" prompt="RPT5010_DAY_REPORT.TENANT"/>
<bm:field name="amount_1" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_1" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_1"/>
<bm:field name="principal_1" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_1" prompt="RPT5010_DAY_REPORT.PRINCIPAL_1"/>
<bm:field name="interest_1" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_1" prompt="RPT5010_DAY_REPORT.INTEREST_1"/>
<bm:field name="amount_2" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_2" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_2"/>
<bm:field name="principal_2" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_2" prompt="RPT5010_DAY_REPORT.PRINCIPAL_2"/>
<bm:field name="interest_2" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_2" prompt="RPT5010_DAY_REPORT.INTEREST_2"/>
<bm:field name="amount_3" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_3" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_3"/>
<bm:field name="principal_3" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_3" prompt="RPT5010_DAY_REPORT.PRINCIPAL_3"/>
<bm:field name="interest_3" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_3" prompt="RPT5010_DAY_REPORT.INTEREST_3"/>
<bm:field name="amount_4" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_4" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_4"/>
<bm:field name="principal_4" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_4" prompt="RPT5010_DAY_REPORT.PRINCIPAL_4"/>
<bm:field name="interest_4" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_4" prompt="RPT5010_DAY_REPORT.INTEREST_4"/>
<bm:field name="amount_5" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_5" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_5"/>
<bm:field name="principal_5" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_5" prompt="RPT5010_DAY_REPORT.PRINCIPAL_5"/>
<bm:field name="interest_5" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_5" prompt="RPT5010_DAY_REPORT.INTEREST_5"/>
<bm:field name="amount_6" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_6" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_6"/>
<bm:field name="principal_6" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_6" prompt="RPT5010_DAY_REPORT.PRINCIPAL_6"/>
<bm:field name="interest_6" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_6" prompt="RPT5010_DAY_REPORT.INTEREST_6"/>
<bm:field name="amount_7" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_7" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_7"/>
<bm:field name="principal_7" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_7" prompt="RPT5010_DAY_REPORT.PRINCIPAL_7"/>
<bm:field name="interest_7" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_7" prompt="RPT5010_DAY_REPORT.INTEREST_7"/>
<bm:field name="amount_8" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_8" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_8"/>
<bm:field name="principal_8" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_8" prompt="RPT5010_DAY_REPORT.PRINCIPAL_8"/>
<bm:field name="interest_8" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_8" prompt="RPT5010_DAY_REPORT.INTEREST_8"/>
<bm:field name="amount_9" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_9" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_9"/>
<bm:field name="principal_9" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_9" prompt="RPT5010_DAY_REPORT.PRINCIPAL_9"/>
<bm:field name="interest_9" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_9" prompt="RPT5010_DAY_REPORT.INTEREST_9"/>
<bm:field name="amount_10" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_10" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_10"/>
<bm:field name="principal_10" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_10" prompt="RPT5010_DAY_REPORT.PRINCIPAL_10"/>
<bm:field name="interest_10" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_10" prompt="RPT5010_DAY_REPORT.INTEREST_10"/>
<bm:field name="amount_11" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_11" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_11"/>
<bm:field name="principal_11" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_11" prompt="RPT5010_DAY_REPORT.PRINCIPAL_11"/>
<bm:field name="interest_11" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_11" prompt="RPT5010_DAY_REPORT.INTEREST_11"/>
<bm:field name="amount_12" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_12" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_12"/>
<bm:field name="principal_12" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_12" prompt="RPT5010_DAY_REPORT.PRINCIPAL_12"/>
<bm:field name="interest_12" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_12" prompt="RPT5010_DAY_REPORT.INTEREST_12"/>
<bm:field name="amount_13" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_13" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_13"/>
<bm:field name="principal_13" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_13" prompt="RPT5010_DAY_REPORT.PRINCIPAL_13"/>
<bm:field name="interest_13" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_13" prompt="RPT5010_DAY_REPORT.INTEREST_13"/>
<bm:field name="amount_14" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_14" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_14"/>
<bm:field name="principal_14" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_14" prompt="RPT5010_DAY_REPORT.PRINCIPAL_14"/>
<bm:field name="interest_14" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_14" prompt="RPT5010_DAY_REPORT.INTEREST_14"/>
<bm:field name="amount_15" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_15" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_15"/>
<bm:field name="principal_15" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_15" prompt="RPT5010_DAY_REPORT.PRINCIPAL_15"/>
<bm:field name="interest_15" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_15" prompt="RPT5010_DAY_REPORT.INTEREST_15"/>
<bm:field name="amount_16" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_16" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_16"/>
<bm:field name="principal_16" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_16" prompt="RPT5010_DAY_REPORT.PRINCIPAL_16"/>
<bm:field name="interest_16" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_16" prompt="RPT5010_DAY_REPORT.INTEREST_16"/>
<bm:field name="amount_17" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_17" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_17"/>
<bm:field name="principal_17" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_17" prompt="RPT5010_DAY_REPORT.PRINCIPAL_17"/>
<bm:field name="interest_17" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_17" prompt="RPT5010_DAY_REPORT.INTEREST_17"/>
<bm:field name="amount_18" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_18" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_18"/>
<bm:field name="principal_18" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_18" prompt="RPT5010_DAY_REPORT.PRINCIPAL_18"/>
<bm:field name="interest_18" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_18" prompt="RPT5010_DAY_REPORT.INTEREST_18"/>
<bm:field name="amount_19" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_19" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_19"/>
<bm:field name="principal_19" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_19" prompt="RPT5010_DAY_REPORT.PRINCIPAL_19"/>
<bm:field name="interest_19" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_19" prompt="RPT5010_DAY_REPORT.INTEREST_19"/>
<bm:field name="amount_20" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_20" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_20"/>
<bm:field name="principal_20" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_20" prompt="RPT5010_DAY_REPORT.PRINCIPAL_20"/>
<bm:field name="interest_20" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_20" prompt="RPT5010_DAY_REPORT.INTEREST_20"/>
<bm:field name="amount_21" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_21" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_21"/>
<bm:field name="principal_21" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_21" prompt="RPT5010_DAY_REPORT.PRINCIPAL_21"/>
<bm:field name="interest_21" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_21" prompt="RPT5010_DAY_REPORT.INTEREST_21"/>
<bm:field name="amount_22" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_22" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_22"/>
<bm:field name="principal_22" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_22" prompt="RPT5010_DAY_REPORT.PRINCIPAL_22"/>
<bm:field name="interest_22" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_22" prompt="RPT5010_DAY_REPORT.INTEREST_22"/>
<bm:field name="amount_23" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_23" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_23"/>
<bm:field name="principal_23" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_23" prompt="RPT5010_DAY_REPORT.PRINCIPAL_23"/>
<bm:field name="interest_23" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_23" prompt="RPT5010_DAY_REPORT.INTEREST_23"/>
<bm:field name="amount_24" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_24" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_24"/>
<bm:field name="principal_24" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_24" prompt="RPT5010_DAY_REPORT.PRINCIPAL_24"/>
<bm:field name="interest_24" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_24" prompt="RPT5010_DAY_REPORT.INTEREST_24"/>
<bm:field name="amount_25" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_25" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_25"/>
<bm:field name="principal_25" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_25" prompt="RPT5010_DAY_REPORT.PRINCIPAL_25"/>
<bm:field name="interest_25" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_25" prompt="RPT5010_DAY_REPORT.INTEREST_25"/>
<bm:field name="amount_26" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_26" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_26"/>
<bm:field name="principal_26" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_26" prompt="RPT5010_DAY_REPORT.PRINCIPAL_26"/>
<bm:field name="interest_26" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_26" prompt="RPT5010_DAY_REPORT.INTEREST_26"/>
<bm:field name="amount_27" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_27" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_27"/>
<bm:field name="principal_27" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_27" prompt="RPT5010_DAY_REPORT.PRINCIPAL_27"/>
<bm:field name="interest_27" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_27" prompt="RPT5010_DAY_REPORT.INTEREST_27"/>
<bm:field name="amount_28" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_28" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_28"/>
<bm:field name="principal_28" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_28" prompt="RPT5010_DAY_REPORT.PRINCIPAL_28"/>
<bm:field name="interest_28" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_28" prompt="RPT5010_DAY_REPORT.INTEREST_28"/>
<bm:field name="amount_29" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_29" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_29"/>
<bm:field name="principal_29" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_29" prompt="RPT5010_DAY_REPORT.PRINCIPAL_29"/>
<bm:field name="interest_29" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_29" prompt="RPT5010_DAY_REPORT.INTEREST_29"/>
<bm:field name="amount_30" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_30" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_30"/>
<bm:field name="principal_30" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_30" prompt="RPT5010_DAY_REPORT.PRINCIPAL_30"/>
<bm:field name="interest_30" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_30" prompt="RPT5010_DAY_REPORT.INTEREST_30"/>
<bm:field name="amount_31" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT_31" prompt="RPT5010_DAY_REPORT.ATTRIBUTE_31"/>
<bm:field name="principal_31" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PRINCIPAL_31" prompt="RPT5010_DAY_REPORT.PRINCIPAL_31"/>
<bm:field name="interest_31" databaseType="NUMBER" datatype="java.lang.Double" physicalName="INTEREST_31" prompt="RPT5010_DAY_REPORT.INTEREST_31"/>
</bm:fields> -->
<bm:data-filters><![CDATA[
]]></bm:data-filters>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select to_char(add_months(to_date(${@month}, 'YYYYMM'), 0), 'MM')cur,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -1), 'MM')befor1,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -2), 'MM')befor2,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -3), 'MM')befor3,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -4), 'MM')befor4,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -5), 'MM')befor5,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -1), 'MM')||'月底三期机器分类情况明细表' befor_title,
to_char(add_months(to_date(${@month}, 'YYYYMM'), 0), 'MM')||'月底逾期期次' cur_overdue_times,
to_char(add_months(to_date(${@month}, 'YYYYMM'), 0), 'MM')||'月小时数' cur_hour,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -1), 'MM')||'月小时数' befor1_hour,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -2), 'MM')||'月小时数' befor2_hour,
to_char(add_months(to_date(${@month}, 'YYYYMM'), 0), 'MM')||'月实收金额' cur_amount,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -1), 'MM')||'月实收金额' befor1_amount,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -2), 'MM')||'月实收金额' befor2_amount,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -3), 'MM')||'月实收金额' befor3_amount,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -4), 'MM')||'月实收金额' befor4_amount,
to_char(add_months(to_date(${@month}, 'YYYYMM'), -5), 'MM')||'月实收金额' befor5_amount
from dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:data-filters><![CDATA[
]]></bm:data-filters>
</bm:model>
......@@ -16,6 +16,7 @@
}
]]></script>
<a:dataSets>
<a:dataSet id="pay_methods_ds" lookupCode="PAY_METHODS"/>
<a:dataSet id="con202_withway_ds" lookupCode="WITHHOLD_WAYS"/>
<a:dataSet id="secondary_lease_ds" lookupCode="SECONDARY_LEASE"/>
<a:dataSet id="con202_finance_type" lookupCode="FINANCE_TYPE"/>
......@@ -31,7 +32,7 @@
<a:dataSet id="con_basic_clause_detail_ds" autoQuery="true" model="cont.CON202.con_contract_tmpt_clause_main" queryUrl="${/request/@context_path}/autocrud/cont.CON202.con_contract_tmpt_clause_main/query?tmpt_id=${/parameter/@tmpt_id}" selectable="true">
<a:fields>
<a:field name="withhold_way_n" displayField="code_value_name" options="con202_withway_ds" returnField="withhold_way" valueField="code_value"/>
<a:field name="pay_method_n" displayField="code_value_name" options="pay_methods_ds" returnField="pay_method" valueField="code_value"/>
<a:field name="secondary_lease_n" displayField="code_value_name" options="secondary_lease_ds" returnField="secondary_lease" valueField="code_value"/>
<a:field name="finance_type"/>
<a:field name="finance_type_n" displayField="code_value_name" options="con202_finance_type" returnField="finance_type" valueField="code_value"/>
......@@ -115,7 +116,9 @@
</a:toolBar>
<a:columns>
<a:column name="contract_number" editor="lov" prompt="合同编号" width="100"/>
<a:column name="withhold_way_n" editor="cb" prompt="代扣方式"/>
<!-- <a:column name="withhold_way_n" editor="cb" prompt="代扣方式"/>-->
<a:column name="pay_method_n" editor="cb" prompt="支付方式"/>
<a:column name="bp_category_n" editor="lov" prompt="商业伙伴类型" width="100"/>
<a:column name="vender_id_n" editor="lov" prompt="厂商" width="100"/>
<a:column name="secondary_lease_n" editor="cb" prompt="二次租赁" width="100"/>
......
......@@ -132,9 +132,10 @@
if (!Leaf.isEmpty(temp[0])) {
var file_name = temp[0].toUpperCase();
var file_suffix = temp[0].substr(temp[0].lastIndexOf('.') + 1).toUpperCase();
if (file_name.indexOf('.PDF') >= 0) {
url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ',';
} else if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') {
// if (file_name.indexOf('.PDF') >= 0) {
// url = url + '<a href=javascript:view_pdf(\'' + temp[1] + '\')>' + temp[0] + '</a>' + ',';
// } else
if (file_suffix == 'BMP' || file_suffix == 'JPG' || file_suffix == 'JPEG' || file_suffix == 'PNG' || file_suffix == 'GIF') {
url = url + '<a href=' + link + temp[1] + ' ref="img">' + temp[0] + '</a>' + ',';
} else {
url = url + '<a href=' + link + temp[1] + '>' + temp[0] + '</a>' + ',';
......@@ -504,6 +505,7 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
price_list: price_list,
document_category: 'CONTRACT',
......@@ -516,7 +518,8 @@
global_flag: 'Y',
id_num: 1,
calc_type: calc_type,
recreate_L_formula: 'N'
recreate_L_formula: 'Y',
recreate_H_formula:'Y'
},
url: $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl(),
fullScreen: true,
......
......@@ -10,22 +10,22 @@
importPackage(Packages.org.apache.commons.io);
function copyFile(fOld, fNew) {
var fis = new java.io.FileInputStream(fOld);
var fos = new java.io.FileOutputStream(fNew);
var b = new java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, 1024 * 4);
var len = -1;
while ((len = fis.read(b)) != -1) {
fos.write(b, 0, len);
var fis = new java.io.FileInputStream(fOld);
var fos = new java.io.FileOutputStream(fNew);
var b = new java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, 1024 * 4);
var len = -1;
while ((len = fis.read(b)) != -1) {
fos.write(b, 0, len);
}
fis.close();
fos.close();
}
fis.close();
fos.close();
}
//删除文件
//删除文件
function deleteFile(filePath) {
var file = new File(filePath);
if (file.exists()) {
file.delete();
}
var file = new File(filePath);
if (file.exists()) {
file.delete();
}
}
//生成pdf
......@@ -37,7 +37,7 @@
//删除word文件
// deleteFile(word_file_path);
return pdf_file_path_new;
return pdf_file_path_new;
}
//生成pdf openoffice
function doc2pdf(word_file_path,pdf_file_path) {
......
......@@ -49,9 +49,10 @@
//按日期创建目录
function getDatePath() {
set_parameter_file_path();
var file_path = $ctx.parameter.pdf_path; //file_path = c:/hls_test_files/content_files/
var file_path = $ctx.parameter.file_path; //file_path = c:/hls_test_files/content_files/
var now = new Date()
y = now.getFullYear()
m = now.getMonth() + 1
......@@ -122,31 +123,13 @@
} catch (e) {
raise_app_error(e);
}
// word转pdf
var pdf_file_path=to_file_path;
var outputfilepath = wordToPdf(to_file_path,pdf_file_path);
var outputfilename= record_data.to_file_name +'.pdf';
var pdf_file = new File(outputfilepath);
var file_size = 0;
if (pdf_file.exists()) {
file_size = pdf_file.length();
}
//保存文本名及路径
$bm('cont.CON500.con_file_content_copy_update').execute({
table_name: 'CON_CONTRACT_CONTENT',
content_id: record_data.content_id,
file_name: outputfilename.toString(),
file_path: outputfilepath.toString(),
file_size: file_size,
file_type_code: 'pdf',
mime_type: 'application/pdf',
user_id: $ctx.parameter.user_id
});
download_file(outputfilepath.toString(),outputfilename.toString());
$bm('cont.CON500.con_file_content_copy_update').update({
table_name: 'CON_CONTRACT_CONTENT',
content_id: record_data.content_id,
file_name: to_file_name.toString(),
file_path: to_file_path.toString()
});
download_file(to_file_path.toString(),to_file_name.toString());
}
}
......
......@@ -138,18 +138,28 @@
record.set('ccr_lease_penalty', res.result.ccr_lease_penalty);
},
error: function () {
record.set('ccr_lease_date', null);
record.set('ccr_lease_rental', null);
record.set('ccr_lease_principal', null);
record.set('ccr_lease_interest', null);
record.set('ccr_lease_penalty', null);
},
failure: function () {
record.set('ccr_lease_date', null);
record.set('ccr_lease_rental', null);
record.set('ccr_lease_principal', null);
record.set('ccr_lease_interest', null);
record.set('ccr_lease_penalty', null);
},
sync: true,
scope: this
});
}
}
// 回款賬戶變更
if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') {
debugger;
if (name == 'pay_method') {
if (record.get('pay_method') == 'WIRE_TRANSFER') {
if ( value== 'WIRE_TRANSFER') {
record.set('bank_account_id', null);
record.set('bank_account_id_n', null);
record.getField('bank_account_id').setReadOnly(true);
......@@ -159,11 +169,27 @@
record.set('bank_account_name', null);
record.set('bank_branch_num', null);
record.set('bank_branch_name', null);
} else {
record.set('withhold_way', null);
} else if (value== 'AGRI_THREE'){
record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', 'ABC');
}
else if (value == 'AGRI_TWO'){
record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', 'ABC_2');
}
else if (value == 'CCB_THREE'){
record.getField('bank_account_id').setReadOnly(false);
record.getField('bank_account_id_n').setReadOnly(false);
record.getField('bank_account_id').setRequired(true);
record.getField('bank_account_id_n').setRequired(true);
record.set('withhold_way', null);
}
}
......@@ -237,19 +263,19 @@
var case_type = '';
var document_type = '${/parameter/@document_type}';
var calc_session_id = req_record.get('calc_session_id');
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
for (var i=0;i<$(attch_id).getAll().length;i++){
if ($(attch_id).getAll()[i].dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
// $('${/parameter/@layout_code}_submit_approval').enable();
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
}
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
for (var i=0;i<$(attch_id).getAll().length;i++){
if ($(attch_id).getAll()[i].dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
// $('${/parameter/@layout_code}_submit_approval').enable();
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
}
if (req_record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
// $('${/parameter/@layout_code}_submit_approval').enable();
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
if ($(req_ds_id).validate($('${/parameter/@layout_code}_submit_approval').enable()) && $(req_ds_id2).validate($('${/parameter/@layout_code}_submit_approval').enable())) {
......@@ -259,23 +285,24 @@
// return;
// }
// 回款賬戶變更
if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') {
var bank_account_num_s = req_record.get('bank_account_num_s');
var bank_account_num_c = req_record.get('bank_branch_num');
if (bank_account_num_s == bank_account_num_c) {
Leaf.showMessage('警告', '现扣款账号和原扣款账号不能重复!');
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
} else {
con731_submit();
}
} else if ('${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') {
// if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') {
// var bank_account_num_s = req_record.get('bank_account_num_s');
// var bank_account_num_c = req_record.get('bank_branch_num');
// if (bank_account_num_s == bank_account_num_c) {
// Leaf.showMessage('警告', '现扣款账号和原扣款账号不能重复!');
// // window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// return false;
//
// } else {
// con731_submit();
// }
// } else
if ('${/parameter/@layout_code}' == 'CON_TENANT_CHANGE_MODIFY') {
var bp_id_tenant = req_record.get('bp_id_tenant');
var bp_id_tenant_old = req_record.get('bp_id_tenant_old');
if (bp_id_tenant == bp_id_tenant_old) {
Leaf.showMessage('警告', '变更承租人和原承租人不能重复!');
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
else {
......@@ -292,40 +319,40 @@
function con731_submit() {
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认提交审批?', function () {
var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var req_record = $(req_ds_id).getAt(0);
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('con731_submit_link').getUrl(),
para: {
change_req_id: '${/parameter/@change_req_id}',
layout_code: '${/parameter/@layout_code}'
},
success: function (res) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var req_record = $(req_ds_id).getAt(0);
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('con731_submit_link').getUrl(),
para: {
change_req_id: '${/parameter/@change_req_id}',
layout_code: '${/parameter/@layout_code}'
},
success: function (res) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure: function () {
// $('${/parameter/@layout_code}_submit_approval').enable();
// $('${/parameter/@layout_code}_save').enable();
// if('${/parameter/@layout_code}' == 'CON_CHANGE_MODIFY'){
// $('${/parameter/@layout_code}_quote').enable();
// }
// $('${/parameter/@layout_code}_user_button1').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
// $('${/parameter/@layout_code}_submit_approval').enable();
// $('${/parameter/@layout_code}_save').enable();
// if('${/parameter/@layout_code}' == 'CON_CHANGE_MODIFY'){
// $('${/parameter/@layout_code}_quote').enable();
// }
// $('${/parameter/@layout_code}_user_button1').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
},
failure: function () {
// $('${/parameter/@layout_code}_submit_approval').enable();
// $('${/parameter/@layout_code}_save').enable();
// if('${/parameter/@layout_code}' == 'CON_CHANGE_MODIFY'){
// $('${/parameter/@layout_code}_quote').enable();
// }
// $('${/parameter/@layout_code}_user_button1').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
// $('${/parameter/@layout_code}_submit_approval').enable();
// $('${/parameter/@layout_code}_save').enable();
// if('${/parameter/@layout_code}' == 'CON_CHANGE_MODIFY'){
// $('${/parameter/@layout_code}_quote').enable();
// }
// $('${/parameter/@layout_code}_user_button1').enable();
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
}, null, 300, 150);
}
......
......@@ -132,12 +132,24 @@
// var url = $('con_contract_change_req_link').getUrl() + '?xmlTemp=' + xmlTemp + '&fileName=' + fileName;
// window.open(url);
// };
//合同变更维护和查询功能那里,各个角色只能看到自己角色提交的变更申请
window['${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) { //查询权限
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
if (ds == $(ds_id)) {
aut_authority_list_validate_query(ds, qpara);
}
//aut_authority_list_validate_query(ds, qpara);
var role_code='${/model/role_info/record/@role_code}';
if(role_code=='0007'){
$(ds_id).setQueryParameter('ccr_document_type', 'ACC_CHAG');
}else if(role_code=='0008'){
$(ds_id).setQueryParameter('ccr_document_type', 'LEASE_CHAG');
}
else if(role_code=='0019'){
$(ds_id).setQueryParameter('change_created_by', '${/session/@user_id}');
}
}
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
......
......@@ -4,7 +4,9 @@
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script"
customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure/>
<a:init-procedure>
<a:model-query model="cont.CON620.get_sys_role" rootPath="role_info"/>
</a:init-procedure>
<a:view>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
......@@ -161,7 +163,18 @@
window['${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function (ds, qpara, bp_seq) { //查询权限
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
if (ds == $(ds_id)) {
aut_authority_list_validate_query(ds, qpara);
//aut_authority_list_validate_query(ds, qpara);
var role_code='${/model/role_info/record/@role_code}';
if(role_code=='0007'){
$(ds_id).setQueryParameter('ccr_document_type', 'ACC_CHAG');
}else if(role_code=='0008'){
$(ds_id).setQueryParameter('ccr_document_type', 'LEASE_CHAG');
}
else if(role_code=='0019'){
$(ds_id).setQueryParameter('change_created_by', '${/session/@user_id}');
}
}
};
]]></script>
......
......@@ -7,7 +7,9 @@
-->
<a:screen xmlns:s="leaf.plugin.script" xmlns:a="http://www.leaf-framework.org/application"
customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure/>
<a:init-procedure>
<a:model-query defaultWhereClause="t1.role_id=${/session/@role_id}" fetchAll="true" model="cont.CON733.query_roles_info" rootPath="role_code"/>
</a:init-procedure>
<a:view>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
......@@ -19,6 +21,34 @@
<a:link id="con_contract_change_req_link"
url="${/request/@context_path}/modules/cont/CON701/con_contract_et_print.lsc"/>
<script type="text/javascript"><![CDATA[
//合同变更创建:营业内勤只能选到回款账户变更,
// 债权担当只能选到承租人变更,
// 代理店下级只能选到租金计划变更;
Leaf.onReady(function(){
var role_code='${/model/role_code/record/@role_code}';
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_change_req');
var head_record = $(ds_id).getAt(0);
if(head_record){
if(role_code=='0007'){
head_record.set('ccr_document_type','ACC_CHAG');
head_record.set('ccr_document_type_n','回款账户变更');
head_record.getField('ccr_document_type').setReadOnly(true);
head_record.getField('ccr_document_type_n').setReadOnly(true);
}else if(role_code=='0008'){
head_record.set('ccr_document_type','LEASE_CHAG');
head_record.set('ccr_document_type_n','承租人变更');
head_record.getField('ccr_document_type').setReadOnly(true);
head_record.getField('ccr_document_type_n').setReadOnly(true);
}
else if(role_code=='0019'){
head_record.set('ccr_document_type','CUT_CHAG');
head_record.set('ccr_document_type_n','租金计划变更');
head_record.getField('ccr_document_type').setReadOnly(true);
head_record.getField('ccr_document_type_n').setReadOnly(true);
}
}
});
function open_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var param = record.data;
......
......@@ -55,9 +55,9 @@
<a:dataSet id="con_contract_cashflow_monthly_query_ds" autoCreate="true">
<a:fields>
<a:field name="due_date" required="true" prompt="基准日期"/>
<a:field name="bp_id_agent_level1" required="true" />
<a:field name="bp_id_agent_level1" />
<a:field name="account_name" displayField="account_name" options="gld_accounts_ds" returnField="account_id" valueField="account_id"/>
<a:field name="bp_id_agent_level1_n" prompt="代理店" required="true" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov?bp_category=AGENT" lovWidth="500" title="HLS.BP_TITLE" >
<a:field name="bp_id_agent_level1_n" prompt="代理店" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov?bp_category=AGENT" lovWidth="500" title="HLS.BP_TITLE" >
<a:mapping>
<a:map from="bp_id" to="bp_id_agent_level1"/>
<a:map from="bp_name" to="bp_id_agent_level1_n" />
......@@ -66,12 +66,12 @@
<a:field name="overdue_day1" required="true" prompt="已到期1个月界定天数" defaultValue="30"/>
<a:field name="overdue_day2" required="true" prompt="已到期2个月界定天数" defaultValue="60"/>
<a:field name="overdue_day3" required="true" prompt="已到期3个月界定天数" defaultValue="90"/>
<a:field name="not_overday1" required="true" prompt="未到期1个月界定天数" defaultValue="30"/>
<a:field name="not_overday2" required="true" prompt="未到期2个月界定天数" defaultValue="60"/>
<a:field name="not_overday3" required="true" prompt="未到期3个月界定天数" defaultValue="90"/>
<a:field name="not_overday4" required="true" prompt="未到期4个月界定天数" defaultValue="120"/>
<a:field name="not_overday5" required="true" prompt="未到期5个月界定天数" defaultValue="150"/>
<a:field name="not_overday6" required="true" prompt="未到期6个月界定天数" defaultValue="180"/>
<a:field name="not_overday1" required="true" prompt="未到期1个月界定天数" defaultValue="31"/>
<a:field name="not_overday2" required="true" prompt="未到期2个月界定天数" defaultValue="61"/>
<a:field name="not_overday3" required="true" prompt="未到期3个月界定天数" defaultValue="92"/>
<a:field name="not_overday4" required="true" prompt="未到期4个月界定天数" defaultValue="122"/>
<a:field name="not_overday5" required="true" prompt="未到期5个月界定天数" defaultValue="153"/>
<a:field name="not_overday6" required="true" prompt="未到期6个月界定天数" defaultValue="184"/>
</a:fields>
</a:dataSet>
<a:dataSet id="con_contract_cashflow_monthly_result_ds" model="cont.CON930.con_contract_cashflow_monthly" autoPageSize="true" queryDataSet="con_contract_cashflow_monthly_query_ds"/>
......@@ -81,18 +81,18 @@
<a:gridButton click="CON321_con_contract_query" text="HLS.QUERY"/>
<a:gridButton click="CON321_con_contract_reset" text="HLS.RESET"/>
</a:screenTopToolbar>
<a:form bindTarget="con_contract_cashflow_balance_query_ds" column="6" title="收付款预定查询" marginWidth="40">
<a:form bindTarget="con_contract_cashflow_balance_query_ds" column="4" title="收付款预定查询" marginWidth="40">
<a:datePicker name="due_date" bindTarget="con_contract_cashflow_monthly_query_ds"/>
<a:lov name="bp_id_agent_level1_n" bindTarget="con_contract_cashflow_monthly_query_ds"/>
<a:numberField name="overdue_day1" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>
<a:numberField name="overdue_day2" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>
<a:numberField name="overdue_day3" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>
<a:numberField name="not_overday1" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>
<a:numberField name="not_overday2" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>
<a:numberField name="not_overday3" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>
<a:numberField name="not_overday4" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>
<a:numberField name="not_overday5" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>
<a:numberField name="not_overday6" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>
<!-- <a:numberField name="overdue_day1" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="overdue_day2" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="overdue_day3" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="not_overday1" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="not_overday2" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="not_overday3" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="not_overday4" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="not_overday5" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:numberField name="not_overday6" bindTarget="con_contract_cashflow_monthly_query_ds" allowDecimals="false"/>-->
<!-- <a:comboBox name="account_name" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="科目"/>-->
</a:form>
......@@ -101,6 +101,7 @@
<a:button type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="division_n" align="center" prompt="租赁物" width="120"/>
<a:column name="bp_id_agent_level1_n" align="center" prompt="代理店" width="120"/>
<a:column name="contract_number" align="center" prompt="合同号" width="120"/>
<a:column name="bp_code" align="center" prompt="业务伙伴号" width="100"/>
......@@ -120,6 +121,57 @@
<a:column name="not_due_amount_5" align="center" prompt="未到期5个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_6" align="center" prompt="未到期6个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_left" align="center" prompt="未到期6个月以上" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_7" align="center" prompt="未到期7个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_8" align="center" prompt="未到期8个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_9" align="center" prompt="未到期9个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_10" align="center" prompt="未到期10个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_11" align="center" prompt="未到期11个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_12" align="center" prompt="未到期12个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_13" align="center" prompt="未到期13个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_14" align="center" prompt="未到期14个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_15" align="center" prompt="未到期15个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_16" align="center" prompt="未到期16个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_17" align="center" prompt="未到期17个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_18" align="center" prompt="未到期18个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_19" align="center" prompt="未到期19个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_20" align="center" prompt="未到期20个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_21" align="center" prompt="未到期21个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_22" align="center" prompt="未到期22个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_23" align="center" prompt="未到期23个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_24" align="center" prompt="未到期24个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_25" align="center" prompt="未到期25个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_26" align="center" prompt="未到期26个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_27" align="center" prompt="未到期27个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_28" align="center" prompt="未到期28个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_29" align="center" prompt="未到期29个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_30" align="center" prompt="未到期30个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_31" align="center" prompt="未到期31个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_32" align="center" prompt="未到期32个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_33" align="center" prompt="未到期33个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_34" align="center" prompt="未到期34个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_35" align="center" prompt="未到期35个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_36" align="center" prompt="未到期36个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_37" align="center" prompt="未到期37个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_38" align="center" prompt="未到期38个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_39" align="center" prompt="未到期39个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_40" align="center" prompt="未到期40个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_41" align="center" prompt="未到期41个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_42" align="center" prompt="未到期42个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_43" align="center" prompt="未到期43个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_44" align="center" prompt="未到期44个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_45" align="center" prompt="未到期45个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_46" align="center" prompt="未到期46个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_47" align="center" prompt="未到期47个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_48" align="center" prompt="未到期48个月" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_48_left" align="center" prompt="未到期48个月以上" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_1" align="center" prompt="未到期1年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_2" align="center" prompt="未到期2年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_3" align="center" prompt="未到期3年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_4" align="center" prompt="未到期4年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5" align="center" prompt="未到期5年" renderer="Leaf.formatMoney" width="80"/>
<a:column name="not_due_amount_year_5_left" align="center" prompt="未到期5年以上" renderer="Leaf.formatMoney" width="80"/>
</a:columns>
</a:grid>
......
......@@ -30,6 +30,7 @@
Leaf.request({
url: $('con_et001_calc_et_date_amount_link').getUrl(),
para: {
change_req_id:record.get('change_req_id'),
contract_id: record.get('contract_id'),
termination_date: value,
et_fee:record.get('et_fee'),
......@@ -56,7 +57,7 @@
record.set('penalty', '');
record.set('fund_possession_time','');
record.set('fund_possession_cost','');
record.set('fund_possession_rate','');
//record.set('fund_possession_rate','');
record.set('last_rent_due_date','');
record.set('sum_unreceived_principal','');
},
......@@ -68,7 +69,7 @@
record.set('penalty', '');
record.set('fund_possession_time','');
record.set('fund_possession_cost','');
record.set('fund_possession_rate','');
//record.set('fund_possession_rate','');
record.set('last_rent_due_date','');
record.set('sum_unreceived_principal','');
},
......@@ -99,10 +100,10 @@
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return;
}
$('${/parameter/@layout_code}_submit_approval').disable();
$('${/parameter/@layout_code}_save').disable();
$('${/parameter/@layout_code}_user_button1').disable();
$('${/parameter/@layout_code}_user_button3').disable();
//$('${/parameter/@layout_code}_submit_approval').disable();
//$('${/parameter/@layout_code}_save').disable();
// $('${/parameter/@layout_code}_user_button1').disable();
// $('${/parameter/@layout_code}_user_button3').disable();
//setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con_repo001_submit), 2000);
// window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](con_repo001_submit);
con_repo001_submit();
......@@ -112,6 +113,10 @@
};
function con_repo001_submit() {
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认提交审批?', function () {
$('${/parameter/@layout_code}_submit_approval').disable();
//$('${/parameter/@layout_code}_save').disable();
// $('${/parameter/@layout_code}_user_button1').disable();
// $('${/parameter/@layout_code}_user_button3').disable();
var req_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_01', 'con_contract_change_req');
var req_record = $(req_ds_id).getAt(0);
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
......@@ -215,8 +220,9 @@
//取消变更
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() {
$('${/parameter/@layout_code}_user_button3').disable(); //按钮不可用
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认取消变更?', function() {
$('${/parameter/@layout_code}_user_button3').disable(); //按钮不可用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url: $('con_et002_cancel_link').getUrl(),
......
......@@ -50,6 +50,9 @@
record.set('payment_period', 1);
// record.set('payment_frequency', 'MONTH');
// record.set('payment_frequency_n', '按月');
}
else{
record.getField('payment_period').setReadOnly(false);
}
record.set('payment_frequency', 'MONTH');
record.set('payment_frequency_n', '按月');
......@@ -68,47 +71,45 @@
// };
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
debugger;
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_01', 'con_contract');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
// var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_01', 'con_contract');
var ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_QUOTATION_02', 'con_contract');
var ds_id3 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_QUOTATION_01', 'con_contract');
if (ds == $(ds_id)) {
// var repurchase_types = record.get('repurchase_types');
// if (name != 'repurchase_types_n') {
// if (repurchase_types == null || repurchase_types == undefined) {
// Leaf.showMessage('${l:HLS.PROMPT}', '请先维护基本信息中的回购类型!');
// return;
// }
// }
var depoist_remaining_amount;
if(record.get('depoist_offset_flag')=='Y'){
depoist_remaining_amount=record.get('depoist_remaining_amount')||0;
}else{
depoist_remaining_amount=0*1;
};
// 回购价款总额 = 逾期租金 + 逾期罚息+ 剩余本金 + 留购价 + 手续费 + 资金占用费-保证金余额(抵扣情况下)
// sum_overdue_amount+due_amount+sum_unreceived_principal+residual_value+repurchase_service_charges+fund_possession_cost
// 回购价款计算基数 = 回购价款总额
// 逾期罚息(调整后)
if(name == 'payment_period'){
if(value <= 0 || value == NaN || value == undefined){
Leaf.showMessage('${l:HLS.PROMPT}', '支付期数请填写大于0的整数!');
return;
}
}
if (name == 'ccr_due_amount'&&value) {
var due_amount = record.get('due_amount') || 0;
if (due_amount < value) {
Leaf.showMessage('${l:HLS.PROMPT}', '调整后的罚息必须小于等于逾期罚息!');
setTimeout(function() {
record.set('ccr_due_amount', 0);
}, 500);
return;
}
var repurchase_types = record.get('repurchase_types');
if (name != 'repurchase_types_n' &&name!='payment_frequency'&&name!='payment_frequency_n') {
if (name != 'repurchase_types_n' && name != 'payment_frequency' && name != 'payment_frequency_n') {
if (repurchase_types == null || repurchase_types == undefined) {
Leaf.showMessage('${l:HLS.PROMPT}', '请先维护基本信息中的回购类型!');
return;
}
}
var depoist_remaining_amount;
if (record.get('depoist_offset_flag') == 'Y') {
depoist_remaining_amount = record.get('depoist_remaining_amount') || 0;
} else {
depoist_remaining_amount = 0 * 1;
}
// 回购价款总额 = 逾期租金 + 逾期罚息+ 剩余本金 + 留购价 + 手续费 + 资金占用费-保证金余额(抵扣情况下)
// sum_overdue_amount+due_amount+sum_unreceived_principal+residual_value+repurchase_service_charges+fund_possession_cost
// 回购价款计算基数 = 回购价款总额
// 逾期罚息(调整后)
if (name == 'payment_period') {
if (value <= 0 || value == NaN || value == undefined) {
Leaf.showMessage('${l:HLS.PROMPT}', '支付期数请填写大于0的整数!');
return;
}
}
if (name == 'ccr_due_amount' && value) {
var due_amount = record.get('due_amount') || 0;
if (due_amount < value) {
Leaf.showMessage('${l:HLS.PROMPT}', '调整后的罚息必须小于等于逾期罚息!');
setTimeout(function () {
record.set('ccr_due_amount', 0);
}, 500);
return;
}
}
// 一次性回购
if (repurchase_types == 'ONE_TIME_REPURCHASE') {
// 回购价款总额 = 逾期租金 + 逾期罚息(调整后)+ 剩余本金 + 留购价 + 手续费 + 资金占用费
......@@ -121,7 +122,7 @@
record.getField('payment_frequency_n').setReadOnly(true);
record.getField('payment_period').setReadOnly(true);
record.set('payment_period', 1);
// record.set('payment_frequency', 'MONTH');
// record.set('payment_frequency', 'MONTH');
if (name == 'ccr_due_amount') {
var due_amount = record.get('due_amount') || 0;
if (due_amount < value) {
......@@ -151,17 +152,19 @@
}
// 分期回购
} else if (repurchase_types == 'STAGE_REPURCHASE') {
//record.set('payment_period', '');
record.getField('payment_frequency_n').setRequired(true);
record.getField('payment_frequency').setRequired(true);
record.getField('payment_period').setRequired(true);
record.getField('payment_frequency_n').setReadOnly(true);
record.getField('payment_period').setReadOnly(true);
record.getField('payment_period').setReadOnly(false);
record.getField('payment_frequency_n').setReadOnly(false);
record.getField('payment_frequency').setReadOnly(true);
// 回购价款总额 = 逾期租金 + 逾期罚息(调整后)+ 剩余本金 + 留购价 + 手续费 + 资金占用费
// sum_overdue_amount+ccr_due_amount+sum_unreceived_principal+residual_value+repurchase_service_charges+fund_possession_cost
// 回购价款计算基数 = 逾期租金 + 逾期罚息(调整后)+ 剩余本金 + 留购价
// 逾期罚息(调整后)
if(name == 'payment_period'){
if(value <= 0 || value == NaN || value == undefined){
if (name == 'payment_period') {
if (value <= 0 || value == NaN || value == undefined) {
Leaf.showMessage('${l:HLS.PROMPT}', '支付期数请填写大于0的整数!');
return;
}
......@@ -172,188 +175,93 @@
Leaf.showMessage('${l:HLS.PROMPT}', '调整后的罚息必须小于等于逾期罚息!');
return;
}
if (name == 'due_amount'&&value) {
var due_amount = record.get('due_amount') || 0;
var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, value || 0), record.get('sum_unreceived_principal') || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
}
// 手续费
if (name == 'repurchase_service_charges') {
var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('due_amount') || 0), record.get('sum_unreceived_principal') || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, value || 0), record.get('fund_possession_cost') || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
}
// 资金占用费value
if (name == 'fund_possession_cost') {
var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('due_amount') || 0), record.get('sum_unreceived_principal') || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), value || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
}
}
if (name == 'due_amount' && value) {
var due_amount = record.get('due_amount') || 0;
var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, value || 0), record.get('sum_unreceived_principal') || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
}
// 手续费
if (name == 'repurchase_service_charges') {
var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('due_amount') || 0), record.get('sum_unreceived_principal') || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, value || 0), record.get('fund_possession_cost') || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
}
// 资金占用费value
if (name == 'fund_possession_cost') {
var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('due_amount') || 0), record.get('sum_unreceived_principal') || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), value || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
}
if(name == 'sum_overdue_amount'){
var repurchase_count_amount = plus(plus(plus(value || 0, record.get('due_amount') || 0), record.get('sum_unreceived_principal') || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
}
if(name == 'sum_unreceived_principal'){
var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('due_amount') || 0), value || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount,depoist_remaining_amount));
}
// 一次性回购
// if (repurchase_types == 'ONE_TIME_REPURCHASE') {
// // 回购价款总额 = 逾期租金 + 逾期罚息(调整后)+ 剩余本金 + 留购价 + 手续费 + 资金占用费
// // sum_overdue_amount+ccr_due_amount+sum_unreceived_principal+residual_value+repurchase_service_charges+fund_possession_cost
// // 回购价款计算基数 = 逾期租金 + 逾期罚息(调整后)+ 剩余本金 + 留购价
// // 逾期罚息(调整后)
// record.getField('payment_frequency_n').setRequired(false);
// record.getField('payment_frequency').setRequired(false);
// record.getField('payment_period').setRequired(false);
// record.getField('payment_frequency_n').setReadOnly(true);
// record.getField('payment_period').setReadOnly(true);
// record.set('payment_period', 1);
// record.set('payment_frequency', 'MONTH');
// if (name == 'ccr_due_amount') {
// var due_amount = record.get('due_amount') || 0;
// if (due_amount < value) {
// Leaf.showMessage('${l:HLS.PROMPT}', '调整后的罚息必须小于等于逾期罚息!');
// }
// var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, value || 0), record.get('sum_unreceived_principal') || 0)
// , record.get('residual_value') || 0);
// var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
// record.set('repurchase_tatal_amount', repurchase_tatal_amount);
// record.set('repurchase_count_amount', repurchase_count_amount);
// }
// // 手续费
// if (name == 'repurchase_service_charges') {
// var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('ccr_due_amount') || 0), record.get('sum_unreceived_principal') || 0)
// , record.get('residual_value') || 0);
// var repurchase_tatal_amount = plus(plus(repurchase_count_amount, value || 0), record.get('fund_possession_cost') || 0);
// record.set('repurchase_tatal_amount', repurchase_tatal_amount);
// record.set('repurchase_count_amount', repurchase_count_amount);
// }
// // 资金占用费value
// if (name == 'fund_possession_cost') {
// var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('ccr_due_amount') || 0), record.get('sum_unreceived_principal') || 0)
// , record.get('residual_value') || 0);
// var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), value || 0);
// record.set('repurchase_tatal_amount', repurchase_tatal_amount);
// record.set('repurchase_count_amount', repurchase_count_amount);
// }
// // 分期回购
// } else if (repurchase_types == 'STAGE_REPURCHASE') {
// record.getField('payment_frequency_n').setRequired(true);
// record.getField('payment_frequency').setRequired(true);
// record.getField('payment_period').setRequired(true);
// record.getField('payment_frequency_n').setReadOnly(false);
// record.getField('payment_period').setReadOnly(false);
// // 回购价款总额 = 逾期租金 + 逾期罚息(调整后)+ 剩余本金 + 留购价 + 手续费 + 资金占用费
// // sum_overdue_amount+ccr_due_amount+sum_unreceived_principal+residual_value+repurchase_service_charges+fund_possession_cost
// // 回购价款计算基数 = 逾期租金 + 逾期罚息(调整后)+ 剩余本金 + 留购价
// // 逾期罚息(调整后)
// if(name == 'payment_period'){
// if(value <= 0 || value == NaN || value == undefined){
// Leaf.showMessage('${l:HLS.PROMPT}', '支付期数请填写大于0的整数!');
// return;
// }
// }
// if (name == 'ccr_due_amount') {
// var due_amount = record.get('due_amount') || 0;
// if (due_amount < value) {
// Leaf.showMessage('${l:HLS.PROMPT}', '调整后的罚息必须小于等于逾期罚息!');
// return;
// }
// var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, value || 0), record.get('sum_unreceived_principal') || 0)
// , record.get('residual_value') || 0);
// var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
// record.set('repurchase_tatal_amount', repurchase_tatal_amount);
// record.set('repurchase_count_amount', repurchase_count_amount);
// }
// // 手续费
// if (name == 'repurchase_service_charges') {
// var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('ccr_due_amount') || 0), record.get('sum_unreceived_principal') || 0)
// , record.get('residual_value') || 0);
// var repurchase_tatal_amount = plus(plus(repurchase_count_amount, value || 0), record.get('fund_possession_cost') || 0);
// record.set('repurchase_tatal_amount', repurchase_tatal_amount);
// record.set('repurchase_count_amount', repurchase_count_amount);
// }
// // 资金占用费value
// if (name == 'fund_possession_cost') {
// var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('ccr_due_amount') || 0), record.get('sum_unreceived_principal') || 0)
// , record.get('residual_value') || 0);
// var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), value || 0);
// record.set('repurchase_tatal_amount', repurchase_tatal_amount);
// record.set('repurchase_count_amount', repurchase_count_amount);
// }
// }
// }
// if(name == 'sum_overdue_amount'){
// var repurchase_count_amount = plus(plus(plus(value || 0, record.get('ccr_due_amount') || 0), record.get('sum_unreceived_principal') || 0)
// , record.get('residual_value') || 0);
// var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
// record.set('repurchase_tatal_amount', repurchase_tatal_amount);
// record.set('repurchase_count_amount', repurchase_count_amount);
// }
// if(name == 'sum_unreceived_principal'){
// var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('ccr_due_amount') || 0), value || 0)
// , record.get('residual_value') || 0);
// var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
// record.set('repurchase_tatal_amount', repurchase_tatal_amount);
// record.set('repurchase_count_amount', repurchase_count_amount);
// }
if (name == 'repurchase_date'&&value) {
// last_rent_due_date 前期租金支付约定日:自动带出原合同报价现金流中,回购解约日上一期应收租金的日期。
Leaf.request({
url: $('con_repo001_calc_repo_date_amount_link').getUrl(),
para: {
contract_id: record.get('contract_id'),
repurchase_date: value
},
success: function (res) {
record.set('last_rent_due_date', res.result.last_rent_due_date);
record.set('sum_received_rent_amount', res.result.sum_received_rent_amount||0);
record.set('sum_unreceived_rent_amount', res.result.sum_unreceived_rent_amount||0);
record.set('sum_overdue_amount', res.result.sum_overdue_amount||0);
record.set('sum_unreceived_principal', res.result.sum_unreceived_principal||0);
record.set('due_amount', res.result.due_amount||0);
record.set('ccr_due_amount', res.result.due_amount||0);
},
failure: function () {
record.set('last_rent_due_date','');
record.set('repurchase_date','');
record.set('sum_received_rent_amount','');
record.set('sum_unreceived_rent_amount','');
record.set('sum_overdue_amount', '');
record.set('sum_unreceived_principal','');
record.set('due_amount', '');
record.set('ccr_due_amount','');
},
error: function () {
record.set('repurchase_date','');
record.set('last_rent_due_date','');
record.set('sum_received_rent_amount','');
record.set('sum_unreceived_rent_amount','');
record.set('sum_overdue_amount','');
record.set('sum_unreceived_principal', '');
record.set('due_amount','');
record.set('ccr_due_amount', '');
},
scope: this
});
if (name == 'sum_overdue_amount') {
var repurchase_count_amount = plus(plus(plus(value || 0, record.get('due_amount') || 0), record.get('sum_unreceived_principal') || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
}
if (name == 'sum_unreceived_principal') {
var repurchase_count_amount = plus(plus(plus(record.get('sum_overdue_amount') || 0, record.get('due_amount') || 0), value || 0)
, record.get('residual_value') || 0);
var repurchase_tatal_amount = plus(plus(repurchase_count_amount, record.get('repurchase_service_charges') || 0), record.get('fund_possession_cost') || 0);
record.set('repurchase_tatal_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
record.set('repurchase_count_amount', minus(repurchase_tatal_amount, depoist_remaining_amount));
}
if (name == 'repurchase_date' && value) {
debugger;
// last_rent_due_date 前期租金支付约定日:自动带出原合同报价现金流中,回购解约日上一期应收租金的日期。
Leaf.request({
url: $('con_repo001_calc_repo_date_amount_link').getUrl(),
para: {
contract_id: record.get('contract_id'),
repurchase_date: value
},
success: function (res) {
record.set('last_rent_due_date', res.result.last_rent_due_date);
record.set('sum_received_rent_amount', res.result.sum_received_rent_amount || 0);
record.set('sum_unreceived_rent_amount', res.result.sum_unreceived_rent_amount || 0);
record.set('sum_overdue_amount', res.result.sum_overdue_amount || 0);
record.set('sum_unreceived_principal', res.result.sum_unreceived_principal || 0);
record.set('due_amount', res.result.due_amount || 0);
record.set('ccr_due_amount', res.result.due_amount || 0);
},
failure: function () {
record.set('last_rent_due_date', '');
record.set('repurchase_date', '');
record.set('sum_received_rent_amount', '');
record.set('sum_unreceived_rent_amount', '');
record.set('sum_overdue_amount', '');
record.set('sum_unreceived_principal', '');
record.set('due_amount', '');
record.set('ccr_due_amount', '');
},
error: function () {
record.set('repurchase_date', '');
record.set('last_rent_due_date', '');
record.set('sum_received_rent_amount', '');
record.set('sum_unreceived_rent_amount', '');
record.set('sum_overdue_amount', '');
record.set('sum_unreceived_principal', '');
record.set('due_amount', '');
record.set('ccr_due_amount', '');
},
scope: this
});
}
}
}
};
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
......@@ -426,6 +334,7 @@
//报价计算
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
debugger;
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id_head = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'con_contract');
var cashflow_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_cashflow');
......@@ -474,7 +383,7 @@
'contract_id': record.get('contract_id')
},
success: function(res) {
var url = $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl();
debugger;
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
if (calc_session_id) {
//直接进入报价页面
......@@ -493,7 +402,8 @@
global_flag: 'Y',
id_num: 1,
calc_type: calc_type,
recreate_L_formula: 'N'
recreate_H_formula: 'Y',
recreate_L_formula: 'Y'
},
url: $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl(),
fullScreen: true,
......@@ -526,7 +436,7 @@
};
//取消变更
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
// $('${/parameter/@layout_code}_user_button3').disable(); //按钮不可用
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认取消变更?', function() {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
......@@ -555,17 +465,6 @@
window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, qpara, bp_seq) {
};
/* window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record, bp_seq) {
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'contract_number' && value) {
return '<a href="javascript:open_contract_win(\'' + record.ds.id + '\',\'' + record.id + '\')">' + value + '</a>';
}else if (name == 'description') {
if (record.get('important_flag') == 'Y') {
return '<span style="color: RED; ">' + value + '</span>';
}
return value;
}
}*/
//图片渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_pic_renderer'] = function(record, name, bp_seq) {
var result = name.match(/(.*)_pic$/);
......
......@@ -54,7 +54,7 @@
}
]]></style>
<script src="${/request/@context_path}/javascripts/calculate.js" type="text/javascript"/>
<a:screen-include screen="${/request/@context_path}/modules/hls/HLS500/hls_fin_calculator_dynamic.lview?calc_session_id=${/parameter/@calc_session_id}&amp;calc_type=CLASSIC_CALCULATOR&amp;document_category=${/parameter/@document_category}&amp;winId=${/parameter/@winId}"/>
<a:screen-include screen="modules/hls/HLS500/hls_fin_calculator_dynamic.lview?calc_session_id=${/parameter/@calc_session_id}&amp;calc_type=CLASSIC_CALCULATOR&amp;document_category=${/parameter/@document_category}&amp;winId=${/parameter/@winId}"/>
<script type="text/javascript"><![CDATA[
var formula_column_name = '';
var formula_column_code = '';
......@@ -1107,18 +1107,35 @@
}
}
//均等计算合并计算按钮一起
function hls_hls500_JD() {
debugger;
hls_hls500_save_new(calc_execute_JD_new, 'CALC');
}
//不均等
function hls_hls500_NJD() {
hls_hls500_save_new(calc_execute_NJD_new, 'CALC');
}
//add by syj 单变量求解
function hls_hls500_user_button1() {
debugger;
flag = 'Y';
lock_calc_current_window();
// lock_calc_current_window();
Leaf.request({
url: $('hls_fin_calc_single_variable_manual_link_id').getUrl(),
para: {
calc_session_id: '${/parameter/@calc_session_id}',
contract_id:'${/parameter/@document_id}'
},
success: function() {
success: function(res) {
get_warning_message();
if('${/parameter/@document_category}'=='CONTRACT'){
$('CON_BUYBACK_02_G_QUOTATION_04_con_contract_cashflow_ds').query();
}
......@@ -1135,9 +1152,8 @@
}
function hls_hls500_save_new(nextStep, source_procedure) {
lock_calc_current_window('${l:HLS.SAVING}');
debugger;
lock_calc_current_window('${l:HLS.CALCULATING}');
if (!$('hls_fin_calculator_hd_ds').validate() || !$('hls_fin_calculator_ln_ds').validate()) {
unlock_calc_current_window();
return;
......@@ -1175,8 +1191,6 @@
function hls_hls500_user_button2() {
flag = 'Y';
lock_calc_current_window();
Leaf.request({
url: $('hls_fin_calc_single_variable_manual_link_id').getUrl(),
para: {
......@@ -1184,6 +1198,7 @@
contract_id:'${/parameter/@document_id}'
},
success: function() {
get_warning_message();
if('${/parameter/@document_category}'=='CONTRACT'){
$('CON_BUYBACK_02_G_QUOTATION_04_con_contract_cashflow_ds').query();
}
......@@ -1201,7 +1216,7 @@
}
function calc_execute_JD_new(source_procedure) {
debugger;
var final_recreate_H_formula, final_recreate_L_formula;
if (source_procedure == 'RE_CALC') {
final_recreate_H_formula = 'Y';
......@@ -1209,6 +1224,7 @@
} else {
final_recreate_H_formula = recreate_H_formula;
final_recreate_L_formula = recreate_L_formula;
}
Leaf.request({
url: '${/request/@context_path}/autocrud/hls.HLS500.hls_fin_calculator_calc/update',
......@@ -1276,19 +1292,6 @@
}
//均等计算合并计算按钮一起
function hls_hls500_JD() {
hls_hls500_save_new(calc_execute_JD_new, 'CALC');
}
//不均等
function hls_hls500_NJD() {
hls_hls500_save_new(calc_execute_NJD_new, 'CALC');
}
]]></script>
<a:dataSets>
<a:placeHolder id="dynamicDataSet_left_id"/>
......@@ -1339,7 +1342,7 @@
</a:fields>
<a:events>
<a:event name="update" handler="do_hls500_head_update"/>
<!--<a:event name="load" handler="onEditorHdload"/>-->
<a:event name="load" handler="onEditorHdload"/>
</a:events>
</a:dataSet>
<a:dataSet id="hls_fin_calculator_ln_ds" autoQuery="true" bindName="ln_calc_bind_name" bindTarget="hls_fin_cal_save_hd_ds" fetchAll="true" processfunction="hls500_ln_process" queryUrl="${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_base_query.lsc?calc_session_id=${/parameter/@calc_session_id}&amp;ln_table_flag=Y" selectable="true">
......
......@@ -72,21 +72,21 @@
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_repo_change_link', ds_id);
};
//回购解除协议打印
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var prj_project_result_ds = $(ds_id);
var records = prj_project_result_ds.getSelected();
if (records.length != 1) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.SELECT_RECORD}');
return false;
}
var record = records[0];
var contract_id = record.get('contract_id');
var templet_code = 'CON_GRANT_DEDUCT';
var url = $('con_grant_deduct_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
window.open(url, '_self');
};
// //回购解除协议打印
// window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function() {
// var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
// var prj_project_result_ds = $(ds_id);
// var records = prj_project_result_ds.getSelected();
// if (records.length != 1) {
// Leaf.showMessage('${l:PROMPT}', '${l:HLS.SELECT_RECORD}');
// return false;
// }
// var record = records[0];
// var contract_id = record.get('contract_id');
// var templet_code = 'CON_GRANT_DEDUCT';
// var url = $('con_grant_deduct_print_link').getUrl() + '?contract_id=' + contract_id + '&templet_code=' + templet_code;
// window.open(url, '_self');
// };
window['${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) { //查询权限
......
......@@ -120,6 +120,10 @@
return 'color:red';
}
}
function indexChangeFunction(ds, record){
$('csh_write_off_lov_ds').setQueryParameter('contract_id',record.get('contract_id'));
}
]]></script>
<a:dataSets>
......@@ -141,7 +145,11 @@
</a:fields>
</a:dataSet>
<a:dataSet id="csh_lov_con_contract_ds" selectable="true" autoQuery="true" selectionModel="single"
model="csh.CSH531N.con_contract" queryDataSet="csh_query_con_ds"/>
model="csh.CSH531N.con_contract" queryDataSet="csh_query_con_ds">
<a:events>
<a:event name="indexchange" handler="indexChangeFunction"/>
</a:events>
</a:dataSet>
<a:dataSet id="csh_write_off_lov_ds" fetchAll="true" bindTarget="csh_lov_con_contract_ds"
bindName="csh_con_cf" selectable="true" selectionModel="multiple"
model="csh.CSH531N.csh_con_contract_cashflow" queryDataSet="csh_query_cf_ds"
......
......@@ -70,12 +70,25 @@
Leaf.Masker.unmask(body);
return;
}
var H1;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
if (!$('temp_hd_attribute_ds').find('column_code', temp_head_records[i].get('column_code'))) {
$('temp_hd_attribute_ds').create(temp_head_records[i].data);
}
if (temp_head_records[i].get('column_code') == 'H1') {
H1 = temp_head_records[i].get('column_value') || 0;
}
}
// if(H1<2){
// alert(1111);
// }
if(H1<2){
Leaf.showMessage('${l:PROMPT}', '系统暂时不支持还款期数小于2期的租金计划');
Leaf.Masker.unmask(body);
return false;
}
var all_records = $('temp_hd_attribute_ds').getAll();
var headRecord = $('hls_fin_cal_save_hd_ds').getAt(0);
create_record_column(all_records, headRecord);
......
......@@ -83,7 +83,29 @@
Leaf.Masker.mask(document.documentElement, '${l:HLS.LOADING}');
function hls_hls500_save(nextStep, source_procedure) {
lock_calc_current_window('${l:HLS.SAVING}');
debugger;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
var H1,H54;
for (var i = 0; i < temp_head_records.length; i++) {
if (temp_head_records[i].get('column_code') == 'H1') {
H1 = temp_head_records[i].get('column_value') || 0;
} else if (temp_head_records[i].get('column_code') == 'H54') {
H54 = temp_head_records[i].get('column_value') || 0;
H54=minus(H54,4.75);
}
}
// if(H1<2){
// Leaf.showMessage('${l:PROMPT}', '系统暂时不支持还款期数小于2期的租金计划');
// unlock_calc_current_window();
// return false;
// }
if(H54<0){
Leaf.showMessage('${l:PROMPT}', '利率最低值不能低于4.75');
unlock_calc_current_window();
return false;
}
// lock_calc_current_window('${l:HLS.SAVING}');
if (!$('hls_fin_calculator_hd_ds').validate() || !$('hls_fin_calculator_ln_ds').validate()) {
unlock_calc_current_window();
return;
......@@ -100,31 +122,32 @@
var payment_deduction = res.result.payment_deduction;
var price_list = res.result.price_list;
var down_payment_rate_new=res.result.down_payment_rate_new;
if((price_list=='HL_PRICR_E'||price_list=='HL_PRICR_TEST'||price_list=='HL_PRICR_NTEST'||price_list=='HL_PRICR_EN') && secondary_lease=='NO'){
//比例=(H16+H97)/(H99+H102-H16)
var H16,H97,H99,H102;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
if(temp_head_records[i].get('column_code')=='H16'){
H16=temp_head_records[i].get('column_value')||0
}else if(temp_head_records[i].get('column_code')=='H97'){
H97=temp_head_records[i].get('column_value')||0
}else if(temp_head_records[i].get('column_code')=='H99'){
H99=temp_head_records[i].get('column_value')||0
}else if(temp_head_records[i].get('column_code')=='H102'){
H102=temp_head_records[i].get('column_value')||0
}
}
var aa=H16+H97;
var bb=H99+H102-H16;
var cc=div((H16+H97),(H99+H102-H16));
// alert(div((H16+H97), (H99+H102-H16)).toFixed(2) * 1);
var show=down_payment_rate_new*100;
if((div((H16+H97), (H99+H102-H16)).toFixed(2) * 1)<down_payment_rate_new){
unlock_calc_current_window();
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于'+down_payment_rate_new*100+'%');
return false;
}
if((price_list=='HL_PRICR_E'||price_list=='HL_PRICR_TEST'||price_list=='HL_PRICR_NTEST'||price_list=='HL_PRICR_EN') && secondary_lease=='NO') {
//比例=(H16+H97)/(H99+H102-H16)
var H16, H97, H99, H102;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0; i < temp_head_records.length; i++) {
if (temp_head_records[i].get('column_code') == 'H16') {
H16 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H97') {
H97 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H99') {
H99 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H102') {
H102 = temp_head_records[i].get('column_value') || 0
}
}
var aa = H16 + H97;
var bb = H99 + H102 - H16;
var cc = div((H16 + H97), (H99 + H102 - H16));
// alert(div((H16+H97), (H99+H102-H16)).toFixed(2) * 1);
var show = down_payment_rate_new * 100;
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
unlock_calc_current_window();
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
return false;
}
}
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
......@@ -182,7 +205,7 @@
$('hls_fin_cal_save_hd_ds').on('submitsuccess', hls_fin_cal_save_hd_submitsuccess);
Leaf.SideBar.enable = false;
$('hls_fin_cal_save_hd_ds').submit();
}
},
failure: function() {
unlock_calc_current_window('${l:HLS.SAVING}');
......@@ -260,6 +283,7 @@
new Leaf.Window({
id: winId,
params: {
layout_code:'${/parameter/@layout_code}',
calc_session_id: '${/parameter/@calc_session_id}',
document_id: '${/parameter/@document_id}',
quotation_id: '${/parameter/@quotation_id}',
......@@ -296,6 +320,7 @@
Leaf.request({
url: '${/request/@context_path}/autocrud/hls.HLS500.hls_fin_calculator_calc/update',
para: {
layout_code:'${/parameter/@layout_code}',
calc_session_id: '${/parameter/@calc_session_id}',
document_id: '${/parameter/@document_id}',
document_category: '${/parameter/@document_category}',
......@@ -663,6 +688,7 @@
}
function do_hls500_line_update(ds, record, name, value, old_value) {
debugger;
if (quotation_update_flag == 'N') {
quotation_update_flag = 'Y';
}
......@@ -680,7 +706,7 @@
if (Ext.isEmpty(ln_calc_formula_orign_value[name])) {
ln_calc_formula_orign_value[name] = formula_record.get(name);
}
if (value == ln_calc_orign_value[name]) {
if (value === ln_calc_orign_value[name]) {
formula_record.set(name, ln_calc_formula_orign_value[name]);
} else {
formula_record.set(name, value);
......@@ -691,13 +717,19 @@
function do_hls500_head_update(ds, record, name, value, old_value) {
if (record.get('column_code') == 'H54' ) {
var sum=record.get('column_value')-4.75
if(sum<0){
Leaf.showMessage('${l:PROMPT}', '利率最低值不能低于4.75');
return false;
}
}
// if (record.get('column_code') == 'H54' ) {
// var sum=record.get('column_value')-4.75
// if(sum<0){
// Leaf.showMessage('${l:PROMPT}', '利率最低值不能低于4.75');
// return false;
// }
// }
// if (record.get('column_code') == 'H1' ) {
// if(value<2){
// Leaf.showMessage('${l:PROMPT}', '系统暂时不支持还款期数小于2期的租金计划');
// return false;
// }
// }
if (record.get('lov_return_vcode') == 'N' && (record.get('validation_type') == 'COMBOBOX' || record.get('validation_type') == 'LOV')) {
value = record.get('column_value_c');
} else {
......@@ -1307,7 +1339,7 @@
//均等计算
function hls_hls500_user_button1() {
flag = 'Y';
lock_calc_current_window();
//lock_calc_current_window();
Leaf.request({
url: $('hls_fin_calc_single_variable_calc_link_id').getUrl(),
para: {
......@@ -1315,8 +1347,8 @@
},
success: function(res) {
if('${/parameter/@document_category}'=='PROJECT'){
$('PROJECT_CREATE_NP_F_QUOTATION_N_prj_quotation_ds').query();
$('PROJECT_CREATE_NP_G_CASHFLOW_NS_prj_quotation_ds').query();
$('${/parameter/@layout_code}_F_QUOTATION_N_prj_quotation_ds').query();
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_ds').query();
}else if('${/parameter/@document_category}'=='CONTRACT'){
$('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds').query();
}
......@@ -1341,6 +1373,68 @@
}
//不均等
function hls_hls500_NJD() {
debugger;
var temp_head_records = $('hls_fin_calculator_ln_ds').getAll();
//一、报价器加校验:1.如果用户把所有租金都手填,则报校验“禁止手填所有期数租金!”;
// 2.如果用户手动修改租金以后,只有最后一期租金大于零,则报校验“目前不支持只有一期租金的报价!”
var count=temp_head_records.length-1;
var calc_temp=parseFloat(0);
var before_calc_count=parseFloat(0);
var last_calc_count=parseFloat(0);
var zero_calc_count=parseFloat(0);
var null_calc_count=parseFloat(0);
var last_null_calc_count=parseFloat(0);
var last_zero_calc_count=parseFloat(0);
for (var i = 0;i < temp_head_records.length;i++) {
if(temp_head_records[i].get('times')>0){
if(temp_head_records[i].get('principal_eq_pymt_adj')!==''&&temp_head_records[i].get('principal_eq_pymt_adj')>=0){
calc_temp = plus(calc_temp,parseFloat(1));
}
if(temp_head_records[i].get('principal_eq_pymt_adj')!==''&&temp_head_records[i].get('principal_eq_pymt_adj')===0){
before_calc_count = plus(before_calc_count,parseFloat(1));
}
if(temp_head_records[i].get('principal_eq_pymt_adj')!==''&&temp_head_records[i].get('principal_eq_pymt_adj')===0){
zero_calc_count = plus(zero_calc_count,parseFloat(1));
}
if(typeof(temp_head_records[i].get('principal_eq_pymt_adj')) == 'undefined'||temp_head_records[i].get('principal_eq_pymt_adj')===''){
null_calc_count = plus(null_calc_count,parseFloat(1));
}
}
if(temp_head_records[i].get('times')===count){
if(!temp_head_records[i].get('principal_eq_pymt_adj')||temp_head_records[i].get('principal_eq_pymt_adj')===''){
last_calc_count = plus(last_calc_count,parseFloat(1));
}
if(typeof(temp_head_records[i].get('principal_eq_pymt_adj')) == 'undefined'||temp_head_records[i].get('principal_eq_pymt_adj')===''){
last_null_calc_count = plus(last_null_calc_count,parseFloat(1));
}
if(temp_head_records[i].get('principal_eq_pymt_adj')!==''&&temp_head_records[i].get('principal_eq_pymt_adj')===0){
last_zero_calc_count = plus(last_zero_calc_count,parseFloat(1));
}
}
}
if(calc_temp==count){
Leaf.showMessage('${l:PROMPT}', '请保证一期以上的的调整租金为空!');
return false;
}
// if(last_null_calc_count==1&&zero_calc_count==count-1){
// Leaf.showMessage('${l:PROMPT}', '系统暂不支持所有租金集中在最后一期支付!');
// return false;
// }
// if(null_calc_count==1&&zero_calc_count==count-1){
// Leaf.showMessage('${l:PROMPT}', '目前不支持只有一期租金的报价!');
// return false;
// }
if(last_zero_calc_count==1){
Leaf.showMessage('${l:PROMPT}', '系统不支持最后一期租金为0的情况!');
return false;
}
hls_hls500_save_new(calc_execute_NJD_new, 'CALC');
......@@ -1349,8 +1443,27 @@
function hls_hls500_save_new(nextStep, source_procedure) {
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
var H1,H54;
for (var i = 0; i < temp_head_records.length; i++) {
if (temp_head_records[i].get('column_code') == 'H1') {
H1 = temp_head_records[i].get('column_value') || 0;
lock_calc_current_window('${l:HLS.SAVING}');
} else if (temp_head_records[i].get('column_code') == 'H54') {
H54 = temp_head_records[i].get('column_value') || 0;
H54=minus(H54,4.75);
}
}
if(H1<2){
Leaf.showMessage('${l:PROMPT}', '系统暂时不支持还款期数小于2期的租金计划');
return false;
}
if(H54<0){
Leaf.showMessage('${l:PROMPT}', '利率最低值不能低于4.75');
return false;
}
lock_calc_current_window('${l:HLS.CALCULATING}');
if (!$('hls_fin_calculator_hd_ds').validate() || !$('hls_fin_calculator_ln_ds').validate()) {
unlock_calc_current_window();
return;
......@@ -1362,36 +1475,36 @@
'project_id': '${/parameter/@document_id}'
},
success: function(res) {
debugger;
var secondary_lease = res.result.secondary_lease;
var payment_deduction = res.result.payment_deduction;
var price_list = res.result.price_list;
var down_payment_rate_new=res.result.down_payment_rate_new;
if((price_list=='HL_PRICR_E'||price_list=='HL_PRICR_TEST'||price_list=='HL_PRICR_NTEST'||price_list=='HL_PRICR_EN') && secondary_lease=='NO'){
if((price_list=='HL_PRICR_E'||price_list=='HL_PRICR_TEST'||price_list=='HL_PRICR_NTEST'||price_list=='HL_PRICR_EN') && secondary_lease=='NO') {
//比例=(H16+H97)/(H99+H102-H16)
var H16,H97,H99,H102;
var H16, H97, H99, H102;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
if(temp_head_records[i].get('column_code')=='H16'){
H16=temp_head_records[i].get('column_value')||0
}else if(temp_head_records[i].get('column_code')=='H97'){
H97=temp_head_records[i].get('column_value')||0
}else if(temp_head_records[i].get('column_code')=='H99'){
H99=temp_head_records[i].get('column_value')||0
}else if(temp_head_records[i].get('column_code')=='H102'){
H102=temp_head_records[i].get('column_value')||0
for (var i = 0; i < temp_head_records.length; i++) {
if (temp_head_records[i].get('column_code') == 'H16') {
H16 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H97') {
H97 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H99') {
H99 = temp_head_records[i].get('column_value') || 0
} else if (temp_head_records[i].get('column_code') == 'H102') {
H102 = temp_head_records[i].get('column_value') || 0
}
}
var aa=H16+H97;
var bb=H99+H102-H16;
var cc=div((H16+H97),(H99+H102-H16));
var aa = H16 + H97;
var bb = H99 + H102 - H16;
var cc = div((H16 + H97), (H99 + H102 - H16));
// alert(div((H16+H97), (H99+H102-H16)).toFixed(2) * 1);
var show=down_payment_rate_new*100;
if((div((H16+H97), (H99+H102-H16)).toFixed(2) * 1)<down_payment_rate_new){
var show = down_payment_rate_new * 100;
if ((div((H16 + H97), (H99 + H102 - H16)).toFixed(2) * 1) < down_payment_rate_new) {
unlock_calc_current_window();
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于'+down_payment_rate_new*100+'%');
Leaf.showMessage('${l:PROMPT}', '首付款比例+首付款保证金比例之和不能低于' + down_payment_rate_new * 100 + '%');
return false;
}
}
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
for (var i = 0;i < temp_head_records.length;i++) {
......@@ -1449,7 +1562,7 @@
$('hls_fin_cal_save_hd_ds').on('submitsuccess', hls_fin_cal_save_hd_submitsuccess_new);
Leaf.SideBar.enable = false;
$('hls_fin_cal_save_hd_ds').submit();
}
},
failure: function() {
unlock_calc_current_window('${l:HLS.SAVING}');
......@@ -1498,6 +1611,7 @@
function calc_execute_JD_new(source_procedure) {
debugger;
var final_recreate_H_formula, final_recreate_L_formula;
if (source_procedure == 'RE_CALC') {
final_recreate_H_formula = 'Y';
......@@ -1573,7 +1687,7 @@
function hls_hls500_user_button2() {
flag = 'Y';
lock_calc_current_window();
//lock_calc_current_window();
Leaf.request({
url: $('hls_fin_calc_single_variable_manual_link_id').getUrl(),
para: {
......@@ -1581,8 +1695,8 @@
},
success: function() {
if('${/parameter/@document_category}'=='PROJECT'){
$('PROJECT_CREATE_NP_F_QUOTATION_N_prj_quotation_ds').query();
$('PROJECT_CREATE_NP_G_CASHFLOW_NS_prj_quotation_ds').query();
$('${/parameter/@layout_code}_F_QUOTATION_N_prj_quotation_ds').query();
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_ds').query();
}else if('${/parameter/@document_category}'=='CONTRACT'){
$('CONTRACT_CREATE_INC_G_CASHFLOW_1_con_contract_cashflow_ds').query();
}
......@@ -1773,7 +1887,9 @@
</p:case>
<p:case value="SAVE">
<c:process-config>
<a:gridButton id="hls_hls500_save_id" click="hls_hls500_save" style="margin-top:10px;margin-left:5px" text="${@prompt}"/>
<!-- <a:gridButton id="hls_hls500_save_id" click="hls_hls500_save" style="margin-top:10px;margin-left:5px" text="${@prompt}"/>-->
<a:gridButton id="hls_hls500_save_id" click="hls_hls500_save_new" style="margin-top:10px;margin-left:5px" text="${@prompt}"/>
</c:process-config>
</p:case>
<p:case value="MODF_FORMULA">
......
......@@ -36,6 +36,10 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}else{
journal_record.set('total_amount_dr', sum_dr);
journal_record.set('total_amount_cr', sum_dr);
journal_record.set('total_amount_fuc_dr', sum_dr);
journal_record.set('total_amount_fuc_cr', sum_dr);
if (journal_record.get('journal_num')) {
return true;
}
......@@ -78,7 +82,6 @@
header_ds_record.set('post_gl_status', 'N');
}
header_ds_record.set('reversed_flag', 'N');
// if (name = 'document_type') {
// Leaf.request({
// url: $('get_document_type_id').getUrl(),
......
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" trace="true">
<a:init-procedure>
<s:server-script import="jacob/jacob.js"><![CDATA[
importPackage(java.util.zip);
importPackage(java.io);
importPackage(Packages.hls.plugin.docx4j);
importPackage(Packages.hls.plugin.jacob.engine);
//importPackage(org.apache.tools.zip); /*可以传入参数*/
//importPackage(java.util.zip);
function writeFile(zos, fn, fp) {
var ze = new ZipEntry(fn);
//zos.setEncoding("UTF-8");//如果是org.apache.tools.zip需要追加字符集
zos.putNextEntry(ze);
var fis = new FileInputStream(fp);
var b = new java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, 1024 * 64);
var len = -1;
while ((len = fis.read(b)) != -1) {
zos.write(b, 0, len);
}
fis.close();
}
function transfer(file, os) {
var fis = new FileInputStream(file);
var b = new java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, 1024 * 64);
var len = -1;
while ((len = fis.read(b)) != -1) {
os.write(b, 0, len);
}
fis.close();
}
function getdate() {
var now = new Date()
y = now.getFullYear()
m = now.getMonth() + 1
d = now.getDate()
m = m < 10 ? "0" + m : m
d = d < 10 ? "0" + d : d
return y + "" + m + "" + d
}
$ctx["__request_type__"] = 'file'; //to indicate this request is not a JSON_REQUEST
var resp = $ctx['_instance.javax.servlet.http.HttpServletResponse'];
resp.setHeader("Pragma", "No-cache");
resp.setHeader("Cache-Control", "no-cache, must-revalidate");
var date_str = getdate();
var doc_code = '合同文本附件'
var type = $ctx.parameter.type;
var zip_filename = doc_code + '-' + date_str + ".zip";
var file_path;
var fnd_atm_flag = $ctx.parameter.fnd_atm_flag;
//
resp.setDateHeader("Expires", 0);
resp.setContentType("application/x-msdownload");
try {
var attachment_batch_dl = $bm('cont.CON500.con_contract_content_download');
var result = attachment_batch_dl.queryAsMap({
content_id: $ctx.parameter.content_id,
//842
contract_id: $ctx.parameter.contract_id,
//'3597'
});
var arr = result.getChildren();
if (arr.length >= 1) {
if (type == 'SIN') {
//单个下载
var file_name = arr[0].file_name2;
if (fnd_atm_flag == 'Y') {
file_path = arr[0].file_path;
} else {
file_path = arr[0].file_path + file_name;
}
var outputfilepath = file_path + '_pdf';
var file_type = new File(outputfilepath);
if (file_type.exists()&&file_type.length()>0){
null;
}else{
var pe = new PdfConvertEngine($instance('aurora.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());
var attachment_id = arr[0].attachment_id;
var server = jacob_config.jacobUrl + attachment_id;
var target_path = jacob_config.target_path;
var url = jacob_config.jacobserviceUrl + '?target_url=' + server + '&target_path=' + target_path;
try {
pe.run(url);
} catch (e) {
raise_app_error('转化PDF失败:' + e);
}
}
if (file_name.substring(file_name.length - 4) == '.doc') {
file_name = file_name.substring(0, file_name.length - 4);
} else if (file_name.substring(file_name.length - 5) == '.docx') {
file_name = file_name.substring(0, file_name.length - 5);
}
$ctx.parameter.sign_status = 'N';
var sign_path = null;
var file_sign = null;
/*电子签章先不做*/
/* if (arr[0].templet_code == 'HY_RISK' || arr[0].templet_code == 'HY_RES_RELEVANCE' || arr[0].templet_code == 'GH_WITHHOLD_AGREE') {
sign_path = outputfilepath;
} else {
sign_path = seal(file_name, outputfilepath);
} */
if (arr[0].templet_code == 'CON_LEASE'||arr[0].templet_code == 'CON_LEASE_ORG'||arr[0].templet_code == 'CON_LEASE1'||arr[0].templet_code == 'CON_LEASE2' ){
//盖骑缝章包含签章
sign_path = outputfilepath+'_sign';
file_sign = new File(sign_path);
if (file_sign.exists()&&file_sign.length()>0){
null;
}else{
sign_path = seal(file_name, outputfilepath,'Y');
}
//sign_path = seal(file_name, outputfilepath,'Y');
}else if(arr[0].templet_code == 'CON_ITEM_INFORMATION'||arr[0].templet_code == 'CON_PAY_CCB'||arr[0].templet_code=='PAY_PLAN1'||arr[0].templet_code=='PAY_PLAN'||
arr[0].templet_code=='CON_PAY_BOC'||arr[0].templet_code=='CON_PAY_PSBC'){
//盖签章
sign_path = outputfilepath+'_sign';
file_sign = new File(sign_path);
if (file_sign.exists()&&file_sign.length()>0){
null;
}else{
sign_path = seal(file_name, outputfilepath,'N');
}
//sign_path = seal(file_name, outputfilepath,'N');
}
else{
sign_path = outputfilepath;
}
resp.setHeader("Content-disposition", "attachment; filename=" + encodeURI(file_name + '.pdf', 'UTF-8'));
var os = resp.getOutputStream();
transfer(sign_path, os);
os.flush();
} else if (type == 'ZIP') {
//打包下载
zip_filename = arr[0].bp_id_tenant_n + '-' + arr[0].contract_number + '-' + arr[0].project_number + ".zip";
resp.setHeader("Content-disposition", "attachment; filename=" + encodeURI(zip_filename, 'UTF-8'));
var zos = new ZipOutputStream(resp.getOutputStream());
//zos.setEncoding("GBK"); //如果是org.apache.tools.zip需要追加字符集
for (var i = 0;i < arr.length;i++) {
var f = arr[i];
var temp_file_name = f.file_name2,
temp_file_path;
if (fnd_atm_flag == 'Y') {
temp_file_path = f.file_path;
} else {
temp_file_path = f.file_path + temp_file_name;
}
if (temp_file_name.substring(temp_file_name.length - 4) == '.doc') {
temp_file_name = temp_file_name.substring(0, temp_file_name.length - 4);
} else if (temp_file_name.substring(temp_file_name.length - 5) == '.docx') {
temp_file_name = temp_file_name.substring(0, temp_file_name.length - 5);
}
// var brwt = new ConvertOutPDF();
// var outputfilepath = brwt.convertPdf(temp_file_path);
var outputfilepath = temp_file_path + '_pdf';
var file_type = new File(outputfilepath);
if (file_type.exists()&&file_type.length()>0){
null;
}else{
var pe = new PdfConvertEngine($instance('aurora.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());
var attachment_id = f.attachment_id;
var server = jacob_config.jacobUrl + attachment_id;
var target_path = jacob_config.target_path;
var url = jacob_config.jacobserviceUrl + '?target_url=' + server + '&target_path=' + target_path;
try {
pe.run(url);
} catch (e) {
raise_app_error('转化PDF失败:' + e);
}
}
var sign_path = null;
var file_sign = null;
$ctx.parameter.sign_status = 'N';
/*电子签章先不做*/
/* if (f.templet_code == 'HY_RISK' || f.templet_code == 'HY_RES_RELEVANCE' || f.templet_code == 'GH_WITHHOLD_AGREE') {
sign_path = outputfilepath;
} else {
sign_path = seal(file_name, outputfilepath);
} */
//sign_path = outputfilepath;
if (f.templet_code == 'CON_LEASE'||f.templet_code == 'CON_LEASE_ORG'||f.templet_code == 'CON_LEASE1'||f.templet_code == 'CON_LEASE2' ){
//盖骑缝章包含签章
sign_path = outputfilepath+'_sign';
file_sign = new File(sign_path);
if (file_sign.exists()&&file_sign.length()>0){
null
}else{
sign_path = seal(file_name, outputfilepath,'Y');
}
}else if(f.templet_code == 'CON_ITEM_INFORMATION'||f.templet_code == 'CON_PAY_CCB'||f.templet_code=='PAY_PLAN1'||f.templet_code=='PAY_PLAN'||
f.templet_code=='CON_PAY_BOC'||f.templet_code=='CON_PAY_PSBC'){
//盖签章
sign_path = outputfilepath+'_sign';
file_sign = new File(sign_path);
if (file_sign.exists()&&file_sign.length()>0){
null
}else{
sign_path = seal(file_name, outputfilepath,'N');
}
}
else{
sign_path = outputfilepath;
}
if (sign_path && temp_file_name) {
writeFile(zos, temp_file_name + '.pdf', sign_path);
}
}
zos.close();
}
}
} catch (e) {
println(e);
var logger = $logger("server-script");
logger.severe(e.message);
}
]]></s:server-script>
</a:init-procedure>
</a:service>
......@@ -118,6 +118,7 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
document_category: 'PROJECT',
maintain_type: 'MODIFY',
......@@ -159,6 +160,7 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
document_category: 'PROJECT',
maintain_type: 'MODIFY',
......
......@@ -176,6 +176,7 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
price_list: price_list,
secondary_lease: secondary_lease,
......@@ -220,6 +221,7 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
price_list: price_list,
secondary_lease: secondary_lease,
......@@ -270,6 +272,7 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
price_list: price_list,
secondary_lease: secondary_lease,
......
......@@ -168,8 +168,9 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
document_category: 'PORJECT',
document_category: 'PROJECT',
maintain_type: 'MODIFY',
calc_session_id: res.result.record.calc_session_id,
quotation_id: quotation_id,
......@@ -208,8 +209,9 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
document_category: 'PORJECT',
document_category: 'PROJECT',
maintain_type: 'MODIFY',
calc_session_id: record.get('calc_session_id'),
quotation_id: record.get('quotation_id'),
......@@ -254,8 +256,9 @@
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_link_winid',
params: {
layout_code:'${/parameter/@layout_code}',
document_id: parent_pk_value,
document_category: 'PORJECT',
document_category: 'PROJECT',
maintain_type: 'MODIFY',
calc_session_id: res.result.record.calc_session_id,
quotation_id: quotation_id,
......
......@@ -155,5 +155,6 @@
</dr:sheet>
</dr:sheets>
</dr:excel-report>
</a:init-procedure>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:dr="leaf.plugin.excelreport" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="" fetchAll="true" model="rpt.RPT5010.rpt5010_result_query" rootPath="/model/datasource"/>
<a:model-query fetchAll="true" model="rpt.RPT5010.rpt5010_date" rootPath="/model/day"/>
<dr:excel-report enableTask="false" filename="${/parameter/@file_name}">
<dr:styles>
<dr:cell-style name="cell1" align="ALIGN_LEFT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="宋体" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell2" align="ALIGN_RIGHT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell3" align="ALIGN_CENTER" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="header" cell_style_id="2" foregroundcolor="BLACK">
<dr:font cell_style_id="2" fontname="宋体" height="10"/>
</dr:cell-style>
</dr:styles>
<dr:sheets>
<dr:sheet name="sheet1" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119" displayGridlines="true">
<dr:static-content cell="A" dataModel="/model/day" row="1">
<dr:cell-data cell="A" offset="false" range="$A$1:$A$2" row="1" styleName="cell3" type="content" value="合同编号"/>
<dr:cell-data cell="B" offset="false" range="$B$1:$D$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="E" offset="false" range="$E$1:$G$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="H" offset="false" range="$H$1:$J$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="K" offset="false" range="$K$1:$M$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="N" offset="false" range="$N$1:$P$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="Q" offset="false" range="$Q$1:$S$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="T" offset="false" range="$T$1:$V$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="W" offset="false" range="$W$1:$Y$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="Z" offset="false" range="$Z$1:$AB$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AC" offset="false" range="$AC$1:$AE$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AF" offset="false" range="$AF$1:$AH$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AI" offset="false" range="$AI$1:$AK$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AL" offset="false" range="$AL$1:$AN$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AO" offset="false" range="$AO$1:$AQ$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AR" offset="false" range="$AR$1:$AT$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AU" offset="false" range="$AU$1:$AW$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AX" offset="false" range="$AX$1:$AZ$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="BA" offset="false" range="$BA$1:$BC$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BD" offset="false" range="$BD$1:$BF$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BG" offset="false" range="$BG$1:$BI$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BJ" offset="false" range="$BJ$1:$BL$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BM" offset="false" range="$BM$1:$BO$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BP" offset="false" range="$BP$1:$BR$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BS" offset="false" range="$BS$1:$BU$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BV" offset="false" range="$BV$1:$BX$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BY" offset="false" range="$BY$1:$CA$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CB" offset="false" range="$CB$1:$CD$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CE" offset="false" range="$CE$1:$CG$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CH" offset="false" range="$CH$1:$CJ$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
<dr:cell-data cell="CK" offset="false" range="$CK$1:$CM$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_30}"/>
<dr:cell-data cell="CN" offset="false" range="$CN$1:$CP$1" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_31}"/>
</dr:static-content>
<dr:dynamic-content cell="A" dataModel="/model/datasource" row="2">
<dr:columns>
<dr:table-column cellStyle="cell1" field="contract_number" title="合同编号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_1" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_1" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_1" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_2" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_2" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_2" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_3" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_3" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_3" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_4" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_4" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_4" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_5" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_5" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_5" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_6" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_6" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_6" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_7" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_7" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_7" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_8" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_8" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_8" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_9" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_9" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_9" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_10" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_10" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_10" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_11" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_11" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_11" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_12" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_12" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_12" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_13" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_13" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_13" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_14" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_14" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_14" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_15" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_15" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_15" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_16" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_16" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_16" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_17" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_17" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_17" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_18" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_18" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_18" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_19" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_19" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_19" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_20" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_20" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_20" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_21" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_21" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_21" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_22" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_22" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_22" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_23" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_23" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_23" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_24" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_24" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_24" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_25" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_25" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_25" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_26" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_26" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_26" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_27" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_27" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_27" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_28" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_28" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_28" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_29" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_29" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_29" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_30" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_30" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_30" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_31" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_31" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_31" title="利息总额(未核销)" titlestyle="header" type="content"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
</dr:sheets>
</dr:excel-report>
</a:init-procedure>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:dr="leaf.plugin.excelreport" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="t1.month =${/parameter/@month} " fetchAll="true" model="rpt.RPT5010.rpt5010_result_query" rootPath="/model/datasource"/>
<a:model-query defaultWhereClause="t1.month =${/parameter/@month}" fetchAll="true" model="rpt.RPT5010.rpt5010_date" rootPath="/model/day"/>
<dr:excel-report enableTask="false" filename="${/parameter/@file_name}">
<dr:styles>
<dr:cell-style name="cell1" align="ALIGN_LEFT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="宋体" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell2" align="ALIGN_RIGHT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell3" align="ALIGN_CENTER" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="header" cell_style_id="2" foregroundcolor="BLACK">
<dr:font cell_style_id="2" fontname="宋体" height="10"/>
</dr:cell-style>
</dr:styles>
<dr:sheets>
<dr:sheet name="sheet1" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119" displayGridlines="true">
<dr:static-content cell="A" dataModel="/model/day" row="1">
<dr:cell-data cell="A" offset="false" row="1" styleName="cell3" type="content" value="承租人名称"/>
<dr:cell-data cell="B" offset="false" row="1" styleName="cell3" type="content" value="合同编号"/>
<dr:cell-data cell="C" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="D" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="E" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="F" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="G" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="H" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="I" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="J" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="K" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="L" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="M" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="N" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="O" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="P" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="Q" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="R" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="S" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="T" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="U" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="V" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="W" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="X" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="Y" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="Z" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="AA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AO" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AP" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AQ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AR" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AS" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AT" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AU" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AV" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AW" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AX" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AY" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="AZ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="BA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="BB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BO" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BP" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BQ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BR" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BS" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BT" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BU" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BV" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BW" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BX" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BY" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BZ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
</dr:static-content>
<dr:dynamic-content cell="A" dataModel="/model/datasource" row="2">
<dr:columns>
<dr:table-column cellStyle="cell1" field="tenant_name" title="" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="contract_number" title="" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_1" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_1" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_1" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_2" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_2" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_2" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_3" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_3" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_3" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_4" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_4" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_4" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_5" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_5" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_5" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_6" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_6" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_6" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_7" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_7" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_7" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_8" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_8" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_8" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_9" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_9" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_9" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_10" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_10" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_10" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_11" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_11" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_11" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_12" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_12" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_12" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_13" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_13" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_13" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_14" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_14" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_14" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_15" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_15" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_15" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_16" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_16" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_16" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_17" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_17" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_17" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_18" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_18" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_18" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_19" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_19" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_19" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_20" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_20" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_20" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_21" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_21" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_21" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_22" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_22" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_22" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_23" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_23" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_23" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_24" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_24" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_24" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_25" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_25" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_25" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_26" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_26" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_26" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_27" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_27" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_27" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_28" title="租金总额(未核销)" titlestyle="header" type="money"/>
<dr:table-column cellStyle="cell2" field="principal_28" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_28" title="利息总额(未核销)" titlestyle="header" type="content"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
</dr:sheets>
</dr:excel-report>
</a:init-procedure>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:dr="leaf.plugin.excelreport" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="t1.month =${/parameter/@month} " fetchAll="true" model="rpt.RPT5010.rpt5010_result_query" rootPath="/model/datasource"/>
<a:model-query defaultWhereClause="t1.month =${/parameter/@month}" fetchAll="true" model="rpt.RPT5010.rpt5010_date" rootPath="/model/day"/>
<dr:excel-report enableTask="false" filename="${/parameter/@file_name}">
<dr:styles>
<dr:cell-style name="cell1" align="ALIGN_LEFT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="宋体" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell2" align="ALIGN_RIGHT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell3" align="ALIGN_CENTER" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="header" cell_style_id="2" foregroundcolor="BLACK">
<dr:font cell_style_id="2" fontname="宋体" height="10"/>
</dr:cell-style>
</dr:styles>
<dr:sheets>
<dr:sheet name="sheet1" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119" displayGridlines="true">
<dr:static-content cell="A" dataModel="/model/day" row="1">
<dr:cell-data cell="A" offset="false" row="1" styleName="cell3" type="content" value="承租人名称"/>
<dr:cell-data cell="B" offset="false" row="1" styleName="cell3" type="content" value="合同编号"/>
<dr:cell-data cell="C" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="D" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="E" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="F" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="G" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="H" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="I" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="J" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="K" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="L" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="M" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="N" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="O" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="P" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="Q" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="R" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="S" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="T" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="U" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="V" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="W" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="X" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="Y" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="Z" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="AA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AO" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AP" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AQ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AR" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AS" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AT" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AU" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AV" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AW" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AX" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AY" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="AZ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="BA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="BB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BO" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BP" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BQ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BR" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BS" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BT" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BU" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BV" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BW" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BX" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BY" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BZ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
<dr:cell-data cell="CJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
<dr:cell-data cell="CK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
</dr:static-content>
<dr:dynamic-content cell="A" dataModel="/model/datasource" row="2">
<dr:columns>
<dr:table-column cellStyle="cell1" field="tenant_name" title="" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="contract_number" title="" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_1" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_1" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_1" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_2" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_2" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_2" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_3" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_3" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_3" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_4" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_4" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_4" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_5" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_5" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_5" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_6" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_6" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_6" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_7" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_7" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_7" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_8" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_8" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_8" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_9" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_9" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_9" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_10" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_10" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_10" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_11" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_11" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_11" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_12" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_12" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_12" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_13" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_13" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_13" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_14" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_14" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_14" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_15" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_15" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_15" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_16" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_16" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_16" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_17" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_17" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_17" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_18" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_18" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_18" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_19" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_19" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_19" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_20" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_20" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_20" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_21" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_21" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_21" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_22" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_22" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_22" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_23" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_23" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_23" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_24" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_24" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_24" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_25" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_25" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_25" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_26" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_26" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_26" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_27" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_27" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_27" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_28" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_28" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_28" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_29" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_29" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_29" title="利息总额(未核销)" titlestyle="header" type="content"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
</dr:sheets>
</dr:excel-report>
</a:init-procedure>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:dr="leaf.plugin.excelreport" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="t1.month =${/parameter/@month} " fetchAll="true" model="rpt.RPT5010.rpt5010_result_query" rootPath="/model/datasource"/>
<a:model-query defaultWhereClause="t1.month =${/parameter/@month}" fetchAll="true" model="rpt.RPT5010.rpt5010_date" rootPath="/model/day"/>
<dr:excel-report enableTask="false" filename="${/parameter/@file_name}">
<dr:styles>
<dr:cell-style name="cell1" align="ALIGN_LEFT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="宋体" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell2" align="ALIGN_RIGHT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell3" align="ALIGN_CENTER" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="header" cell_style_id="2" foregroundcolor="BLACK">
<dr:font cell_style_id="2" fontname="宋体" height="10"/>
</dr:cell-style>
</dr:styles>
<dr:sheets>
<dr:sheet name="sheet1" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119" displayGridlines="true">
<dr:static-content cell="A" dataModel="/model/day" row="1">
<dr:cell-data cell="A" offset="false" row="1" styleName="cell3" type="content" value="承租人名称"/>
<dr:cell-data cell="B" offset="false" row="1" styleName="cell3" type="content" value="合同编号"/>
<dr:cell-data cell="C" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="D" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="E" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="F" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="G" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="H" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="I" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="J" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="K" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="L" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="M" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="N" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="O" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="P" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="Q" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="R" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="S" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="T" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="U" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="V" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="W" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="X" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="Y" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="Z" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="AA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AO" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AP" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AQ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AR" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AS" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AT" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AU" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AV" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AW" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AX" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AY" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="AZ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="BA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="BB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BO" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BP" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BQ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BR" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BS" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BT" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BU" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BV" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BW" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BX" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BY" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BZ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
<dr:cell-data cell="CJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
<dr:cell-data cell="CK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
<dr:cell-data cell="CL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_30}"/>
<dr:cell-data cell="CM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_30}"/>
<dr:cell-data cell="CN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_30}"/>
</dr:static-content>
<dr:dynamic-content cell="A" dataModel="/model/datasource" row="2">
<dr:columns>
<dr:table-column cellStyle="cell1" field="tenant_name" title="" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="contract_number" title="" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_1" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_1" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_1" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_2" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_2" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_2" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_3" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_3" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_3" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_4" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_4" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_4" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_5" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_5" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_5" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_6" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_6" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_6" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_7" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_7" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_7" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_8" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_8" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_8" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_9" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_9" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_9" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_10" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_10" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_10" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_11" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_11" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_11" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_12" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_12" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_12" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_13" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_13" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_13" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_14" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_14" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_14" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_15" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_15" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_15" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_16" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_16" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_16" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_17" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_17" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_17" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_18" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_18" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_18" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_19" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_19" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_19" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_20" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_20" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_20" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_21" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_21" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_21" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_22" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_22" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_22" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_23" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_23" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_23" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_24" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_24" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_24" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_25" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_25" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_25" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_26" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_26" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_26" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_27" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_27" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_27" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_28" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_28" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_28" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_29" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_29" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_29" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_30" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_30" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_30" title="利息总额(未核销)" titlestyle="header" type="content"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
</dr:sheets>
</dr:excel-report>
</a:init-procedure>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:dr="leaf.plugin.excelreport" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="t1.month =${/parameter/@month}" fetchAll="true" model="rpt.RPT5010.rpt5010_result_query" rootPath="/model/datasource"/>
<a:model-query defaultWhereClause="t1.month =${/parameter/@month}" fetchAll="true" model="rpt.RPT5010.rpt5010_date" rootPath="/model/day"/>
<dr:excel-report enableTask="false" filename="${/parameter/@file_name}">
<dr:styles>
<dr:cell-style name="cell1" align="ALIGN_LEFT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="宋体" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell2" align="ALIGN_RIGHT" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="cell3" align="ALIGN_CENTER" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="9"/>
</dr:cell-style>
<dr:cell-style name="header" cell_style_id="2" foregroundcolor="BLACK">
<dr:font cell_style_id="2" fontname="宋体" height="10"/>
</dr:cell-style>
</dr:styles>
<dr:sheets>
<dr:sheet name="sheet1" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119" displayGridlines="true">
<dr:static-content cell="A" dataModel="/model/day" row="1">
<dr:cell-data cell="A" offset="false" row="1" styleName="cell3" type="content" value="承租人名称"/>
<dr:cell-data cell="B" offset="false" row="1" styleName="cell3" type="content" value="合同编号"/>
<dr:cell-data cell="C" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="D" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="E" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_1}"/>
<dr:cell-data cell="F" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="G" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="H" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_2}"/>
<dr:cell-data cell="I" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="J" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="K" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_3}"/>
<dr:cell-data cell="L" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="M" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="N" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_4}"/>
<dr:cell-data cell="O" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="P" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="Q" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_5}"/>
<dr:cell-data cell="R" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="S" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="T" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_6}"/>
<dr:cell-data cell="U" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="V" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="W" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_7}"/>
<dr:cell-data cell="X" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="Y" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="Z" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_8}"/>
<dr:cell-data cell="AA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_9}"/>
<dr:cell-data cell="AD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_10}"/>
<dr:cell-data cell="AG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_11}"/>
<dr:cell-data cell="AJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_12}"/>
<dr:cell-data cell="AM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AO" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_13}"/>
<dr:cell-data cell="AP" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AQ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AR" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_14}"/>
<dr:cell-data cell="AS" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AT" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AU" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_15}"/>
<dr:cell-data cell="AV" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AW" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AX" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_16}"/>
<dr:cell-data cell="AY" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="AZ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="BA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_17}"/>
<dr:cell-data cell="BB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_18}"/>
<dr:cell-data cell="BE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_19}"/>
<dr:cell-data cell="BH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_20}"/>
<dr:cell-data cell="BK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_21}"/>
<dr:cell-data cell="BN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BO" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BP" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_22}"/>
<dr:cell-data cell="BQ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BR" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BS" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_23}"/>
<dr:cell-data cell="BT" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BU" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BV" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_24}"/>
<dr:cell-data cell="BW" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BX" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BY" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_25}"/>
<dr:cell-data cell="BZ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CA" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CB" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_26}"/>
<dr:cell-data cell="CC" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CD" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CE" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_27}"/>
<dr:cell-data cell="CF" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CG" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CH" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_28}"/>
<dr:cell-data cell="CI" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
<dr:cell-data cell="CJ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
<dr:cell-data cell="CK" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_29}"/>
<dr:cell-data cell="CL" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_30}"/>
<dr:cell-data cell="CM" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_30}"/>
<dr:cell-data cell="CN" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_30}"/>
<dr:cell-data cell="CO" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_31}"/>
<dr:cell-data cell="CP" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_31}"/>
<dr:cell-data cell="CQ" offset="false" row="1" styleName="cell3" type="content" value="${/model/day/record/@day_31}"/>
</dr:static-content>
<dr:dynamic-content cell="A" dataModel="/model/datasource" row="2">
<dr:columns>
<dr:table-column cellStyle="cell1" field="tenant_name" title="" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="contract_number" title="" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_1" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_1" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_1" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_2" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_2" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_2" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_3" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_3" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_3" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_4" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_4" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_4" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_5" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_5" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_5" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_6" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_6" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_6" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_7" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_7" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_7" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_8" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_8" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_8" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_9" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_9" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_9" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_10" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_10" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_10" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_11" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_11" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_11" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_12" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_12" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_12" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_13" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_13" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_13" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_14" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_14" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_14" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_15" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_15" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_15" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_16" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_16" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_16" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_17" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_17" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_17" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_18" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_18" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_18" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_19" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_19" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_19" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_20" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_20" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_20" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_21" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_21" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_21" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_22" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_22" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_22" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_23" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_23" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_23" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_24" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_24" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_24" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_25" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_25" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_25" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_26" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_26" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_26" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_27" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_27" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_27" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_28" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_28" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_28" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_29" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_29" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_29" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_30" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_30" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_30" title="利息总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="amount_31" title="租金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="principal_31" title="本金总额(未核销)" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="interest_31" title="利息总额(未核销)" titlestyle="header" type="content"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
</dr:sheets>
</dr:excel-report>
</a:init-procedure>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangyu
$Date: 2016-8-2 下午14:02:36
$Revision: 1.0
$Purpose: 租赁现有资产清单
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:init-procedure/>
<a:view>
<a:link id="con_contract_balance_details_link" url="${/request/@context_path}/modules/csh/CSH501/con_contract_balance_details.lview"/>
<a:link id="hls_fin_calculator_query_link_id" url="${/request/@context_path}/modules/hls/HLS500/hls_fin_calculator_readonly.lview"/>
<script type="text/javascript"><![CDATA[
function rpt5010_query(){
$('rpt5010_result_ds').query();
}
function rpt5010_reset(){
$('rpt5010_query_ds').reset();
}
function rpt5010_export(){
$('rpt5010_result_grid_id')._export();
}
function due_date_render(value,record,name){
if (name == 'contract_id') {
return '<a href="javascript:contract_cashflow_detail(' + record.get('contract_id') + ');">' + '租金支付明细' + '</a>';
}
}
function contract_calc_render(value,record,name){
if (name == 'contract_number') {
return '<a href="javascript:contract_calc_detail(' + record.id + ');">' + value + '</a>';
}
}
function contract_calc_detail(id){
var record =$('rpt5010_result_ds').findById(id);
var calc_type = 'CLASSIC_CALCULATOR';
if (record.get('calc_session_id')) {
quo_win_query = new Leaf.Window({
id: 'rpt5010_hls_fin_calc_quotation_query_link_winid',
params: {
document_id: record.get('contract_id'),
document_category: record.get('document_category'),
maintain_type: 'QUERY',
calc_session_id: record.get('calc_session_id'),
quotation_id: null,
dsId: null,
winId: 'rpt5010_hls_fin_calc_quotation_query_link_winid',
global_flag: 'Y',
id_num: 0,
calc_type: calc_type,
recreate_L_formula: 'N'
},
url: $('hls_fin_calculator_query_link_id').getUrl(),
fullScreen: true,
draggable: true
});
}
}
function contract_cashflow_detail(contract_id){
new Leaf.Window({
title: '合同余额明细信息',
id: 'con_contract_balance_details_win',
url: $('con_contract_balance_details_link').getUrl(),
params: {
'contract_id': contract_id
},
fullScreen: true
});
}
//combox二级联动查询
function comboBoxSelect() {
//从第一个comboBox的ds中获取选中的记录
var hn_industry_classification = $('rpt5010_query_ds').getCurrentRecord().get('hn_industry_classification');
//为第二个comboBox的ds设置查询条件
$('binary_classification_ds').setQueryParameter('hn_industry_classification', hn_industry_classification);
$('binary_classification_ds').query();
}
/* function sum_foot(data, name) {
if (name == 'project_name') {
return '<font color=red>' + '合计' + '</font>';
} else if (name == 'sum_due_amount') {
return colum_caculateTotal(data, name);
} else if (name == 'unreceived_principal') {
return colum_caculateTotal(data, name);
}
}
function colum_caculateTotal(data, name) {
var total = 0;
var length = data.length;
var value = 0;
for (var i = 0;i < length;i++) {
if (Ext.isEmpty(data[i].get(name))) {
value = 0;
} else {
value = data[i].get(name);
}
total = plus(total, value);
}
return '<font color=red>' + Leaf.formatMoney(total) + '</font>';
} */
]]></script>
<a:dataSets>
<a:dataSet id="business_type_ds" autoQuery="true" model="rpt.RPT5010.rpt5010_business_type"/>
<a:dataSet id="binary_classification_ds" autoQuery="true" model="rpt.RPT5010.rpt5010_binary_classification"/>
<a:dataSet id="annual_pay_times_ds" lookupCode="HLS500_ANNUAL_PAY_TIMES"/>
<a:dataSet id="hn_industry_classification_ds" lookupCode="HN_INDUSTRY_CLASSIFICATION"/>
<a:dataSet id="rpt5010_query_ds">
<a:fields>
<a:field name="project_id" defaultValue="${/parameter/@project_id}"/>
<a:field name="business_type_n" displayField="description" options="business_type_ds" returnField="business_type" valueField="business_type"/>
<a:field name="binary_classification_n" displayField="code_value_name" options="binary_classification_ds" returnField="binary_classification" valueField="code_value"/>
<a:field name="annual_pay_times_n" displayField="code_value_name" options="annual_pay_times_ds" returnField="annual_pay_times" valueField="code_value"/>
<a:field name="hn_industry_classification_n" displayField="code_value_name" options="hn_industry_classification_ds" returnField="hn_industry_classification" valueField="code_value"/>
</a:fields>
</a:dataSet>
<a:dataSet id="rpt5010_result_ds" autoPageSize="true" autoQuery="true" model="rpt.RPT5010.hn_lease_assets_list" queryDataSet="rpt5010_query_ds">
<a:fields>
<a:field name="inception_of_lease" datatype="date"/>
<a:field name="lease_end_date" datatype="date"/>
<a:field name="hn_industry_classification_n" displayField="code_value_name" options="hn_industry_classification_ds" returnField="hn_industry_classification" valueField="code_value"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton click="rpt5010_query" text="查询"/>
<a:gridButton click="rpt5010_reset" text="重置"/>
<a:gridButton click="rpt5010_export" text="导出"/>
</a:screenTopToolbar>
<a:form column="4" labelWidth="120" marginWidth="30" title="查询条件">
<a:textField name="contract_number" bindTarget="rpt5010_query_ds" prompt="业务合同号"/>
<a:textField name="bp_name" bindTarget="rpt5010_query_ds" prompt="承租人名称"/>
<a:textField name="project_name" bindTarget="rpt5010_query_ds" prompt="项目名称"/>
<a:comboBox name="business_type_n" bindTarget="rpt5010_query_ds" prompt="业务类型"/>
<!-- <a:textField name="vender_bp_name" bindTarget="rpt5010_query_ds" prompt="供应商名称"/> -->
<a:textField name="bp_name_tenant" bindTarget="rpt5010_query_ds" prompt="最终控制人名称"/>
<a:textField name="guarantor_bp_name" bindTarget="rpt5010_query_ds" prompt="担保方名称"/>
<a:comboBox name="hn_industry_classification_n" bindTarget="rpt5010_query_ds" prompt="行业分类">
<a:events>
<a:event name="select" handler="comboBoxSelect"/>
</a:events>
</a:comboBox>
<a:comboBox name="binary_classification_n" bindTarget="rpt5010_query_ds" prompt="电源类型"/>
<a:numberField name="lease_term_from" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="投放期限从"/>
<a:numberField name="lease_term_to" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="投放期限到"/>
<a:numberField name="remain_lease_term_from" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="剩余期限从"/>
<a:numberField name="remain_lease_term_to" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="剩余期限到"/>
<a:numberField name="sum_due_amount_from" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="租金总额(亿)从"/>
<a:numberField name="sum_due_amount_to" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="租金总额(亿)到"/>
<a:numberField name="unreceived_amount_from" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="未偿租金余额从"/>
<a:numberField name="unreceived_amount_to" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="未偿租金余额到"/>
<a:numberField name="lease_item_amount_from" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="本金总额从"/>
<a:numberField name="lease_item_amount_to" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="本金总额到"/>
<a:numberField name="unreceived_principal_from" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="未偿本金余额从"/>
<a:numberField name="unreceived_principal_to" allowDecimals="true" bindTarget="rpt5010_query_ds" prompt="未偿本金余额到"/>
<a:datePicker name="inception_of_lease_from" bindTarget="rpt5010_query_ds" prompt="起租日从"/>
<a:datePicker name="inception_of_lease_to" bindTarget="rpt5010_query_ds" prompt="起租日到"/>
<a:datePicker name="lease_end_date_from" bindTarget="rpt5010_query_ds" prompt="租约终止日从"/>
<a:datePicker name="lease_end_date_to" bindTarget="rpt5010_query_ds" prompt="租约终止日到"/>
<a:datePicker name="date_to" bindTarget="rpt5010_query_ds" prompt="截止日期"/>
<a:comboBox name="annual_pay_times_n" bindTarget="rpt5010_query_ds" prompt="租金支付频率"/>
</a:form>
<a:grid id="rpt5010_result_grid_id" bindTarget="rpt5010_result_ds" marginHeight="300" marginWidth="30" navBar="true" showRowNumber="true">
<a:columns>
<a:column name="contract_number" align="center" lock="true" prompt="业务合同号" renderer="contract_calc_render" width="120"/>
<a:column name="business_type_n" align="center" lock="true" prompt="业务类型" width="100"/>
<a:column name="factoring_contract_info" lock="true" prompt="是否有权属负担" width="140"/>
<a:column name="project_name" lock="true" prompt="项目名称" width="220"/>
<a:column name="bp_name" prompt="承租人" width="180"/>
<a:column name="contract_id" align="center" prompt="租金支付明细" renderer="due_date_render" width="100"/>
<a:column name="hn_industry_classification_n" align="center" prompt="行业分类" width="80"/>
<a:column name="binary_classification_n" prompt="电源类型" width="120"/>
<a:column name="vender_bp_name" prompt="供应商" width="120"/>
<a:column name="bp_name_tenant" prompt="最终控制人" width="120"/>
<a:column name="guarantor_bp_name" prompt="担保方及其评级" width="120"/>
<a:column name="mortgage_value" align="right" prompt="担保物或抵押物价值" renderer="Leaf.formatMoney" width="120"/>
<a:column name="lease_form_n" prompt="租赁方式" width="100"/>
<a:column name="lease_term_n" align="right" prompt="投放期限" width="80"/>
<a:column name="remain_lease_term_n" align="right" prompt="剩余期限" width="80"/>
<a:column name="sum_due_amount" align="right" prompt="租金总额(亿)" renderer="Leaf.formatMoney" width="100"/>
<a:column name="unreceived_amount" align="right" prompt="未偿租金余额" renderer="Leaf.formatMoney" width="120"/>
<a:column name="lease_item_amount" align="right" prompt="本金总额" renderer="Leaf.formatMoney" width="100"/>
<a:column name="unreceived_principal" align="right" prompt="未偿本金余额" renderer="Leaf.formatMoney" width="100"/>
<a:column name="sum_accounts_receivable" align="right" prompt="应收账款总额" renderer="Leaf.formatMoney" width="100"/>
<a:column name="unreceived_accounts" align="right" prompt="未偿应收账款" renderer="Leaf.formatMoney" width="100"/>
<a:column name="annual_pay_times_n" align="center" prompt="租金支付频率" width="80"/>
<a:column name="inception_of_lease" align="center" prompt="起租日" renderer="Leaf.formatDate" width="100"/>
<a:column name="lease_end_date" align="center" prompt="租约终止日" renderer="Leaf.formatDate" width="100"/>
<a:column name="lease_term_2_n" prompt="租赁期限" width="100"/>
<a:column name="remain_lease_term_2_n" prompt="剩余租赁期限" width="100"/>
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
......@@ -7,10 +7,12 @@
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" trace="true">
<a:init-procedure>
<a:model-query autoCount="false" model="rpt.RPT5012.rpt5012_get_batch" rootPath="batch_id"/>
<!-- <a:model-query autoCount="false" model="rpt.RPT5012.rpt5012_get_batch" rootPath="batch_id"/>-->
</a:init-procedure>
<a:view>
<a:link id="rpt5010_print_link_id" model="rpt.RPT5012.rpt5010_get_data" modelaction="update"/>
<a:link id="rpt5012_report_query_link" url="${/request/@context_path}/modules/rpt/RPT5012/rpt5012_repory_query.lview"/>
<a:link id="rpt5012_print_link_id" model="rpt.RPT5012.rpt5012_result_query" modelaction="execute"/>
<script><![CDATA[
function rpt5012_reset() {
$('rpt5012_query_ds').reset();
......@@ -24,7 +26,7 @@
return '时间格式应为【yyyymm】,举例【201812】';
}
function rpt5012_query_ds() {
function rpt5012_query() {
debugger;
Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}');
var record = $('rpt5012_query_ds').getAt(0);
......@@ -39,17 +41,36 @@
Leaf.showMessage('${l:PROMPT}', '年月未填写');
return;
}
Leaf.request({
url: $('rpt5012_print_link_id').getUrl(),
para: {
month: month,
batch_id:'${/model/batch_id/record/@batch_id}'
month: month
},
success: function(res) {
var days = res.result.days;
debugger;
Leaf.Masker.unmask(Ext.getBody());
var url = '${/request/@context_path}/modules/rpt/rpt5012/export_excel_sheets' + days + '.lsc?month=' + month + '&file_name=' + month + '每日合同未收本金表.xls';
window.open(encodeURI(url), '_self');
var cur_begin = Leaf.formatDate(res.result.cur_begin),
cur_end = Leaf.formatDate(res.result.cur_end),
before_begin = Leaf.formatDate(res.result.before_begin),
before_end = Leaf.formatDate(res.result.before_end);
var win = new Leaf.Window({
id: 'rpt5012_report_query_link_id',
url: $('rpt5012_report_query_link').getUrl(),
params: {
month:month,
cur_begin:cur_begin,
cur_end:cur_end,
before_begin:before_begin,
before_end:before_end
},
title: '月结报表',
fullScreen: true
});
win.on('close', function () {
// document.getElementsByClassName('alert')[0].remove();
});
},
error: function() {
Leaf.Masker.unmask(Ext.getBody());
......@@ -61,31 +82,11 @@
});
}
function rpt5110_run_job() {
Leaf.showConfirm('${l:HLS.PROMPT}', '<font color="red">该任务需执行约1小时,请耐心等待!</font></br></br><font color="red">【特别注意】任务发起后1小时内请勿重复点击</font>', function() {
Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}');
Leaf.request({
url: $('rpt5012_run_job_link_id').getUrl(),
para: {},
success: function(res) {
Leaf.Masker.unmask(Ext.getBody());
Leaf.SideBar.show({
msg: '发起成功!',
duration: 2000
});
},
error: function() {
Leaf.Masker.unmask(Ext.getBody());
},
failure: function() {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}, null, 300, 150);
}
]]></script>
<a:dataSets>
<a:dataSet id="four_month_date_ds" loadData="true" model="rpt.RPT5012.rpt5012_four_month"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: WangYu
$Date: 2014-4-25 上午09:31:11
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
<a:view>
<!-- <a:link id="con_cashflow_pre_query_id" model="cont.CON930.con_contract_cashflow_monthly" modelaction="update"/>-->
<script><![CDATA[
]]></script>
<a:dataSets>
<a:dataSet id="con_contract_rental_result_ds" pageSize="13" autoQuery="true" model="rpt.RPT5012.rpt5012_result_query" queryUrl="${/request/@context_path}/autocrud/rpt.RPT5012.rpt5012_result_query/query?month=${/parameter/@month}&amp;cur_begin=${/parameter/@cur_begin}&amp;cur_end=${/parameter/@cur_end}&amp;before_begin=${/parameter/@before_begin}&amp;before_end=${/parameter/@before_end}" autoPageSize="true"/>
<a:dataSet id="con_contract_cashflow_rental_result_ds" pageSize="13" autoQuery="true" model="rpt.RPT5012.rpt5012_csh_result_query" queryUrl="${/request/@context_path}/autocrud/rpt.RPT5012.rpt5012_csh_result_query/query?month=${/parameter/@month}&amp;cur_begin=${/parameter/@cur_begin}&amp;cur_end=${/parameter/@cur_end}&amp;before_begin=${/parameter/@before_begin}&amp;before_end=${/parameter/@before_end}" autoPageSize="true"/>
</a:dataSets>
<a:screenBody>
<!-- <a:screenTopToolbar>-->
<!--&lt;!&ndash; <a:gridButton click="CON321_con_contract_query" text="HLS.QUERY"/>&ndash;&gt;-->
<!--&lt;!&ndash; <a:gridButton click="CON321_con_contract_reset" text="HLS.RESET"/>&ndash;&gt;-->
<!-- </a:screenTopToolbar>-->
<a:tabPanel marginHeight="25" marginWidth="20">
<a:tabs>
<a:tab prompt="租金余额表" width="110">
<a:grid id="con_contract_rental_result_grid" bindTarget="con_contract_rental_result_ds" marginHeight="115" navBar="true" marginWidth="30">
<a:columns>
<a:column name="agent_extra_name" align="center" prompt="代理店" width="120"/>
<a:column name="bp_tenant_name" align="center" prompt="客户名称" width="120"/>
<a:column name="contract_number" align="center" prompt="合同编号" width="100"/>
<a:column name="lease_start_date" align="center" prompt="租赁期开始日" width="80"/>
<a:column name="modelcd" align="center" prompt=" 机型" width="180"/>
<a:column name="machine_number" align="center" prompt="机器号码" width="80"/>
<a:column name="int_rate_display" align="center" prompt="利率" width="80"/>
<a:column name="int_rate_display" align="center" prompt="基准利率" width="80"/>
<a:column name="lease_times" align="center" prompt="租赁期间" width="80"/>
<a:column name="down_payment_ratio" align="center" prompt="首付款比率" width="80"/>
<a:column name="lease_item_amount" align="center" prompt="代理店销售金额" renderer="Leaf.formatMoney" width="80"/>
<a:column name="residual_amount" align="center" prompt="留购价格" renderer="Leaf.formatMoney" width="80"/>
<a:column name="contract_amount" align="center" prompt="合同总金额" renderer="Leaf.formatMoney" width="80"/>
<a:column name="down_payment" align="center" prompt="首付款" renderer="Leaf.formatMoney" width="80"/>
<a:column name="month_due_amount" align="center" prompt="当月末应收款余额(合计)" renderer="Leaf.formatMoney" width="80"/>
<a:column name="month_due_principal" align="center" prompt="当月末本金余额(合计)" renderer="Leaf.formatMoney" width="80"/>
<a:column name="month_interest" align="center" prompt="当月末利息余额(合计)" renderer="Leaf.formatMoney" width="80"/>
<a:column name="month_residual" align="center" prompt="当月末留购金余额" renderer="Leaf.formatMoney" width="80"/>
<a:column name="business_due_times" align="center" prompt="逾期期数" width="80"/>
<a:column name="business_due_amount" align="center" prompt="当月末逾期金额(合计)" renderer="Leaf.formatMoney" width="80"/>
<a:column name="deposit_amount" align="center" prompt="保证金" renderer="Leaf.formatMoney" width="80"/>
<a:column name="contract_status_n" align="center" prompt="合同状态" width="80"/>
<a:column name="residual_date" align="center" prompt="合同终了" width="80"/>
<a:column name="terminate_date" align="center" prompt="结清年月" width="80"/>
</a:columns>
</a:grid>
</a:tab>
<a:tab prompt="回收逾期明细表" width="110">
<a:grid id="con_contract_cashflow_rental_result_grid" bindTarget="con_contract_cashflow_rental_result_ds" marginHeight="115" navBar="true" marginWidth="30">
<a:columns>
<a:column name="agent_extra_name" align="center" prompt="代理店" width="120"/>
<a:column name="bp_tenant_name" align="center" prompt="客户名称" width="120"/>
<a:column name="contract_number" align="center" prompt="合同编号" width="100"/>
<a:column name="lease_start_date" align="center" prompt="租赁期开始日" width="80"/>
<a:column name="modelcd" align="center" prompt=" 机型" width="180"/>
<a:column name="machine_number" align="center" prompt="机器号码" width="80"/>
<a:column name="int_rate_display" align="center" prompt="利率" width="80"/>
<a:column name="times" align="center" prompt="回数" width="80"/>
<a:column name="due_date" align="center" prompt="支付预定日" width="80"/>
<a:column name="due_amount" align="center" prompt="应收款金额" renderer="Leaf.formatMoney" width="80"/>
<a:column name="received_amount" align="center" prompt="已收款金额" renderer="Leaf.formatMoney" width="80"/>
<a:column name="unreceived_amount" align="center" prompt="未收金额" renderer="Leaf.formatMoney" width="80"/>
<a:column name="overdue_days" align="center" prompt="逾期天数" width="80"/>
<a:column name="deposit_amount" align="center" prompt="保证金" renderer="Leaf.formatMoney" width="80"/>
</a:columns>
</a:grid>
</a:tab>
</a:tabs>
</a:tabPanel>
</a:screenBody>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:dr="leaf.plugin.excelreport" trace="true">
<a:init-procedure>
<a:model-query fetchAll="true" model="rpt.RPT5014.rpt5014_six_month" rootPath="/model/day"/>
<a:model-query fetchAll="true" model="rpt.RPT5014.rpt5014_result_query" rootPath="/model/datasource"/>
<dr:excel-report enableTask="false" filename="${/parameter/@file_name}">
<dr:styles>
<dr:cell-style name="cell1" align="ALIGN_CENTER" vertical="VERTICAL_CENTER">
<dr:font bold="false" fontName="Arial" height="10"/>
</dr:cell-style>
<dr:cell-style name="cell2" pattern="SOLID_FOREGROUND" align="ALIGN_CENTER" vertical="VERTICAL_CENTER" foregroundcolor="YELLOW">
<dr:font bold="true" fontName="宋体" height="25"/>
</dr:cell-style>
<dr:cell-style name="cell3" align="ALIGN_CENTER" vertical="VERTICAL_CENTER">
<dr:font bold="true" fontName="Arial" height="10"/>
</dr:cell-style>
<dr:cell-style name="green" pattern="SOLID_FOREGROUND" align="ALIGN_CENTER" vertical="VERTICAL_CENTER" foregroundcolor="BRIGHT_GREEN">
<dr:font bold="true" fontName="宋体" height="15"/>
</dr:cell-style>
<dr:cell-style name="orange" pattern="SOLID_FOREGROUND" align="ALIGN_CENTER" vertical="VERTICAL_CENTER" foregroundcolor="ORANGE">
<dr:font bold="true" fontName="宋体" height="15"/>
</dr:cell-style>
<dr:cell-style name="pink" pattern="SOLID_FOREGROUND" align="ALIGN_CENTER" vertical="VERTICAL_CENTER" foregroundcolor="PINK">
<dr:font bold="true" fontName="宋体" height="15"/>
</dr:cell-style>
<dr:cell-style name="yellow" pattern="SOLID_FOREGROUND" align="ALIGN_CENTER" vertical="VERTICAL_CENTER" foregroundcolor="YELLOW">
<dr:font bold="true" fontName="宋体" height="15"/>
</dr:cell-style>
<dr:cell-style name="blue" pattern="SOLID_FOREGROUND" align="ALIGN_CENTER" vertical="VERTICAL_CENTER" foregroundcolor="BLUE">
<dr:font bold="true" fontName="宋体" height="15"/>
</dr:cell-style>
</dr:styles>
<dr:sheets>
<dr:sheet name="明细表" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119" displayGridlines="true">
<dr:static-content dataModel="/model/day">
<dr:cell-data cell="U" offset="false" row="1" styleName="cell3" type="content" value="三期类型"/>
<dr:cell-data cell="V" offset="false" row="1" styleName="cell3" type="content" value="A"/>
<dr:cell-data cell="V" offset="false" row="2" styleName="cell3" type="content" value="B"/>
<dr:cell-data cell="V" offset="false" row="3" styleName="cell3" type="content" value="C"/>
<dr:cell-data cell="F" offset="false" range="$F$2:$L$2" row="2" styleName="cell2" type="content" value="${/model/day/record/@befor_title}"/>
<dr:cell-data cell="w" offset="false" range="$w$1:$Z$1" row="1" styleName="cell3" type="content" value="GPS正常,且能连续还款"/>
<dr:cell-data cell="w" offset="false" range="$w$2:$Z$2" row="2" styleName="cell3" type="content" value="GPS正常,但不能连续还款"/>
<dr:cell-data cell="w" offset="false" range="$w$3:$Z$3" row="3" styleName="cell3" type="content" value="GPS无效,但能连续还款"/>
<dr:cell-data cell="AG" offset="false" row="1" styleName="cell3" type="content" value="E"/>
<dr:cell-data cell="AG" offset="false" row="2" styleName="cell3" type="content" value="D"/>
<dr:cell-data cell="AG" offset="false" row="3" styleName="cell3" type="content" value="F"/>
<dr:cell-data cell="AG" offset="false" row="4" styleName="cell3" type="content" value="G"/>
<dr:cell-data cell="AH" offset="false" row="1" styleName="cell3" type="content" value="GPS无效,不能连续还款,但能确认机器位置"/>
<dr:cell-data cell="AH" offset="false" row="2" styleName="cell3" type="content" value="GPS无效,不能连续还款,且不能确认机器位置"/>
<dr:cell-data cell="AH" offset="false" row="3" styleName="cell3" type="content" value="人、机灭失F"/>
<dr:cell-data cell="AH" offset="false" row="4" styleName="cell3" type="content" value="机器已拖回或已控制"/>
<dr:cell-data cell="A" offset="false" row="5" styleName="green" type="content" value="代理店名称"/>
<dr:cell-data cell="B" offset="false" row="5" styleName="green" type="content" value="客户"/>
<dr:cell-data cell="C" offset="false" row="5" styleName="green" type="content" value="分公司"/>
<dr:cell-data cell="D" offset="false" row="5" styleName="green" type="content" value="融资合同号"/>
<dr:cell-data cell="E" offset="false" row="5" styleName="green" type="content" value="起租日"/>
<dr:cell-data cell="F" offset="false" row="5" styleName="green" type="content" value="合同到期日"/>
<dr:cell-data cell="G" offset="false" row="5" styleName="green" type="content" value="机号"/>
<dr:cell-data cell="H" offset="false" row="5" styleName="green" type="content" value="机型"/>
<dr:cell-data cell="I" offset="false" row="5" styleName="green" type="content" value="合同总金额(A)"/>
<dr:cell-data cell="J" offset="false" row="5" styleName="green" type="content" value="合同期数"/>
<dr:cell-data cell="K" offset="false" row="5" styleName="green" type="content" value="销售价格"/>
<dr:cell-data cell="L" offset="false" row="5" styleName="green" type="content" value="首付金额"/>
<dr:cell-data cell="M" offset="false" row="5" styleName="green" type="content" value="留购金"/>
<dr:cell-data cell="N" offset="false" row="5" styleName="green" type="content" value="已收款(A-B)"/>
<dr:cell-data cell="O" offset="false" row="5" styleName="green" type="content" value="上月末应收款余额(B)"/>
<dr:cell-data cell="P" offset="false" row="5" styleName="green" type="content" value="期次"/>
<dr:cell-data cell="Q" offset="false" row="5" styleName="green" type="content" value="本月合同应收日期"/>
<dr:cell-data cell="R" offset="false" row="5" styleName="green" type="content" value="本月合同应收租金"/>
<dr:cell-data cell="S" offset="false" row="5" styleName="green" type="content" value="截止上月末提前支付"/>
<dr:cell-data cell="T" offset="false" row="5" styleName="green" type="content" value="本月合同应收租金(减提前支付)"/>
<dr:cell-data cell="U" offset="false" row="5" styleName="green" type="content" value="截止上月末逾期租金"/>
<dr:cell-data cell="V" offset="false" row="5" styleName="green" type="content" value="本月合计应收"/>
<dr:cell-data cell="W" offset="false" row="5" styleName="blue" type="content" value="${/model/day/record/@cur_overdue_times}"/>
<dr:cell-data cell="X" offset="false" row="5" styleName="orange" type="content" value="${/model/day/record/@cur_hour}"/>
<dr:cell-data cell="Y" offset="false" row="5" styleName="orange" type="content" value="${/model/day/record/@befor1_hour}"/>
<dr:cell-data cell="Z" offset="false" row="5" styleName="orange" type="content" value="${/model/day/record/@befor2_hour}"/>
<dr:cell-data cell="AA" offset="false" row="5" styleName="pink" type="content" value="${/model/day/record/@cur_amount}"/>
<dr:cell-data cell="AB" offset="false" row="5" styleName="pink" type="content" value="${/model/day/record/@befor1_amount}"/>
<dr:cell-data cell="AC" offset="false" row="5" styleName="pink" type="content" value="${/model/day/record/@befor2_amount}"/>
<dr:cell-data cell="AD" offset="false" row="5" styleName="pink" type="content" value="${/model/day/record/@befor3_amount}"/>
<dr:cell-data cell="AE" offset="false" row="5" styleName="pink" type="content" value="${/model/day/record/@befor4_amount}"/>
<dr:cell-data cell="AF" offset="false" row="5" styleName="pink" type="content" value="${/model/day/record/@befor5_amount}"/>
<dr:cell-data cell="AG" offset="false" row="5" styleName="yellow" type="content" value="GPS是否有效"/>
<dr:cell-data cell="AH" offset="false" row="5" styleName="yellow" type="content" value="提供照片/说明/逾期降至3期内/回购/结清"/>
<dr:cell-data cell="AI" offset="false" row="5" styleName="yellow" type="content" value="三期所属类型"/>
<dr:cell-data cell="AJ" offset="false" row="5" styleName="orange" type="content" value="客户三期原因及解决方案"/>
</dr:static-content>
<dr:dynamic-content cell="A" dataModel="/model/datasource" row="5">
<dr:columns>
<dr:table-column cellStyle="cell1" field="agent_extra_name"/>
<dr:table-column cellStyle="cell1" field="bp_tenant_name"/>
<dr:table-column cellStyle="cell1" field="branch_company"/>
<dr:table-column cellStyle="cell1" field="contract_number"/>
<dr:table-column cellStyle="cell1" field="lease_start_date"/>
<dr:table-column cellStyle="cell1" field="residual_date"/>
<dr:table-column cellStyle="cell1" field="machine_number"/>
<dr:table-column cellStyle="cell1" field="modelcd"/>
<dr:table-column cellStyle="cell1" field="contract_amount"/>
<dr:table-column cellStyle="cell1" field="lease_times"/>
<dr:table-column cellStyle="cell1" field="lease_item_amount"/>
<dr:table-column cellStyle="cell1" field="down_payment"/>
<dr:table-column cellStyle="cell1" field="residual_amount"/>
<dr:table-column cellStyle="cell1" field="before_received_amount"/>
<dr:table-column cellStyle="cell1" field="before_due_left"/>
<dr:table-column cellStyle="cell1" field="times"/>
<dr:table-column cellStyle="cell1" field="due_date"/>
<dr:table-column cellStyle="cell1" field="due_amount"/>
<dr:table-column cellStyle="cell1" field="advance_received_amount"/>
<dr:table-column cellStyle="cell1" field="due_amount"/>
<dr:table-column cellStyle="cell1" field="before_overdue_amount"/>
<dr:table-column cellStyle="cell1" field="due_total"/>
<dr:table-column cellStyle="cell1" field="over_due_times"/>
<dr:table-column cellStyle="cell1" field="null_column"/>
<dr:table-column cellStyle="cell1" field="null_column"/>
<dr:table-column cellStyle="cell1" field="null_column"/>
<dr:table-column cellStyle="cell1" field="cur_real"/>
<dr:table-column cellStyle="cell1" field="before1_real"/>
<dr:table-column cellStyle="cell1" field="before2_real"/>
<dr:table-column cellStyle="cell1" field="before3_real"/>
<dr:table-column cellStyle="cell1" field="before4_real"/>
<dr:table-column cellStyle="cell1" field="before5_real"/>
<dr:table-column cellStyle="cell1" field="null_column"/>
<dr:table-column cellStyle="cell1" field="null_column"/>
<dr:table-column cellStyle="cell1" field="null_column"/>
<dr:table-column cellStyle="cell1" field="null_column"/>
</dr:columns>
</dr:dynamic-content>
</dr:sheet>
</dr:sheets>
</dr:excel-report>
</a:init-procedure>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: niminmin
$Date: 2018-12-20 上午9:30:25
$Revision: 1.0
$Purpose: 三期管理表打印
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" trace="true">
<a:init-procedure><![CDATA[
]]></a:init-procedure>
<a:view>
<a:link id="rpt5012_print_link_id" model="rpt.RPT5012.rpt5012_result_query" modelaction="execute"/>
<script><![CDATA[
function rpt5014_reset() {
$('rpt5014_query_ds').reset();
}
function ref_n01_time(record, name, value) {
var reg = /^\d\d\d\d\d\d$/;
if (reg.test(value)) {
return true;
}
return '时间格式应为【yyyymm】,举例【201812】';
}
function rpt5014_print() {
debugger;
// Leaf.Masker.mask(Ext.getBody(), '${l:BEING_IMPLEMENTED}');
var record = $('rpt5014_query_ds').getAt(0);
if (!record) {
Leaf.Masker.unmask(Ext.getBody());
Leaf.showMessage('${l:PROMPT}', '年月未填写');
return;
}
var month = record.get('month');
if (!month) {
Leaf.Masker.unmask(Ext.getBody());
Leaf.showMessage('${l:PROMPT}', '年月未填写');
return;
}
Leaf.request({
url: $('rpt5012_print_link_id').getUrl(),
para: {
month: month
},
success: function(res) {
$('rpt5014_prin_btn_id').disable();
Leaf.Masker.unmask(Ext.getBody());
var cur_begin = Leaf.formatDate(res.result.cur_begin),
cur_end = Leaf.formatDate(res.result.cur_end),
before_begin = Leaf.formatDate(res.result.before_begin),
before_end = Leaf.formatDate(res.result.before_end);
var url = '${/request/@context_path}/modules/rpt/RPT5014/export_excel_sheets.lsc?month=' + month+ '&cur_begin=' + cur_begin+ '&cur_end=' + cur_end+ '&before_begin=' + before_begin+ '&before_end=' + before_end+'&file_name=' + month + '三期管理表.xls';
window.open(encodeURI(url), '_self');
$('rpt5014_prin_btn_id').enable();
},
error: function() {
Leaf.Masker.unmask(Ext.getBody());
},
failure: function() {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}
]]></script>
<a:dataSets>
<a:dataSet id="four_month_date_ds" loadData="true" model="rpt.RPT5010.rpt5010_four_month"/>
<a:dataSet id="rpt5014_query_ds">
<a:fields>
<a:field name="month"/>
<a:field name="month_desc" displayField="value_name" options="four_month_date_ds" required="true" returnField="month" valueField="value_code"/>
</a:fields>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:gridButton id="rpt5014_prin_btn_id" click="rpt5014_print" text="打印"/>
<a:gridButton click="rpt5014_reset" text="HLS.RESET"/>
<!-- <a:gridButton click="rpt5110_run_job" text="发起校准任务"/>-->
</a:screenTopToolbar>
<a:form Width="250" column="1" labelWidth="100" title="条件" width="300">
<a:comboBox name="month_desc" bindTarget="rpt5014_query_ds" prompt="年月"/>
</a:form>
</a:screenBody>
</a:view>
</a:screen>
......@@ -29,6 +29,7 @@
$('sys_code_query_ds').reset();
}
function indexChangeFunction(ds, record){
$('sys_code_ref_ds').setQueryParameter('code_id',record.get('code_id'));
if(record.get('sys_flag')=='Y'){
isSys='Y'
$('btn_ref_add').disable();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment