Пример #1
0
 public function indexAction()
 {
     try {
         $db = new Accounting_Model_DbTable_DbChartaccount();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('adv_search' => '', 'status' => -1);
         }
         $rs_rows = $db->getAllchartaccounts($search);
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("ACCOUNT_TYPE", "PARENT", "CATEGORY", "ACCOUNT_CODE", "ACCOUNT_NAME_EN", "ACCOUNT_NAME_KH", "STATUS");
         $link = array('module' => 'accounting', 'controller' => 'chartaccount', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('account_name_en' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         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_FrmChartaccount();
     $frms = $fms->FrmChartaccount();
     Application_Model_Decorator::removeAllDecorator($frms);
     $this->view->frm_chartaccount = $frms;
 }
Пример #2
0
 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;
 }
Пример #3
0
 function rptGuideinfoAction()
 {
     //release all loan
     if ($this->getRequest()->isPost()) {
         $search = $this->getRequest()->getPost();
     } else {
         $search = array('adv_search' => '', 'status' => '', 'start_date' => date('Y-m-d'), 'end_date' => date('Y-m-d'));
     }
     $this->view->data = $search;
     $db = new Report_Model_DbTable_DbGuide();
     $this->view->rows = $db->getGuideInfo($search);
     $frm = new Application_Form_FrmAdvanceSearch();
     $form = $frm->AdvanceSearch();
     Application_Model_Decorator::removeAllDecorator($form);
     $this->view->frm = $form;
 }
Пример #4
0
	public function indexAction(){
		try{
			$db = new Payroll_Model_DbTable_DbPermission();
			if($this->getRequest()->isPost()){
				$search=$this->getRequest()->getPost();
			}
			else{
				$search = array(
						'adv_search' => '',
						'status_search' => -1,
						'from_date' =>date('Y-m-d'),
						'to_date' => date('Y-m-d'),
						);
			}
			$rs_rows= $db->getAllPermission($search);
			$glClass = new Application_Model_GlobalClass();//status
			$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL,true);
			$list = new Application_Form_Frmtable();
			$collumns = array("STAFF","BRANCH","APPROVE_BY","DATE_REQUEST","TYPE","FROM_DATE",
					"TO_DATE","TIME","REASON","USER","DATE","STATUS");
			$link=array(
					'module'=>'payroll','controller'=>'permission','action'=>'edit',
			);
			$this->view->list=$list->getCheckList(0, $collumns,$rs_rows,array('staff_name'=>$link,'branch_name'=>$link,'approve_by'=>$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_;
		$fm = new Payroll_Form_FrmPermission();
		$frm_permission=$fm->frmPermission();
		Application_Model_Decorator::removeAllDecorator($frm_permission);
		$this->view->frm_permistion = $frm_permission;
	}