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
eb97bb46
Commit
eb97bb46
authored
Aug 31, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
e3c69a01
610f12f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
21 deletions
+35
-21
ServiceHGCG001.java
.../java/com/baosight/hggp/hg/cg/service/ServiceHGCG001.java
+1
-0
HGCG001.xml
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG001.xml
+13
-0
HGCG001.js
src/main/webapp/HG/CG/HGCG001.js
+17
-17
HGCG001.jsp
src/main/webapp/HG/CG/HGCG001.jsp
+4
-4
No files found.
src/main/java/com/baosight/hggp/hg/cg/service/ServiceHGCG001.java
View file @
eb97bb46
...
@@ -101,6 +101,7 @@ public class ServiceHGCG001 extends ServiceBase {
...
@@ -101,6 +101,7 @@ public class ServiceHGCG001 extends ServiceBase {
// 写入数据
// 写入数据
for
(
int
i
=
0
;
i
<
fCg001s
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
fCg001s
.
size
();
i
++)
{
HGCG001
hgcg001
=
fCg001s
.
get
(
i
);
HGCG001
hgcg001
=
fCg001s
.
get
(
i
);
hgcg001
.
setPlanDate
(
DateUtils
.
formatShort
(
hgcg001
.
getPlanDate
()));
if
(
hgcg001
.
getId
()
==
null
||
hgcg001
.
getId
()
==
0
)
{
if
(
hgcg001
.
getId
()
==
null
||
hgcg001
.
getId
()
==
0
)
{
// 修改数据
// 修改数据
this
.
saveData
(
hgcg001
);
this
.
saveData
(
hgcg001
);
...
...
src/main/java/com/baosight/hggp/hg/cg/sql/HGCG001.xml
View file @
eb97bb46
...
@@ -210,6 +210,19 @@
...
@@ -210,6 +210,19 @@
</update>
</update>
<!-- 修改采购信息 -->
<!-- 修改采购信息 -->
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGCG001
SET
COMPANY_CODE = #companyCode#,
COMPANY_NAME = #companyName#,
PROJ_CODE = #projCode#,
PROJ_NAME = #projName#,
PLAN_DATE = #planDate#,
<include
refid=
"updateRevise"
/>
WHERE PLAN_NO = #planNo#
</update>
<!-- 修改采购信息 -->
<update
id=
"updatePur"
>
<update
id=
"updatePur"
>
UPDATE ${hggpSchema}.HGCG001
UPDATE ${hggpSchema}.HGCG001
SET
SET
...
...
src/main/webapp/HG/CG/HGCG001.js
View file @
eb97bb46
...
@@ -8,22 +8,22 @@ $(function () {
...
@@ -8,22 +8,22 @@ $(function () {
pageSize
:
20
,
pageSize
:
20
,
pageSizes
:
[
20
,
50
,
70
,
100
],
pageSizes
:
[
20
,
50
,
70
,
100
],
},
},
columns
:
[
columns
:
[{
{
field
:
"operator"
,
field
:
"operator"
,
title
:
"操作"
,
title
:
"操作"
,
template
:
function
(
item
)
{
template
:
function
(
item
)
{
let
template
=
''
;
let
template
=
''
;
if
(
!
isBlank
(
item
.
id
))
{
if
(
!
isBlank
(
item
.
id
)){
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showDetail('
+
item
.
id
+
', '
+
item
.
status
+
', '
+
item
.
source
+
'onclick="showDetail('
+
item
.
id
+
', '
+
item
.
status
+
', '
+
item
.
source
+
')" >详情</a>'
;
+
')" >详情</a>'
;
}
return
template
;
}
}
},
{
return
template
;
field
:
"companyCode"
,
}
title
:
"公司编码"
,
},
{
template
:
function
(
dataItem
)
{
field
:
"companyCode"
,
title
:
"公司编码"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
if
(
companyCodeBox
[
i
][
'companyCode'
]
===
dataItem
[
'companyCode'
])
{
if
(
companyCodeBox
[
i
][
'companyCode'
]
===
dataItem
[
'companyCode'
])
{
return
companyCodeBox
[
i
][
'companyCode'
];
return
companyCodeBox
[
i
][
'companyCode'
];
...
@@ -41,9 +41,9 @@ $(function () {
...
@@ -41,9 +41,9 @@ $(function () {
return
projCodeBox
[
i
][
'valueField'
];
return
projCodeBox
[
i
][
'valueField'
];
}
}
}
}
return
dataItem
[
"projCode"
];
return
dataItem
[
"projCode"
]
==
null
?
""
:
dataItem
[
"projCode"
]
;
},
},
editor
:
function
(
container
,
options
)
{
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-companyCode"
,
options
.
model
[
"companyCode"
]);
inInfo
.
set
(
"inqu_status-0-companyCode"
,
options
.
model
[
"companyCode"
]);
inInfo
.
set
(
"inqu_status-0-approvalStatus"
,
2
);
inInfo
.
set
(
"inqu_status-0-approvalStatus"
,
2
);
...
...
src/main/webapp/HG/CG/HGCG001.jsp
View file @
eb97bb46
...
@@ -45,11 +45,11 @@
...
@@ -45,11 +45,11 @@
align=
"center"
filter=
"contains"
sort=
"true"
>
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"roleCompany"
textField=
"companyName"
valueField=
"companyCode"
/>
<EF:EFOptions
blockId=
"roleCompany"
textField=
"companyName"
valueField=
"companyCode"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"
120"
enable=
"false"
readonly=
"true"
align=
"center
"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"
220"
enable=
"false"
readonly=
"true"
align=
"left
"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"true"
width=
"1
20"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"true"
width=
"1
40"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
align=
"
center
"
enable=
"false"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
align=
"
left
"
enable=
"false"
/>
<EF:EFColumn
ename=
"planDate"
cname=
"计划日期"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"planDate"
cname=
"计划日期"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFColumn
ename=
"planNo"
cname=
"计划单号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"planNo"
cname=
"计划单号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
width=
"80"
align=
"center"
>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
width=
"80"
align=
"center"
>
<EF:EFCodeOption
codeName=
"hggp.hgcg.planStatus"
/>
<EF:EFCodeOption
codeName=
"hggp.hgcg.planStatus"
/>
...
...
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