#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2008 Aimluck,Inc.
 * http://aipostyle.com/
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU 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 General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *#
## ---------------------------------------------------------------------------
#if ($result.List.size() == 0)
<div class="message">依頼はありません。</div>
#else
#ALformheader('Workflow' $jslink $portlet)
#ALajaxpageview('WorkflowScreen' $result)
#ALtableheaderWide()
<tr>
#ALtdheadThin("#ALajaxsort('priority' '重要度' $result 'WorkflowScreen')")
#ALtdheadThin("状態")
#ALtdhead("#ALajaxsort('request_name' '表題' $result 'WorkflowScreen')")
#ALtdheadThin("#ALajaxsort('price' '金額' $result 'WorkflowScreen')")
#ALtdhead("#ALajaxsort('create_date' '作成日時' $result 'WorkflowScreen')")
#ALtdheadThin("最終閲覧者")
#ALtdheadThin("進捗")
</tr>
#foreach ($record in $result.List)
<tr>
#ALtdcellAtt("<img src='images/workflow/$!record.PriorityImage' alt='$!record.PriorityString'  title='$!record.PriorityString'/>" 'align="center"')
#ALtdcellheaderAtt('nowrap="nowrap"')
<span class="caution">#if($record.Progress.Value == "D") 差戻要確認 #elseif($record.Progress.Value == "A") 承認済み #else 決裁待ち #end</span>
#ALtdcellfooter()
#ALtdcellheader()
<a href="javascript:void(0);" onclick="aipo.common.showDialog('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","WorkflowDetailScreen").addQueryData('mode','detail').addQueryData('entityid',$record.RequestId).addQueryData('prvid',$record.RequestId))', '$!portlet.ID', aipo.workflow.onLoadWorkflowDetail);">【$!record.CategoryName】#if($!record.RequestName != '') $!record.RequestName #end</a>
#ALtdcellfooter()
#ALtdcellAtt("$!{record.PriceStr}&nbsp;円" 'nowrap')
#ALtdcell("$!record.CreateDate")
#ALtdcell("$!record.LastUpdateUser")
#ALtdcellAtt("$!record.StateString" 'nowrap align="center"')
</tr>
#end
#ALtablefooter()
#ALformfooter()
#end
