public function getGrid($status = StatusTransacaoConst::FLAG_PENDENTE_FINALIZACAO)
 {
     $jqgrid = new JqGridTable();
     $jqgrid->addColunas(array(JqGridConst::LABEL => TransactionConst::LBL_PRODUTO, JqGridConst::NAME => TransactionConst::FLD_PRODUTO));
     $jqgrid->addColunas(array(JqGridConst::LABEL => TransactionConst::LBL_PERSON_USER_ID, JqGridConst::NAME => TransactionConst::FLD_PERSON_USER));
     $jqgrid->addColunas(array(JqGridConst::LABEL => TransactionConst::LBL_STATUS, JqGridConst::NAME => TransactionConst::FLD_STATUS));
     $jqgrid->addColunas(array(JqGridConst::LABEL => TransactionConst::LBL_QUANTIFY, JqGridConst::NAME => TransactionConst::FLD_QUANTIFY));
     $jqgrid->addColunas(array(JqGridConst::LABEL => TransactionConst::LBL_START_DATE, JqGridConst::NAME => TransactionConst::FLD_START_DATE));
     $jqgrid->addColunas(array(JqGridConst::LABEL => 'Acao', JqGridConst::NAME => 'acao', JqGridConst::CLASSCSS => 'text-center'));
     $jqgrid->setUrl(self::URL_GET_DADOS . '?status=' . $status);
     $lblStatus = $status == StatusTransacaoConst::FLAG_FINALIZADO ? StatusTransacaoConst::LABEL_FINALIZADOS : StatusTransacaoConst::LABEL_PENDENTES;
     $jqgrid->setTitle('Transacoes ' . $lblStatus);
     return $jqgrid->renderJs();
 }
 public function getGrid()
 {
     $jqgrid = new JqGridTable();
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_TITLE, JqGridConst::NAME => ProductConst::FLD_TITLE, JqGridConst::WIDTH => 150));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_DESC, JqGridConst::NAME => ProductConst::FLD_DESC, JqGridConst::WIDTH => 300));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_QTD, JqGridConst::NAME => ProductConst::FLD_QTD, JqGridConst::WIDTH => 150));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_UNITY, JqGridConst::NAME => ProductConst::FLD_UNITY, JqGridConst::WIDTH => 100));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_TIPO, JqGridConst::NAME => ProductConst::FLD_TIPO, JqGridConst::WIDTH => 150));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_DATE, JqGridConst::NAME => ProductConst::FLD_DATE, JqGridConst::WIDTH => 150));
     $jqgrid->addColunas(array(JqGridConst::LABEL => 'Acao', JqGridConst::NAME => 'acao', JqGridConst::WIDTH => 80, JqGridConst::CLASSCSS => 'text-center'));
     $jqgrid->setUrl(self::URL_GET_DADOS);
     $jqgrid->setTitle('Doacoes cadastradas');
     $jqgrid->setCollapse(true);
     return $jqgrid->renderJs();
 }
 public function getGrid($isCollapse = false)
 {
     $jqgrid = new JqGridTable();
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_TITLE, JqGridConst::NAME => ProductConst::FLD_TITLE));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_DESC, JqGridConst::NAME => ProductConst::FLD_DESC));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_QTD, JqGridConst::NAME => ProductConst::FLD_QTD));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_COLLECT, JqGridConst::NAME => ProductConst::FLD_COLLECT));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_UNITY, JqGridConst::NAME => ProductConst::FLD_UNITY));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_TIPO, JqGridConst::NAME => ProductConst::FLD_TIPO));
     $jqgrid->addColunas(array(JqGridConst::LABEL => ProductConst::LBL_DATE, JqGridConst::NAME => ProductConst::FLD_DATE));
     $jqgrid->addColunas(array(JqGridConst::LABEL => 'Acao', JqGridConst::NAME => 'acao', JqGridConst::WIDTH => 80, JqGridConst::CLASSCSS => 'text-center'));
     $jqgrid->setUrl(self::URL_GET_DADOS);
     $jqgrid->setTitle('Doacoes Ativas');
     $jqgrid->setCollapse($isCollapse);
     return $jqgrid->renderJs();
 }
 public function getGrid($isCollapse = false, $url = false)
 {
     $jqgrid = new JqGridTable();
     $jqgrid->addColunas(array(JqGridConst::LABEL => MoneyDonationConst::LBL_PERSON_USER_ID, JqGridConst::NAME => MoneyDonationConst::FLD_PERSON_USER_ID));
     $jqgrid->addColunas(array(JqGridConst::LABEL => MoneyDonationConst::LBL_VALUE, JqGridConst::NAME => MoneyDonationConst::FLD_VALUE));
     $jqgrid->addColunas(array(JqGridConst::LABEL => MoneyDonationConst::LBL_START_DATE, JqGridConst::NAME => MoneyDonationConst::FLD_START_DATE));
     $jqgrid->addColunas(array(JqGridConst::LABEL => MoneyDonationConst::LBL_END_DATE, JqGridConst::NAME => MoneyDonationConst::FLD_END_DATE));
     $jqgrid->addColunas(array(JqGridConst::LABEL => MoneyDonationConst::LBL_STATUS, JqGridConst::NAME => MoneyDonationConst::FLD_STATUS));
     $jqgrid->addColunas(array(JqGridConst::LABEL => 'Acao', JqGridConst::NAME => 'acao', JqGridConst::CLASSCSS => 'text-center'));
     $jqgrid->setUrl(!$url ? self::URL_GET_DADOS : $url);
     $title = $url ? 'Doações Finalizadas no periodo' : 'Doacoes pendente de confirmacao';
     $jqgrid->setTitle($title);
     $jqgrid->setTop(10);
     $jqgrid->setCollapse($isCollapse);
     return $jqgrid->renderJs();
 }
 public function getGridTemplate()
 {
     $jqgrid = new JqGridTable();
     $jqgrid->addColunas(array(JqGridConst::LABEL => TemplateEmailConst::LBL_DESC, JqGridConst::NAME => TemplateEmailConst::FLD_DESC, JqGridConst::WIDTH => 150));
     $jqgrid->addColunas(array(JqGridConst::LABEL => 'Acao', JqGridConst::NAME => 'acao', JqGridConst::WIDTH => 80, JqGridConst::CLASSCSS => 'text-center'));
     $jqgrid->setUrl('/relacionamento/getGridTemplate');
     $jqgrid->setTitle('Templates Email');
     return $jqgrid->renderJs();
 }