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
37d3052d
Commit
37d3052d
authored
Jun 28, 2024
by
13420
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
租赁合同乙方应该为下拉选项,合同甲乙方公司调整,租赁合同调整
parent
9dfd7be3
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
157 additions
and
66 deletions
+157
-66
ServiceHGCW002A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW002A.java
+17
-33
ServiceHGCW006A.java
...java/com/baosight/hggp/hg/cw/service/ServiceHGCW006A.java
+34
-11
HGCW006A.js
src/main/webapp/HG/CW/HGCW006A.js
+32
-0
HGCW006A.jsp
src/main/webapp/HG/CW/HGCW006A.jsp
+11
-1
HGCW010.js
src/main/webapp/HG/CW/HGCW010.js
+56
-17
HGCW010.jsp
src/main/webapp/HG/CW/HGCW010.jsp
+4
-1
HGCW010A.jsp
src/main/webapp/HG/CW/HGCW010A.jsp
+1
-1
HGCW010B.jsp
src/main/webapp/HG/CW/HGCW010B.jsp
+1
-1
HGCW010C.jsp
src/main/webapp/HG/CW/HGCW010C.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW002A.java
View file @
37d3052d
...
...
@@ -3,12 +3,14 @@ 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.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cw.domain.HGCW002
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.pz.domain.HGPZ002
;
import
com.baosight.hggp.hg.pz.domain.HGPZ003
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.CommonMethod
;
...
...
@@ -71,24 +73,15 @@ public class ServiceHGCW002A extends ServiceBase {
});
}
}
else
if
(
contractCategory
.
equals
(
"2"
))
{
List
<
Org
>
orgList
=
HGXSTools
.
XsOrg
.
queryByUser
();
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
Org
org
=
orgList
.
get
(
0
);
if
(!
org
.
getOrgType
().
equals
(
"company"
))
{
//如果不是公司公司,则找到上一级
Org
org1
=
HGXSTools
.
XsOrg
.
queryCompany
(
org
.
getOrgId
());
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org1
.
getOrgId
());
userVO
.
setUsername
(
org1
.
getOrgCname
());
userVOList
.
add
(
userVO
);
}
else
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org
.
getOrgId
());
userVO
.
setUsername
(
org
.
getOrgCname
());
userVOList
.
add
(
userVO
);
List
<
Company
>
list
=
UserSessionUtils
.
getRoleCompany
();
for
(
Company
c:
list
)
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
c
.
getCompanyCode
());
userVO
.
setUsername
(
c
.
getCompanyName
());
userVOList
.
add
(
userVO
);
}
}
}
inInfo
.
addBlock
(
"partyAResult"
).
addRows
(
userVOList
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"甲方名称查询失败"
);
...
...
@@ -106,24 +99,15 @@ public class ServiceHGCW002A extends ServiceBase {
List
<
UserVO
>
userVOList
=
new
ArrayList
<>();
String
contractCategory
=
inInfo
.
getString
(
"contractCategory"
);
if
(
contractCategory
.
equals
(
"1"
))
{
List
<
Org
>
orgList
=
HGXSTools
.
XsOrg
.
queryByUser
();
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
Org
org
=
orgList
.
get
(
0
);
if
(!
org
.
getOrgType
().
equals
(
"company"
))
{
//如果不是公司公司,则找到上一级
Org
org1
=
HGXSTools
.
XsOrg
.
queryCompany
(
org
.
getOrgId
());
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org1
.
getOrgId
());
userVO
.
setUsername
(
org1
.
getOrgCname
());
userVOList
.
add
(
userVO
);
}
else
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org
.
getOrgId
());
userVO
.
setUsername
(
org
.
getOrgCname
());
userVOList
.
add
(
userVO
);
}
List
<
Company
>
list
=
UserSessionUtils
.
getRoleCompany
();
for
(
Company
c:
list
)
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
c
.
getCompanyCode
());
userVO
.
setUsername
(
c
.
getCompanyName
());
userVOList
.
add
(
userVO
);
}
}
else
if
(
contractCategory
.
equals
(
"2"
))
{
}
else
if
(
contractCategory
.
equals
(
"2"
))
{
List
<
HGPZ003
>
hgpz003List
=
HGCWTools
.
HgCw002
.
list
(
1
);
if
(
CollectionUtils
.
isNotEmpty
(
hgpz003List
))
{
hgpz003List
.
forEach
(
hgpz003
->
{
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW006A.java
View file @
37d3052d
...
...
@@ -2,11 +2,14 @@ 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.security.UserSessionUtils
;
import
com.baosight.hggp.hg.cw.domain.HGCW006
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.pz.domain.HGPZ002
;
import
com.baosight.hggp.hg.pz.domain.HGPZ003
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.CommonMethod
;
...
...
@@ -61,16 +64,13 @@ public class ServiceHGCW006A extends ServiceBase {
Org
org
=
orgList
.
get
(
0
);
if
(!
org
.
getOrgType
().
equals
(
"company"
))
{
//如果不是公司公司,则找到上一级
Org
org1
=
HGXSTools
.
XsOrg
.
queryCompany
(
org
.
getOrgId
());
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org1
.
getOrgId
());
userVO
.
setUsername
(
org1
.
getOrgCname
());
userVOList
.
add
(
userVO
);
}
else
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
org
.
getOrgId
());
userVO
.
setUsername
(
org
.
getOrgCname
());
userVOList
.
add
(
userVO
);
List
<
Company
>
list
=
UserSessionUtils
.
getRoleCompany
();
for
(
Company
c:
list
)
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
c
.
getCompanyCode
());
userVO
.
setUsername
(
c
.
getCompanyName
());
userVOList
.
add
(
userVO
);
}
}
}
inInfo
.
addBlock
(
"partyAResult"
).
addRows
(
userVOList
);
...
...
@@ -79,5 +79,28 @@ public class ServiceHGCW006A extends ServiceBase {
}
return
inInfo
;
}
/**
* 乙方名称查询
* @param inInfo
* @return
*/
public
EiInfo
partyBQuery
(
EiInfo
inInfo
)
{
try
{
List
<
UserVO
>
userVOList
=
new
ArrayList
<>();
String
contractCategory
=
inInfo
.
getString
(
"contractCategory"
);
List
<
HGPZ003
>
hgpz003List
=
HGCWTools
.
HgCw002
.
list
(
1
);
if
(
CollectionUtils
.
isNotEmpty
(
hgpz003List
))
{
hgpz003List
.
forEach
(
hgpz003
->
{
UserVO
userVO
=
new
UserVO
();
userVO
.
setUsercode
(
hgpz003
.
getSupCode
());
userVO
.
setUsername
(
hgpz003
.
getSupName
());
userVOList
.
add
(
userVO
);
});
}
inInfo
.
addBlock
(
"partyAResult"
).
addRows
(
userVOList
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"乙方名称查询失败"
);
}
return
inInfo
;
}
}
src/main/webapp/HG/CW/HGCW006A.js
View file @
37d3052d
...
...
@@ -126,6 +126,38 @@ $(function() {
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyA"
)
,
partyA
)
e
.
preventDefault
();
// 不使用默认的回填逻辑
}
},
"popupInputPartyB"
:
{
/**
* EFGrid 查询时触发的事件,通常在此处,设置查询条件
* 注意: 必须返回一个EiInfo,作为初始查询条件
* 配置了query时,默认每次打开窗口都会进行一次查询
*/
query
:
function
(
e
)
{
console
.
log
(
"Step"
+
(
++
i
)
+
": ----query----"
);
// 将自定义div中的字段构造成查询条件 EiInfo
// var queryInfo = EiInfo.build("#result-0-contractCategory");
var
info
=
new
EiInfo
();
return
info
;
},
/**
* grid中的数据回填时触发的事件
* @param e 回填数据事件
* e.sender 弹出窗口对象
* e.grid 弹出的grid对象
* e.model 选中的数据行model
*/
backFill
:
function
(
e
)
{
console
.
log
(
"Step"
+
(
++
i
)
+
": ----backFill----"
);
// 回填数据
var
model
=
e
.
model
;
// var data = model.toJSON();
console
.
log
(
model
);
var
partyB
=
model
.
usercode
+
"-"
+
model
.
username
;
$
(
"#result-0-partyB"
).
val
(
partyB
);
IPLAT
.
EFPopupInput
.
text
(
$
(
"#popupInputPartyB"
)
,
partyB
)
e
.
preventDefault
();
// 不使用默认的回填逻辑
}
}
};
...
...
src/main/webapp/HG/CW/HGCW006A.jsp
View file @
37d3052d
...
...
@@ -31,7 +31,17 @@
resizable=
"true"
popupTitle=
"甲方名称"
popupWidth=
"400"
>
</EF:EFPopupInput>
<EF:EFInput
ename=
"result-0-partyA"
cname=
"甲方名称"
type=
"hidden"
/>
<EF:EFInput
ename=
"result-0-partyB"
cname=
"乙方名称"
colWidth=
"4"
/>
<EF:EFPopupInput
ename=
"popupInputPartyB"
cname=
"乙方名称"
colWidth=
"4"
serviceName=
"HGCW006A"
methodName=
"partyBQuery"
resultId=
"partyAResult"
save=
"false"
popupType=
"ServiceGrid"
valueField=
"username"
textField=
"username"
columnEnames=
"username,usercode"
columnCnames=
"名称,编码"
readonly=
"true"
resizable=
"true"
popupTitle=
"乙方名称"
popupWidth=
"400"
>
</EF:EFPopupInput>
<EF:EFInput
ename=
"result-0-partyB"
cname=
"乙方名称"
type=
"hidden"
/>
</div>
<div
class=
"row"
>
...
...
src/main/webapp/HG/CW/HGCW010.js
View file @
37d3052d
...
...
@@ -25,7 +25,7 @@ $(function() {
],
loadComplete
:
function
(
grid
)
{
$
(
"#SELECT_BILL"
).
on
(
"click"
,
addFunc
);
$
(
"#
BTN_UPDATE"
).
on
(
"click"
,
updat
eFunc
);
$
(
"#
SAVE"
).
on
(
"click"
,
sav
eFunc
);
$
(
"#SUBMIT"
).
on
(
"click"
,
submitFunc
);
$
(
"#BTN_BILL"
).
on
(
"click"
,
billFunc
);
...
...
@@ -74,25 +74,55 @@ function addFunc() {
}
/**
*
修改
*
保存
*/
function
updat
eFunc
()
{
function
sav
eFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
message
(
"请选择
一条
数据"
);
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
return
;
}
if
(
rows
[
0
].
reviewStatus
==
"3"
)
{
message
(
"已经审核的单据不能修改"
);
return
;
}
JSColorbox
.
open
({
href
:
"HGCW010B?methodName=initLoad&inqu_status-0-mainId="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW010"
,
title
:
"<div style='text-align: center;'>开票清单</div>"
,
width
:
"90%"
,
height
:
"90%"
,
callbackName
:
windowCallback
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
reviewStatus
=
item
.
get
(
"reviewStatus"
);
if
((
reviewStatus
===
"1"
)){
message
(
"数据已审核"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
var
info
=
new
EiInfo
();
info
.
addBlock
(
JSUtils
.
checkedRows2Block
(
"result"
));
EiCommunicator
.
send
(
"HGCW010"
,
"save"
,
info
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
query
();
}
catch
(
e
)
{
// TODO: handle exception
}
if
(
ei
.
getStatus
()
==
0
)
{
NotificationUtil
(
ei
,
'warning'
);
}
else
{
NotificationUtil
(
ei
);
}
}
else
{
NotificationUtil
(
ei
,
"error"
);
}
},
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
});
//JSUtils.submitGridsData("result", "HPSC001", "save", true);
}
});
}
}
...
...
@@ -103,9 +133,18 @@ function windowCallback() {
JSColorbox
.
close
();
}
function
contractDetailFunc
(
id
)
{
function
contractDetailFunc
(
id
)
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
message
(
"请选择一条数据"
);
return
;
}
if
(
rows
[
0
].
reviewStatus
==
"3"
)
{
message
(
"已经审核的单据不能修改"
);
return
;
}
JSColorbox
.
open
({
href
:
"HGCW010
C?methodName=initLoad&inqu_status-0-mainId="
+
id
+
"&efParentFormEname=HGCW010"
,
href
:
"HGCW010
B?methodName=initLoad&inqu_status-0-mainId="
+
rows
[
0
].
id
+
"&efParentFormEname=HGCW010"
,
title
:
"<div style='text-align: center;'>开票清单</div>"
,
width
:
"90%"
,
height
:
"90%"
,
...
...
src/main/webapp/HG/CW/HGCW010.jsp
View file @
37d3052d
...
...
@@ -37,7 +37,10 @@
</EF:EFComboColumn>
<EF:EFColumn
ename=
"signingDate"
cname=
"开票日期"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<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:EFComboColumn
ename=
"taxPoints"
cname=
"税点"
width=
"120"
align=
"center"
required=
"true"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"true"
>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"不含税金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisSettlementTax"
cname=
"税额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"开票总额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
...
...
src/main/webapp/HG/CW/HGCW010A.jsp
View file @
37d3052d
...
...
@@ -36,7 +36,7 @@
<EF:EFColumn
ename=
"thisPriceTax"
cname=
"结算价税合计金额"
hidden=
"true"
/>
<EF:EFColumn
ename=
"thisSettlementTax"
cname=
"结算税金"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"结算金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"thisAmount"
cname=
"本次
结算
金额"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"thisAmount"
cname=
"本次
开票
金额"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"remainingAmount"
cname=
"剩余开票金额"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
...
...
src/main/webapp/HG/CW/HGCW010B.jsp
View file @
37d3052d
...
...
@@ -14,7 +14,7 @@
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"partyA"
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=
"totalContractPriceIncluding"
cname=
"
收
款总额"
width=
"120"
format=
"{0:N3}"
align=
"center"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"
开
款总额"
width=
"120"
format=
"{0:N3}"
align=
"center"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
...
...
src/main/webapp/HG/CW/HGCW010C.jsp
View file @
37d3052d
...
...
@@ -14,7 +14,7 @@
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"partyA"
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=
"totalContractPriceIncluding"
cname=
"
收款
总额"
width=
"120"
format=
"{0:N3}"
align=
"center"
enable=
"false"
readonly=
"true"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"
开票
总额"
width=
"120"
format=
"{0:N3}"
align=
"center"
enable=
"false"
readonly=
"true"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
...
...
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