This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" MasterPageFile="~/MasterPages/ListView.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="WO202000.aspx.cs" Inherits="Page_WO202000" Title="Untitled Page" %> | |
<%@ MasterType VirtualPath="~/MasterPages/ListView.master" %> | |
<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server"> | |
<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%" | |
TypeName="CMMS.WOMeasurementMaint" | |
PrimaryView="Measurements" | |
> | |
<CallbackCommands> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { autoinject } from 'aurelia-framework'; | |
import { | |
ScreenBaseViewModel, createCollection, graphInfo, commitChanges, BaseViewModel, | |
PXFieldState | |
} from 'client-controls'; | |
@graphInfo({ graphType: 'CMMS.WOMeasurementMaint', primaryView: 'Measurements' }) | |
@autoinject | |
export class WO202000 extends ScreenBaseViewModel { | |
Measurements = createCollection(WOMeasurement, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<qp-grid style="height: 100%" view.bind="Measurements"> | |
<columns> | |
<column field="MeasurementCD"></column> | |
<column field="Descr"></column> | |
</columns> | |
</qp-grid> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region HasSO | |
[PXBool()] | |
[PXFormula(typeof(Switch<Case<Where<SSRQLine.sOOrderNbr, IsNotNull>, True>, False>))] | |
[PXUIField(DisplayName = "", Visibility = PXUIVisibility.Invisible, Visible = false, Enabled = false)] | |
public virtual bool? HasSO { get; set; } | |
public abstract class hasSO : PX.Data.BQL.BqlBool.Field<hasSO> { } | |
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<px:PXGrid StatusField="Availability" FilesIndicator="True" NoteIndicator="True" SkinID="DetailsInTab" SyncPosition="True" Width="100%" runat="server" ID="CstPXGrid1" DataSourceID="ds"> | |
<EditPageParams> | |
<px:PXControlParam ControlID="grid2" Direction="Output" Name="SOOrderType" PropertyName="DataValues["SOOrderType"]" Type="String" ></px:PXControlParam> | |
<px:PXControlParam ControlID="grid2" Direction="Output" Name="SOOrderNbr" PropertyName="DataValues["SOOrderNbr"]" Type="String" ></px:PXControlParam> | |
</EditPageParams> | |
<ActionBar> | |
<CustomItems> | |
<px:PXToolBarButton DependOnGrid="CstPXGrid1" Text="View Line SO" StateColumn="HasSO" > | |
<AutoCallBack Command="ViewLineSO" Target="ds" ></AutoCallBack> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region View Sales Order Button - Used for Linking SO # on Grid to Sales Order Page | |
public PXAction<MyDAC> ViewLineSO; | |
[PXUIField(DisplayName = "View Line SO", MapViewRights = PXCacheRights.Select, MapEnableRights = PXCacheRights.Update)] | |
[PXButton(ImageKey = PX.Web.UI.Sprite.Main.DataEntryF, DisplayOnMainToolbar = false, CommitChanges = true)] | |
protected virtual void viewLineSO() | |
{ | |
MyLine row = Lines.Current; | |
SOOrderEntry graph = PXGraph.CreateInstance<SOOrderEntry>(); | |
graph.Document.Current = graph.Document.Search<SOOrder.orderType, SOOrder.orderNbr>(row.SOOrderType, row.SOOrderNbr); | |
if (graph.Document.Current != null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public PXFilter<GlobalSearchFilter> Filter; | |
public PXSelect<GlobalItem> Details; | |
public IEnumerable details() | |
{ | |
using (new PXReadBranchRestrictedScope()) | |
{ | |
return PXSelect<GlobalSearchFilter, | |
Where2<Where<GlobalSearchFilter.descr, Like<@P.AsString>, Or<@P.AsString, IsNull>>, | |
And<Where2<Where<GlobalSearchFilter.descr, Like<@P.AsString>, Or<@P.AsString, IsNull>>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add screen BLOG3010 { | |
add container "Packages" { | |
displayName = "Packages" | |
fieldsToShow = 3 | |
add field "PackageID" { | |
listPriority = 99 | |
} | |
add field "OrderType" { | |
listPriority = 98 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add screen GI000095 { | |
type = FilterListScreen | |
add container "Filter_" { | |
add field "PackageID" { | |
special = BarCodeScan | |
} | |
} | |
add container "Result" { | |
add field "PackageID" | |
add field "OrderType" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update sitemap { | |
add folder "BlogPackages" { | |
type = HubFolder | |
isDefaultFavorite = True | |
displayName = "Blog Packages" | |
icon = "system://Box2" | |
add item "GI000095" { | |
displayName = "Blog Packages" | |
icon = "system://Box2" | |
} |