Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
851d5cb8
o2oa
项目概览
weixin_42566577
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
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,发现更多精彩内容 >>
提交
851d5cb8
编写于
6月 10, 2020
作者:
B
boomEgg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
考勤管理添加打卡策略
上级
43d46577
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
40 addition
and
10 deletion
+40
-10
o2web/source/x_component_Attendance/ScheduleExplorer.js
o2web/source/x_component_Attendance/ScheduleExplorer.js
+35
-7
o2web/source/x_component_Attendance/lp/zh-cn.js
o2web/source/x_component_Attendance/lp/zh-cn.js
+5
-3
未找到文件。
o2web/source/x_component_Attendance/ScheduleExplorer.js
浏览文件 @
851d5cb8
...
...
@@ -85,7 +85,7 @@ MWF.xApplication.Attendance.ScheduleExplorer.Schedule = new Class({
Extends
:
MWF
.
xApplication
.
Attendance
.
Explorer
.
PopupForm
,
options
:
{
"
width
"
:
600
,
"
height
"
:
45
0
,
"
height
"
:
50
0
,
"
hasTop
"
:
true
,
"
hasBottom
"
:
true
,
"
title
"
:
""
,
...
...
@@ -95,7 +95,6 @@ MWF.xApplication.Attendance.ScheduleExplorer.Schedule = new Class({
_createTableContent
:
function
(){
var
lp
=
this
.
app
.
lp
.
schedule
;
var
signProxy
=
this
.
data
.
signProxy
;
console
.
log
(
signProxy
)
var
html
=
"
<table width='100%' bordr='0' cellpadding='5' cellspacing='0' styles='formTable'>
"
+
"
<tr><td colspan='2' styles='formTableHead'>
"
+
lp
.
setSchedule
+
"
</td></tr>
"
+
"
<tr><td styles='formTabelTitle' lable='unitName'></td>
"
+
...
...
@@ -112,11 +111,17 @@ console.log(signProxy)
"
<td styles='formTableValue' item='offDutyTime'></td></tr>
"
+
"
<tr><td styles='formTabelTitle' lable='lateStartTime'></td>
"
+
"
<td styles='formTableValue' item='lateStartTime'></td></tr>
"
+
"
<tr style='
"
+
(
signProxy
!=
"
3
"
?
"
display: none
"
:
""
)
+
"
'><td styles='formTabelTitle' lable='leaveEarlyStartTimeMorning'></td>
"
+
"
<td styles='formTableValue' item='leaveEarlyStartTimeMorning'></td></tr>
"
+
"
<tr style='
"
+
(
signProxy
!=
"
3
"
?
"
display: none
"
:
""
)
+
"
'><td styles='formTabelTitle' lable='lateStartTimeAfternoon'></td>
"
+
"
<td styles='formTableValue' item='lateStartTimeAfternoon'></td></tr>
"
+
"
<tr><td styles='formTabelTitle' lable='leaveEarlyStartTime'></td>
"
+
"
<td styles='formTableValue' item='leaveEarlyStartTime'></td></tr>
"
+
"
<tr><td styles='formTabelTitle' lable='absenceStartTime'></td>
"
+
"
<td styles='formTableValue' item='absenceStartTime'></td></tr>
"
+
"
</table>
"
;
this
.
formTableArea
.
set
(
"
html
"
,
html
);
MWF
.
xDesktop
.
requireApp
(
"
Template
"
,
"
MForm
"
,
function
(){
...
...
@@ -124,7 +129,10 @@ console.log(signProxy)
this
.
form
=
new
MForm
(
this
.
formTableArea
,
this
.
data
,
{
onPostLoad
:
function
(){
if
(
signProxy
!=
0
&&
signProxy
!=
1
){
this
.
options
.
height
=
570
;
if
(
signProxy
==
3
)
this
.
options
.
height
=
650
;
else
this
.
options
.
height
=
570
;
}
}.
bind
(
this
),
isEdited
:
this
.
isEdited
||
this
.
isNew
,
...
...
@@ -143,19 +151,35 @@ console.log(signProxy)
if
(
signProxy
!=
"
1
"
&&
signProxy
!=
"
0
"
){
this
.
formTableArea
.
getElement
(
"
[lable=middayRestStartTime]
"
).
getParent
().
setStyle
(
"
display
"
,
"
table-row
"
);
this
.
formTableArea
.
getElement
(
"
[lable=middayRestEndTime]
"
).
getParent
().
setStyle
(
"
display
"
,
"
table-row
"
);
this
.
formNode
.
setStyle
(
"
height
"
,
"
570px
"
);
var
tempH
=
"
570px
"
;
if
(
signProxy
==
"
3
"
){
this
.
formTableArea
.
getElement
(
"
[lable=leaveEarlyStartTimeMorning]
"
).
getParent
().
setStyle
(
"
display
"
,
"
table-row
"
);
this
.
formTableArea
.
getElement
(
"
[lable=lateStartTimeAfternoon]
"
).
getParent
().
setStyle
(
"
display
"
,
"
table-row
"
);
tempH
=
"
650px
"
;
this
.
form
.
options
.
itemTemplate
.
lateStartTimeAfternoon
.
notEmpty
=
true
;
}
else
{
this
.
formTableArea
.
getElement
(
"
[lable=leaveEarlyStartTimeMorning]
"
).
getParent
().
setStyle
(
"
display
"
,
"
none
"
);
this
.
formTableArea
.
getElement
(
"
[lable=lateStartTimeAfternoon]
"
).
getParent
().
setStyle
(
"
display
"
,
"
none
"
);
this
.
form
.
options
.
itemTemplate
.
lateStartTimeAfternoon
.
notEmpty
=
false
;
}
this
.
formNode
.
setStyle
(
"
height
"
,
tempH
);
this
.
form
.
options
.
itemTemplate
.
middayRestStartTime
.
text
=
lp
.
signProxy
[
signProxy
].
middayRestStartTime
;
this
.
form
.
options
.
itemTemplate
.
middayRestEndTime
.
text
=
lp
.
signProxy
[
signProxy
].
middayRestEndTime
;
this
.
form
.
options
.
itemTemplate
.
middayRestStartTime
.
notEmpty
=
true
;
this
.
form
.
options
.
itemTemplate
.
middayRestEndTime
.
notEmpty
=
true
;
}
else
{
this
.
formTableArea
.
getElement
(
"
[lable=middayRestStartTime]
"
).
getParent
().
setStyle
(
"
display
"
,
"
none
"
);
this
.
formTableArea
.
getElement
(
"
[lable=middayRestEndTime]
"
).
getParent
().
setStyle
(
"
display
"
,
"
none
"
);
this
.
formNode
.
setStyle
(
"
height
"
,
"
450px
"
);
this
.
formTableArea
.
getElement
(
"
[lable=leaveEarlyStartTimeMorning]
"
).
getParent
().
setStyle
(
"
display
"
,
"
none
"
);
this
.
formTableArea
.
getElement
(
"
[lable=lateStartTimeAfternoon]
"
).
getParent
().
setStyle
(
"
display
"
,
"
none
"
);
this
.
formNode
.
setStyle
(
"
height
"
,
"
500px
"
);
this
.
form
.
options
.
itemTemplate
.
middayRestStartTime
.
notEmpty
=
false
;
this
.
form
.
options
.
itemTemplate
.
middayRestEndTime
.
notEmpty
=
false
;
this
.
form
.
options
.
itemTemplate
.
lateStartTimeAfternoon
.
notEmpty
=
false
;
}
this
.
form
.
data
[
0
].
signProxy
=
signProxy
;
this
.
form
.
load
();
...
...
@@ -166,8 +190,12 @@ console.log(signProxy)
middayRestStartTime
:{
text
:
lp
.
signProxy
[
"
2
"
].
middayRestStartTime
,
tType
:
"
time
"
,
notEmpty
:(
signProxy
!=
0
&&
signProxy
!=
1
)?
true
:
false
},
middayRestEndTime
:{
text
:
lp
.
signProxy
[
"
2
"
].
middayRestEndTime
,
tType
:
"
time
"
,
notEmpty
:(
signProxy
!=
0
&&
signProxy
!=
1
)?
true
:
false
},
offDutyTime
:
{
text
:
lp
.
offTime
,
tType
:
"
time
"
,
notEmpty
:
true
},
lateStartTime
:
{
text
:
lp
.
lateTime
,
tType
:
"
time
"
,
notEmpty
:
true
},
leaveEarlyTime
:
{
text
:
lp
.
leaveEarlyTime
,
tType
:
"
time
"
},
lateStartTime
:
{
text
:
lp
.
lateStartTime
,
tType
:
"
time
"
,
notEmpty
:
true
},
leaveEarlyStartTimeMorning
:
{
text
:
lp
.
leaveEarlyStartTimeMorning
,
tType
:
"
time
"
},
lateStartTimeAfternoon
:
{
text
:
lp
.
lateStartTimeAfternoon
,
tType
:
"
time
"
,
notEmpty
:(
signProxy
!=
0
&&
signProxy
!=
1
)?
true
:
false
},
//leaveEarlyTime : { text:lp.leaveEarlyTime, tType : "time" },
leaveEarlyStartTime
:
{
text
:
lp
.
leaveEarlyStartTime
,
tType
:
"
time
"
},
absenceStartTime
:
{
text
:
lp
.
absenteeismTime
,
tType
:
"
time
"
}
}
},
this
.
app
);
...
...
o2web/source/x_component_Attendance/lp/zh-cn.js
浏览文件 @
851d5cb8
...
...
@@ -81,16 +81,18 @@ MWF.xApplication.Attendance.LP = {
"
workTime
"
:
"
上班时间
"
,
"
offTime
"
:
"
下班时间
"
,
"
lateTime
"
:
"
迟到起算时间
"
,
"
leaveEarlyTime
"
:
"
早退起算时间
"
,
"
absenteeismTime
"
:
"
旷工
起算时间
"
,
"
absenteeismTime
"
:
"
缺勤
起算时间
"
,
"
illegal
"
:{
"
1
"
:[
"
下班时间不得早于上班时间
"
],
"
2
"
:[
"
午休开始时间不得早于上班时间
"
,
"
午休结束时间不得早于午休开始时间
"
,
"
下班时间不得早于午休结束时间
"
],
"
3
"
:[
"
上午下班时间不得早于上班时间
"
,
"
下午上班时间不得早于上午下班时间
"
,
"
下班时间不得早于下午上班时间
"
]
},
"
absenceStartTime
"
:
"
缺勤起算时间
"
,
"
lateStartTime
"
:
"
上午迟到起算时间
"
,
"
leaveEarlyStartTime
"
:
"
下午早退起算时间
"
,
"
leaveEarlyStartTimeMorning
"
:
"
上午早退起算时间
"
,
"
lateStartTimeAfternoon
"
:
"
下午
上班
迟到起算时间
"
,
"
lateStartTimeAfternoon
"
:
"
下午迟到起算时间
"
,
"
signProxy
"
:{
"
name
"
:
"
打卡策略
"
,
"
select
"
:{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录