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


PHP Receipt::LoadAll方法代码示例

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


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

示例1: lstReceipt_Create

 protected function lstReceipt_Create()
 {
     $this->lstReceipt = new QListBox($this);
     $this->lstReceipt->Name = QApplication::Translate('Receipt');
     $this->lstReceipt->AddItem(QApplication::Translate('- Select One -'), null);
     $objReceiptArray = Receipt::LoadAll();
     if ($objReceiptArray) {
         foreach ($objReceiptArray as $objReceipt) {
             $objListItem = new QListItem($objReceipt->__toString(), $objReceipt->ReceiptId);
             if ($objReceipt->TransactionId == $this->objTransaction->TransactionId) {
                 $objListItem->Selected = true;
             }
             $this->lstReceipt->AddItem($objListItem);
         }
     }
     // Because Receipt's Receipt is not null, if a value is already selected, it cannot be changed.
     if ($this->lstReceipt->SelectedValue) {
         $this->lstReceipt->Enabled = false;
     }
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:20,代码来源:TransactionEditFormBase.class.php

示例2: dtgReceipt_Bind

 public function dtgReceipt_Bind()
 {
     // Get Total Count b/c of Pagination
     $this->dtgReceipt->TotalItemCount = Receipt::CountAll();
     $objClauses = array();
     if ($objClause = $this->dtgReceipt->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     if ($objClause = $this->dtgReceipt->LimitClause) {
         array_push($objClauses, $objClause);
     }
     $this->dtgReceipt->DataSource = Receipt::LoadAll($objClauses);
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:13,代码来源:ReceiptListPanelBase.class.php

示例3: Refresh

 /**
  * Refresh this MetaControl with Data from the local Transaction object.
  * @param boolean $blnReload reload Transaction from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objTransaction->Reload();
     }
     if ($this->lblTransactionId) {
         if ($this->blnEditMode) {
             $this->lblTransactionId->Text = $this->objTransaction->TransactionId;
         }
     }
     if ($this->lstEntityQtype) {
         $this->lstEntityQtype->SelectedValue = $this->objTransaction->EntityQtypeId;
     }
     if ($this->lblEntityQtypeId) {
         $this->lblEntityQtypeId->Text = $this->objTransaction->EntityQtypeId ? EntityQtype::$NameArray[$this->objTransaction->EntityQtypeId] : null;
     }
     if ($this->lstTransactionType) {
         $this->lstTransactionType->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstTransactionType->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objTransactionTypeArray = TransactionType::LoadAll();
         if ($objTransactionTypeArray) {
             foreach ($objTransactionTypeArray as $objTransactionType) {
                 $objListItem = new QListItem($objTransactionType->__toString(), $objTransactionType->TransactionTypeId);
                 if ($this->objTransaction->TransactionType && $this->objTransaction->TransactionType->TransactionTypeId == $objTransactionType->TransactionTypeId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstTransactionType->AddItem($objListItem);
             }
         }
     }
     if ($this->lblTransactionTypeId) {
         $this->lblTransactionTypeId->Text = $this->objTransaction->TransactionType ? $this->objTransaction->TransactionType->__toString() : null;
     }
     if ($this->txtNote) {
         $this->txtNote->Text = $this->objTransaction->Note;
     }
     if ($this->lblNote) {
         $this->lblNote->Text = $this->objTransaction->Note;
     }
     if ($this->lstCreatedByObject) {
         $this->lstCreatedByObject->RemoveAllItems();
         $this->lstCreatedByObject->AddItem(QApplication::Translate('- Select One -'), null);
         $objCreatedByObjectArray = UserAccount::LoadAll();
         if ($objCreatedByObjectArray) {
             foreach ($objCreatedByObjectArray as $objCreatedByObject) {
                 $objListItem = new QListItem($objCreatedByObject->__toString(), $objCreatedByObject->UserAccountId);
                 if ($this->objTransaction->CreatedByObject && $this->objTransaction->CreatedByObject->UserAccountId == $objCreatedByObject->UserAccountId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstCreatedByObject->AddItem($objListItem);
             }
         }
     }
     if ($this->lblCreatedBy) {
         $this->lblCreatedBy->Text = $this->objTransaction->CreatedByObject ? $this->objTransaction->CreatedByObject->__toString() : null;
     }
     if ($this->calCreationDate) {
         $this->calCreationDate->DateTime = $this->objTransaction->CreationDate;
     }
     if ($this->lblCreationDate) {
         $this->lblCreationDate->Text = sprintf($this->objTransaction->CreationDate) ? $this->objTransaction->__toString($this->strCreationDateDateTimeFormat) : null;
     }
     if ($this->lstModifiedByObject) {
         $this->lstModifiedByObject->RemoveAllItems();
         $this->lstModifiedByObject->AddItem(QApplication::Translate('- Select One -'), null);
         $objModifiedByObjectArray = UserAccount::LoadAll();
         if ($objModifiedByObjectArray) {
             foreach ($objModifiedByObjectArray as $objModifiedByObject) {
                 $objListItem = new QListItem($objModifiedByObject->__toString(), $objModifiedByObject->UserAccountId);
                 if ($this->objTransaction->ModifiedByObject && $this->objTransaction->ModifiedByObject->UserAccountId == $objModifiedByObject->UserAccountId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstModifiedByObject->AddItem($objListItem);
             }
         }
     }
     if ($this->lblModifiedBy) {
         $this->lblModifiedBy->Text = $this->objTransaction->ModifiedByObject ? $this->objTransaction->ModifiedByObject->__toString() : null;
     }
     if ($this->lblModifiedDate) {
         if ($this->blnEditMode) {
             $this->lblModifiedDate->Text = $this->objTransaction->ModifiedDate;
         }
     }
     if ($this->lstReceipt) {
         $this->lstReceipt->RemoveAllItems();
         $this->lstReceipt->AddItem(QApplication::Translate('- Select One -'), null);
         $objReceiptArray = Receipt::LoadAll();
         if ($objReceiptArray) {
             foreach ($objReceiptArray as $objReceipt) {
                 $objListItem = new QListItem($objReceipt->__toString(), $objReceipt->ReceiptId);
                 if ($objReceipt->TransactionId == $this->objTransaction->TransactionId) {
                     $objListItem->Selected = true;
//.........这里部分代码省略.........
开发者ID:proxymoron,项目名称:tracmor,代码行数:101,代码来源:TransactionMetaControlGen.class.php

示例4: dtgReceipt_Bind

 protected function dtgReceipt_Bind()
 {
     // Because we want to enable pagination AND sorting, we need to setup the $objClauses array to send to LoadAll()
     // Remember!  We need to first set the TotalItemCount, which will affect the calcuation of LimitClause below
     $this->dtgReceipt->TotalItemCount = Receipt::CountAll();
     // Setup the $objClauses Array
     $objClauses = array();
     // If a column is selected to be sorted, and if that column has a OrderByClause set on it, then let's add
     // the OrderByClause to the $objClauses array
     if ($objClause = $this->dtgReceipt->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     // Add the LimitClause information, as well
     if ($objClause = $this->dtgReceipt->LimitClause) {
         array_push($objClauses, $objClause);
     }
     // Set the DataSource to be the array of all Receipt objects, given the clauses above
     $this->dtgReceipt->DataSource = Receipt::LoadAll($objClauses);
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:19,代码来源:ReceiptListFormBase.class.php

示例5: Refresh

 /**
  * Refresh this MetaControl with Data from the local ReceiptCustomFieldHelper object.
  * @param boolean $blnReload reload ReceiptCustomFieldHelper from the database
  * @return void
  */
 public function Refresh($blnReload = false)
 {
     if ($blnReload) {
         $this->objReceiptCustomFieldHelper->Reload();
     }
     if ($this->lstReceipt) {
         $this->lstReceipt->RemoveAllItems();
         if (!$this->blnEditMode) {
             $this->lstReceipt->AddItem(QApplication::Translate('- Select One -'), null);
         }
         $objReceiptArray = Receipt::LoadAll();
         if ($objReceiptArray) {
             foreach ($objReceiptArray as $objReceipt) {
                 $objListItem = new QListItem($objReceipt->__toString(), $objReceipt->ReceiptId);
                 if ($this->objReceiptCustomFieldHelper->Receipt && $this->objReceiptCustomFieldHelper->Receipt->ReceiptId == $objReceipt->ReceiptId) {
                     $objListItem->Selected = true;
                 }
                 $this->lstReceipt->AddItem($objListItem);
             }
         }
     }
     if ($this->lblReceiptId) {
         $this->lblReceiptId->Text = $this->objReceiptCustomFieldHelper->Receipt ? $this->objReceiptCustomFieldHelper->Receipt->__toString() : null;
     }
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:30,代码来源:ReceiptCustomFieldHelperMetaControlGen.class.php


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