Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
884ede8d
Commit
884ede8d
authored
Jan 25, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产订单,生产入库单
parent
47f061eb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
22 deletions
+64
-22
HPSC005.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005.xml
+6
-6
HPKC099.js
src/main/webapp/HP/KC/HPKC099.js
+16
-1
HPKC099.jsp
src/main/webapp/HP/KC/HPKC099.jsp
+10
-4
HPSC005.js
src/main/webapp/HP/SC/HPSC005.js
+28
-9
HPSC005.jsp
src/main/webapp/HP/SC/HPSC005.jsp
+4
-2
No files found.
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC005.xml
View file @
884ede8d
...
@@ -39,13 +39,13 @@
...
@@ -39,13 +39,13 @@
COMPANY_CODE = #companyCode#
COMPANY_CODE = #companyCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE
= #projCode#
PROJ_CODE
like CONCAT('%', #projCode#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME
= #projName#
PROJ_NAME
like CONCAT('%', #projName#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"productionOrderNo"
>
<isNotEmpty
prepend=
" AND "
property=
"productionOrderNo"
>
PRODUCTION_ORDER_NO
= #productionOrderNo#
PRODUCTION_ORDER_NO
like CONCAT('%', #productionOrderNo#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtCode"
>
<isNotEmpty
prepend=
" AND "
property=
"prdtCode"
>
PRDT_CODE = #prdtCode#
PRDT_CODE = #prdtCode#
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
PRDT_NAME = #prdtName#
PRDT_NAME = #prdtName#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planCompletionDate"
>
<isNotEmpty
prepend=
" AND "
property=
"planCompletionDate"
>
PLAN_COMPLETION_DATE
= #planCompletionDate#
PLAN_COMPLETION_DATE
like CONCAT('%', #planCompletionDate#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"num"
>
<isNotEmpty
prepend=
" AND "
property=
"num"
>
NUM = #num#
NUM = #num#
...
@@ -66,10 +66,10 @@
...
@@ -66,10 +66,10 @@
STATUS = #status#
STATUS = #status#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orgNo"
>
<isNotEmpty
prepend=
" AND "
property=
"orgNo"
>
ORG_NO
= #orgNo#
ORG_NO
like CONCAT('%', #orgNo#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"orgName"
>
<isNotEmpty
prepend=
" AND "
property=
"orgName"
>
ORG_NAME
= #orgName#
ORG_NAME
like CONCAT('%', #orgName#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
CREATED_BY = #createdBy#
...
...
src/main/webapp/HP/KC/HPKC099.js
View file @
884ede8d
$
(
function
()
{
$
(
function
()
{
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
resultGrid
.
dataSource
.
page
(
1
);
});
});
$
(
"#GENERATE"
).
on
(
"click"
,
generateRK
);
$
(
"#GENERATE"
).
on
(
"click"
,
generateRK
);
$
(
"#inqu_status-0-orgNo"
).
on
(
"click"
,
function
()
{
JSColorbox
.
open
({
href
:
"HPSC098?methodName=initLoad"
,
title
:
"<div style='text-align: center;'>选择组织</div>"
,
width
:
"40%"
,
height
:
"70%"
,
callbackName
:
getOrgCallback
});
});
IPLATUI
.
EFGrid
.
result
=
{
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageable
:
{
pageSize
:
20
,
pageSize
:
20
,
...
@@ -29,3 +38,8 @@ let generateRK = function () {
...
@@ -29,3 +38,8 @@ let generateRK = function () {
}
}
});
});
}
}
let
getOrgCallback
=
function
(
orgId
)
{
$
(
"#inqu_status-0-orgNo"
).
val
(
orgId
);
JSColorbox
.
close
();
}
\ No newline at end of file
src/main/webapp/HP/KC/HPKC099.jsp
View file @
884ede8d
...
@@ -16,9 +16,15 @@
...
@@ -16,9 +16,15 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
><
%
--
type=
"query"
efRegionShowClear=
"true"
efRegionSave=
"true"
--
%
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
><
%
--
type=
"query"
efRegionShowClear=
"true"
efRegionSave=
"true"
--
%
>
<div
class=
"row"
>
<
%
--
blockId=
"inqu_status"
row=
"0"
--
%
>
<div
class=
"row"
>
<
%
--
blockId=
"inqu_status"
row=
"0"
--
%
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projCode"
cname=
"项目号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
cname=
"项目名称:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
cname=
"项目名称:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projType"
cname=
"生产订单号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"productionOrderNo"
cname=
"生产订单号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projType"
cname=
"生产组:"
row=
"0"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
ename=
"planCompletionDate"
cname=
"计划完成日期:"
row=
"0"
format=
"yyyy-MM-dd"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"orgNo"
cname=
"生产组:"
row=
"0"
/>
<EF:EFSelect
cname=
"状态:"
optionLabel=
"全部"
blockId=
"inqu_status"
ename=
"status"
row=
"0"
defaultValue=
""
>
<EF:EFOption
label=
"未派工"
value=
"0"
/>
<EF:EFOption
label=
"已派工"
value=
"1"
/>
</EF:EFSelect>
</div>
</div>
<
%
--
<
EF:EFButton
ename=
"QUERY"
cname=
"查询"
row=
"1"
class=
"btn-align-right"
></EF:EFButton>
--%>
<
%
--
<
EF:EFButton
ename=
"QUERY"
cname=
"查询"
row=
"1"
class=
"btn-align-right"
></EF:EFButton>
--%>
</EF:EFRegion>
</EF:EFRegion>
...
@@ -46,4 +52,4 @@
...
@@ -46,4 +52,4 @@
<script>
<script>
var
ctx
=
"${ctx}"
;
var
ctx
=
"${ctx}"
;
</script>
</script>
<script
src=
"${ctx}/HP/SC/HPKC099.js"
></script>
<script
src=
"${ctx}/HP/KC/HPKC099.js"
></script>
\ No newline at end of file
\ No newline at end of file
src/main/webapp/HP/SC/HPSC005.js
View file @
884ede8d
...
@@ -5,6 +5,16 @@ $(function () {
...
@@ -5,6 +5,16 @@ $(function () {
resultGrid
.
dataSource
.
page
(
1
);
resultGrid
.
dataSource
.
page
(
1
);
});
});
$
(
"#inqu_status-0-orgNo"
).
on
(
"click"
,
function
()
{
JSColorbox
.
open
({
href
:
"HPSC098?methodName=initLoad"
,
title
:
"<div style='text-align: center;'>选择组织</div>"
,
width
:
"40%"
,
height
:
"70%"
,
callbackName
:
getOrgCallback
});
})
$
(
"#ASSIGN"
).
on
(
"click"
,
function
()
{
$
(
"#ASSIGN"
).
on
(
"click"
,
function
()
{
//重置全局变量
//重置全局变量
ids
=
[];
ids
=
[];
...
@@ -13,7 +23,16 @@ $(function () {
...
@@ -13,7 +23,16 @@ $(function () {
message
(
"请至少选择一条需要分派的数据"
);
message
(
"请至少选择一条需要分派的数据"
);
return
;
return
;
}
}
let
num
=
0
;
JSColorbox
.
open
({
href
:
"HPSC098?methodName=initLoad"
,
title
:
"<div style='text-align: center;'>选择组织</div>"
,
width
:
"40%"
,
height
:
"70%"
,
callbackName
:
assignCallback
});
//分派可修改,不做判断
/*let num = 0;
rows.forEach(function(element) {
rows.forEach(function(element) {
if (element.status == 1) {
if (element.status == 1) {
num++;
num++;
...
@@ -24,14 +43,8 @@ $(function () {
...
@@ -24,14 +43,8 @@ $(function () {
message("勾选的数据中有已经分派的数据!");
message("勾选的数据中有已经分派的数据!");
return;
return;
} else {
} else {
JSColorbox
.
open
({
href
:
"HPSC098?methodName=initLoad"
,
}*/
title
:
"<div style='text-align: center;'>选择组织</div>"
,
width
:
"40%"
,
height
:
"70%"
,
callbackName
:
assignCallback
});
}
});
});
...
@@ -81,4 +94,9 @@ let assignCallback = function (orgId) {
...
@@ -81,4 +94,9 @@ let assignCallback = function (orgId) {
},{
async
:
false
});
},{
async
:
false
});
}
let
getOrgCallback
=
function
(
orgId
)
{
$
(
"#inqu_status-0-orgNo"
).
val
(
orgId
);
JSColorbox
.
close
();
}
}
\ No newline at end of file
src/main/webapp/HP/SC/HPSC005.jsp
View file @
884ede8d
...
@@ -16,9 +16,11 @@
...
@@ -16,9 +16,11 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
><
%
--
type=
"query"
efRegionShowClear=
"true"
efRegionSave=
"true"
--
%
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
><
%
--
type=
"query"
efRegionShowClear=
"true"
efRegionSave=
"true"
--
%
>
<div
class=
"row"
>
<
%
--
blockId=
"inqu_status"
row=
"0"
--
%
>
<div
class=
"row"
>
<
%
--
blockId=
"inqu_status"
row=
"0"
--
%
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projCode"
cname=
"项目号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
cname=
"项目名称:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
cname=
"项目名称:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projType"
cname=
"生产订单号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"productionOrderNo"
cname=
"生产订单号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projType"
cname=
"生产组:"
row=
"0"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
ename=
"planCompletionDate"
cname=
"计划完成日期:"
row=
"0"
format=
"yyyy-MM-dd"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"orgNo"
cname=
"生产组:"
row=
"0"
/>
<EF:EFSelect
cname=
"状态:"
optionLabel=
"全部"
blockId=
"inqu_status"
ename=
"status"
row=
"0"
>
<EF:EFSelect
cname=
"状态:"
optionLabel=
"全部"
blockId=
"inqu_status"
ename=
"status"
row=
"0"
>
<EF:EFOption
label=
"未派工"
value=
"0"
/>
<EF:EFOption
label=
"未派工"
value=
"0"
/>
<EF:EFOption
label=
"已派工"
value=
"1"
/>
<EF:EFOption
label=
"已派工"
value=
"1"
/>
...
...
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