Skip to content

Commit

Permalink
PG-1260
Browse files Browse the repository at this point in the history
  -> moved ErpTabs.Bom module functions directly into according BOM tabs
  • Loading branch information
coolOrange-Public committed Nov 30, 2022
1 parent 06f8233 commit 3cc5bd2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 29 deletions.
5 changes: 3 additions & 2 deletions Files/powerEvents/Events/TransferERPBomViaFileTab.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Add-VaultTab -Name 'ERP BOM' -EntityType 'File' -Action {
$erpItemTab_GoToBOMButton.Add_Click({
param($Sender)

GoToErpBom -ErpEntity $erpBomHeader
Start-Process -FilePath $erpBomHeader.Link
})
}
$erpBomTab_control.DataContext = $erpBomHeader
Expand All @@ -85,7 +85,8 @@ Add-VaultTab -Name 'ERP BOM' -EntityType 'File' -Action {
$erpItemTab_ShowBomWindowButton.Add_Click({
param($Sender, $EventArgs)

ShowBomWindow -VaultEntity $selectedFile
Show-BomWindow -Entity $selectedFile
[System.Windows.Forms.SendKeys]::SendWait("{F5}")
})

return $erpBomTab_control
Expand Down
5 changes: 3 additions & 2 deletions Files/powerEvents/Events/TransferERPBomViaItemTab.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Add-VaultTab -Name 'ERP BOM' -EntityType 'Item' -Action {
$erpItemTab_GoToBOMButton.Add_Click({
param($Sender)

GoToErpBom -ErpEntity $erpBomHeader
Start-Process -FilePath $erpBomHeader.Link
})
}
$erpBomTab_control.DataContext = $erpBomHeader
Expand All @@ -85,7 +85,8 @@ Add-VaultTab -Name 'ERP BOM' -EntityType 'Item' -Action {
$erpItemTab_ShowBomWindowButton.Add_Click({
param($Sender, $EventArgs)

ShowBomWindow -VaultEntity $selectedItem
Show-BomWindow -Entity $selectedItem
[System.Windows.Forms.SendKeys]::SendWait("{F5}")
})

return $erpBomTab_control
Expand Down
18 changes: 0 additions & 18 deletions Files/powerEvents/Modules/ErpTabs.Bom.psm1

This file was deleted.

8 changes: 1 addition & 7 deletions Files/powerGate/Modules/BomWindow.psm1
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
function ShowBomWindow {
$entity = GetSelectedObject
Show-BomWindow -Entity $entity
[System.Windows.Forms.SendKeys]::SendWait("{F5}")
}

#region BOm Window functions:
#region BOm Window functions:
#https://www.coolorange.com/wiki/doku.php?id=powergate:code_reference:commandlets:show-bomwindow:required_functions
#
#known limitations:
Expand Down

0 comments on commit 3cc5bd2

Please sign in to comment.