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
1eabfc30
Commit
1eabfc30
authored
May 27, 2024
by
13420
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售开票更改文件名
parent
28459713
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
150 additions
and
89 deletions
+150
-89
HGCW010.java
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW010.java
+0
-0
ServiceHGCW010.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW010.java
+27
-30
ServiceHGCW010A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW010A.java
+8
-11
HGCW010.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW010.xml
+102
-35
HGCW010.js
src/main/webapp/HG/CW/HGCW010.js
+5
-5
HGCW010.jsp
src/main/webapp/HG/CW/HGCW010.jsp
+0
-0
HGCW010A.js
src/main/webapp/HG/CW/HGCW010A.js
+4
-4
HGCW010A.jsp
src/main/webapp/HG/CW/HGCW010A.jsp
+4
-4
No files found.
src/main/java/com/baosight/hggp/hg/cw/domain/HGCW010.java
View file @
1eabfc30
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW01
2
.java
→
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW01
0
.java
View file @
1eabfc30
...
...
@@ -3,8 +3,7 @@ package com.baosight.hggp.hg.cw.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.cw.domain.HGCW002
;
import
com.baosight.hggp.hg.cw.domain.HGCW012
;
import
com.baosight.hggp.hg.cw.domain.HGCW010
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.util.CommonMethod
;
...
...
@@ -16,10 +15,8 @@ import com.baosight.iplat4j.core.ei.EiInfo;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.resource.I18nMessages
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -27,7 +24,7 @@ import java.util.Map;
* @author yukang
* @date 2024年05月06日 18:22
*/
public
class
ServiceHGCW01
2
extends
ServiceBase
{
public
class
ServiceHGCW01
0
extends
ServiceBase
{
/**
* 画面初始化
...
...
@@ -41,7 +38,7 @@ public class ServiceHGCW012 extends ServiceBase {
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
FACTORY_RECORD_BLOCK_ID
,
DdynamicEnum
.
COMPANY_BOX_BLOCK_ID
,
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
),
null
,
false
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCW01
2
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGCW01
0
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
...
...
@@ -58,7 +55,7 @@ public class ServiceHGCW012 extends ServiceBase {
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGCW01
2
.
QUERY
,
new
HGCW012
());
inInfo
=
super
.
query
(
inInfo
,
HGCW01
0
.
QUERY
,
new
HGCW010
());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
...
...
@@ -77,17 +74,17 @@ public class ServiceHGCW012 extends ServiceBase {
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 写入数据
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGCW01
2
HGCW012
=
new
HGCW012
();
HGCW01
2
.
fromMap
(
resultRows
.
get
(
i
));
HGCW01
0
HGCW010
=
new
HGCW010
();
HGCW01
0
.
fromMap
(
resultRows
.
get
(
i
));
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
HGCW01
2
.
setCompanyCode
(
userVO
.
getUsercode
());
HGCW01
2
.
setCompanyName
(
userVO
.
getUsername
());
HGCW01
0
.
setCompanyCode
(
userVO
.
getUsercode
());
HGCW01
0
.
setCompanyName
(
userVO
.
getUsername
());
if
(
HGCW01
2
.
getId
()
==
null
||
HGCW012
.
getId
()
==
0
)
{
this
.
add
(
HGCW01
2
);
if
(
HGCW01
0
.
getId
()
==
null
||
HGCW010
.
getId
()
==
0
)
{
this
.
add
(
HGCW01
0
);
}
else
{
this
.
modify
(
HGCW01
2
);
this
.
modify
(
HGCW01
0
);
}
}
inInfo
=
this
.
query
(
inInfo
);
...
...
@@ -102,21 +99,21 @@ public class ServiceHGCW012 extends ServiceBase {
/**
* 新增操作
*
* @param HGCW01
2
* @param HGCW01
0
* @return
*/
public
void
add
(
HGCW01
2
HGCW012
)
{
DaoUtils
.
insert
(
"HGCW01
2.insert"
,
HGCW012
);
public
void
add
(
HGCW01
0
HGCW010
)
{
DaoUtils
.
insert
(
"HGCW01
0.insert"
,
HGCW010
);
}
/**
* 修改操作
*
* @param HGCW01
2
* @param HGCW01
0
* @return
*/
public
void
modify
(
HGCW01
2
HGCW012
)
{
DaoUtils
.
update
(
"HGCW01
2.update"
,
HGCW012
);
public
void
modify
(
HGCW01
0
HGCW010
)
{
DaoUtils
.
update
(
"HGCW01
0.update"
,
HGCW010
);
}
/**
...
...
@@ -132,9 +129,9 @@ public class ServiceHGCW012 extends ServiceBase {
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 数据写入
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGCW01
2
HGCW012
=
new
HGCW012
();
HGCW01
2
.
fromMap
(
resultRows
.
get
(
i
));
DaoUtils
.
insert
(
"HGCW01
2.insert"
,
HGCW012
);
HGCW01
0
HGCW010
=
new
HGCW010
();
HGCW01
0
.
fromMap
(
resultRows
.
get
(
i
));
DaoUtils
.
insert
(
"HGCW01
0.insert"
,
HGCW010
);
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
@@ -156,9 +153,9 @@ public class ServiceHGCW012 extends ServiceBase {
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGCW01
2
HGCW012
=
new
HGCW012
();
HGCW01
2
.
fromMap
(
resultRows
.
get
(
i
));
DaoUtils
.
update
(
"HGCW01
2.update"
,
HGCW012
);
HGCW01
0
HGCW010
=
new
HGCW010
();
HGCW01
0
.
fromMap
(
resultRows
.
get
(
i
));
DaoUtils
.
update
(
"HGCW01
0.update"
,
HGCW010
);
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
@@ -180,7 +177,7 @@ public class ServiceHGCW012 extends ServiceBase {
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
DaoUtils
.
update
(
"HGCW01
2
.delete"
,
resultRows
.
get
(
i
));
DaoUtils
.
update
(
"HGCW01
0
.delete"
,
resultRows
.
get
(
i
));
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
@@ -203,12 +200,12 @@ public class ServiceHGCW012 extends ServiceBase {
public
EiInfo
updateDocId
(
EiInfo
inInfo
){
int
i
=
0
;
try
{
HGCW01
2
HGCW012
=
new
HGCW012
();
HGCW01
0
HGCW010
=
new
HGCW010
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HGCW01
2
.
fromMap
(
map
);
DaoUtils
.
update
(
HGCW01
2
.
UPDATE_DOC_ID
,
HGCW012
);
HGCW01
0
.
fromMap
(
map
);
DaoUtils
.
update
(
HGCW01
0
.
UPDATE_DOC_ID
,
HGCW010
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsgByKey
(
"ep.1000"
,
new
String
[]{
String
.
valueOf
(
i
),
I18nMessages
.
getText
(
"label.update"
,
"修改"
)});
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW01
2
A.java
→
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW01
0
A.java
View file @
1eabfc30
...
...
@@ -2,9 +2,7 @@ package com.baosight.hggp.hg.cw.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.cw.domain.HGCW002
;
import
com.baosight.hggp.hg.cw.domain.HGCW012
;
import
com.baosight.hggp.hg.cw.domain.HGCW010
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.pz.domain.HGPZ002
;
import
com.baosight.hggp.hg.pz.domain.HGPZ003
;
...
...
@@ -13,7 +11,6 @@ import com.baosight.hggp.hg.xs.domain.Org;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
...
...
@@ -26,7 +23,7 @@ import java.util.*;
* @author yukang
* @date 2024年05月06日 18:22
*/
public
class
ServiceHGCW01
2
A
extends
ServiceBase
{
public
class
ServiceHGCW01
0
A
extends
ServiceBase
{
/**
* 画面初始化
...
...
@@ -38,8 +35,8 @@ public class ServiceHGCW012A extends ServiceBase {
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJECT_CODE_BOX_BLOCK_ID
),
null
,
false
);
inInfo
.
addBlock
(
"detail1"
).
addBlockMeta
(
new
HGCW01
2
().
eiMetadata
);
inInfo
.
addBlock
(
"detail2"
).
addBlockMeta
(
new
HGCW01
2
().
eiMetadata
);
inInfo
.
addBlock
(
"detail1"
).
addBlockMeta
(
new
HGCW01
0
().
eiMetadata
);
inInfo
.
addBlock
(
"detail2"
).
addBlockMeta
(
new
HGCW01
0
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
...
...
@@ -149,14 +146,14 @@ public class ServiceHGCW012A extends ServiceBase {
map
.
put
(
"settlementNumber"
,
inInfo
.
getString
(
"settlementNumber"
));
}
if
(
StringUtils
.
isNotEmpty
(
inInfo
.
getString
(
"settlementNumbers"
)))
{
String
[]
contractTyp
s
=
inInfo
.
getString
(
"settlementNumbers"
).
split
(
","
);
for
(
String
c
:
contractTyp
s
)
{
String
[]
settlementNumber
s
=
inInfo
.
getString
(
"settlementNumbers"
).
split
(
","
);
for
(
String
c
:
settlementNumber
s
)
{
contractTypArray
.
add
(
c
);
}
map
.
put
(
"settlementNumbers"
,
contractTypArray
);
}
List
<
HGCW01
2
>
HGCW012List
=
dao
.
query
(
"HGCW012
.queryconteractComboBox"
,
map
);
inInfo
.
addBlock
(
"conteract_combo_box"
).
setRows
(
HGCW01
2
List
);
List
<
HGCW01
0
>
HGCW010List
=
dao
.
query
(
"HGCW010
.queryconteractComboBox"
,
map
);
inInfo
.
addBlock
(
"conteract_combo_box"
).
setRows
(
HGCW01
0
List
);
return
inInfo
;
}
}
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW010.xml
View file @
1eabfc30
...
...
@@ -10,13 +10,17 @@
COMPANY_NAME VARCHAR,
PROJ_NAME VARCHAR,
PROJ_CODE VARCHAR,
CONTRACT_NUMBER VARCHAR,
INCOME_NUMBER VARCHAR,
SETTLEMENT_NUMBER VARCHAR,
BILL_TYBE VARCHAR,
BILL_NUMBER VARCHAR,
BILL_STATE VARCHAR,
SIGNING_DATE VARCHAR,
PARTY_A VARCHAR,
CANCEL_STATUS TINYINT,
REVIEW_STATUS TINYINT,
TOTAL_CONTRACT_PRICE_INCLUDING VARCHAR,
THIS_SETTLEMENT_TAX VARCHAR,
THIS_SETTLEMENT_AMOUNT VARCHAR,
TAX_POINTS VARCHAR,
TOTAL_CONTRACT_PRICE_INCLUDING DECIMAL,
CREATED_BY VARCHAR NOT NULL,
CREATED_NAME VARCHAR NOT NULL,
CREATED_TIME VARCHAR NOT NULL,
...
...
@@ -46,11 +50,17 @@
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
contrac
tNumber"
>
CONTRACT_NUMBER = #contrac
tNumber#
<isNotEmpty
prepend=
" AND "
property=
"
settlemen
tNumber"
>
SETTLEMENT_NUMBER = #settlemen
tNumber#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"incomeNumber"
>
INCOME_NUMBER = #incomeNumber#
<isNotEmpty
prepend=
" AND "
property=
"billTybe"
>
BILL_TYBE = #billTybe#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"billNumber"
>
BILL_NUMBER = #billNumber#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"billState"
>
BILL_STATE = #billState#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"signingDate"
>
SIGNING_DATE = #signingDate#
...
...
@@ -58,12 +68,18 @@
<isNotEmpty
prepend=
" AND "
property=
"partyA"
>
PARTY_A = #partyA#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"cancelStatus"
>
CANCEL_STATUS = #cancelStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"reviewStatus"
>
REVIEW_STATUS = #reviewStatus#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"thisSettlementTax"
>
THIS_SETTLEMENT_TAX = #thisSettlementTax#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"thisSettlementAmount"
>
THIS_SETTLEMENT_AMOUNT = #thisSettlementAmount#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"taxPoints"
>
TAX_POINTS = #taxPoints#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"totalContractPriceIncluding"
>
TOTAL_CONTRACT_PRICE_INCLUDING = #totalContractPriceIncluding#
</isNotEmpty>
...
...
@@ -99,13 +115,17 @@
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
PROJ_CODE as "projCode",
<!-- 项目编号 -->
CONTRACT_NUMBER as "contractNumber",
<!-- 来源单号 -->
INCOME_NUMBER as "incomeNumber",
<!-- 收款单号 -->
SIGNING_DATE as "signingDate",
<!-- 收款日期 -->
SETTLEMENT_NUMBER as "settlementNumber",
<!-- 来源单号 -->
BILL_TYBE as "billTybe",
<!-- 票据类型 -->
BILL_NUMBER as "billNumber",
<!-- 发票号 -->
BILL_STATE as "billState",
<!-- 开票状态 -->
SIGNING_DATE as "signingDate",
<!-- 开票日期 -->
PARTY_A as "partyA",
<!-- 客户名称 -->
CANCEL_STATUS as "cancelStatus",
<!-- 核销状态 -->
REVIEW_STATUS as "reviewStatus",
<!-- 审批状态 -->
TOTAL_CONTRACT_PRICE_INCLUDING as "totalContractPriceIncluding",
<!-- 收款总额 -->
THIS_SETTLEMENT_TAX as "thisSettlementTax",
<!-- 税额 -->
THIS_SETTLEMENT_AMOUNT as "thisSettlementAmount",
<!-- 不含税金额 -->
TAX_POINTS as "taxPoints",
<!-- 税率 -->
TOTAL_CONTRACT_PRICE_INCLUDING as "totalContractPriceIncluding",
<!-- 开票总额 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
...
...
@@ -150,11 +170,17 @@
<isNotEmpty prepend=" AND " property="projCode">
PROJ_CODE = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="
contrac
tNumber">
CONTRACT_NUMBER = #contrac
tNumber#
<isNotEmpty prepend=" AND " property="
settlemen
tNumber">
SETTLEMENT_NUMBER = #settlemen
tNumber#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="incomeNumber">
INCOME_NUMBER = #incomeNumber#
<isNotEmpty prepend=" AND " property="billTybe">
BILL_TYBE = #billTybe#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billNumber">
BILL_NUMBER = #billNumber#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="billState">
BILL_STATE = #billState#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="signingDate">
SIGNING_DATE = #signingDate#
...
...
@@ -162,12 +188,18 @@
<isNotEmpty prepend=" AND " property="partyA">
PARTY_A = #partyA#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="cancelStatus">
CANCEL_STATUS = #cancelStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="reviewStatus">
REVIEW_STATUS = #reviewStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="thisSettlementTax">
THIS_SETTLEMENT_TAX = #thisSettlementTax#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="thisSettlementAmount">
THIS_SETTLEMENT_AMOUNT = #thisSettlementAmount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="taxPoints">
TAX_POINTS = #taxPoints#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="totalContractPriceIncluding">
TOTAL_CONTRACT_PRICE_INCLUDING = #totalContractPriceIncluding#
</isNotEmpty>
...
...
@@ -201,13 +233,17 @@
COMPANY_NAME,
<!-- 公司名称 -->
PROJ_NAME,
<!-- 项目名称 -->
PROJ_CODE,
<!-- 项目编号 -->
CONTRACT_NUMBER,
<!-- 来源单号 -->
INCOME_NUMBER,
<!-- 收款单号 -->
SIGNING_DATE,
<!-- 收款日期 -->
SETTLEMENT_NUMBER,
<!-- 来源单号 -->
BILL_TYBE,
<!-- 票据类型 -->
BILL_NUMBER,
<!-- 发票号 -->
BILL_STATE,
<!-- 开票状态 -->
SIGNING_DATE,
<!-- 开票日期 -->
PARTY_A,
<!-- 客户名称 -->
CANCEL_STATUS,
<!-- 核销状态 -->
REVIEW_STATUS,
<!-- 审批状态 -->
TOTAL_CONTRACT_PRICE_INCLUDING,
<!-- 收款总额 -->
THIS_SETTLEMENT_TAX,
<!-- 税额 -->
THIS_SETTLEMENT_AMOUNT,
<!-- 不含税金额 -->
TAX_POINTS,
<!-- 税率 -->
TOTAL_CONTRACT_PRICE_INCLUDING,
<!-- 开票总额 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
...
...
@@ -216,7 +252,7 @@
UPDATED_TIME,
<!-- 记录修改时间 -->
DEP_CODE
<!-- 部门编码 -->
)
VALUES (#id#, #accountCode#, #companyCode#, #companyName#, #projName#, #projCode#, #
contractNumber#, #incomeNumber#, #signingDate#, #partyA#, #cancelStatus#, #reviewStatu
s#, #totalContractPriceIncluding#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #depCode#)
VALUES (#id#, #accountCode#, #companyCode#, #companyName#, #projName#, #projCode#, #
settlementNumber#, #billTybe#, #billNumber#, #billState#, #signingDate#, #partyA#, #reviewStatus#, #thisSettlementTax#, #thisSettlementAmount#, #taxPoint
s#, #totalContractPriceIncluding#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #depCode#)
</insert>
<delete
id=
"delete"
>
...
...
@@ -232,13 +268,17 @@
COMPANY_NAME = #companyName#,
<!-- 公司名称 -->
PROJ_NAME = #projName#,
<!-- 项目名称 -->
PROJ_CODE = #projCode#,
<!-- 项目编号 -->
CONTRACT_NUMBER = #contractNumber#,
<!-- 来源单号 -->
INCOME_NUMBER = #incomeNumber#,
<!-- 收款单号 -->
SIGNING_DATE = #signingDate#,
<!-- 收款日期 -->
SETTLEMENT_NUMBER = #settlementNumber#,
<!-- 来源单号 -->
BILL_TYBE = #billTybe#,
<!-- 票据类型 -->
BILL_NUMBER = #billNumber#,
<!-- 发票号 -->
BILL_STATE = #billState#,
<!-- 开票状态 -->
SIGNING_DATE = #signingDate#,
<!-- 开票日期 -->
PARTY_A = #partyA#,
<!-- 客户名称 -->
CANCEL_STATUS = #cancelStatus#,
<!-- 核销状态 -->
REVIEW_STATUS = #reviewStatus#,
<!-- 审批状态 -->
TOTAL_CONTRACT_PRICE_INCLUDING = #totalContractPriceIncluding#,
<!-- 收款总额 -->
THIS_SETTLEMENT_TAX = #thisSettlementTax#,
<!-- 税额 -->
THIS_SETTLEMENT_AMOUNT = #thisSettlementAmount#,
<!-- 不含税金额 -->
TAX_POINTS = #taxPoints#,
<!-- 税率 -->
TOTAL_CONTRACT_PRICE_INCLUDING = #totalContractPriceIncluding#,
<!-- 开票总额 -->
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
...
...
@@ -249,5 +289,32 @@
WHERE
ID = #id#
</update>
<select
id=
"queryconteractComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT DISTINCT
COMPANY_NAME as "companyName",
<!-- 所属公司 -->
PROJ_CODE as "projCode",
<!-- 项目编号 -->
PROJ_NAME as "projName",
<!-- 项目名称 -->
CONTRACT_NUMBER as "contractNumber",
<!-- 合同号 -->
CONTRACT_NAME as "contractName",
<!-- 合同名称 -->
SETTLEMENT_NUMBER as "settlementNumber",
<!-- 结算编号 -->
THIS_SETTLEMENT_TAX as "thisSettlementTax",
<!-- 税金 -->
THIS_SETTLEMENT_AMOUNT as "thisSettlementAmount",
<!-- 结算金额 -->
THIS_PRICE_TAX as "thisPriceTax"
<!-- 税价合计 -->
FROM ${hggpSchema}.HGCW008
WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"settlementType"
>
SETTLEMENT_TYPE = "2"
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
</isNotEmpty>
ORDER BY CONTRACT_NUMBER
</select>
</sqlMap>
src/main/webapp/HG/CW/HGCW01
2
.js
→
src/main/webapp/HG/CW/HGCW01
0
.js
View file @
1eabfc30
...
...
@@ -64,7 +64,7 @@ let query = function () {
*/
function
addFunc
()
{
JSColorbox
.
open
({
href
:
"HGCW01
2A?methodName=initLoad&efParentFormEname=HGCW012
"
,
href
:
"HGCW01
0A?methodName=initLoad&efParentFormEname=HGCW010
"
,
title
:
"<div style='text-align: center;'>结算单</div>"
,
width
:
"90%"
,
height
:
"90%"
,
...
...
@@ -82,7 +82,7 @@ function updateFunc() {
return
;
}
JSColorbox
.
open
({
href
:
"HGCW01
2B?methodName=initLoad&id="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW012
"
,
href
:
"HGCW01
0B?methodName=initLoad&id="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW010
"
,
title
:
"<div style='text-align: center;'>修改合同</div>"
,
width
:
"90%"
,
height
:
"90%"
,
...
...
@@ -100,7 +100,7 @@ function windowCallback() {
function
contractDetailFunc
(
id
)
{
JSColorbox
.
open
({
href
:
"HGCW01
2C?methodName=initLoad&id="
+
id
+
"&efParentFormEname=HGCW012
"
,
href
:
"HGCW01
0C?methodName=initLoad&id="
+
id
+
"&efParentFormEname=HGCW010
"
,
title
:
"<div style='text-align: center;'>合同详情</div>"
,
width
:
"90%"
,
height
:
"90%"
,
...
...
@@ -110,7 +110,7 @@ function contractDetailFunc(id) {
function
fileDetailFunc
(
id
)
{
JSColorbox
.
open
({
href
:
"HGCW999?methodName=initLoad&inqu_status-0-bizType=HT&inqu_status-0-matId="
+
id
+
"&efParentFormEname=HGCW01
2
"
,
href
:
"HGCW999?methodName=initLoad&inqu_status-0-bizType=HT&inqu_status-0-matId="
+
id
+
"&efParentFormEname=HGCW01
0
"
,
title
:
"<div style='text-align: center;'>附件清单</div>"
,
width
:
"80%"
,
height
:
"80%"
,
...
...
@@ -136,7 +136,7 @@ function submitFunc() {
ok
:
function
()
{
var
info
=
new
EiInfo
();
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"result"
));
EiCommunicator
.
send
(
"HGCW01
2
"
,
"submit"
,
info
,
{
EiCommunicator
.
send
(
"HGCW01
0
"
,
"submit"
,
info
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
...
...
src/main/webapp/HG/CW/HGCW01
2
.jsp
→
src/main/webapp/HG/CW/HGCW01
0
.jsp
View file @
1eabfc30
File moved
src/main/webapp/HG/CW/HGCW01
2
A.js
→
src/main/webapp/HG/CW/HGCW01
0
A.js
View file @
1eabfc30
...
...
@@ -73,7 +73,7 @@ function updateFunc() {
return
;
}
JSColorbox
.
open
({
href
:
"HGCW01
2B?methodName=initLoad&id="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW012
"
,
href
:
"HGCW01
0B?methodName=initLoad&id="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW010
"
,
title
:
"<div style='text-align: center;'>修改合同</div>"
,
width
:
"90%"
,
height
:
"90%"
,
...
...
@@ -91,7 +91,7 @@ function windowCallback() {
function
contractDetailFunc
(
id
)
{
JSColorbox
.
open
({
href
:
"HGCW01
2C?methodName=initLoad&id="
+
id
+
"&efParentFormEname=HGCW012
"
,
href
:
"HGCW01
0C?methodName=initLoad&id="
+
id
+
"&efParentFormEname=HGCW010
"
,
title
:
"<div style='text-align: center;'>合同详情</div>"
,
width
:
"90%"
,
height
:
"90%"
,
...
...
@@ -101,7 +101,7 @@ function contractDetailFunc(id) {
function
fileDetailFunc
(
id
)
{
JSColorbox
.
open
({
href
:
"HGCW999?methodName=initLoad&inqu_status-0-bizType=HT&inqu_status-0-matId="
+
id
+
"&efParentFormEname=HGCW01
2
"
,
href
:
"HGCW999?methodName=initLoad&inqu_status-0-bizType=HT&inqu_status-0-matId="
+
id
+
"&efParentFormEname=HGCW01
0
"
,
title
:
"<div style='text-align: center;'>附件清单</div>"
,
width
:
"80%"
,
height
:
"80%"
,
...
...
@@ -127,7 +127,7 @@ function submitFunc() {
ok
:
function
()
{
var
info
=
new
EiInfo
();
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"result"
));
EiCommunicator
.
send
(
"HGCW01
2
"
,
"submit"
,
info
,
{
EiCommunicator
.
send
(
"HGCW01
0
"
,
"submit"
,
info
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
...
...
src/main/webapp/HG/CW/HGCW01
2
A.jsp
→
src/main/webapp/HG/CW/HGCW01
0
A.jsp
View file @
1eabfc30
...
...
@@ -11,10 +11,10 @@
<EF:EFGrid
blockId=
"detail1"
autoDraw=
"override"
checkMode=
"row"
isFloat=
"true"
copyToAdd=
"false"
>
<EF:EFColumn
ename=
"rowNo"
cname=
"行号"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"所属公司"
width=
"120"
serviceName=
"HGCW01
2
"
methodName=
"queryconteractComboBox"
resultId=
"conteract_combo_box"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编号"
width=
"120"
serviceName=
"HGCW01
2
"
methodName=
"queryconteractComboBox"
resultId=
"conteract_combo_box"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
serviceName=
"HGCW01
2
"
methodName=
"queryconteractComboBox"
resultId=
"conteract_combo_box"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"contractNumber"
cname=
"合同号"
width=
"120"
serviceName=
"HGCW01
2
"
methodName=
"queryconteractComboBox"
resultId=
"conteract_combo_box"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"所属公司"
width=
"120"
serviceName=
"HGCW01
0
"
methodName=
"queryconteractComboBox"
resultId=
"conteract_combo_box"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编号"
width=
"120"
serviceName=
"HGCW01
0
"
methodName=
"queryconteractComboBox"
resultId=
"conteract_combo_box"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
serviceName=
"HGCW01
0
"
methodName=
"queryconteractComboBox"
resultId=
"conteract_combo_box"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"contractNumber"
cname=
"合同号"
width=
"120"
serviceName=
"HGCW01
0
"
methodName=
"queryconteractComboBox"
resultId=
"conteract_combo_box"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"contractName"
cname=
"合同名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"settlementNumber"
cname=
"结算编号"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisPriceTax"
cname=
"结算价税合计金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
...
...
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