Date                        endDate;
    FormDataSource              fds;
    MultiSelectionHelper        MultiSelectionHelper;
    AssetTable                  assetTable;
    AssetBookId                 bookId;
    AssetBook assetBook;
    IWS_FixedAssetCardContract  contract;
    Args                        argsLocal;
    ;       
    argsLocal= this.parmArgs();
    contract =this.parmReportContract().parmRdpContract() as IWS_FixedAssetCardContract;

    if( argsLocal.callerName() == "AssetTable") //is AssetTable)
    {
            
        fds = args.record().dataSource();
        multiSelectionHelper = MultiSelectionHelper::construct();
        multiSelectionHelper.parmDatasource(fds);
        assetTable = multiSelectionHelper.getFirst();

        select firstonly assetBook where assetBook.assetId == assetTable.assetId;
        bookId = assetBook.BookId;

        List list = new List(Types::String);
        while (assetTable)
        {
            list.addEnd(assetTable.assetId);
            assetTable = multiSelectionHelper.getNext();
        }
    

        contract.parmAssetList(list);
        contract.parmBookId(bookId);

标签: none

添加新评论