Commit e119c6d1 by liuyang

销售执行情况表

parent 0c8ed011
package com.baosight.hggp.hg.cw.service;
import com.baosight.hggp.core.security.UserSessionUtils;
import com.baosight.hggp.hg.xs.domain.Company;
import com.baosight.hggp.util.EiInfoUtils;
import com.baosight.hggp.util.LogUtils;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
/**
* @author LiuYang
* @version 1.0 2024/11/17
* @description 销售执行情况表
*/
public class ServiceHGCW010F extends ServiceEPBase {
@Override
public EiInfo initLoad(EiInfo inInfo) {
try {
EiInfoUtils.addBlock(inInfo, "roleCompany", UserSessionUtils.getRoleCompany(), Company.class);
} catch (Exception e) {
LogUtils.setMsg(inInfo, e, "初始化失败");
}
return inInfo;
}
@Override
public EiInfo query(EiInfo inInfo) {
try {
inInfo = super.query(inInfo, "HGCW010F.query");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
}
return inInfo;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="HGCW010F">
<select id="query" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
select
A.DATE "date",
A.COMPANY_CODE as "companyCode",
A.COMPANY_NAME as "companyName",
A.PROJ_CODE as "projCode",
A.PROJ_NAME as "projName",
A.CLIENT_NAME as "clientName",
A.CONTRACT_ACOUNT as "contractAcount",
A.SELL_ACOUNT as "sellAcount",
A.NOT_SELL_ACOUNT as "notSellAcount",
A.COLLEC_ACOUNT as "collecAcount",
A.NOT_COLLEC_ACOUNT as "notCollecAcount"
from (
select
A.SIGNING_DATE as "DATE",
A.COMPANY_CODE,
A.COMPANY_NAME,
A.PROJ_CODE,
A.PROJ_NAME,
case
when A.CONTRACT_CATEGORY = 1 then A.PARTY_A
when A.CONTRACT_CATEGORY = 2 then A.PARTY_B
else ''
end "CLIENT_NAME",
ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "CONTRACT_ACOUNT",
ifnull(SUM(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(SUM(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0)
when ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0)
when ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW002 A
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%') OR A.PARTY_B like ('%$partyB$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.SIGNING_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
A.PARTY_A ,
A.PARTY_B ,
A.CONTRACT_CATEGORY,
A.SIGNING_DATE
union all
select
A.SIGNING_DATE AS "DATE",
A.COMPANY_CODE,
A.COMPANY_NAME,
A.PROJ_CODE,
A.PROJ_NAME,
A.PARTY_A as "CLIENT_NAME",
ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "CONTRACT_ACOUNT",
ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0)
when ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0)
when ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW006 A
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.SIGNING_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
A.PARTY_A,
A.SIGNING_DATE
union all
select
A.CONTRACT_DATE AS "DATE",
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE,
A.PROJ_NAME,
case
when D.CONTRACT_CATEGORY = 1 then D.PARTY_A
when D.CONTRACT_CATEGORY = 2 then D.PARTY_B
else ''
end "CLIENT_NAME",
ifnull(sum(A.THIS_PRICE_TAX),0) as "CONTRACT_ACOUNT",
ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(sum(A.THIS_PRICE_TAX),0)
when ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then ifnull(sum(A.THIS_PRICE_TAX),0)
when ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW008 A
join HGGP.HGCW002 D on A.COMPANY_CODE = D.COMPANY_CODE and A.PROJ_CODE = D.PROJ_CODE AND A.CONTRACT_NUMBER = D.CONTRACT_NUMBER
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.CONTRACT_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
D.PARTY_A ,
D.PARTY_B ,
D.CONTRACT_CATEGORY,
A.CONTRACT_DATE
) A
ORDER BY A.DATE DESC
</select>
<select id="count" resultClass="int">
select
COUNT(*)
from (
select
A.SIGNING_DATE as "DATE",
A.COMPANY_CODE,
A.COMPANY_NAME,
A.PROJ_CODE,
A.PROJ_NAME,
case
when A.CONTRACT_CATEGORY = 1 then A.PARTY_A
when A.CONTRACT_CATEGORY = 2 then A.PARTY_B
else ''
end "CLIENT_NAME",
ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "CONTRACT_ACOUNT",
ifnull(SUM(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(SUM(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(SUM(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(SUM(C.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW002 A
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%') OR A.PARTY_B like ('%$partyB$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.SIGNING_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
A.PARTY_A ,
A.PARTY_B ,
A.CONTRACT_CATEGORY,
A.SIGNING_DATE
union all
select
A.SIGNING_DATE AS "DATE",
A.COMPANY_CODE,
A.COMPANY_NAME,
A.PROJ_CODE,
A.PROJ_NAME,
A.PARTY_A as "CLIENT_NAME",
ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "CONTRACT_ACOUNT",
ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.TOTAL_CONTRACT_PRICE_INCLUDING),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW006 A
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.SIGNING_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
A.PARTY_A,
A.SIGNING_DATE
union all
select
A.CONTRACT_DATE AS "DATE",
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE,
A.PROJ_NAME,
case
when D.CONTRACT_CATEGORY = 1 then D.PARTY_A
when D.CONTRACT_CATEGORY = 2 then D.PARTY_B
else ''
end "CLIENT_NAME",
ifnull(sum(A.THIS_PRICE_TAX),0) as "CONTRACT_ACOUNT",
ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) as "SELL_ACOUNT",
case
when ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_SELL_ACOUNT",
ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) "COLLEC_ACOUNT",
case
when ifnull(sum(C.TOTAL_CONTRACT_PRICE_INCLUDING),0) = 0 then 0
when ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0) &lt; 0 then 0
else ifnull(sum(A.THIS_PRICE_TAX),0) - ifnull(sum(B.TOTAL_CONTRACT_PRICE_INCLUDING),0)
end "NOT_COLLEC_ACOUNT"
from HGGP.HGCW008 A
join HGGP.HGCW002 D on A.COMPANY_CODE = D.COMPANY_CODE and A.PROJ_CODE = D.PROJ_CODE AND A.CONTRACT_NUMBER = D.CONTRACT_NUMBER
left join HGGP.HGCW011 B on A.COMPANY_CODE = B.COMPANY_CODE and A.PROJ_CODE = B.PROJ_CODE
left join HGGP.HGCW015 C on A.COMPANY_CODE = C.COMPANY_CODE and A.PROJ_CODE = C.PROJ_CODE
where 1=1
<isNotEmpty prepend=" AND " property="accountCode">
A.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
A.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyName">
A.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
A.PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
A.PROJ_NAME like ('%$projName$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partyA">
A.PARTY_A like ('%$partyA$%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="date">
A.CONTRACT_DATE = #date#
</isNotEmpty>
group by
A.COMPANY_CODE ,
A.COMPANY_NAME ,
A.PROJ_CODE ,
A.PROJ_NAME ,
D.PARTY_A ,
D.PARTY_B ,
D.CONTRACT_CATEGORY,
A.CONTRACT_DATE
) A
</select>
</sqlMap>
\ No newline at end of file
$(function() {
// 查询
$("#QUERY").on("click", function () {
query();
});
IPLATUI.EFGrid.result = {
pageable: {
pageSize: 20,
pageSizes: [10,20,30,50,100,200],
},
exportGrid:false,
columns: [],
onSuccess: function (e) {
if (e.eiInfo.extAttr.methodName == 'save' || e.eiInfo.extAttr.methodName == 'delete') {
query();
}
},
}
window.document.addEventListener("keyup",function (event) {
if(event.keyCode === 13){
var grid = $("#ef_grid_result").data("kendoGrid");
// 回填
//grid.addRows(returnRows);
grid.closeCell();
}
})
});
$(window).load(function () {
// 查
query();
});
/**
* 查询
*/
let query = function () {
resultGrid.dataSource.page(1);
}
<%--
Created by IntelliJ IDEA.
User: 1
Date: 2024/11/17
Time: 13:21
To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<head>
</head>
<EF:EFPage title="销售执行情况">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<EF:EFDatePicker blockId="inqu_status" row="0" ename="date" cname="日期" role="date"
format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="companyCode" cname="公司名称" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
</EF:EFSelect>
<EF:EFInput cname="项目名称" blockId="inqu_status" ename="projName" row="0" colWidth="3" placeholder="模糊查询项目名称"/>
<EF:EFInput cname="客户名称" ename="partyA" blockId="inqu_status" row="0" colWidth="3" placeholder="模糊查询客户名称"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="no" isFloat="true" autoBind="false" sort="all">
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<%--<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="210" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
</EF:EFComboColumn>--%>
<EF:EFColumn ename="date" cname="日期" width="120" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="companyName" cname="公司名称" width="200" align="center"/>
<EF:EFColumn ename="clientName" cname="客户名称" width="200" align="center"/>
<%--<EF:EFComboColumn ename="projCode" cname="项目名称" blockName="proj_record_block_id"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="210" required="true"
align="center" filter="contains" sort="true">
</EF:EFComboColumn>--%>
<EF:EFColumn ename="projName" cname="项目名称" width="200" align="center"/>
<EF:EFColumn ename="contractAcount" cname="销售合同金额" width="120" enable="true" readonly="true" format="{0:C2}" editType="number"
displayType="0.00" sort="true" align="right" maxLength="15" required="true" defaultValue="0"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="sellAcount" cname="销售开票金额" width="120" enable="false" readonly="true" format="{0:C2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="false"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="notSellAcount" cname="未开票金额" width="120" enable="false" readonly="true" format="{0:C2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="false"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="collecAcount" cname="收款金额" width="120" enable="false" readonly="true" format="{0:C2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="false"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="notCollecAcount" cname="未收款金额" width="120" enable="false" readonly="true" format="{0:C2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="false"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
<script>
var ctx = "${ctx}";
</script>
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