Entity App

module Base {
    export module ClassMain {
        let AppObject = new $$.EntityApp();
        export function onDelete(e: Type.EventInfo) {
            AppObject.onDeleteEventHandler(e);
        }
        export function onGet(e: Type.EventInfo, callback: Type.Callback) {
            AppObject.onGetEventHandler(e).always(function (info: Type.EventInfo, data) {
                callback(info, data)
            })
        }
        export function onLoad(e: Type.EventInfo) {
            AppObject.onLoadEventHandler(e);
        }
        export function onNew(e: Type.EventInfo) {
            AppObject.onNewEventHandler(e);
        }
        export function onReady(e: Type.EventInfo) {
            AppObject.onReadyEventHandler(e);
        }
        export function onSave(e: Type.EventInfo) {
            AppObject.onSaveEventHandler(e);
        }
        export function onExport(e: Type.EventInfo) {
            AppObject.onExportEventHandler(e);
        }
        export function onImport(e: Type.EventInfo) {
            AppObject.onImportEventHandler(e);
        }
    }
}

Last updated