#*
 * 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($tabs = [["申請経路一覧", "",""]])
#set ($indicator_id = "indicator-list-")
#set ($newUrl1 = $!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","WorkflowCategoryFormScreen").addQueryData("entityid","new")))
#set ($newAfterFunction1 = "aipo.workflow_route.onLoadWorkflowRouteDialog")
#set ($newUrl2 = $!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","WorkflowRouteFormScreen").addQueryData("entityid","new")))
#set ($newAfterFunction2 = "aipo.workflow_route.onLoadWorkflowRouteDialog")
#set ($submenulist = [["申請経路を追加する","javascript:aipo.common.showDialog('$newUrl2','$!portlet.ID',$newAfterFunction2);","images/icon/icon_add.gif"]])
## ---------------------------------------------------------------------------
#ALsubmenubar($submenulist "")
#ALtabheader($tabs "")
#ALspacebothheader()
#if($result.List.size() <= 0)
<div class="message">『申請経路を追加する』 ボタンを押して、追加してください。 </div>
#else
#ALajaxIndicator("${indicator_id}" "$!{portlet.ID}" "")
#ALajaxlistformheader('申請経路')
#ALajaxpageview('WorkflowRouteListScreen' $result)
#ALtableheaderWide()
<tr>
#ALtdheadThin("#ALswitchCheckbox()")
#ALtdheadW25("#ALajaxsort('route_name' '申請経路名' $result 'WorkflowRouteListScreen')")
#ALtdheadWide("#ALajaxsort('route' '申請経路' $result 'WorkflowRouteListScreen')")
#ALtdheadThin(' ')
</tr>
#foreach ($record in $result.List)
<tr>
#ALtdcellAtt("<input name='check$!record.RouteId' type='checkbox' value='$!record.RouteId'/>" 'align="center"')
#ALtdcellheader()
<a href="javascript:void(0);" onclick="aipo.common.showDialog('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","WorkflowRouteDetailScreen").addQueryData("entityid",$record.RouteId))');">$!record.RouteName</a>
#ALtdcellfooter()
#ALtdcellheader()
$!record.RouteH
#ALtdcellfooter()
#ALtdcellAtt("#ALajaxbuttonLinkCallback('編集' $!jslink.getPortletById($!portlet.ID).addQueryData('template','WorkflowRouteFormScreen').addQueryData('entityid', $!record.RouteId) 'images/icon/icon_edit.gif' $!portlet.ID 'aipo.workflow_route.onLoadWorkflowRouteDialog')" 'nowrap="nowrap"')
</tr>
#end
#ALtablefooter()
#ALbuttonheaderRight()
選択した申請経路を #ALajaxbuttonCheckboxDelete('削除する' "$!jslink.getPortletById($!portlet.ID).addQueryData('template','WorkflowRouteFormJSONScreen').addQueryData('mode','multi_delete')" "$indicator_id" "$!portlet.ID" "aipo.workflow_route.onReceiveMessage")
#ALbuttonfooterRight()
#ALajaxpageviewFooter('WorkflowRouteListScreen' $result)
#ALformfooter()
#end
#ALspacebothfooter()
#ALajaxtabfooter()
