<?xml version="1.0" encoding="utf-8"?>
<!--
////////////////////////////////////////////////////////////////////////////////
// 株式会社　アイエルエス
// Copyright 2008 ILS
// All Rights Reserved.
//
// NOTICE:折れ線,円グラフ複合
////////////////////////////////////////////////////////////////////////////////
-->
<GcPanel 
	xmlns="bizLibrary.sharedComponent.*"
	xmlns:mx="http://www.adobe.com/2006/mxml"
	width="{Application.application.width}"
	height="{Application.application.height}" 
	creationComplete="onCreationComplete()"
	resize="true"
	>
	
    <!-- データモデルの定義 -->
	
	<mx:Metadata>
		[Event(name="nextBtnClick", type="flash.events.Event")]
		[Event(name="backBtnClick", type="flash.events.Event")]
	</mx:Metadata>
	
	<mx:Script>
		<![CDATA[
			import mx.controls.Alert;
			import cls.com.ils.biz.model.enum.FlgKbn;
			import mx.collections.HierarchicalData;
			import bizLibrary.sharedComponent.MyMenuMaster;
			import cls.com.ils.biz.component.TsAbstructPanel;
			import cls.com.ils.biz.model.enum.ActionMode;
			import mx.collections.ArrayCollection;
			import cls.com.ils.biz.model.SharedPlace;
			import flash.utils.getDefinitionByName;
			import mx.core.UIComponent;
			import mx.core.Application;
			import mx.containers.Canvas;
			import cls.com.ils.biz.utility.logging.AppLoggingTool;
			import mx.collections.XMLListCollection;
			import mx.core.Application;
			import cls.com.ils.common.model.MsgMgr;
			import mx.events.ListEvent;

			import mx.managers.PopUpManager;

			// ステータス
			public var openStats:Boolean = false;

			private var params:Array;

			[Bindable]
	        private var slicedMonthData:XMLList;

			[Bindable]
	        public var dataModelS:XML;


			private function onCreationComplete():void{
	            //外部設定ファイルの読込      
	            getXMLFile(setSokuho);		
			}

			private function setSokuho():void{
				dataModelS = xmlData;
				
				var i:int = dataModelS.data.period.length();
				if(i>0){
					//円グラフを選択する
					regionBreakdown.period = dataModelS.data.period[i-1];
				}
			}


	        private function periodChange():void
	        {
	            regionBreakdown.period = allRegions.selectedPeriod
	        }


		]]>
	</mx:Script>
	
    <mx:HDividedBox width="100%" height="100%">
        <AllRegions id="allRegions" valueData="{dataModelS.data.period}"
        	itemData="{XML(dataModelS.data.item)}"
        	periodChange="periodChange()"
        	width="60%" height="100%" tabIndex="100"/>
        <RegionBreakdown id="regionBreakdown" itemData="{XML(dataModelS.data.item)}"
        	width="40%" height="100%" tabIndex="200" />
    </mx:HDividedBox>
    
</GcPanel>
