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


PHP Supplier::unsetAttributes方法代码示例

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


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

示例1: actionIndex

 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     parent::actionIndex();
     $purchasingorg = new Purchasingorg('search');
     $purchasingorg->unsetAttributes();
     // clear any default values
     if (isset($_GET['Purchasingorg'])) {
         $purchasingorg->attributes = $_GET['Purchasingorg'];
     }
     $paymentmethod = new Paymentmethod('search');
     $paymentmethod->unsetAttributes();
     // clear any default values
     if (isset($_GET['Paymentmethod'])) {
         $paymentmethod->attributes = $_GET['Paymentmethod'];
     }
     $purchasinggroup = new Purchasinggroup('search');
     $purchasinggroup->unsetAttributes();
     // clear any default values
     if (isset($_GET['Purchasinggroup'])) {
         $purchasinggroup->attributes = $_GET['Purchasinggroup'];
     }
     $supplier = new Supplier('search');
     $supplier->unsetAttributes();
     // clear any default values
     if (isset($_GET['Supplier'])) {
         $supplier->attributes = $_GET['Supplier'];
     }
     $podetail = new Podetail('search');
     $podetail->unsetAttributes();
     // clear any default values
     if (isset($_GET['Podetail'])) {
         $podetail->attributes = $_GET['Podetail'];
     }
     $product = new Prmaterial('search');
     $product->unsetAttributes();
     // clear any default values
     if (isset($_GET['Prmaterial'])) {
         $product->attributes = $_GET['Prmaterial'];
     }
     $unitofmeasure = new Unitofmeasure('search');
     $unitofmeasure->unsetAttributes();
     // clear any default values
     if (isset($_GET['Unitofmeasure'])) {
         $unitofmeasure->attributes = $_GET['Unitofmeasure'];
     }
     $currency = new Currency('search');
     $currency->unsetAttributes();
     // clear any default values
     if (isset($_GET['Currency'])) {
         $currency->attributes = $_GET['Currency'];
     }
     $sloc = new Sloc('search');
     $sloc->unsetAttributes();
     // clear any default values
     if (isset($_GET['Sloc'])) {
         $sloc->attributes = $_GET['Sloc'];
     }
     $tax = new Tax('search');
     $tax->unsetAttributes();
     // clear any default values
     if (isset($_GET['Tax'])) {
         $tax->attributes = $_GET['Tax'];
     }
     $model = new Poheader('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Poheader'])) {
         $model->attributes = $_GET['Poheader'];
     }
     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, 'purchasingorg' => $purchasingorg, 'purchasinggroup' => $purchasinggroup, 'paymentmethod' => $paymentmethod, 'supplier' => $supplier, 'podetail' => $podetail, 'product' => $product, 'unitofmeasure' => $unitofmeasure, 'currency' => $currency, 'sloc' => $sloc, 'tax' => $tax, 'podetail' => $podetail));
 }
开发者ID:bylinggha,项目名称:Capella-ERP-Indonesia,代码行数:79,代码来源:ReportpoController.php

示例2: array

echo $form->error($model, 'invoicedate');
?>
        </div>
		</td>
		<td>
		<?php 
echo $form->labelEx($model, 'addressbookid');
?>
    <?php 
echo $form->hiddenField($model, 'addressbookid');
?>
    <input type="text" name="customername" id="customername" readonly >
    <?php 
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'customer_dialog', 'options' => array('title' => Yii::t('app', 'Supplier'), 'width' => 'auto', 'autoOpen' => false, 'modal' => true)));
$supplier = new Supplier('searchwfstatus');
$supplier->unsetAttributes();
// clear any default values
if (isset($_GET['Supplier'])) {
    $supplier->attributes = $_GET['Supplier'];
}
$this->widget('zii.widgets.grid.CGridView', array('id' => 'customer-grid', 'dataProvider' => $supplier->searchwstatus(), 'filter' => $supplier, '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" => "$(\\"#customer_dialog\\").dialog(\\"close\\"); $(\\"#customername\\").val(\\"$data->fullname\\"); 
		  $(\\"#Invoice_addressbookid\\").val(\\"$data->addressbookid\\");"))'), array('name' => 'addressbookid', 'visible' => false, 'value' => '$data->addressbookid', 'htmlOptions' => array('width' => '1%')), 'fullname')));
$this->endWidget('zii.widgets.jui.CJuiDialog');
echo CHtml::Button('...', array('onclick' => '$("#customer_dialog").dialog("open"); return false;'));
?>
    <?php 
echo $form->error($model, 'addressbookid');
?>
开发者ID:bylinggha,项目名称:Capella-ERP-Indonesia,代码行数:31,代码来源:_form.php

示例3: actionAdmin

 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Supplier('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Supplier'])) {
         $model->attributes = $_GET['Supplier'];
     }
     $this->render('admin', array('model' => $model));
 }
