Показать сообщение отдельно
Старый 16.08.2011, 18:56   #8  
shogel is offline
shogel
Участник
MCBMSS
Соотечественники
 
132 / 169 (6) ++++++
Регистрация: 21.02.2007
Адрес: Finland
В том то и чудо, что это не выдержки - это полный текст запроса. Вот так выглядит сам метод :
X++:
void clicked()
{
    Args                            menuArgs = new Args();
    MenuFunction                    menuFunction;
    ProdJournalRouteProj            prodJournalRouteProj;
    ProdJournalTable                prodJournalTable;
    ProdJournalBOM                  prodJournalBOM;

    menuArgs.caller(element);

    switch (projUnpostedTransView.UnionAllBranchId)
    {
        case 8:     //projProdJournalBOMUnpostedView
            select prodJournalTable
                where prodJournalBOM.ProjTransId == projUnpostedTransView.TransId
                &&    prodJournalTable.JournalId == prodJournalRouteProj.JournalId;
            menuArgs.record(prodJournalTable);
            menuFunction = new MenuFunction(menuitemDisplayStr(ProdJournalTableAll), MenuItemType::Display);
            break;
    }

    menuFunction.run(menuArgs);
}
__________________
The 50-50-90 rule: Any time you have a 50-50 chance of getting something right, there’s a 90% probability you’ll get it wrong.