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
3faec388
Commit
3faec388
authored
Jul 09, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
4f1b8139
ae07fcdd
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
241 additions
and
61 deletions
+241
-61
HGCG003.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003.xml
+7
-1
ServiceHGCW012.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW012.java
+14
-6
ServiceHGCW012A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW012A.java
+29
-1
ServiceHGCW012C.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW012C.java
+58
-0
HGCW006.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW006.xml
+12
-0
HGCW012.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
+1
-1
HGCW012A.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
+15
-3
HGCWTools.java
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
+25
-0
ServiceHGKC006.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
+3
-3
ServiceHGYX001C.java
...java/com/baosight/hggp/hg/yx/service/ServiceHGYX001C.java
+1
-1
HGYX001C.xml
src/main/java/com/baosight/hggp/hg/yx/sql/HGYX001C.xml
+2
-8
AuthenticationInfo.java
...sight/xservices/xs/authentication/AuthenticationInfo.java
+21
-8
HGCW012.js
src/main/webapp/HG/CW/HGCW012.js
+4
-21
HGCW012.jsp
src/main/webapp/HG/CW/HGCW012.jsp
+4
-4
HGCW012A.js
src/main/webapp/HG/CW/HGCW012A.js
+32
-1
HGCW012C.jsp
src/main/webapp/HG/CW/HGCW012C.jsp
+1
-1
HGKC013.js
src/main/webapp/HG/KC/HGKC013.js
+12
-2
No files found.
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG003.xml
View file @
3faec388
...
...
@@ -77,7 +77,7 @@
SUP_CODE = #supCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supName"
>
SUP_NAME
= #supName#
SUP_NAME
like concat('%',#supName#,'%')
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"purUserId"
>
PUR_USER_ID = #purUserId#
...
...
@@ -109,6 +109,12 @@
<isNotEmpty
prepend=
" AND "
property=
"inventTypeDetails"
>
INVENT_TYPE_DETAIL IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"inventTypeDetails"
>
#inventTypeDetails[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"signingDateFrom"
>
RECEIVE_DATE >= #signingDateFrom#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"signingDateTo"
>
RECEIVE_DATE
<
= #signingDateTo#
</isNotEmpty>
</sql>
<sql
id=
"idCondition"
>
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW012.java
View file @
3faec388
...
...
@@ -148,7 +148,7 @@ public class ServiceHGCW012 extends ServiceBase {
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"采购收票"
,
operType
=
"插入"
,
operDesc
=
"生成采购收票"
)
@OperationLogAnnotation
(
operModul
=
"采购收票"
,
operType
=
"插入"
,
operDesc
=
"生成采购收票
劳务合同
"
)
public
EiInfo
select
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
"resultA"
).
getRows
();
...
...
@@ -169,7 +169,8 @@ public class ServiceHGCW012 extends ServiceBase {
hgcw012
.
setCompanyName
(
userVO
.
getUsername
());
hgcw012
.
setReviewStatus
(
0
);
hgcw012
.
setBillState
(
1
);
hgcw012
.
setSigningDate
(
DateUtils
.
shortDate
());
//hgcw012.setSigningDate(DateUtils.shortDate());
hgcw012
.
setReceiveDate
(
DateUtils
.
shortDate
());
BigDecimal
totalContractPriceIncluding
=
BigDecimal
.
ZERO
;
StringBuffer
settlementNumber
=
new
StringBuffer
();
Map
<
String
,
BigDecimal
>
rowMap
=
new
HashMap
<>();
...
...
@@ -244,7 +245,7 @@ public class ServiceHGCW012 extends ServiceBase {
}
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"采购收票"
,
operType
=
"插入"
,
operDesc
=
"生成采购收票"
)
public
EiInfo
selecta
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
"result"
).
getRows
();
...
...
@@ -265,7 +266,9 @@ public class ServiceHGCW012 extends ServiceBase {
hgcw012
.
setCompanyName
(
userVO
.
getUsername
());
hgcw012
.
setReviewStatus
(
0
);
hgcw012
.
setBillState
(
1
);
hgcw012
.
setSigningDate
(
DateUtils
.
shortDate
());
hgcw012
.
setBillTybe
(
1
);
//hgcw012.setSigningDate(DateUtils.shortDate());
hgcw012
.
setReceiveDate
(
DateUtils
.
shortDate
());
BigDecimal
totalContractPriceIncluding
=
BigDecimal
.
ZERO
;
StringBuffer
settlementNumber
=
new
StringBuffer
();
Map
<
String
,
BigDecimal
>
rowMap
=
new
HashMap
<>();
...
...
@@ -332,6 +335,7 @@ public class ServiceHGCW012 extends ServiceBase {
}
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"采购收票"
,
operType
=
"插入"
,
operDesc
=
"生成租赁合同"
)
public
EiInfo
selectb
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
"resultB"
).
getRows
();
...
...
@@ -352,7 +356,9 @@ public class ServiceHGCW012 extends ServiceBase {
hgcw012
.
setCompanyName
(
userVO
.
getUsername
());
hgcw012
.
setReviewStatus
(
0
);
hgcw012
.
setBillState
(
1
);
hgcw012
.
setSigningDate
(
DateUtils
.
shortDate
());
hgcw012
.
setBillTybe
(
1
);
//hgcw012.setSigningDate(DateUtils.shortDate());
hgcw012
.
setReceiveDate
(
DateUtils
.
shortDate
());
BigDecimal
totalContractPriceIncluding
=
BigDecimal
.
ZERO
;
StringBuffer
settlementNumber
=
new
StringBuffer
();
Map
<
String
,
BigDecimal
>
rowMap
=
new
HashMap
<>();
...
...
@@ -378,7 +384,9 @@ public class ServiceHGCW012 extends ServiceBase {
//生成明细表
for
(
HGCW013
hgcw013
:
hgcw013List
)
{
hgcw013
.
setMainId
(
hgcw012
.
getId
());
HGCWTools
.
HgCw006
.
deductionAmount
(
hgcw013
.
getSettlementNumber
(),
rowMap
.
get
(
hgcw013
.
getSettlementNumber
()));
hgcw013
.
setId
(
null
);
this
.
addHGCW013
(
hgcw013
);
}
}
else
{
HGCW012
hgcw012
=
HGCWTools
.
HgCw012
.
getId
(
mainId
);
...
...
@@ -393,7 +401,7 @@ public class ServiceHGCW012 extends ServiceBase {
for
(
HGCW013
hgcw013
:
hgcw013List
)
{
hgcw013
.
setMainId
(
hgcw012
.
getId
());
// 反写金额
HGCWTools
.
HgCw00
8
.
deductionAmount
(
hgcw013
.
getSettlementNumber
(),
rowMap
.
get
(
hgcw013
.
getSettlementNumber
()));
HGCWTools
.
HgCw00
6
.
deductionAmount
(
hgcw013
.
getSettlementNumber
(),
rowMap
.
get
(
hgcw013
.
getSettlementNumber
()));
this
.
addHGCW013
(
hgcw013
);
}
List
<
HGCW013
>
hgcw013s
=
HGCWTools
.
HgCw013
.
getMainId
(
hgcw012
.
getId
());
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW012A.java
View file @
3faec388
package
com
.
baosight
.
hggp
.
hg
.
cw
.
service
;
import
com.baosight.bpm.util.StringUtil
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.hg.cg.domain.HGCG003
;
import
com.baosight.hggp.hg.cw.domain.*
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
...
...
@@ -44,6 +47,14 @@ public class ServiceHGCW012A extends ServiceBase {
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
String
signingDateFrom
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateFrom"
);
String
signingDateTo
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
);
if
(!
signingDateFrom
.
isEmpty
()){
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateFrom"
,
DateUtils
.
formatShort
(
signingDateFrom
));
}
if
(!
signingDateTo
.
isEmpty
()){
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
,
DateUtils
.
formatShort
(
signingDateTo
));
}
inInfo
=
super
.
query
(
inInfo
,
HGCG003
.
QUERY
,
new
HGCG003
());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
@@ -54,7 +65,16 @@ public class ServiceHGCW012A extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"采购开票"
,
operType
=
"查询"
,
operDesc
=
"查询劳务"
)
public
EiInfo
queryA
(
EiInfo
inInfo
)
{
try
{
String
signingDateFrom
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateFrom"
);
String
signingDateTo
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
);
if
(!
signingDateFrom
.
isEmpty
()){
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateFrom"
,
DateUtils
.
formatShort
(
signingDateFrom
));
}
if
(!
signingDateTo
.
isEmpty
()){
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
,
DateUtils
.
formatShort
(
signingDateTo
));
}
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW002
.
FIELD_CONTRACT_TYPE
,
2
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW006
.
FIELD_REMAINING_AMOUNT
,
0
);
inInfo
=
super
.
query
(
inInfo
,
HGCW012A
.
QUERY
,
new
HGCW012A
(),
false
,
new
HGCW012A
().
eiMetadata
,
EiConstant
.
queryBlock
,
"resultA"
,
"resultA"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
@@ -65,7 +85,15 @@ public class ServiceHGCW012A extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"采购开票"
,
operType
=
"查询"
,
operDesc
=
"查询租赁"
)
public
EiInfo
queryB
(
EiInfo
inInfo
)
{
try
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW002
.
FIELD_CONTRACT_TYPE
,
2
);
String
signingDateFrom
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateFrom"
);
String
signingDateTo
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
);
if
(!
signingDateFrom
.
isEmpty
()){
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateFrom"
,
DateUtils
.
formatShort
(
signingDateFrom
));
}
if
(!
signingDateTo
.
isEmpty
()){
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
"signingDateTo"
,
DateUtils
.
formatShort
(
signingDateTo
));
}
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGCW006
.
FIELD_REMAINING_AMOUNT
,
0
);
inInfo
=
super
.
query
(
inInfo
,
HGCW006
.
QUERY
,
new
HGCW006
(),
false
,
new
HGCW006
().
eiMetadata
,
EiConstant
.
queryBlock
,
"resultB"
,
"resultB"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW012C.java
0 → 100644
View file @
3faec388
package
com
.
baosight
.
hggp
.
hg
.
cw
.
service
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.hg.cw.domain.HGCW012
;
import
com.baosight.hggp.hg.cw.domain.HGCW015
;
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
;
import
java.util.Arrays
;
/**
* @author yukang
* @date 2024年05月06日 18:22
*/
public
class
ServiceHGCW012C
extends
ServiceBase
{
/**
* 画面初始化
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"账期维护"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
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
HGCW015
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
/**
* 查询操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"账期维护"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGCW012
.
QUERY
,
new
HGCW012
());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
}
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW006.xml
View file @
3faec388
...
...
@@ -144,6 +144,18 @@
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"remainingAmount"
>
REMAINING_AMOUNT > #remainingAmount#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"signingDateFrom"
>
SIGNING_DATE >= #signingDateFrom#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"signingDateTo"
>
SIGNING_DATE
<
= #signingDateTo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supName"
>
PARTY_B like concat('%',#supName#,'%')
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
View file @
3faec388
...
...
@@ -175,7 +175,7 @@
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID
a
sc
ID
de
sc
</isEmpty>
</dynamic>
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012A.xml
View file @
3faec388
...
...
@@ -42,6 +42,7 @@
T1.COMPANY_NAME as "companyName",
<!-- 公司名称 -->
T1.PROJ_CODE as "projCode",
<!-- 项目编码 -->
T1.PROJ_NAME as "projName",
<!-- 项目名称 -->
B.PARTY_B AS "partyB",
<!-- 乙方名称 -->
T1.CONTRACT_NUMBER as "contractNumber",
<!-- 合同号 -->
T1.CONTRACT_NAME as "contractName",
<!-- 合同名称 -->
T1.SETTLEMENT_NUMBER as "settlementNumber",
<!-- 结算编号 -->
...
...
@@ -182,15 +183,26 @@
B.CONTRACT_TYPE = #contractType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
T1.COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"remainingAmount"
>
T1.REMAINING_AMOUNT > #remainingAmount#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"signingDateFrom"
>
T1.CONTRACT_DATE >= #signingDateFrom#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"signingDateTo"
>
T1.CONTRACT_DATE
<
= #signingDateTo#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"supName"
>
B.PARTY_B like concat('%',#supName#,'%')
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW008"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGCW008 T1 LEFT JOIN
${hggpSchema}.HGCW002 B
FROM ${hggpSchema}.HGCW008 T1 LEFT JOIN ${hggpSchema}.HGCW002 B
ON T1.PROJ_CODE = B.PROJ_CODE
AND T1.CONTRACT_NUMBER = B.CONTRACT_NUMBER
AND T1.COMPANY_CODE = B.COMPANY_CODE
...
...
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
View file @
3faec388
...
...
@@ -137,6 +137,29 @@ public class HGCWTools {
});
return
results
.
get
(
0
);
}
public
static
void
deductionAmount
(
String
settlementNumber
,
BigDecimal
deductionAmount
)
{
AssertUtils
.
isNull
(
settlementNumber
,
"来源单号不能为空!"
);
// if (deductionAmount.compareTo(new BigDecimal(BigInteger.ZERO)) <= 0) {
// throw new PlatException("扣款金额不能小于等于0!");
// }
List
<
HGCW006
>
results
=
DaoBase
.
getInstance
().
query
(
HGCW008
.
QUERY
,
new
HashMap
<
String
,
Object
>(){
{
put
(
"contractNumber"
,
settlementNumber
);}
});
if
(
CollectionUtils
.
isEmpty
(
results
))
{
throw
new
PlatException
(
"找不到对应的结算单!"
);
}
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"#.000"
);
HGCW006
hgcw006
=
results
.
get
(
0
);
BigDecimal
remainingAmount
=
new
BigDecimal
(
decimalFormat
.
format
(
hgcw006
.
getRemainingAmount
().
subtract
(
deductionAmount
)));
if
(
remainingAmount
.
compareTo
(
new
BigDecimal
(
BigInteger
.
ZERO
))
<
0
)
{
throw
new
PlatException
(
"扣款金额不能大于结算单剩余金额!"
);
}
hgcw006
.
setRemainingAmount
(
remainingAmount
);
DaoUtils
.
update
(
"HGCW006.updateDeductionAmount"
,
hgcw006
);
}
}
public
static
class
HgCw007
{
...
...
@@ -525,6 +548,7 @@ public class HGCWTools {
HGCW013
.
setSettlementNumber
(
settlementNumber
);
HGCW013
.
setThisSettlementTax
(
thisSettlementTax
.
toString
());
HGCW013
.
setThisSettlementAmount
(
thisSettlementAmount
.
toString
());
HGCW013
.
setPartyA
(
row
.
get
(
"partyB"
).
toString
());
if
(
mainId
!=
null
)
{
HGCW013
.
setMainId
(
mainId
);
}
...
...
@@ -550,6 +574,7 @@ public class HGCWTools {
HGCW013
.
setSettlementNumber
(
settlementNumber
);
HGCW013
.
setThisSettlementTax
(
thisSettlementTax
.
toString
());
HGCW013
.
setThisSettlementAmount
(
thisSettlementAmount
.
toString
());
HGCW013
.
setPartyA
(
row
.
get
(
"partyB"
).
toString
());
if
(
mainId
!=
null
)
{
HGCW013
.
setMainId
(
mainId
);
}
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
View file @
3faec388
...
...
@@ -141,9 +141,9 @@ public class ServiceHGKC006 extends ServiceBase {
*/
private
void
add
(
HGKC006
hgkc006
)
throws
Exception
{
hgkc006
.
setOtherEnterNo
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
OTHER_ENTER_NO
));
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
hgkc006
.
setCompanyCode
(
userVO
.
getUsercode
());
hgkc006
.
setCompanyName
(
userVO
.
getUsername
());
//
UserVO userVO = HGCWTools.HgCw002.getUserCompany();
//
hgkc006.setCompanyCode(userVO.getUsercode());
//
hgkc006.setCompanyName(userVO.getUsername());
hgkc006
.
setSource
(
InventorySource
.
MANUAL_ENTRY
.
getCode
());
hgkc006
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
WTJ
);
DaoUtils
.
insert
(
HGKC006
.
INSERT
,
hgkc006
);
...
...
src/main/java/com/baosight/hggp/hg/yx/service/ServiceHGYX001C.java
View file @
3faec388
...
...
@@ -54,7 +54,7 @@ public class ServiceHGYX001C extends ServiceEPBase {
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGYX001
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGPZ004
.
FIELD_INVENT_TYPE_DETAILS
,
InventTypeDetailEnum
.
getInentTypeTwo
());
return
super
.
query
(
inInfo
,
HGYX001C
.
QUERY
,
new
HGYX001C
());
}
}
src/main/java/com/baosight/hggp/hg/yx/sql/HGYX001C.xml
View file @
3faec388
...
...
@@ -4,14 +4,8 @@
<sql
id=
"column"
>
ID as "id",
ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
<!--ACCOUNT_CODE as "accountCode", 企业编码 -->
<!--DEP_CODE as "depCode", 部门编码 -->
DELETE_FLAG as "deleteFlag",
<!-- 0-未删除,1-已删除 -->
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
...
...
src/main/java/com/baosight/xservices/xs/authentication/AuthenticationInfo.java
View file @
3faec388
...
...
@@ -12,13 +12,7 @@ import com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
com.baosight.xservices.xs.util.LoginUserDetails
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
...
...
@@ -574,12 +568,16 @@ public class AuthenticationInfo {
BigDecimal
retLeaf
=
(
BigDecimal
)
retResultMap
.
get
(
"leaf"
);
BigDecimal
menuDecimal
=
new
BigDecimal
(
"2"
);
BigDecimal
leafDecimal
=
new
BigDecimal
(
"1"
);
String
parent
=
(
String
)
retResultMap
.
get
(
"parent"
);
if
(
retLeaf
!=
null
&&
menuDecimal
.
equals
(
retLeaf
))
{
Map
paramMap
=
new
HashMap
();
paramMap
.
put
(
"node"
,
retResultMap
.
get
(
"label"
).
toString
());
List
childPageForMenu
=
getDao
().
query
(
"XSMenu.queryForRecursiveChildPage"
,
paramMap
);
boolean
flag
=
false
;
List
childList
=
new
LinkedList
();
if
(
childPageForMenu
!=
null
&&
childPageForMenu
.
size
()
>
0
)
{
//APP需要遍历所有子菜单
if
(
parent
.
equals
(
"APP"
)){
label85:
for
(
int
j
=
0
;
j
<
pageAuthList
.
size
();
++
j
)
{
Map
pageAuthMap
=
(
Map
)
pageAuthList
.
get
(
j
);
...
...
@@ -588,12 +586,27 @@ public class AuthenticationInfo {
Map
childPageMap
=
(
Map
)
childPageForMenu
.
get
(
k
);
if
(
childPageMap
.
get
(
"label"
).
toString
().
equals
(
pageAuthMap
.
get
(
"label"
).
toString
()))
{
flag
=
true
;
childList
.
add
(
pageAuthMap
);
}
}
}
}
else
{
label85:
for
(
int
j
=
0
;
j
<
pageAuthList
.
size
();
++
j
)
{
Map
pageAuthMap
=
(
Map
)
pageAuthList
.
get
(
j
);
for
(
int
k
=
0
;
k
<
childPageForMenu
.
size
();
++
k
)
{
Map
childPageMap
=
(
Map
)
childPageForMenu
.
get
(
k
);
if
(
childPageMap
.
get
(
"label"
).
toString
().
equals
(
pageAuthMap
.
get
(
"label"
).
toString
()))
{
flag
=
true
;
childList
.
add
(
pageAuthMap
);
break
label85
;
}
}
}
}
retResultMap
.
put
(
"childMenu"
,
childList
);
}
if
(
flag
)
{
menuAndPageListForTree
.
add
(
retResultMap
);
}
...
...
src/main/webapp/HG/CW/HGCW012.js
View file @
3faec388
...
...
@@ -21,11 +21,10 @@ $(function() {
+
'onclick="fileDetailFunc('
+
item
.
id
+
')">附件详情</a>'
;
return
template
;
}
}
],
}],
loadComplete
:
function
(
e
)
{
$
(
"#SELECT_BILL"
).
on
(
"click"
,
addFunc
);
$
(
"#BTN_UPDATE"
).
on
(
"click"
,
updateFunc
);
//
$("#BTN_UPDATE").on("click",updateFunc);
$
(
"#SUBMIT"
).
on
(
"click"
,
submitFunc
);
$
(
"#B_SAVE"
).
on
(
"click"
,
saveFunc
);
},
...
...
@@ -123,23 +122,7 @@ function saveFunc() {
}
}
/**
* 修改
*/
function
updateFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
message
(
"请选择一条数据"
);
return
;
}
JSColorbox
.
open
({
href
:
"HGCW010B?methodName=initLoad&id="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW010"
,
title
:
"<div style='text-align: center;'>修改合同</div>"
,
width
:
"90%"
,
height
:
"90%"
,
callbackName
:
windowCallback
});
}
function
windowCallback
()
{
...
...
@@ -151,7 +134,7 @@ function windowCallback() {
function
contractDetailFunc
(
id
)
{
JSColorbox
.
open
({
href
:
"HGCW012
A?methodName=initLoad&efParentFormEname=HGCW010
"
,
href
:
"HGCW012
C?methodName=initLoad&inqu_status-0-matId="
+
id
+
"&efParentFormEname=HGCW012
"
,
title
:
"<div style='text-align: center;'>明细详情</div>"
,
width
:
"90%"
,
height
:
"90%"
,
...
...
src/main/webapp/HG/CW/HGCW012.jsp
View file @
3faec388
...
...
@@ -28,16 +28,16 @@
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
isFloat=
"true"
autoBind=
"false"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"partyA"
cname=
"供应商名称"
width=
"
1
20"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"settlementNumber"
cname=
"来源单号"
width=
"
12
0"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"partyA"
cname=
"供应商名称"
width=
"
2
20"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"settlementNumber"
cname=
"来源单号"
width=
"
20
0"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFComboColumn
ename=
"billTybe"
cname=
"票据类型"
width=
"120"
align=
"center"
required=
"true"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"true"
>
<EF:EFCodeOption
codeName=
"hggp.cw.billTybe"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"receiveDate"
cname=
"收票日期"
width=
"120"
enable=
"true"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyy
-MM-
dd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyy
MM
dd']"
required=
"true"
/>
<EF:EFColumn
ename=
"signingDate"
cname=
"开票日期"
width=
"120"
enable=
"true"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyy
-MM-
dd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyy
MM
dd']"
required=
"true"
/>
<EF:EFColumn
ename=
"billNumber"
cname=
"发票号"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"taxPoints"
cname=
"税率"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"不含税金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
...
...
src/main/webapp/HG/CW/HGCW012A.js
View file @
3faec388
...
...
@@ -37,7 +37,15 @@ $(window).load(function () {
* 查询
*/
let
query
=
function
()
{
if
(
selectedTab
==
0
){
resultGrid
.
dataSource
.
page
(
1
);
}
else
if
(
selectedTab
==
1
){
resultAGrid
.
dataSource
.
page
(
1
);
}
else
if
(
selectedTab
==
2
){
resultBGrid
.
dataSource
.
page
(
1
);
}
}
function
cancelFunc
()
{
...
...
@@ -124,7 +132,14 @@ function btnSaveFunc(btnNode, gridNode) {
});
}
}
var
selectedTab
=
''
;
function
onSelect
(
e
)
{
var
selecTab
=
e
.
item
;
// e.item是被选中的标签DOM元素
selectedTab
=
$
(
"#info"
).
find
(
"li"
).
index
(
selecTab
);
// 获取被选中标签的索引
//var selectedTabText = $(selectedTab).find("a").text(); // 获取被选中标签的文本
}
$
(
function
()
{
$
(
"#SEARCH"
).
click
(
function
()
{
var
ei
=
new
EiInfo
();
...
...
@@ -236,10 +251,18 @@ $(function () {
{
field
:
"projName"
,
title
:
"项目名称"
,
width
:
200
,
headerTemplate
:
"<span style='color: '>项目名称 </span>"
,
locked
:
false
},
{
field
:
"partyB"
,
title
:
"供应商"
,
hidden
:
true
,
headerTemplate
:
"<span style='color: '>供应商 </span>"
,
locked
:
false
},
{
field
:
"settlementNumber"
,
title
:
"结算编号"
,
headerTemplate
:
"<span style='color: '>结算编号 </span>"
,
...
...
@@ -328,6 +351,13 @@ $(function () {
locked
:
false
},
{
field
:
"partyB"
,
title
:
"供应商"
,
hidden
:
true
,
headerTemplate
:
"<span style='color: '>供应商 </span>"
,
locked
:
false
},
{
field
:
"contractNumber"
,
title
:
"结算编号"
,
headerTemplate
:
"<span style='color: '>结算编号 </span>"
,
...
...
@@ -403,7 +433,8 @@ $(function () {
} else if (e.name == "info-tab-3") {
$("#info-tab-3").click();
}*/
}
},
select
:
onSelect
// 绑定select事件处理函数
}
}
});
src/main/webapp/HG/CW/HGCW012C.jsp
View file @
3faec388
...
...
@@ -6,7 +6,7 @@
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<head>
</head>
<EF:EFPage
title=
"
销售开票
清单"
>
<EF:EFPage
title=
"
详情
清单"
>
<EF:EFInput
cname=
"隐藏条件"
ename=
"mainId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
isFloat=
"true"
autoBind=
"false"
checkMode=
"row"
>
...
...
src/main/webapp/HG/KC/HGKC013.js
View file @
3faec388
...
...
@@ -87,6 +87,10 @@ $(function () {
return
_
.
filter
(
options
.
values
,
function
(
item
)
{
return
item
[
"valueField"
]
===
calloutCompanyCode
;
})
}
else
if
(
allotType
===
"2"
&&
calloutCompanyCode
){
return
_
.
filter
(
options
.
values
,
function
(
item
)
{
return
item
[
"valueField"
]
!==
calloutCompanyCode
;
})
}
return
options
.
values
;
},
...
...
@@ -106,8 +110,14 @@ $(function () {
filter
:
function
(
options
)
{
// let calloutCompanyCode = options.model['calloutCompanyCode'];
// let callinCompanyCode = options.model['callinCompanyCode'];
// let calloutWhCode = options.model['calloutWhCode'];
// if (callinCompanyCode == calloutCompanyCode){
let
calloutWhCode
=
options
.
model
[
'calloutWhCode'
];
let
allotType
=
options
.
model
[
'allotType'
];
if
(
calloutWhCode
&&
allotType
===
"1"
){
return
_
.
filter
(
whInCodeBox
,
function
(
item
)
{
return
item
[
"valueField"
]
!=
calloutWhCode
;
})
}
//if (callinCompanyCode == calloutCompanyCode){
// return _.filter(whCodeBox, function (item) {
// return item["param1Field"]===callinCompanyCode && item["valueField"]!=calloutWhCode;
// })
...
...
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