#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2011 Aimluck,Inc.
 * http://www.aipo.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *#

## ---------------------------------------------------------------------------
#set ($indicator_id = "indicator-list-")
## ---------------------------------------------------------------------------
#ALajaxIndicator("${indicator_id}" "$!{portlet.ID}" "")
<div id="timecardmessageDiv"></div>
#ALajaxscreenformheader("timecardForm" $jslink $portlet "TimecardFormJSONScreen" "aimluck.io.submit(this, '${indicator_id}','$!portlet.ID',aipo.timecard.onListReceiveMessage)")
#ALtableheaderWide()
<tr>
#ALtdhead("時刻")
#ALtdheadThin(' ')
</tr>
<tr>
#ALtdcellheaderAtt("nowrap=nowrap")
現在時刻 ： $!result.NowTime
#if (!$!result.Detail || $!result.Detail.WorkFlag.toString() != "0")
#if($!{result.Detail.WorkDate})
#set($workdate = $!{result.Detail.WorkDate})
<br/>出勤時間 ： $!{workdate.Year}年$!{workdate.Month}月$!{workdate.Day}日 $!{workdate.Hour}時$!{workdate.Minute}分
#end
#end
#ALtdcellfooter()
#ALtdcellheader()
#if ($!{result.Detail.WorkFlag} && $!{result.Detail.WorkFlag.toString()} == "1")
#ALsubmit('eventSubmit_doTimecard_punchout_' '退 勤')
<input type="hidden" name="mode" value="punchout" />
#else
#ALsubmit('eventSubmit_doTimecard_punchin_' '出 勤')
<input type="hidden" name="mode" value="punchin" />
#end
#ALtdcellfooter()
</tr>
#ALtablefooter()
#ALformfooter()
