本文整理汇总了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;
}
}
示例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);
}
}
示例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;
}
示例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());
}
示例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());
}
示例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++;
}
示例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;
}
示例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());
}