Electronic reporting common used methods
1. ER with TempTable , We could write in table static method also
Internal final class NXRDebitNoteDeclarationERData
{
[ERTableName(tableStr(NXRDebitNoteDeclarationERTableTmp))]
public static RecordLinkList getData(str _param)
{
NXRDebitNoteDeclarationERTableTmp erTable;
NXRCollateralOrgDistributeTable distTable;
RecordLinkList recordLinkList = new RecordLinkList();
int alignedType;
while select distTable
where distTable.PrepayIdParent == _param
{
erTable.PrepayId = distTable.PrepayId;
if(!alignedType)
{
alignedType = 1;
}
else
{
alignedType = 0;
}
erTable.AlignedType = alignedType;
erTable.insert();
recordLinkList.ins(erTable);
}
return recordLinkList;
}
}
create a class type data source and add it
Comments
Post a Comment