![]() |
#2 |
Участник
|
Если я не ошибаюсь, в форме складских проводок есть нечто подобное при нажатии кнопки Print:
void clicked() { menuFunction menuFunction; args args = new args(); switch (inventJournalTable.journalType) { case InventJournalType::Transfer: menuFunction = new menufunction(menuitemoutputStr(InventJournalTransTransfer), menuitemtype::Output); break; case InventJournalType::TagCounting: menuFunction = new menufunction(menuitemoutputStr(InventJournalTrans_Tag), menuitemtype::Output); break; default: menuFunction = new menufunction(menuitemoutputStr(inventJournalTrans), menuitemtype::Output); break; } args.caller(element); args.record(inventJournalTable); args.menuItemName(menuFunction.name()); args.menuItemType(menuFunction.type()); menuFunction.run(args); } |
|