Esempio n. 1
0
 public function indexAction()
 {
     try {
         $db = new Accounting_Model_DbTable_DbIncome();
         //     		if($this->getRequest()->isPost()){
         //     			$search=$this->getRequest()->getPost();
         //     		}
         //     		else{
         //     			$search = array(
         //     					'adv_search' => '',
         //     					'status' => -1);
         //     		}
         $rs_rows = $db->getAllasset($search = null);
         //call frome model
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("BranchId ", "Account No", "Total Amount", "For Date", "Note", "Date", "Status");
         $link = array('module' => 'accounting', 'controller' => 'expense', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('account_id' => $link, 'total_amount' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
 }
Esempio n. 2
0
 public function indexAction()
 {
     try {
         $db = new Accounting_Model_DbTable_DbIncome();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('adv_search' => '', 'status_search' => -1);
         }
         $rs_rows = $db->getAllasset($search);
         //call frome model
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true, 1);
         $list = new Application_Form_Frmtable();
         $collumns = array("Account Name", "Total Amount", "Currency type", "For Date", "Note", "Date", "Status");
         $link = array('module' => 'accounting', 'controller' => 'income', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('account_name' => $link, 'total_amount' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $fm = new Accounting_Form_Frmincome();
     $frm = $fm->FrmIncome();
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_income = $frm;
 }