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
99d68a24
Commit
99d68a24
authored
Jan 12, 2024
by
YG6494
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HPZL001查询失效修改
parent
71518ff2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
129 deletions
+36
-129
ServiceHPZL001.java
.../java/com/baosight/hpjx/hp/zl/service/ServiceHPZL001.java
+3
-0
HPZL001.xml
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL001.xml
+1
-1
HPKC008.js
src/main/webapp/HP/KC/HPKC008.js
+25
-123
HPKC008.jsp
src/main/webapp/HP/KC/HPKC008.jsp
+1
-0
HPZL001.jsp
src/main/webapp/HP/ZL/HPZL001.jsp
+6
-5
No files found.
src/main/java/com/baosight/hpjx/hp/zl/service/ServiceHPZL001.java
View file @
99d68a24
...
...
@@ -79,6 +79,9 @@ public class ServiceHPZL001 extends ServiceBase {
inInfo
.
setCell
(
EiConstant
.
resultBlock
,
i
,
"itemCode"
,
str
[
0
]);
inInfo
.
setCell
(
EiConstant
.
resultBlock
,
i
,
"itemName"
,
str
[
1
]);
String
receiptDate
=
inInfo
.
getCellStr
(
EiConstant
.
resultBlock
,
i
,
"receiptDate"
);
inInfo
.
setCell
(
EiConstant
.
resultBlock
,
i
,
"receiptDate"
,
StringUtil
.
removeHorizontalLine
(
receiptDate
));
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HPZL001
.
fromMap
(
map
);
...
...
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL001.xml
View file @
99d68a24
...
...
@@ -142,7 +142,7 @@
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME
<!-- 创建时间 -->
)
VALUES (#companyCode#, #receiptDate#, #chkBillno#, #itemCode#, #itemName#, #unit#, #notes#, #
princ
#, #status#, #affix#, #createdBy#, #createdTime#)
VALUES (#companyCode#, #receiptDate#, #chkBillno#, #itemCode#, #itemName#, #unit#, #notes#, #
createdBy
#, #status#, #affix#, #createdBy#, #createdTime#)
</insert>
<delete
id=
"delete"
>
...
...
src/main/webapp/HP/KC/HPKC008.js
View file @
99d68a24
...
...
@@ -7,129 +7,31 @@ $(function() {
resultGrid
.
dataSource
.
page
(
1
);
// 点击查询按钮,从第1页开始查询
});
IPLATUI
.
EFGrid
=
{
"result"
:
{
loadComplete
:
function
(
grid
)
{
// 新增
$
(
"#BTN_INSERT"
).
on
(
"click"
,
function
()
{
var
btnNode
=
$
(
this
);
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
IPLAT
.
submitNode
(
$
(
"#HPKC008"
),
"HPKC008"
,
"insert"
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
}
else
{
// 绑定grid
resultGrid
.
setEiInfo
(
ei
);
NotificationUtil
({
msg
:
'新增成功'
});
}
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
resultGrid
.
dataSource
.
page
(
1
);
},
onFail
:
function
(
ei
)
{
// onFail 表示失败回调函数
// 发生异常
console
.
log
(
ei
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
}
});
});
// 修改
$
(
"#BTN_UPDATE"
).
on
(
"click"
,
function
()
{
var
rowCount
=
resultGrid
.
getCheckedRows
();
// 检验是否选中数据
if
(
rowCount
==
null
||
rowCount
==
""
)
{
NotificationUtil
({
msg
:
'请选择一条或多条数据'
},
"warning"
);
return
false
;
}
var
btnNode
=
$
(
this
);
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
IPLAT
.
submitNode
(
$
(
"#HPKC008"
),
"HPKC008"
,
"update"
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
}
else
{
NotificationUtil
({
msg
:
'修改成功'
});
// 绑定grid
resultGrid
.
setEiInfo
(
ei
);
}
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
},
onFail
:
function
(
ei
)
{
// onFail 表示失败回调函数
// 发生异常
console
.
log
(
ei
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
}
});
});
//删除
$
(
"#DELETE"
).
on
(
"click"
,
function
()
{
var
btnNode
=
$
(
this
);
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
var
dataItems
=
resultGrid
.
getCheckedRows
();
if
(
dataItems
==
null
||
dataItems
==
""
)
{
NotificationUtil
({
msg
:
'选择要删除的数据'
},
"warning"
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
return
false
;
}
IPLAT
.
submitNode
(
$
(
"#HPKC008"
),
"HPKC008"
,
"delete"
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
}
else
{
NotificationUtil
({
msg
:
'删除成功'
});
// 绑定grid
resultGrid
.
setEiInfo
(
ei
);
}
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
},
onFail
:
function
(
ei
)
{
// onFail
// 表示失败回调函数
// 发生异常
console
.
log
(
ei
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
}
});
});
}
},
};
$
(
function
()
{
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
});
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
30
,
50
,
100
,
200
],
},
columns
:
[
{
field
:
"money"
,
valueType
:
"N"
,
//小计设置
type
:
"N"
,
},
{
field
:
"assessmentAmount"
,
valueType
:
"N"
,
//小计设置
type
:
"N"
,
}
]
}
});
});
src/main/webapp/HP/KC/HPKC008.jsp
View file @
99d68a24
...
...
@@ -15,6 +15,7 @@
<EF:EFInput
ename=
"inqu_status-0-statisticalNumber"
cname=
"统计单单号"
colWidth=
"4"
readonly=
"false"
/>
</div>
<EF:EFButton
ename=
"QUERY"
cname=
"查询"
row=
"1"
class=
"btn-align-right"
></EF:EFButton>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
...
...
src/main/webapp/HP/ZL/HPZL001.jsp
View file @
99d68a24
...
...
@@ -9,9 +9,9 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFDatePicker
ename=
"inqu_status-0-receiptDate"
cname=
"单据日期"
<EF:EFDatePicker
ename=
"inqu_status-0-receiptDate"
cname=
"单据日期"
colWidth=
"3"
format=
"yyyy-MM-dd"
required=
"true"
/>
<EF:EFSelect
ename=
"inqu_status-0-item
Name"
cname=
"项目名称
"
<EF:EFSelect
ename=
"inqu_status-0-item
Code"
cname=
"项目名称"
colWidth=
"3
"
valueTemplate=
"#=textField#"
template=
"#=textField#"
textField=
"textField"
...
...
@@ -22,13 +22,14 @@
<EF:EFOption
label=
"--请选择--"
value=
""
/>
<EF:EFOptions
blockId=
"proj_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFInput
ename=
"inqu_status-0-princ"
cname=
"检查人"
colWidth=
"
4
"
readonly=
"false"
/>
<EF:EFSelect
ename=
"inqu_status-0-status"
cname=
"处理状态"
colWidth=
"
4
"
>
<EF:EFInput
ename=
"inqu_status-0-princ"
cname=
"检查人"
colWidth=
"
3
"
readonly=
"false"
/>
<EF:EFSelect
ename=
"inqu_status-0-status"
cname=
"处理状态"
colWidth=
"
3
"
>
<EF:EFOption
label=
"--请选择--"
value=
""
/>
<EF:EFOption
label=
"审核"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"待审核"
value=
"0"
></EF:EFOption>
</EF:EFSelect>
</div>
<EF:EFButton
ename=
"QUERY"
cname=
"查询"
row=
"1"
class=
"btn-align-right"
></EF:EFButton>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
...
...
@@ -53,7 +54,7 @@
</EF:EFComboColumn>
<EF:EFColumn
ename=
"unit"
cname=
"生产组"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"notes"
cname=
"质量问题描述"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"princ"
cname=
"检查人"
width=
"100"
readonly=
"
fals
e"
/>
<EF:EFColumn
ename=
"princ"
cname=
"检查人"
width=
"100"
readonly=
"
tru
e"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=valueField#-#=textField#"
optionLabel=
" "
itemTemplate=
"#=valueField#-#=textField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"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