Пример #1
0
 public function indexAction()
 {
     try {
         $db = new Accounting_Model_DbTable_DbExpense();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('adv_search' => '', 'status_search' => -1);
         }
         $rs_rows = $db->getAllExpense($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' => 'expense', '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());
     }
     $pructis = new Accounting_Form_Frmexpense();
     $frm = $pructis->FrmAddExpense();
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_expense = $frm;
 }
Пример #2
0
 function rptClientAction()
 {
     if ($this->getRequest()->isPost()) {
         // 			$_data = $this->getRequest()->getPost();
         // 			try {
         // 				$_dbmodel = new Global_Model_DbTable_DbProvince();
         // 				$_dbmodel->addNewProvince($_data);
         // 				Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS","/global/index/subject-list");
         // 			}catch (Exception $e) {
         // 				Application_Form_FrmMessage::message("INSERT_FAIL");
         // 				$err =$e->getMessage();
         // 				Application_Model_DbTable_DbUserLog::writeMessageError($err);
         // 			}
     }
     $db = new Accounting_Model_DbTable_DbExpense();
     $this->view->client_list = $db->getAllExpense();
 }
Пример #3
0
 public function indexAction()
 {
     try {
         $db = new Accounting_Model_DbTable_DbExpense();
         $rs_rows = $db->getAllExpense($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' => 'index');
         $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());
     }
 }