-
-
Save devfabriciobr/98773c34f69107b80b793f3668dadb27 to your computer and use it in GitHub Desktop.
EXCLUIR TODOS OS ITENS DO DETAILFORM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| public static function onExcluirItens($param = null) | |
| { | |
| try | |
| { | |
| if(!empty($param['venda_item_venda_list___row__data'])) | |
| { | |
| foreach($param['venda_item_venda_list___row__data'] as $rowDataCoded) | |
| { | |
| $rowDataDecoded = unserialize(base64_decode($rowDataCoded)); | |
| TDataGrid::removeRowById('venda_item_venda_list', $rowDataDecoded->__row__id); | |
| } | |
| } | |
| } | |
| catch (Exception $e) | |
| { | |
| new TMessage('error', $e->getMessage()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment