1. 호출 화면
/**
* @private
* 그리드 클릭 이벤트
*/
private function itemClickHandler(event:ListEvent):void
{
var item:SCObject = event.itemRenderer.data as SCObject;
var dataField:String = event.itemRenderer["dataField"];
switch (dataField)
{
case "calc_amt" :
if (StringUtil.isNullTrim(item.calc_amt)) return;
var param:SCObject = item.clone();
param.aprv_ym_fr = item.aprv_ym;
param.aprv_ym_to = item.aprv_ym;
var moduleInfo:Object = SCXMLUtils.getElementById("UPC83000", Environments.menus);
var window:Window = SCMDIManager.getInstance().createWindow(moduleInfo.@id, moduleInfo.@label, moduleInfo.@url) as Window;
callLater(function():void
{
setTimeout(function():void
{
window.dispatchEvent(new SCEvent("postProcess", param));
}, 1000);
});
// setTimeout(function():void
// {
// callLater(function():void
// {
// window.dispatchEvent(new SCEvent("postProcess", param));
// });
// }, 1000);
break;
default :
break;
}
}
2. 해당 메뉴화면 EM 모듈
<portlet:SCPortletModule
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:vc="http://www.emro.co.kr/volcano"
xmlns:portlet="modules.portal.portlet.*"
xmlns:rpt="modules.bp.price.rpt.*"
initialize="initializeHandler(event)"
creationComplete="creationCompleteHandler(event)">
<mx:Script>
<![CDATA[
import mx.events.FlexEvent;
import volcano.uxcom.collections.SCObject;
import volcano.uxcom.events.SCEvent;
[Bindable]
private var _menuCode:String;
/**
* @private
* SCPortletModule.postProcess Override
*/
override public function postProcess(event:SCEvent):void
{
var param:SCObject = event.object as SCObject;
ESRptRsenCalList.setParam(param);
}
3. 해당 메뉴화면 ES 모듈
/**
* @public
* portal에서 호출시
*/
public function setParam(value:SCObject):void
{
if (_companyList.length == 1)
{
callLater(setParam, [value]);
}
else
{
_searchParam = value;
callLater(doSearch);
}
}