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


PHP Invoice::unsetAttributes方法代碼示例

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


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

示例1: actionIndex

 public function actionIndex()
 {
     $this->pageTitle = 'Оплаты';
     $model = new Invoice('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Invoice'])) {
         $model->attributes = $_GET['Invoice'];
     }
     $this->render('index', array('model' => $model));
 }
開發者ID:Aplay,項目名稱:anetika_site,代碼行數:11,代碼來源:InvoiceController.php

示例2: actionIndex

 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     parent::actionIndex();
     $this->lookupdata();
     $model = new Invoice('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Invoice'])) {
         $model->attributes = $_GET['Invoice'];
     }
     if (isset($_GET['pageSize'])) {
         Yii::app()->user->setState('pageSize', (int) $_GET['pageSize']);
         unset($_GET['pageSize']);
         // would interfere with pager and repetitive page size change
     }
     $this->render('index', array('model' => $model, 'invoicedet' => $this->invoicedet, 'invoiceacc' => $this->invoiceacc));
 }
開發者ID:bylinggha,項目名稱:Capella-ERP-Indonesia,代碼行數:20,代碼來源:InvoiceapController.php

示例3: array

echo $form->error($model, 'transdate');
?>
        </div>
		</td>
		<td>
		<?php 
echo $form->labelEx($model, 'invoiceid');
?>
    <?php 
echo $form->hiddenField($model, 'invoiceid');
?>
    <input type="text" name="invoiceno" id="invoiceno" readonly >
    <?php 
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'invoice_dialog', 'options' => array('title' => Yii::t('app', 'Invoice'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true)));
$invoice = new Invoice('searchwfstatus');
$invoice->unsetAttributes();
// clear any default values
if (isset($_GET['Invoice'])) {
    $invoice->attributes = $_GET['Invoice'];
}
$this->widget('zii.widgets.grid.CGridView', array('id' => 'invoice-grid', 'dataProvider' => $invoice->searchwfapstatus(), 'filter' => $invoice, 'template' => '{summary}{pager}<br>{items}{pager}{summary}', 'columns' => array(array('header' => '', 'type' => 'raw', 'value' => 'CHtml::Button("V",
          array("name" => "send_absstatus",
          "id" => "send_absstatus",
          "onClick" => "$(\\"#invoice_dialog\\").dialog(\\"close\\"); $(\\"#invoiceno\\").val(\\"$data->invoiceno\\"); 
		  $(\\"#Cashbank_invoiceid\\").val(\\"$data->invoiceid\\");"))'), array('name' => 'invoiceid', 'visible' => false, 'value' => '$data->invoiceid', 'htmlOptions' => array('width' => '1%')), 'invoiceno', array('name' => 'addressbookid', 'value' => '($data->customer!==null)?$data->customer->fullname:""'))));
$this->endWidget('zii.widgets.jui.CJuiDialog');
echo CHtml::Button('...', array('onclick' => '$("#invoice_dialog").dialog("open"); return false;'));
?>
    <?php 
echo $form->error($model, 'addressbookid');
?>
開發者ID:bylinggha,項目名稱:Capella-ERP-Indonesia,代碼行數:31,代碼來源:_form.php

示例4: actionAdmin

 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Invoice('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Invoice'])) {
         $model->attributes = $_GET['Invoice'];
     }
     $this->render('admin', array('model' => $model));
 }
開發者ID:vhangarcia,項目名稱:openbook2.0,代碼行數:13,代碼來源:InvoiceController.php

示例5: actionReportAjax

 /**
  * Manages all models.
  */
 public function actionReportAjax()
 {
     $model = new Invoice('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Invoice'])) {
         $model->attributes = $_GET['Invoice'];
         $from_date = $_GET['Invoice']['from_date'];
         $to_date = $_GET['Invoice']['to_date'];
     } else {
         $from_date = date('Y-m-d');
         $to_dat = date('Y-m-d');
     }
     $model->from_date = $from_date;
     $model->to_date = $to_date;
     if (Yii::app()->request->isAjaxRequest) {
         echo CJSON::encode(array('status' => 'success', 'div' => $this->renderPartial('_report_ajax', array('model' => $model), true, false)));
     } else {
         $this->render('_report', array('model' => $model));
     }
 }
開發者ID:noonnightcoder,項目名稱:bakou-pos-apsara,代碼行數:24,代碼來源:InvoiceController.php


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