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();
 }
示例#2
0
 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();
 }