当前位置: 首页>>代码示例>>PHP>>正文


PHP Application_Model_GlobalClass::getInvoiceNo方法代码示例

本文整理汇总了PHP中Application_Model_GlobalClass::getInvoiceNo方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_GlobalClass::getInvoiceNo方法的具体用法?PHP Application_Model_GlobalClass::getInvoiceNo怎么用?PHP Application_Model_GlobalClass::getInvoiceNo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Application_Model_GlobalClass的用法示例。


在下文中一共展示了Application_Model_GlobalClass::getInvoiceNo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addAction

 public function addAction()
 {
     if ($this->getRequest()->isPost()) {
         $_data = $this->getRequest()->getPost();
         $_model = new Registrar_Model_DbTable_DbwuRegister();
         //print_r($_data);exit();
         $_model->AddNewStudent($_data);
     }
     $frm = new Registrar_Form_FrmRegister();
     $frm_register = $frm->FrmRegistarWU();
     Application_Model_Decorator::removeAllDecorator($frm_register);
     $this->view->frm_register = $frm_register;
     //        $_marjor =array();
     //        $this->view->marjorlist = $_marjor;
     //        $model = new Application_Model_DbTable_DbGlobal();
     //        $_marjorlist = $model->getMarjorById();
     //        $this->view->marjorlist = $_marjorlist;
     $key = new Application_Model_DbTable_DbKeycode();
     $this->view->keycode = $key->getKeyCodeMiniInv(TRUE);
     $model = new Application_Form_FrmGlobal();
     $this->view->footer = $model->getReceiptFooter();
     $this->view->invoice_no = Application_Model_GlobalClass::getInvoiceNo();
     // echo Application_Model_GlobalClass::getInvoiceNo();
     $__student_card = array();
     $this->view->student_card = $__student_card;
     $db = new Registrar_Model_DbTable_DbwuRegister();
     $this->view->invoice_num = $db->getGaneratInvoiceWU();
     // echo $db->getGaneratInvoiceWU();
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:29,代码来源:RegisterController.php

示例2: editAction

 public function editAction()
 {
 	$id = $this->getRequest()->getParam('id',0);
 	$db_exc=new Tellerandexchange_Model_DbTable_DbxChangeMoney();
 	if($this->getRequest()->isPost()){
 		$formdata=$this->getRequest()->getPost();
 		
 		try {
 			$formdata['id']=$id;
 				$id = $db_exc->editExchange($formdata);
 				Application_Form_FrmMessage::message("EDIT_SUCESS");
 				$this->_redirect('tellerandexchange/xchanges');
 		} catch (Exception $e) {
 			$this->view->msg = 'ការ​បញ្ចូល​មិន​ជោគ​ជ័យ';
 			echo $e->getMessage();exit();
 		}
 	}
 	// action body
 	//Get value from url
 	
 	$session_user=new Zend_Session_Namespace('auth');
 	$this->view->user_name = $session_user->last_name .' '. $session_user->first_name;
 	
 	$db_keycode = new Application_Model_DbTable_DbKeycode();
 	$this->view->keycode = $db_keycode->getKeyCodeMiniInv();
 	
 	$cur = new Application_Model_DbTable_DbCurrencies();
 	$currency = $cur->getCurrencyList();
 	
 	$this->view->currency = $this->_helpfilteroption($currency);
 	$this->view->inv_no = Application_Model_GlobalClass::getInvoiceNo();
 	
 	$rs=$db_exc->getxchangById($id);
//  	print_r($rs);

 	$this->view->dataedit=$rs;
 }
开发者ID:sarankh80,项目名称:lnms,代码行数:37,代码来源:xchangesController.php

示例3: exchangeAction

 public function exchangeAction()
 {
     // action body
     //user name for report
     $session_user = new Zend_Session_Namespace('auth');
     $this->view->user_name = $session_user->last_name . ' ' . $session_user->first_name;
     $db_keycode = new Application_Model_DbTable_DbKeycode();
     $this->view->keycode = $db_keycode->getKeyCodeMiniInv();
     $cur = new Application_Model_DbTable_DbCurrencies();
     $currency = $cur->getCurrencyList();
     $this->view->currency = $this->_helpfilteroption($currency);
     $this->view->inv_no = Application_Model_GlobalClass::getInvoiceNo();
     if ($this->getRequest()->isPost()) {
         $formdata = $this->getRequest()->getPost();
         $db_exc = new Application_Model_DbTable_DbExchange();
         try {
             $id = $db_exc->save($formdata);
             Application_Form_FrmMessage::Sucessfull('ការ​បញ្ចូល​​ជោគ​ជ័យ', self::REDIRECT_URL . '/index/add');
         } catch (Exception $e) {
             $this->view->msg = 'ការ​បញ្ចូល​មិន​ជោគ​ជ័យ';
         }
     }
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:23,代码来源:IndexController.php


注:本文中的Application_Model_GlobalClass::getInvoiceNo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。