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


PHP Application_Model_DbTable_DbGlobal::getRate方法代码示例

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


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

示例1: addProgramChargeAction

 public function addProgramChargeAction()
 {
     if ($this->getRequest()->isPost()) {
         try {
             $_data = $this->getRequest()->getPost();
             $_model = new Accounting_Model_DbTable_DbProgramCharge();
             //print_r($_data);exit();
             $rs = $_model->addServiceCharge($_data);
             if (!empty($rs)) {
                 Application_Form_FrmMessage::Sucessfull("INSERT_SUCCESS", "/accounting/ProgramCharge/add-program-charge");
             } else {
                 Application_Form_FrmMessage::Sucessfull("INSERT_FAIL", "/accounting/ProgramCharge/add-program-charge");
             }
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         }
     }
     $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;
     $this->view->rate = $model->getRate();
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:35,代码来源:ProgramChargeController.php

示例2: editServiceChargeAction

 public function editServiceChargeAction()
 {
     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);
     $this->view->frm_ser_category = $frm_ser_category;
     $this->view->rate = $model->getRate();
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:67,代码来源:ServiceChargeController.php


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