Tuesday, March 8, 2016

//Job for generating alerts -

void sendAlerts(EmplId  _emplId,  str     _bodyMsg, ProjId _projId)
{

    EventNotificationSync   alert;
    MenuFunction            MenuFunction;

    str                     dataSourceName;
    ;

    dataSourceName  =   tablestr(inventtransfertable);
    MenuFunction    =   new MenuFunction(menuitemdisplaystr(inventtransferorder), MenuItemType::Display);
    alert           =   EventNotificationsync::newInfo('Order Availability',
                                                _bodyMsg,
                                                'hiiiiii',
                                                NoYes::Yes,
                                                curext(),
                                                ProjTable::find(_ProjId),
                                                dataSourceName,
                                                MenuFunction);

    alert.parmUserId(curUserId());
    alert.create();
}

No comments:

Post a Comment