/**
* @private
* Callback 이벤트 처리
*/
private function resultHandler(event:ResultEvent):void
{
switch (event.target)
{
case spSrch :
if (_savedItem == null)
{
this.dispatchEvent(new SCEvent("eventSearchComplete", new SCObject()));
}
else
{
callLater(function():void
{
// 저장한 건을 다시 Grid Click한 효과 처리하여 재 조회되도록
var _tempItem:SCObject = _resultList.filterItem({comp_cd:_savedItem.comp_cd, egh_no:_savedItem.egh_no}) as SCObject;
var _rowIndex:int = _resultList.getItemIndex(_tempItem);
var _itemRenderer:IListItemRenderer = datagrid.mx_internal::indicesToItemRenderer(_rowIndex, 2);
datagrid.selectedItem = _tempItem;
datagrid.dispatchEvent(new ListEvent("itemClick", false, false, -1, -1, null, _itemRenderer));
_savedItem = null;
});
}
break;
case spCopy :
doSearch();
break;
case spDel :
doSearch();
break;
default :
break;
}
}