Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5portal
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
管理员
jfV5portal
Commits
f69d2c34
Commit
f69d2c34
authored
Sep 07, 2018
by
周王清
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报工模块修改
parent
122cca26
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
15 deletions
+12
-15
bgmkEmployeeTab.js
WebContent/jwapp/pages/bgmk/js/bgmkEmployeeTab.js
+2
-2
bgmkTab.js
WebContent/jwapp/pages/bgmk/js/bgmkTab.js
+2
-4
dataAction.java
src_jwapp/com/jw/app/bgmk/dataAction.java
+1
-1
BgmkBusinessImpl.java
src_jwapp/com/jw/app/business/bgmk/BgmkBusinessImpl.java
+2
-2
bgmkDAO.xml
src_jwapp/com/jw/app/business/bgmk/bgmkDAO.xml
+5
-6
No files found.
WebContent/jwapp/pages/bgmk/js/bgmkEmployeeTab.js
View file @
f69d2c34
...
...
@@ -56,9 +56,9 @@ var v_typequery_data = standardModel.dataAction.listAllCache(v_typequery);
* 备注:需更改
**/
//定义grid列表
var
ls_title
=
"
报工模块
"
;
var
ls_title
=
"
员工报工
"
;
var
is_column
=
[
[
{
field
:
'CONTENT'
,
title
:
'工作内容'
,
width
:
3
00
,
align
:
'center'
},
{
field
:
'CONTENT'
,
title
:
'工作内容'
,
width
:
4
00
,
align
:
'center'
},
{
field
:
'BG_TIME'
,
title
:
'报工时间'
,
width
:
80
,
align
:
'center'
},
{
field
:
'GZYS'
,
title
:
'工作用时'
,
width
:
80
,
align
:
'center'
},
]
];
...
...
WebContent/jwapp/pages/bgmk/js/bgmkTab.js
View file @
f69d2c34
...
...
@@ -56,11 +56,11 @@ var v_typequery_data = standardModel.dataAction.listAllCache(v_typequery);
* 备注:需更改
**/
//定义grid列表
var
ls_title
=
"报工
模块
"
;
var
ls_title
=
"报工
管理
"
;
var
is_column
=
[
[
{
field
:
'USER_NAME'
,
title
:
'人员姓名'
,
width
:
100
,
align
:
'center'
},
{
field
:
'DEPT_NAME'
,
title
:
'人员部门'
,
width
:
80
,
align
:
'center'
},
{
field
:
'CONTENT'
,
title
:
'工作内容'
,
width
:
300
,
align
:
'center'
},
{
field
:
'CONTENT'
,
title
:
'工作内容'
,
width
:
400
,
align
:
'left'
,
halign
:
'center'
},
{
field
:
'BG_TIME'
,
title
:
'报工时间'
,
width
:
80
,
align
:
'center'
},
{
field
:
'GZYS'
,
title
:
'工作用时'
,
width
:
80
,
align
:
'center'
},
{
field
:
'USER_TYPE'
,
title
:
'人员类型'
,
width
:
100
,
align
:
'center'
,
...
...
@@ -68,8 +68,6 @@ var is_column = [ [
return
getCodeName
(
v_typequery_data
.
rowSet
,
value
);
}
},
{
field
:
'CREATE_ID'
,
title
:
'创建人员'
,
width
:
100
,
align
:
'center'
},
{
field
:
'CREATE_TIME'
,
title
:
'创建时间'
,
width
:
100
,
align
:
'center'
}
]
];
//列表加载完成回调
function
dataOnLoadSuccess
(){
...
...
src_jwapp/com/jw/app/bgmk/dataAction.java
View file @
f69d2c34
...
...
@@ -93,7 +93,7 @@ public class dataAction extends BasicAction{
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_bgmk
_employee
(
pageNo
,
pageSize
,
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_bgmk
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
pageRows
.
getItems
()));
...
...
src_jwapp/com/jw/app/business/bgmk/BgmkBusinessImpl.java
View file @
f69d2c34
...
...
@@ -46,8 +46,8 @@ public class BgmkBusinessImpl implements BgmkBusiness {
if
(
entity
.
get
(
"USER_NAME"
)==
null
){
entity
.
put
(
"USER_NAME"
,
SessionUtil
.
getCode
());
}
if
(
entity
.
get
(
"CREAT
OR
_ID"
)==
null
){
entity
.
put
(
"CREAT
OR
_ID"
,
SessionUtil
.
getCode
());
if
(
entity
.
get
(
"CREAT
E
_ID"
)==
null
){
entity
.
put
(
"CREAT
E
_ID"
,
SessionUtil
.
getCode
());
}
if
(
entity
.
get
(
"DEPT_NAME"
)==
null
){
...
...
src_jwapp/com/jw/app/business/bgmk/bgmkDAO.xml
View file @
f69d2c34
...
...
@@ -35,9 +35,7 @@
<if
test=
"USER_TYPE != null and USER_TYPE != ''"
>
and f.USER_TYPE = #{USER_TYPE}
</if>
<if
test=
"CREATOR_ID != null and CREATOR_ID != ''"
>
and f.CREATOR_ID = #{CREATOR_ID}
</if>
<if
test=
"CREATE_TIME != null and CREATE_TIME != ''"
>
and f.CREATE_TIME = #{CREATE_TIME}
</if>
...
...
@@ -46,6 +44,8 @@
</sql>
<insert
id=
"insert_bgmk"
parameterType=
"map"
>
insert into WORK_BG(
<trim
prefix=
""
suffixOverrides=
","
>
...
...
@@ -90,8 +90,7 @@
<select
id=
"list_bgmk"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
<![CDATA[
select f.*
from WORK_BG f where 1=1
select f.* from WORK_BG f
]]>
<include
refid=
"where_bg"
/>
order by f.CREATE_TIME DESC
...
...
@@ -99,7 +98,7 @@
<select
id=
"listCount_bgmk"
parameterType=
"map"
resultType=
"int"
>
<![CDATA[
select count(*) c from WORK_BG f where 1=1
select count(*) from WORK_BG f
]]>
<include
refid=
"where_bg"
/>
</select>
...
...
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