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


PHP Location::LoadAllLocations方法代码示例

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


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

示例1: Form_PreRender

 protected function Form_PreRender()
 {
     $objExpansionMap[Location::ExpandCreatedByObject] = true;
     // Get Total Count b/c of Pagination
     $this->dtgLocation->TotalItemCount = Location::CountAllLocations();
     if ($this->dtgLocation->TotalItemCount == 0) {
         $this->dtgLocation->ShowHeader = false;
     } else {
         $this->dtgLocation->DataSource = Location::LoadAllLocations(false, false, $this->dtgLocation->SortInfo, $this->dtgLocation->LimitInfo, $objExpansionMap);
         $this->dtgLocation->ShowHeader = true;
     }
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:12,代码来源:location_list.php

示例2: lstLocationInventoryReceived_Render

 public function lstLocationInventoryReceived_Render(InventoryTransaction $objInventoryTransaction)
 {
     if (!$objInventoryTransaction->blnReturnReceivedStatus()) {
         $strControlId = 'lstLocationInventoryReceived' . $objInventoryTransaction->InventoryTransactionId;
         $lstLocationInventoryReceived = $this->GetControl($strControlId);
         if (!$lstLocationInventoryReceived) {
             // Create the drop down list for this row in the datagrid
             // Use ActionParameter to specify the Id of the AssetTransaction
             $lstLocationInventoryReceived = new QListBox($this->dtgInventoryTransact, $strControlId);
             $lstLocationInventoryReceived->Name = 'Location To Receive';
             $lstLocationInventoryReceived->ActionParameter = $objInventoryTransaction->InventoryTransactionId;
             $lstLocationInventoryReceived->AddItem('- Select One -', null);
             $objLocationArray = Location::LoadAllLocations(false, false, 'short_description', null, null, false, false, false, true);
             if ($objLocationArray) {
                 foreach ($objLocationArray as $objLocation) {
                     $lstLocationInventoryReceived->AddItem($objLocation->__toString(), $objLocation->LocationId);
                 }
             }
             $lstLocationInventoryReceived->AddAction(new QEnterKeyEvent(), new QAjaxAction('btnReceiveInventoryTransaction'));
             $lstLocationInventoryReceived->AddAction(new QEnterKeyEvent(), new QTerminateAction());
         }
         QApplication::AuthorizeControl($this->objReceipt, $lstLocationInventoryReceived, 2);
         return $lstLocationInventoryReceived->Render(false);
     }
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:25,代码来源:receipt_edit.php

示例3: lstDestinationLocation_Create

 protected function lstDestinationLocation_Create()
 {
     $this->lstDestinationLocation = new QListBox($this);
     $this->lstDestinationLocation->Name = 'Location';
     $this->lstDestinationLocation->Required = false;
     $this->lstDestinationLocation->AddItem('- Select One -', null);
     $objLocationArray = Location::LoadAllLocations(false, false, 'short_description', null, null, false, false, false, true);
     if ($objLocationArray) {
         foreach ($objLocationArray as $objLocation) {
             $objListItem = new QListItem($objLocation->__toString(), $objLocation->LocationId);
             $this->lstDestinationLocation->AddItem($objListItem);
         }
     }
     $this->lstDestinationLocation->SelectedIndex = $this->lstDestinationLocation->ItemCount == 2;
     $this->lstDestinationLocation->CausesValidation = false;
 }
开发者ID:proxymoron,项目名称:tracmor,代码行数:16,代码来源:QInventoryTransactComposite.class.php

示例4: lstLocation_Create

 protected function lstLocation_Create()
 {
     $this->lstLocation = new QListBox($this);
     $this->lstLocation->Name = 'Location';
     $this->lstLocation->AddItem('- ALL -', null);
     foreach (Location::LoadAllLocations(false, false, 'short_description') as $objLocation) {
         $this->lstLocation->AddItem($objLocation->ShortDescription, $objLocation->LocationId);
     }
     if ($this->blnUseAjax) {
         $this->lstLocation->AddAction(new QEnterKeyEvent(), new QAjaxControlAction($this, 'btnSearch_Click'));
     } else {
         $this->lstLocation->AddAction(new QEnterKeyEvent(), new QServerControlAction($this, 'btnSearch_Click'));
     }
     $this->lstLocation->AddAction(new QEnterKeyEvent(), new QTerminateAction());
 }
开发者ID:brustj,项目名称:tracmor,代码行数:15,代码来源:QInventorySearchComposite.class.php

示例5: lstLocation_Create

 protected function lstLocation_Create()
 {
     $this->lstLocation = new QListBox($this);
     $this->lstLocation->Name = QApplication::Translate('Location');
     $this->lstLocation->AddItem(QApplication::Translate('- ALL -'), null);
     foreach (Location::LoadAllLocations(false, false, 'short_description') as $objLocation) {
         $this->lstLocation->AddItem($objLocation->ShortDescription, $objLocation->LocationId);
     }
     $this->lstLocation->AddAction(new QEnterKeyEvent(), new QServerAction('btnSearch_Click'));
     $this->lstLocation->AddAction(new QEnterKeyEvent(), new QTerminateAction());
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:11,代码来源:inventory_model_list.php

示例6: lstLocation_Create

 protected function lstLocation_Create()
 {
     $this->lstLocation = new QListBox($this);
     $this->lstLocation->Name = 'Location';
     $this->lstLocation->Required = true;
     $this->lstLocation->AddItem('- Select One -', null);
     $objLocationArray = Location::LoadAllLocations(true, false, 'short_description');
     if ($objLocationArray) {
         foreach ($objLocationArray as $objLocation) {
             $objListItem = new QListItem($objLocation->__toString(), $objLocation->LocationId);
             if ($objLocation->LocationId == 5) {
                 $this->lstLocation->AddItemAt(1, $objListItem);
             } else {
                 $this->lstLocation->AddItem($objListItem);
             }
         }
     }
     $this->lstLocation->TabIndex = 3;
     $this->intNextTabIndex++;
 }
开发者ID:brustj,项目名称:tracmor,代码行数:20,代码来源:QAssetEditComposite.class.php

示例7: lstLocation_Create

 protected function lstLocation_Create()
 {
     $this->lstLocation = new QListBox($this);
     $this->lstLocation->Name = 'Location';
     $this->lstLocation->AddItem('- Select One -', null);
     $objLocationArray = Location::LoadAllLocations(false, false, 'short_description');
     if ($objLocationArray) {
         foreach ($objLocationArray as $objLocation) {
             $objListItem = new QListItem($objLocation->__toString(), $objLocation->LocationId);
             $this->lstLocation->AddItem($objListItem);
         }
     }
     $this->lstLocation->CausesValidation = false;
 }
开发者ID:brustj,项目名称:tracmor,代码行数:14,代码来源:QAssetTransactComposite.class.php

示例8: lstLocation_Create

 protected function lstLocation_Create()
 {
     $this->lstLocation = new QListBox($this);
     $this->lstLocation->Name = 'Location';
     $this->lstLocation->AddItem('- ALL -', null);
     foreach (Location::LoadAllLocations(true, true, 'short_description') as $objLocation) {
         // Keep Shipped and To Be Received at the top of the list
         if ($objLocation->LocationId == 2 || $objLocation->LocationId == 5) {
             $this->lstLocation->AddItemAt(1, new QListItem($objLocation->ShortDescription, $objLocation->LocationId));
         } else {
             $this->lstLocation->AddItem($objLocation->ShortDescription, $objLocation->LocationId);
         }
     }
     $this->lstLocation->AddAction(new QEnterKeyEvent(), new QServerAction('btnSearch_Click'));
     $this->lstLocation->AddAction(new QEnterKeyEvent(), new QTerminateAction());
 }
开发者ID:heshuai64,项目名称:einv2,代码行数:16,代码来源:asset_list.php


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