Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
83ca6628
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
83ca6628
编写于
1月 04, 2021
作者:
L
luojing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
考勤,前端添加出勤率(个人,部门,公司)导出按钮,并添加对应的服务地址
上级
76f200e3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
68 addition
and
3 deletion
+68
-3
o2web/source/o2_core/o2/xAction/services/x_attendance_assemble_control.js
...core/o2/xAction/services/x_attendance_assemble_control.js
+34
-0
o2web/source/o2_core/o2/xAction/services/x_attendance_assemble_control.json
...re/o2/xAction/services/x_attendance_assemble_control.json
+6
-0
o2web/source/x_component_Attendance/PeopleDetail.js
o2web/source/x_component_Attendance/PeopleDetail.js
+10
-1
o2web/source/x_component_Attendance/TopUnitDetail.js
o2web/source/x_component_Attendance/TopUnitDetail.js
+9
-1
o2web/source/x_component_Attendance/UnitDetail.js
o2web/source/x_component_Attendance/UnitDetail.js
+9
-1
未找到文件。
o2web/source/o2_core/o2/xAction/services/x_attendance_assemble_control.js
浏览文件 @
83ca6628
...
...
@@ -53,6 +53,40 @@ MWF.xAction.RestActions.Action["x_attendance_assemble_control"] = new Class({
window
.
open
(
this
.
action
.
address
+
url
,
"
_blank
"
);
}.
bind
(
this
));
},
//个人出勤率导出
exportPersonStatisticAttachment
:
function
(
name
,
year
,
month
,
stream
){
this
.
action
.
getActions
(
function
(){
var
url
=
this
.
action
.
actions
.
exportPersonStatisticAttachment
.
uri
;
url
=
url
.
replace
(
"
{name}
"
,
name
);
url
=
url
.
replace
(
"
{year}
"
,
year
);
url
=
url
.
replace
(
"
{month}
"
,
month
);
url
=
url
.
replace
(
"
{stream}
"
,
stream
);
window
.
open
(
this
.
action
.
address
+
url
,
"
_blank
"
);
}.
bind
(
this
));
},
//部门出勤率导出
exportUnitStatisticAttachment
:
function
(
name
,
year
,
month
,
stream
){
this
.
action
.
getActions
(
function
(){
var
url
=
this
.
action
.
actions
.
exportUnitStatisticAttachment
.
uri
;
url
=
url
.
replace
(
"
{name}
"
,
name
);
url
=
url
.
replace
(
"
{year}
"
,
year
);
url
=
url
.
replace
(
"
{month}
"
,
month
);
url
=
url
.
replace
(
"
{stream}
"
,
stream
);
window
.
open
(
this
.
action
.
address
+
url
,
"
_blank
"
);
}.
bind
(
this
));
},
//公司出勤率导出
exportTopUnitStatisticAttachment
:
function
(
name
,
year
,
month
,
stream
){
this
.
action
.
getActions
(
function
(){
var
url
=
this
.
action
.
actions
.
exportTopUnitStatisticAttachment
.
uri
;
url
=
url
.
replace
(
"
{name}
"
,
name
);
url
=
url
.
replace
(
"
{year}
"
,
year
);
url
=
url
.
replace
(
"
{month}
"
,
month
);
url
=
url
.
replace
(
"
{stream}
"
,
stream
);
window
.
open
(
this
.
action
.
address
+
url
,
"
_blank
"
);
}.
bind
(
this
));
},
listHolidayByYearAndName
:
function
(
year
,
name
,
success
,
failure
,
async
){
this
.
action
.
invoke
({
"
name
"
:
"
listHolidayFilter
"
,
"
data
"
:
{
"
q_Year
"
:
year
,
"
q_Name
"
:
name
},
"
async
"
:
async
,
"
success
"
:
success
,
"
failure
"
:
failure
});
},
...
...
o2web/source/o2_core/o2/xAction/services/x_attendance_assemble_control.json
浏览文件 @
83ca6628
...
...
@@ -178,6 +178,12 @@ URL:x_attendance_assemble_control/jaxrs/attendancedetail/filter/list/{id}/prev
//统计导出
"detailsExportStream"
:
{
"uri"
:
"/jaxrs/file/export/filter/{q_topUnitName}/{q_unitName}/{q_empName}/{cycleYear}/{cycleMonth}/{q_date}/{isAbsent}/{isLackOfTime}/{isLate}/stream/{stream}"
,
"method"
:
"GET"
},
//个人出勤率导出
"exportPersonStatisticAttachment"
:
{
"uri"
:
"/jaxrs/file/export/person/{name}/{year}/{month}/stream/{stream}"
,
"method"
:
"GET"
},
//部门出勤率导出
"exportUnitStatisticAttachment"
:
{
"uri"
:
"/jaxrs/file/export/unit/{name}/{year}/{month}/stream/{stream}"
,
"method"
:
"GET"
},
//公司出勤率导出
"exportTopUnitStatisticAttachment"
:
{
"uri"
:
"/jaxrs/file/export/topunit/{name}/{year}/{month}/stream/{stream}"
,
"method"
:
"GET"
},
"clazz"
:
"x_attendance_assemble_control"
}
\ No newline at end of file
o2web/source/x_component_Attendance/PeopleDetail.js
浏览文件 @
83ca6628
...
...
@@ -490,6 +490,7 @@ MWF.xApplication.Attendance.PeopleDetail.DetailStaticExplorer = new Class({
"
<td styles='filterTableTitle' lable='cycleMonth'></td>
"
+
"
<td styles='filterTableValue' item='cycleMonth'></td>
"
+
"
<td styles='filterTableValue' item='action'></td>
"
+
"
<td styles='filterTableValue' item='export'></td>
"
+
"
</tr>
"
+
"
</table>
"
;
this
.
fileterNode
.
set
(
"
html
"
,
html
);
...
...
@@ -526,7 +527,15 @@ MWF.xApplication.Attendance.PeopleDetail.DetailStaticExplorer = new Class({
if
(
!
result
)
return
;
this
.
loadView
(
result
);
}.
bind
(
this
)
}}
}},
export
:
{
"
value
"
:
"
导出
"
,
type
:
"
button
"
,
className
:
"
filterButton
"
,
event
:
{
click
:
function
(){
var
result
=
this
.
form
.
getResult
(
true
,
"
,
"
,
true
,
true
,
false
);
if
(
!
result
)
return
;
debugger
;
this
.
actions
.
exportPersonStatisticAttachment
(
result
.
q_empName
,
result
.
cycleYear
,
result
.
cycleMonth
,
true
);
}.
bind
(
this
)
}}
}
},
this
.
app
,
this
.
css
);
this
.
form
.
load
();
...
...
o2web/source/x_component_Attendance/TopUnitDetail.js
浏览文件 @
83ca6628
...
...
@@ -484,6 +484,7 @@ MWF.xApplication.Attendance.TopUnitDetail.DetailStaticExplorer = new Class({
"
<td styles='filterTableTitle' lable='cycleMonth'></td>
"
+
"
<td styles='filterTableValue' item='cycleMonth'></td>
"
+
"
<td styles='filterTableValue' item='action'></td>
"
+
"
<td styles='filterTableValue' item='export'></td>
"
+
"
</tr>
"
+
"
</table>
"
;
this
.
fileterNode
.
set
(
"
html
"
,
html
);
...
...
@@ -520,7 +521,14 @@ MWF.xApplication.Attendance.TopUnitDetail.DetailStaticExplorer = new Class({
if
(
!
result
)
return
;
this
.
loadView
(
result
);
}.
bind
(
this
)
}}
}},
export
:
{
"
value
"
:
"
导出
"
,
type
:
"
button
"
,
className
:
"
filterButton
"
,
event
:
{
click
:
function
(){
var
result
=
this
.
form
.
getResult
(
true
,
"
,
"
,
true
,
true
,
false
);
if
(
!
result
)
return
;
this
.
actions
.
exportTopUnitStatisticAttachment
(
result
.
q_topUnitName
,
result
.
cycleYear
,
result
.
cycleMonth
,
true
);
}.
bind
(
this
)
}}
}
},
this
.
app
,
this
.
css
);
this
.
form
.
load
();
...
...
o2web/source/x_component_Attendance/UnitDetail.js
浏览文件 @
83ca6628
...
...
@@ -483,6 +483,7 @@ MWF.xApplication.Attendance.UnitDetail.DetailStaticExplorer = new Class({
"
<td styles='filterTableTitle' lable='cycleMonth'></td>
"
+
"
<td styles='filterTableValue' item='cycleMonth'></td>
"
+
"
<td styles='filterTableValue' item='action'></td>
"
+
"
<td styles='filterTableValue' item='export'></td>
"
+
"
</tr>
"
+
"
</table>
"
;
this
.
fileterNode
.
set
(
"
html
"
,
html
);
...
...
@@ -519,7 +520,14 @@ MWF.xApplication.Attendance.UnitDetail.DetailStaticExplorer = new Class({
if
(
!
result
)
return
;
this
.
loadView
(
result
);
}.
bind
(
this
)
}}
}},
export
:
{
"
value
"
:
"
导出
"
,
type
:
"
button
"
,
className
:
"
filterButton
"
,
event
:
{
click
:
function
(){
var
result
=
this
.
form
.
getResult
(
true
,
"
,
"
,
true
,
true
,
false
);
if
(
!
result
)
return
;
this
.
actions
.
exportUnitStatisticAttachment
(
result
.
q_unitName
,
result
.
cycleYear
,
result
.
cycleMonth
,
true
);
}.
bind
(
this
)
}}
}
},
this
.
app
,
this
.
css
);
this
.
form
.
load
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录