DataEntityContextEventArgs entityContextEventArgs = _eventArgs as DataEntityContextEventArgs;
DataEntityRuntimeContext entityCtx = entityContextEventArgs.parmEntityContext();
DataEntityDataSourceRuntimeContext dataSourceCtx = entityContextEventArgs.parmEntityDataSourceContext();
if (dataSourceCtx.name() == dataEntityDataSourceStr(PbmIntegrationJournalLinesEntity, PbmIntegrationJournalLines))
{
PbmIntegrationJournalLinesEntity SalesOrderLineV2Entity = _sender as PbmIntegrationJournalLinesEntity;
PbmIntegrationJournalLines _SalesLine = dataSourceCtx.getBuffer();
if (SalesOrderLineV2Entity.BiPbmWBSLineTypes == BiPbmWBSLineTypes::Trans)
{
_SalesLine.lineType = PbmWBSLineTypes::Trans;
}
if (SalesOrderLineV2Entity.BiPbmWBSLineTypes == BiPbmWBSLineTypes::Activity)
{
_SalesLine.lineType = PbmWBSLineTypes::Activity;
}
if (SalesOrderLineV2Entity.BiPbmWBSLineTypes == BiPbmWBSLineTypes::Summary)
{
_SalesLine.lineType = PbmWBSLineTypes::Activity;
}
if (SalesOrderLineV2Entity.BiPbmWBSLineTypes == BiPbmWBSLineTypes::Detail)
{
_SalesLine.lineType = PbmWBSLineTypes::Activity;
}
}
No comments:
Post a Comment