當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Application_Model_GlobalClass::getAllServiceItemOption方法代碼示例

本文整理匯總了PHP中Application_Model_GlobalClass::getAllServiceItemOption方法的典型用法代碼示例。如果您正苦於以下問題:PHP Application_Model_GlobalClass::getAllServiceItemOption方法的具體用法?PHP Application_Model_GlobalClass::getAllServiceItemOption怎麽用?PHP Application_Model_GlobalClass::getAllServiceItemOption使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Application_Model_GlobalClass的用法示例。


在下文中一共展示了Application_Model_GlobalClass::getAllServiceItemOption方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: addProgramAction

 public function addProgramAction()
 {
     if ($this->getRequest()->isPost()) {
         try {
             $_data = $this->getRequest()->getPost();
             $_model = new Accounting_Model_DbTable_DbProgram();
             $id = $_model->addprogram($_data);
             $_model = new Application_Model_GlobalClass();
             $service_option = $_model->getAllServiceItemOption();
             $rs = array('id' => $id, "msg" => "INSERT_SUCCESS", 'service_option' => $service_option);
             print_r(Zend_Json::encode($rs));
             exit;
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         }
     }
 }
開發者ID:Bornpagna,項目名稱:guesehouse,代碼行數:18,代碼來源:globalsController.php

示例2: editProgramChargeAction

 public function editProgramChargeAction()
 {
     if ($this->getRequest()->isPost()) {
         try {
             $_data = $this->getRequest()->getPost();
             $_model = new Accounting_Model_DbTable_DbServiceCharge();
             $rs = $_model->upDateServiceCharge($_data);
             if (!empty($rs)) {
                 Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", "/accounting/ServiceCharge/index");
             }
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         }
     }
     $id = $this->getRequest()->getParam('id');
     $_model = new Accounting_Model_DbTable_DbServiceCharge();
     $_rs = $_model->getServiceChargeById($id);
     $db = new Accounting_Model_DbTable_DbServiceCharge();
     $model = new Application_Model_DbTable_DbGlobal();
     $row = 0;
     $key = 0;
     if (!empty($_rs)) {
         foreach ($_rs as $id => $rs) {
             $rows = $db->getServiceFeebyId($rs['service_id']);
             $fee_row = 1;
             if (!empty($rows)) {
                 foreach ($rows as $payment_tran) {
                     if ($payment_tran['pay_type'] == 1) {
                         $rs_rows[$key] = $this->headAddRecordService($rs, $key);
                         $rs_rows[$key]['remark'] = $payment_tran['remark'];
                         $term = $model->getAllServicePayment($fee_row);
                         $rs_rows[$key]['price_' . $payment_tran['pay_type']] = $payment_tran['price'];
                         $key_old = $key;
                         $key++;
                     } elseif ($payment_tran['pay_type'] == 2) {
                         $term = $model->getAllServicePayment($payment_tran['pay_type']);
                         $rs_rows[$key_old]['price_' . $payment_tran['pay_type']] = $payment_tran['price'];
                     } elseif ($payment_tran['pay_type'] == 3) {
                         $term = $model->getAllServicePayment($payment_tran['pay_type']);
                         $rs_rows[$key_old]['price_' . $payment_tran['pay_type']] = $payment_tran['price'];
                     } else {
                         $term = $model->getAllServicePayment($payment_tran['pay_type']);
                         $rs_rows[$key_old]['price_4'] = $payment_tran['price'];
                     }
                 }
             }
         }
     }
     $this->view->service_exist = $rs_rows;
     $frm = new Accounting_Form_FrmServicePrice();
     $frm_set_price = $frm->frmAddServiceCharge($_rs);
     // 		Application_Model_Decorator::removeAllDecorator($frm_set_price);
     // 		$this->view->frm_set_charge = $frm_set_price;
     // 		$_model = new Application_Model_GlobalClass();
     // 		$this->view->service_options = $_model->getAllServiceItemOption();
     // 		$model = new Application_Model_DbTable_DbGlobal();
     // 		$this->view->payment_term = $model->getAllServicePayment();
     // 		$frm=new Application_Form_FrmPopupGlobal();
     // 		$frm_service = $frm->addProgramName();
     // 		Application_Model_Decorator::removeAllDecorator($frm_service);
     // 		$this->view->frm_service_name=$frm_service;
     // 		$frm_ser_category = $frm->addProServiceCategory();
     // 		Application_Model_Decorator::removeAllDecorator($frm_ser_category);
     $frm = new Accounting_Form_FrmServicePrice();
     $frm_set_price = $frm->frmAddProgramCharge();
     Application_Model_Decorator::removeAllDecorator($frm_set_price);
     $this->view->frm_set_charge = $frm_set_price;
     $_model = new Application_Model_GlobalClass();
     $this->view->service_options = $_model->getAllServiceItemOption(2);
     $model = new Application_Model_DbTable_DbGlobal();
     $this->view->payment_term = $model->getAllGEPPrgramPayment();
     $frm = new Application_Form_FrmPopupGlobal();
     $frm_service = $frm->addProgramName(null, 2);
     Application_Model_Decorator::removeAllDecorator($frm_service);
     $this->view->frm_service_name = $frm_service;
     $frm_ser_category = $frm->addProServiceCategory();
     Application_Model_Decorator::removeAllDecorator($frm_ser_category);
     $this->view->frm_ser_category = $frm_ser_category;
 }
開發者ID:Bornpagna,項目名稱:guesehouse,代碼行數:80,代碼來源:ProgramChargeController.php


注:本文中的Application_Model_GlobalClass::getAllServiceItemOption方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。