Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
e119c6d1
Commit
e119c6d1
authored
Nov 17, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售执行情况表
parent
0c8ed011
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
538 additions
and
0 deletions
+538
-0
ServiceHGCW010F.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW010F.java
+36
-0
HGCW010F.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW010F.xml
+373
-0
HGCW010F.js
src/main/webapp/HG/CW/HGCW010F.js
+50
-0
HGCW010F.jsp
src/main/webapp/HG/CW/HGCW010F.jsp
+79
-0
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW010F.java
0 → 100644
View file @
e119c6d1
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
;
}
}
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW010F.xml
0 → 100644
View file @
e119c6d1
<?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)
<
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)
<
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)
<
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)
<
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)
<
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)
<
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)
<
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)
<
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)
<
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)
<
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)
<
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)
<
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
src/main/webapp/HG/CW/HGCW010F.js
0 → 100644
View file @
e119c6d1
$
(
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
);
}
src/main/webapp/HG/CW/HGCW010F.jsp
0 → 100644
View file @
e119c6d1
<%--
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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment