#*
 * 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/>.
 *#
## ---------------------------------------------------------------------------
#set ($indicator_id = "indicator-dlg-")
## ---------------------------------------------------------------------------
#ALdialogheader("Myグループ")
#ALajaxIndicator("$indicator_id" "$!portlet.ID" "")
#ALajaxdetailformheader("Myグループ")
#ALtableheaderWide()
#ALtdcaption('グループ名')
#ALtditem($!result.Detail.GroupAliasName)
#ALtdcaption('所属メンバー')
#ALtditemheader()
#set($memberList = $!result.getMemberList($!{result.Detail.GroupName.Value}))
#if($!memberList.size() > 0)
#set($size = $!memberList.size())
#set($count = 1)
#foreach($record in $!memberList)
$!{record.AliasName}#if($count < $size)<br />#end
#set($count = $count + 1)
#end
#else
このグループにはメンバーが指定されていません。
#end
#ALtditemfooter()
#ALtdcaption('所属施設')
#ALtditemheader()
#set($facilityList = $!result.getFacilityList($!{result.Detail.GroupName.Value}))
#if($!facilityList.size() > 0)
#set($size = $!facilityList.size())
#set($count = 1)
#foreach($record in $facilityList)
$!record.FacilityName#if($count < $size)<br />#end
#set($count = $count + 1)
#end
#else
このグループには施設が指定されていません。
#end
#ALtditemfooter()
#ALtablefooter()
#ALbuttonheader()
#ALajaxbuttonEditCallback("$!jslink.getPortletById($!portlet.ID).addQueryData('template','MyGroupFormScreen').addQueryData('entityid',$!{result.Detail.GroupName.Value})" "$!portlet.ID" "aipo.mygroup.onLoadMygroupDialog")
#ALajaxbuttonDelete("$!jslink.getPortletById($!portlet.ID).addQueryData('template','MyGroupFormJSONScreen').addQueryData('entityid',$!{result.Detail.GroupName.Value}).addQueryData('mode', 'delete')" "$indicator_id" "$!portlet.ID" "aipo.mygroup.onReceiveMessage")
#ALajaxbuttonClose()
#ALbuttonfooter()
#ALformfooter()
#ALdialogfooter()
