Beispiel #1
0
 function rptLoanDisburseCoAction(){//realease by co
 	$db  = new Report_Model_DbTable_DbLoan();
 	$rs=$db->getAllLoanco();
 	$this->view->loanrelease_list =$rs;
 	$key = new Application_Model_DbTable_DbKeycode();
 	$this->view->data=$key->getKeyCodeMiniInv(TRUE);
 	
 if($this->getRequest()->isPost()){
 		$search = $this->getRequest()->getPost();
 	}
 	else{
 		$search = array(
 				'branch_id'=>-1,
 				'pay_every'=>'',
 			  	'member'=>'',
 				'co_id'=>-1,
 				'start_date'=> date('Y-m-d'),
 				'end_date'=>date('Y-m-d'));
 			
 	}
 	$this->view->list_end_date=$search;
 	$this->view->loanrelease_list=$db->getAllLoanCo($search);
 	 
 	$frm = new Loan_Form_FrmSearchLoan();
 	$frm = $frm->AdvanceSearch();
 	Application_Model_Decorator::removeAllDecorator($frm);
 	$this->view->frm_search = $frm;
 }