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
cd553049
Commit
cd553049
authored
Oct 09, 2024
by
YG8429
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择模板
parent
86e48682
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
2 deletions
+94
-2
ServiceHGSC004.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC004.java
+2
-2
HGSC004F.js
src/main/webapp/HG/SC/HGSC004F.js
+68
-0
HGSC004F.jsp
src/main/webapp/HG/SC/HGSC004F.jsp
+24
-0
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC004.java
View file @
cd553049
...
@@ -196,8 +196,8 @@ public class ServiceHGSC004 extends ServiceBase {
...
@@ -196,8 +196,8 @@ public class ServiceHGSC004 extends ServiceBase {
public
EiInfo
count
(
EiInfo
inInfo
)
{
public
EiInfo
count
(
EiInfo
inInfo
)
{
try
{
try
{
HashMap
map
=
new
HashMap
();
HashMap
map
=
new
HashMap
();
map
.
put
(
HGSC004
.
FIELD_proj_code
,
inInfo
.
getString
(
"id"
));
map
.
put
(
HGSC004
A
.
FIELD_proj_code
,
inInfo
.
getString
(
"id"
));
List
<
HGSC004
>
results
=
DaoBase
.
getInstance
().
query
(
"HGSC004
.query"
,
map
);
List
<
HGSC004
A
>
results
=
DaoBase
.
getInstance
().
query
(
"HGSC004A
.query"
,
map
);
if
(
results
.
size
()
>
1
)
{
if
(
results
.
size
()
>
1
)
{
inInfo
.
setStatus
(
0
);
inInfo
.
setStatus
(
0
);
}
else
{
}
else
{
...
...
src/main/webapp/HG/SC/HGSC004F.js
0 → 100644
View file @
cd553049
$
(
function
()
{
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
query
);
IPLATUI
.
EFGrid
=
{
"result"
:
{
pageable
:
{
input
:
true
,
numeric
:
false
,
pageSize
:
15
,
position
:
'top'
,
pageSizes
:
[
15
,
50
,
100
,
200
]
},
columns
:
[]
}
}
$
(
"#CONFIRM"
).
on
(
"click"
,
function
()
{
let
rows
=
resultGrid
.
getCheckedRows
()
console
.
log
(
rows
)
if
(
rows
.
length
!=
1
)
{
message
(
"请选择一条数据 "
);
return
;
}
let
row
=
rows
[
0
];
let
isInput
=
decodeURI
(
window
.
location
.
href
.
split
(
"&"
)[
1
]);
if
(
isInput
===
"isInput"
){
parent
.
JSColorbox
.
setValueCallback
(
row
);
return
;
};
JSUtils
.
confirm
(
"确定选择该模板吗? "
,
{
ok
:
function
()
{
parent
.
JSColorbox
.
setValueCallback
(
row
);
}
});
});
$
(
'input[name="inqu_status-0-factoryCode"]'
).
change
(
function
()
{
var
inInfo
=
new
EiInfo
();
var
factoryCode
=
$
(
"#inqu_status-0-factoryCode"
).
val
();
var
orgType
=
$
(
'#inqu_status-0-orgType'
).
val
();
inInfo
.
set
(
"inqu_status-0-parentOrgId"
,
factoryCode
);
inInfo
.
set
(
"inqu_status-0-orgType"
,
orgType
);
EiCommunicator
.
send
(
"HPXSOrg"
,
"queryGroupComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
var
input
=
$
(
"#inqu_status-0-groupCode"
);
dataEdition
=
ei
.
getBlock
(
"group_record_block_id"
).
getMappedRows
();
input
.
kendoDropDownList
({
valuePrimitive
:
true
,
dataTextField
:
"textField"
,
dataValueField
:
"valueField"
,
optionLabel
:
"请选择"
,
dataSource
:
dataEdition
,
template
:
"#=textField#"
});
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
});
});
$
(
window
).
load
(
function
()
{
// 查询
query
();
});
let
query
=
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
}
\ No newline at end of file
src/main/webapp/HG/SC/HGSC004F.jsp
0 → 100644
View file @
cd553049
<!DOCTYPE html>
<
%@
page
contentType=
"text/html; charset=UTF-8"
%
>
<
%@
taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%
>
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<EF:EFPage
title=
"产品模板"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFInput
cname=
"组类型"
ename=
"orgType"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<div
class=
"row"
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"templateName"
cname=
"模板名称:"
colWidth=
"4"
row=
"0"
/>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"single,row"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"templateName"
cname=
"模板名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"createdBy"
enable=
"false"
cname=
"创建人"
/>
</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