本文整理汇总了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();
}
示例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;
}
示例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 = 'ការបញ្ចូលមិនជោគជ័យ';
}
}
}