![]() |
#1 |
Moderator
|
MenuItem программно
Как программно вызвать menuItem (с вызовом класса), который на основании переданных параметров строит печатную форму?
Непонятно как передать курсор InventJournalTable. Вот что я написал сам PHP код:
|
|
![]() |
#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); } |
|
![]() |
#3 |
Moderator
|
![]()
Большое СПАСИБО!
![]() |
|
![]() |
#4 |
Участник
|
|
|