开发者ID:bangphe,项目名称:klinik,代码行数:13,代码来源:SupplierController.php

示例4: actionIndex

 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     parent::actionIndex();
     $this->lookupdata();
     $model = new Supplier('searchwstatus');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Supplier'])) {
         $model->attributes = $_GET['Supplier'];
     }
     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, 'supplieraddress' => $this->supplieraddress, 'suppliercontact' => $this->suppliercontact, 'acchutang' => $this->acchutang));
 }
开发者ID:bylinggha,项目名称:Capella-ERP-Indonesia,代码行数:20,代码来源:SupplierController.php

示例5: actionAdmin

 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     if (Yii::app()->user->checkAccess('supplier.index') || Yii::app()->user->checkAccess('supplier.create') || Yii::app()->user->checkAccess('supplier.update') || Yii::app()->user->checkAccess('supplier.delete')) {
         $model = new Supplier('search');
         $model->unsetAttributes();
         // clear any default values
         if (isset($_GET['Supplier'])) {
             $model->attributes = $_GET['Supplier'];
         }
         $this->render('admin', array('model' => $model));
     } else {
         throw new CHttpException(403, 'You are not authorized to perform this action');
     }
 }
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:17,代码来源:SupplierController.php

示例6: actionIndex

 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     parent::actionIndex();
     $supplier = new Supplier('searchwstatus');
     $supplier->unsetAttributes();
     // clear any default values
     if (isset($_GET['Supplier'])) {
         $supplier->attributes = $_GET['Supplier'];
     }
     $product = new Product('searchwstatus');
     $product->unsetAttributes();
     // clear any default values
     if (isset($_GET['Product'])) {
         $product->attributes = $_GET['Product'];
     }
     $purchasinggroup = new Purchasinggroup('searchwstatus');
     $purchasinggroup->unsetAttributes();
     // clear any default values
     if (isset($_GET['Purchasinggroup'])) {
         $purchasinggroup->attributes = $_GET['Purchasinggroup'];
     }
     $currency = new Currency('searchwstatus');
     $currency->unsetAttributes();
     // clear any default values
     if (isset($_GET['Currency'])) {
         $currency->attributes = $_GET['Currency'];
     }
     $model = new Purchinforec('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Purchinforec'])) {
         $model->attributes = $_GET['Purchinforec'];
     }
     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, 'supplier' => $supplier, 'product' => $product, 'purchasinggroup' => $purchasinggroup, 'currency' => $currency));
 }
开发者ID:bylinggha,项目名称:Capella-ERP-Indonesia,代码行数:43,代码来源:PurchinforecController.php

示例7: actionAdmin

 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Supplier('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Supplier'])) {
         $model->attributes = $_GET['Supplier'];
     }
     if ($this->isExportRequest()) {
         $this->exportCSV($model->search(), array('suppliertype.name', 'add1', 'add2', 'pincode', 'city', 'state', 'country', 'website', 'phone_no', 'comment', 'tax', 'email', 'documentFileName', 'documentFileType', 'vcardFileName', 'vcardFileType'));
     }
     $this->render('admin', array('model' => $model));
 }
开发者ID:anjanababu,项目名称:Asset-Management,代码行数:16,代码来源:SupplierController.php

示例8: actionAdmin

 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     if (Yii::app()->user->checkAccess('supplier.index') || Yii::app()->user->checkAccess('supplier.create') || Yii::app()->user->checkAccess('supplier.update') || Yii::app()->user->checkAccess('supplier.delete')) {
         $model = new Supplier('search');
         $model->unsetAttributes();
         // clear any default values
         if (isset($_GET['Supplier'])) {
             $model->attributes = $_GET['Supplier'];
         }
         if (isset($_GET['pageSize'])) {
             Yii::app()->user->setState('supplierPageSize', (int) $_GET['pageSize']);
             unset($_GET['pageSize']);
         }
         if (isset($_GET['archivedSupplier'])) {
             Yii::app()->user->setState('archived_supplier', $_GET['archivedSupplier']);
             unset($_GET['archivedSupplier']);
         }
         $model->supplier_archived = Yii::app()->user->getState('archived_supplier', Yii::app()->params['defaultArchived']);
         $this->render('admin', array('model' => $model));
     } else {
         throw new CHttpException(403, 'You are not authorized to perform this action');
     }
 }
开发者ID:soklux,项目名称:bakou-pos,代码行数:26,代码来源:SupplierController.php


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