当前位置: 首页>>代码示例>>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;未经允许,请勿转载。