public function indexAction()
 {
     try {
         $db = new Accounting_Model_DbTable_DbAsset();
         //     		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("Branch_id ", "Fixed_Assetname ", "Fixed_Asset_Type", "Asset_Cost", "Usefull_Life", "Salvagevalue", "Payment_method", "Status", "Note");
         $link = array('module' => 'accounting', 'controller' => 'FixedAsset', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('fixed_assetname' => $link, 'fixed_asset_type' => $link, 'asset_cost' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
 }
 public function indexAction()
 {
     try {
         $db = new Accounting_Model_DbTable_DbAsset();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('adv_search' => '', 'status' => -1);
         }
         $rs_rows = $db->getAllAsset($search);
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("BRANCH_NAME  ", "FIXED_ASSETNAME ", "FIXED_ASSET_TYPE", "ASSET_COST", "PAY_TYPE", "USEFULL_LIFE", "SALVAGEVALUE", "TOTA_AMOUNT", "PAYMANT_MATHOD", "Status", "NOTE");
         $link = array('module' => 'accounting', 'controller' => 'FixedAsset', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('fixed_assetname' => $link, 'fixed_asset_type' => $link, 'asset_cost' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $fm = new Application_Form_FrmAdvanceSearch();
     $frm = $fm->AdvanceSearch();
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_search = $frm;
     $fms = new Accounting_Form_Frmasset();
     $frms = $fms->FrmAsset();
     Application_Model_Decorator::removeAllDecorator($frms);
     $this->view->frm_fixedasset = $frms;
 }
Exemple #3
0
 public function indexAction()
 {
     try {
         $db = new Accounting_Model_DbTable_DbAsset();
         $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("BRANCH_NAME", "FIXED_ASSETNAME", "TYPE", "COST", "PAY_TYPE", "USEFULL_LIFE", "SALVAGEVALUE", "AUTO_POST", "PAYMANT_AMOUNT", "PAYMANT_MATHOD", "STATUS", "NOTE");
         $link = array('module' => 'accounting', 'controller' => 'asset', 'action' => 'index');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('asset_name' => $link, 'asset_cost' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
 }