<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.macromedia.com/2003/mxml" title="従業員新規・検索">

<mx:Metadata>
	[Event("search")]
	[Event("regist")]
</mx:Metadata>

<mx:Model id="dto">
	<empno>{empno.text}</empno>
	<ename>{ename.text}</ename>
	<fromSal>{fromSal.text}</fromSal>
	<toSal>{toSal.text}</toSal>
</mx:Model>

<mx:Form width="355" height="161">
<mx:FormItem label="従業員番号"><mx:TextInput id="empno" restrict="[0-9]"/></mx:FormItem>
<mx:FormItem label="従業員名"><mx:TextInput id="ename"/></mx:FormItem>
<mx:FormItem label="給料">
<mx:HBox>
<mx:TextInput id="fromSal" width="100" restrict="[0-9]"/><mx:Label text="～" /><mx:TextInput id="toSal" restrict="[0-9]" width="100"/>
</mx:HBox>
</mx:FormItem>
</mx:Form>
<mx:ControlBar>
<mx:Button label="新規" click="dispatchEvent({type:'regist'})"/>
<mx:Button label="検索" click="dispatchEvent({type:'search'})"/>
<mx:Button label="リセット" />
</mx:ControlBar>
</mx:Panel>