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
805a7559
Commit
805a7559
authored
Sep 30, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-09-29 委外加工优化调整
parent
cf068ec5
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
38 deletions
+20
-38
ServiceHGSC010.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC010.java
+4
-4
ServiceHGSC010A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC010A.java
+3
-3
ServiceHGSC010B.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC010B.java
+4
-4
HGSC010.js
src/main/webapp/HG/SC/HGSC010.js
+2
-2
HGSC010.jsp
src/main/webapp/HG/SC/HGSC010.jsp
+5
-5
HGSC010A.js
src/main/webapp/HG/SC/HGSC010A.js
+0
-18
HGSC010A.jsp
src/main/webapp/HG/SC/HGSC010A.jsp
+2
-2
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC010.java
View file @
805a7559
...
...
@@ -49,7 +49,7 @@ public class ServiceHGSC010 extends ServiceEPBase {
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"委
托
加工"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@OperationLogAnnotation
(
operModul
=
"委
外
加工"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
...
...
@@ -65,7 +65,7 @@ public class ServiceHGSC010 extends ServiceEPBase {
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"委
托
加工"
,
operType
=
"删除"
,
operDesc
=
"删除操作"
)
@OperationLogAnnotation
(
operModul
=
"委
外
加工"
,
operType
=
"删除"
,
operDesc
=
"删除操作"
)
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
int
i
=
0
;
...
...
@@ -89,7 +89,7 @@ public class ServiceHGSC010 extends ServiceEPBase {
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"委
托
加工"
,
operType
=
"保存"
,
operDesc
=
"保存操作"
)
@OperationLogAnnotation
(
operModul
=
"委
外
加工"
,
operType
=
"保存"
,
operDesc
=
"保存操作"
)
public
EiInfo
save
(
EiInfo
inInfo
){
try
{
List
<
Map
>
resultMaps
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
...
...
@@ -120,7 +120,7 @@ public class ServiceHGSC010 extends ServiceEPBase {
DaoUtils
.
update
(
HGSC010
.
UPDATE
,
hgsc010
);
}
@OperationLogAnnotation
(
operModul
=
"委
托
加工"
,
operType
=
"提交"
,
operDesc
=
"提交操作"
)
@OperationLogAnnotation
(
operModul
=
"委
外
加工"
,
operType
=
"提交"
,
operDesc
=
"提交操作"
)
public
EiInfo
updateStatus
(
EiInfo
inInfo
)
{
int
i
=
0
;
try
{
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC010A.java
View file @
805a7559
...
...
@@ -61,7 +61,7 @@ public class ServiceHGSC010A extends ServiceEPBase {
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"委
托
加工"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@OperationLogAnnotation
(
operModul
=
"委
外
加工"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
...
...
@@ -74,7 +74,7 @@ public class ServiceHGSC010A extends ServiceEPBase {
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"委
托
加工"
,
operType
=
"删除"
,
operDesc
=
"删除操作"
)
@OperationLogAnnotation
(
operModul
=
"委
外
加工"
,
operType
=
"删除"
,
operDesc
=
"删除操作"
)
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
int
i
=
0
;
...
...
@@ -94,7 +94,7 @@ public class ServiceHGSC010A extends ServiceEPBase {
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"委
托
加工"
,
operType
=
"保存"
,
operDesc
=
"保存操作"
)
@OperationLogAnnotation
(
operModul
=
"委
外
加工"
,
operType
=
"保存"
,
operDesc
=
"保存操作"
)
public
EiInfo
save
(
EiInfo
inInfo
){
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC010B.java
View file @
805a7559
...
...
@@ -60,7 +60,7 @@ public class ServiceHGSC010B extends ServiceEPBase {
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"委
托
加工"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@OperationLogAnnotation
(
operModul
=
"委
外
加工"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
...
...
@@ -72,7 +72,7 @@ public class ServiceHGSC010B extends ServiceEPBase {
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"
市场调研-需求调研
"
,
operType
=
"删除"
,
operDesc
=
"删除操作"
)
@OperationLogAnnotation
(
operModul
=
"
委外加工
"
,
operType
=
"删除"
,
operDesc
=
"删除操作"
)
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
int
i
=
0
;
...
...
@@ -92,12 +92,12 @@ public class ServiceHGSC010B extends ServiceEPBase {
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"
市场调研-需求调研
"
,
operType
=
"保存"
,
operDesc
=
"操作"
)
@OperationLogAnnotation
(
operModul
=
"
委外加工
"
,
operType
=
"保存"
,
operDesc
=
"操作"
)
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
HGSC010
hgsc010
=
HGSCTools
.
Hgsc010
.
getById
(
Long
.
parseLong
(
queryMap
.
get
(
"parentId"
).
toString
()));
AssertUtils
.
isTrue
(
hgsc010
.
getSubStatus
().
equals
(
CommonConstant
.
YesNo
.
YES_1
),
"当前委
托
任务已提交,不允许修改保存!"
);
AssertUtils
.
isTrue
(
hgsc010
.
getSubStatus
().
equals
(
CommonConstant
.
YesNo
.
YES_1
),
"当前委
外
任务已提交,不允许修改保存!"
);
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
CommonConstant
.
Field
.
DETAIL
).
getRows
();
// 写入数据
for
(
Map
resultRow
:
resultRows
)
{
...
...
src/main/webapp/HG/SC/HGSC010.js
View file @
805a7559
...
...
@@ -102,7 +102,7 @@ function showFunc(companyCode,companyName,parentId,contractCode) {
"&inqu_status-0-companyName="
+
companyName
+
"&inqu_status-0-parentId="
+
parentId
+
"&inqu_status-0-contractCode="
+
contractCode
,
title
:
"<div style='text-align: center;'>委
托
详情</div>"
,
title
:
"<div style='text-align: center;'>委
外
详情</div>"
,
width
:
"90%"
,
height
:
"80%"
,
});
...
...
@@ -157,7 +157,7 @@ function updateStatus() {
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
subStatus
=
item
.
get
(
"subStatus"
);
if
(
subStatus
==
'1'
)
{
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
委
托
任务已提交
\"
,不能重复提交!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
委
外
任务已提交
\"
,不能重复提交!"
);
flag
=
false
;
return
false
;
}
...
...
src/main/webapp/HG/SC/HGSC010.jsp
View file @
805a7559
...
...
@@ -18,16 +18,16 @@
<script>
var ctx = "${ctx}";
</script>
<EF:EFPage title="委
托
加工">
<EF:EFPage title="委
外
加工">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<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:EFDatePicker blockId="inqu_status" row="0" ename="contractDate" cname="委
托
加工日期" role="date"
<EF:EFDatePicker blockId="inqu_status" row="0" ename="contractDate" cname="委
外
加工日期" role="date"
format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="contractCode" cname="委
托
单号" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="contractCode" cname="委
外
单号" placeholder="模糊查询" colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="supCode" cname="供应商名称" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="sup_record_block_id" textField="textField" valueField="valueField"/>
...
...
@@ -63,9 +63,9 @@
<EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
</EF:EFComboColumn>
<EF:EFColumn ename="companyName" cname="公司名称" hidden="true"/>
<EF:EFColumn ename="contractDate" cname="委
托
日期" width="120" enable="true" readonly="false" align="center" editType="date"
<EF:EFColumn ename="contractDate" cname="委
外加工
日期" width="120" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="contractCode" cname="委
托
单号" width="120" enable="false" readonly="false" align="center"/>
<EF:EFColumn ename="contractCode" cname="委
外
单号" width="120" enable="false" readonly="false" align="center"/>
<EF:EFComboColumn ename="supCode" cname="供应商名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
...
...
src/main/webapp/HG/SC/HGSC010A.js
View file @
805a7559
...
...
@@ -220,22 +220,4 @@ let saveDetail = function (btnNode) {
};
function
updateStatus
(
id
,
status
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-status"
,
status
);
EiCommunicator
.
send
(
'HGSC009'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
query
();
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
}
);
}
src/main/webapp/HG/SC/HGSC010A.jsp
View file @
805a7559
...
...
@@ -14,13 +14,13 @@
<script>
var ctx = "${ctx}";
</script>
<EF:EFPage title="委
托
加工">
<EF:EFPage title="委
外
加工">
<EF:EFRegion id="result" title="成本信息">
<EF:EFInput blockId="inqu_status" row="0" ename="parentId" cname="委托ID" type="hidden"/>
<EF:EFInput blockId="inqu_status" row="0" ename="companyCode" cname="公司编码" type="hidden"/>
<EF:EFInput blockId="inqu_status" row="0" ename="companyName" cname="公司名称" type="hidden"/>
<EF:EFInput blockId="inqu_status" row="0" ename="contractCode" cname="委
托
单号" type="hidden"/>
<EF:EFInput blockId="inqu_status" row="0" ename="contractCode" cname="委
外
单号" type="hidden"/>
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" needAuth="false">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
...
...
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