﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<data-set>
  <relations format-version="3" relations-version="20180809" main-table="GIDesign" stable-sharing="True" file-name="(Name)">
    <link from="GIFilter (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIGroupBy (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIMassAction (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIMassUpdateField (DesignID)" to="GIDesign (DesignID)" />
    <link from="GINavigationScreen (DesignID)" to="GIDesign (DesignID)" />
    <link from="GINavigationParameter (DesignID, ScreenID)" to="GINavigationScreen (DesignID, ScreenID)" />
    <link from="GIOn (DesignID, RelationNbr)" to="GIRelation (DesignID, LineNbr)" />
    <link from="GIRecordDefault (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIRelation (DesignID, ParentTable)" to="GITable (DesignID, Alias)" />
    <link from="GIRelation (DesignID, ChildTable)" to="GITable (DesignID, Alias)" />
    <link from="GIResult (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIResult (ObjectName, DesignID)" to="GITable (Alias, DesignID)" />
    <link from="GISort (DesignID)" to="GIDesign (DesignID)" />
    <link from="GITable (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIWhere (DesignID)" to="GIDesign (DesignID)" />
    <link from="SiteMap (Url)" to="GIDesign (DesignID)" type="WeakByUrl" linkname="toDesignById" baseurl="~/GenericInquiry/GenericInquiry.aspx" paramnames="id" />
    <link from="SiteMap (Url)" to="GIDesign (Name)" type="WeakByUrl" linkname="toDesignByName" baseurl="~/GenericInquiry/GenericInquiry.aspx" />
    <link from="ListEntryPoint (ListScreenID)" to="SiteMap (ScreenID)" />
    <link from="SiteMap (ScreenID)" to="GIDesign (PrimaryScreenIDNew)" linkname="to1Screen" />
    <link from="SiteMap (NodeID)" to="SiteMap (ParentID)" type="WeakToParent" recursive-nesting="yes" include-parents="False" />
    <link from="FilterHeader (ScreenID)" to="SiteMap (ScreenID)" />
    <link from="FilterRow (FilterID)" to="FilterHeader (FilterID)" />
    <link from="PivotTable (NoteID)" to="FilterHeader (RefNoteID)" />
    <link from="PivotField (ScreenID, PivotTableID)" to="PivotTable (ScreenID, PivotTableID)" />
    <link from="MUIScreen (NodeID)" to="SiteMap (NodeID)" />
    <link from="MUIWorkspace (WorkspaceID)" to="MUIScreen (WorkspaceID)" type="FromMaster" linkname="workspaceToScreen" split-location="yes" updateable="True" />
    <link from="MUISubcategory (SubcategoryID)" to="MUIScreen (SubcategoryID)" type="FromMaster" updateable="True" />
    <link from="MUITile (ScreenID)" to="SiteMap (ScreenID)" />
    <link from="MUIWorkspace (WorkspaceID)" to="MUITile (WorkspaceID)" type="FromMaster" linkname="workspaceToTile" split-location="yes" updateable="True" />
    <link from="MUIArea (AreaID)" to="MUIWorkspace (AreaID)" type="FromMaster" updateable="True" />
    <link from="MUIPinnedScreen (NodeID, WorkspaceID)" to="MUIScreen (NodeID, WorkspaceID)" type="WeakIfEmpty" isEmpty="Username" />
    <link from="MUIFavoriteWorkspace (WorkspaceID)" to="MUIWorkspace (WorkspaceID)" type="WeakIfEmpty" isEmpty="Username" />
    <link from="GIDesign (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIFilter (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIFilter (NoteID)" to="GIFilterKvExt (RecordID)" type="RowKvExt" />
    <link from="GIGroupBy (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIOn (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIRelation (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIResult (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIResult (NoteID)" to="GIResultKvExt (RecordID)" type="RowKvExt" />
    <link from="GISort (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GITable (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIWhere (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="FilterHeader (NoteID)" to="Note (NoteID)" type="Note" />
  </relations>
  <layout>
    <table name="GIDesign">
      <table name="GIFilter" uplink="(DesignID) = (DesignID)">
        <table name="Note" uplink="(NoteID) = (NoteID)" />
        <table name="GIFilterKvExt" uplink="(NoteID) = (RecordID)" />
      </table>
      <table name="GIGroupBy" uplink="(DesignID) = (DesignID)">
        <table name="Note" uplink="(NoteID) = (NoteID)" />
      </table>
      <table name="GIMassAction" uplink="(DesignID) = (DesignID)" />
      <table name="GIMassUpdateField" uplink="(DesignID) = (DesignID)" />
      <table name="GINavigationScreen" uplink="(DesignID) = (DesignID)">
        <table name="GINavigationParameter" uplink="(DesignID, ScreenID) = (DesignID, ScreenID)" />
      </table>
      <table name="GIRecordDefault" uplink="(DesignID) = (DesignID)" />
      <table name="GISort" uplink="(DesignID) = (DesignID)">
        <table name="Note" uplink="(NoteID) = (NoteID)" />
      </table>
      <table name="GITable" uplink="(DesignID) = (DesignID)">
        <table name="GIRelation" uplink="(DesignID, Alias) = (DesignID, ParentTable)">
          <table name="GIOn" uplink="(DesignID, LineNbr) = (DesignID, RelationNbr)">
            <table name="Note" uplink="(NoteID) = (NoteID)" />
          </table>
          <table name="Note" uplink="(NoteID) = (NoteID)" />
        </table>
        <table name="GIResult" uplink="(Alias, DesignID) = (ObjectName, DesignID)">
          <table name="Note" uplink="(NoteID) = (NoteID)" />
          <table name="GIResultKvExt" uplink="(NoteID) = (RecordID)" />
        </table>
        <table name="Note" uplink="(NoteID) = (NoteID)" />
      </table>
      <table name="GIWhere" uplink="(DesignID) = (DesignID)">
        <table name="Note" uplink="(NoteID) = (NoteID)" />
      </table>
      <table name="SiteMap" uplink="(DesignID) = (Url)" recursion="(NodeID) = (ParentID)" linkname="toDesignById">
        <table name="ListEntryPoint" uplink="(ScreenID) = (ListScreenID)" />
        <table name="FilterHeader" uplink="(ScreenID) = (ScreenID)">
          <table name="FilterRow" uplink="(FilterID) = (FilterID)" />
          <table name="PivotTable" uplink="(RefNoteID) = (NoteID)">
            <table name="PivotField" uplink="(ScreenID, PivotTableID) = (ScreenID, PivotTableID)" />
          </table>
          <table name="Note" uplink="(NoteID) = (NoteID)" />
        </table>
        <table name="MUIScreen" uplink="(NodeID) = (NodeID)">
          <table name="MUIPinnedScreen" uplink="(NodeID, WorkspaceID) = (NodeID, WorkspaceID)" />
        </table>
        <table name="MUITile" uplink="(ScreenID) = (ScreenID)" />
      </table>
      <table name="SiteMap" uplink="(Name) = (Url)" recursion="(NodeID) = (ParentID)" linkname="toDesignByName">
        <table name="ListEntryPoint" uplink="(ScreenID) = (ListScreenID)" />
        <table name="FilterHeader" uplink="(ScreenID) = (ScreenID)">
          <table name="FilterRow" uplink="(FilterID) = (FilterID)" />
          <table name="PivotTable" uplink="(RefNoteID) = (NoteID)">
            <table name="PivotField" uplink="(ScreenID, PivotTableID) = (ScreenID, PivotTableID)" />
          </table>
          <table name="Note" uplink="(NoteID) = (NoteID)" />
        </table>
        <table name="MUIScreen" uplink="(NodeID) = (NodeID)">
          <table name="MUIPinnedScreen" uplink="(NodeID, WorkspaceID) = (NodeID, WorkspaceID)" />
        </table>
        <table name="MUITile" uplink="(ScreenID) = (ScreenID)" />
      </table>
      <table name="SiteMap" uplink="(PrimaryScreenIDNew) = (ScreenID)" recursion="(NodeID) = (ParentID)" linkname="to1Screen">
        <table name="ListEntryPoint" uplink="(ScreenID) = (ListScreenID)" />
        <table name="FilterHeader" uplink="(ScreenID) = (ScreenID)">
          <table name="FilterRow" uplink="(FilterID) = (FilterID)" />
          <table name="PivotTable" uplink="(RefNoteID) = (NoteID)">
            <table name="PivotField" uplink="(ScreenID, PivotTableID) = (ScreenID, PivotTableID)" />
          </table>
          <table name="Note" uplink="(NoteID) = (NoteID)" />
        </table>
        <table name="MUIScreen" uplink="(NodeID) = (NodeID)">
          <table name="MUIPinnedScreen" uplink="(NodeID, WorkspaceID) = (NodeID, WorkspaceID)" />
        </table>
        <table name="MUITile" uplink="(ScreenID) = (ScreenID)" />
      </table>
      <table name="Note" uplink="(NoteID) = (NoteID)" />
    </table>
    <table name="MUIWorkspace">
      <table name="MUIFavoriteWorkspace" uplink="(WorkspaceID) = (WorkspaceID)" />
    </table>
    <table name="MUISubcategory" />
    <table name="MUIArea" />
  </layout>
  <data>
    <GIDesign>
      <row DesignID="cf8d1e76-50ae-4c67-b97c-a20db27cc4bb" Name="SO-OpenByCustomer" FilterColCount="2" PageSize="0" ExportTop="0" NewRecordCreationEnabled="0" MassDeleteEnabled="0" AutoConfirmDelete="0" MassRecordsUpdateEnabled="0" MassActionsOnRecordsEnabled="0" ExposeViaOData="0" ExposeViaMobile="0">
        <GIFilter LineNbr="4" IsActive="1" Name="OrderStatus" FieldName="PX.Data.Maintenance.GI.CheckboxCombobox+checkbox" DataType="string" DisplayName="Open Only" IsExpression="1" ColSpan="1" Required="0" />
        <GIFilter LineNbr="3" IsActive="1" Name="Customer" FieldName="Customer.acctCD" DataType="string" DisplayName="Customer" IsExpression="0" ColSpan="1" Required="0" />
        <GIFilter LineNbr="2" IsActive="1" Name="DateTo" FieldName="SOOrder.orderDate" DataType="string" DisplayName="Date To" IsExpression="0" DefaultValue="@YearEnd" ColSpan="1" Required="1" />
        <GIFilter LineNbr="1" IsActive="1" Name="DateFrom" FieldName="SOOrder.orderDate" DataType="string" DisplayName="Date From" IsExpression="1" DefaultValue="@YearStart" ColSpan="1" Required="1" />
        <GISort LineNbr="2" IsActive="1" DataFieldName="Customer.acctName" SortOrder="A" />
        <GISort LineNbr="1" IsActive="1" DataFieldName="SOOrder.orderDate" SortOrder="A" />
        <GITable Alias="SOOrder" Name="PX.Objects.SO.SOOrder">
          <GIRelation LineNbr="1" ChildTable="Customer" IsActive="1" JoinType="I">
            <GIOn LineNbr="1" ParentField="customerID" Condition="E " ChildField="bAccountID" Operation="A" />
          </GIRelation>
          <GIResult LineNbr="7" SortOrder="7" IsActive="1" Field="status" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="1" RowID="a9ce92d1-480f-4b1f-a0ee-f4d2de0abf6f" />
          <GIResult LineNbr="6" SortOrder="6" IsActive="1" Field="orderTotal" Caption="Sales Order Total" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="1" RowID="9fab4757-f693-4556-a994-525cb901d65e" />
          <GIResult LineNbr="5" SortOrder="5" IsActive="1" Field="orderWeight" Caption="Quantity" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="1" RowID="8e8f4c15-c90c-42a9-9a0a-ef6b5b5a28b0" />
          <GIResult LineNbr="4" SortOrder="4" IsActive="1" Field="orderNbr" IsVisible="1" DefaultNav="0" QuickFilter="0" FastFilter="1" RowID="0473f7ef-47d4-45d1-992d-ed0da0dd2b6d" />
          <GIResult LineNbr="1" SortOrder="1" IsActive="1" Field="orderDate" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="94a5cc94-8b6a-425f-aea5-85ce8ff1a4c2" />
        </GITable>
        <GITable Alias="Customer" Name="PX.Objects.AR.Customer">
          <GIResult LineNbr="3" SortOrder="3" IsActive="1" Field="acctName" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="1" RowID="9272bfb6-e97d-4545-8aa0-8fff04d61d58" />
          <GIResult LineNbr="2" SortOrder="2" IsActive="1" Field="acctCD" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="1" RowID="45ce4ffd-1191-4ee6-89d9-896ec80d6943" />
        </GITable>
        <GIWhere LineNbr="8" IsActive="1" DataFieldName="SOOrder.orderType" Condition="E " IsExpression="1" Value1="SO" Operation="A" />
        <GIWhere LineNbr="7" IsActive="1" DataFieldName="[OrderStatus]" Condition="E " IsExpression="0" Value1="=False" CloseBrackets=")        " Operation="A" />
        <GIWhere LineNbr="6" IsActive="1" DataFieldName="SOOrder.status" Condition="E " IsExpression="1" Value1="N" CloseBrackets=")        " Operation="O" />
        <GIWhere LineNbr="5" IsActive="1" OpenBrackets="((       " DataFieldName="[OrderStatus]" Condition="E " IsExpression="0" Value1="=True" Operation="A" />
        <GIWhere LineNbr="4" IsActive="1" DataFieldName="[Customer]" Condition="NU" IsExpression="0" Operation="A" />
        <GIWhere LineNbr="3" IsActive="1" OpenBrackets="(        " DataFieldName="Customer.acctCD" Condition="E " IsExpression="0" Value1="[Customer]" Operation="O" />
        <GIWhere LineNbr="2" IsActive="1" DataFieldName="SOOrder.orderDate" Condition="LE" IsExpression="0" Value1="[DateTo]" Operation="A" />
        <GIWhere LineNbr="1" IsActive="1" DataFieldName="SOOrder.orderDate" Condition="GE" IsExpression="0" Value1="[DateFrom]" Operation="A" />
        <SiteMap linkname="toDesignById">
          <row Position="16" Title="Open Sales Orders by Customer" Url="~/GenericInquiry/GenericInquiry.aspx?id=cf8d1e76-50ae-4c67-b97c-a20db27cc4bb" Expanded="0" IsFolder="0" ScreenID="GI400001" NodeID="6c80e228-8c82-452c-87ea-5f7cfefb7e1b" ParentID="85e0f6b3-8ae8-43aa-ad7b-ea4d4d5f381e">
            <MUIScreen IsPortal="0" WorkspaceID="bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" Order="1990" SubcategoryID="98e86774-69e3-41ea-b94f-eb2c7a8426d4" />
          </row>
        </SiteMap>
      </row>
    </GIDesign>
    <MUIWorkspace>
      <row IsPortal="1" WorkspaceID="bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" Order="5" Title="Data Views" Icon="poll" IsSystem="1">
        <MUIFavoriteWorkspace IsPortal="0" Username="" IsFavorite="1" />
      </row>
      <row IsPortal="0" WorkspaceID="bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" Order="32" Title="Data Views" Icon="poll" IsSystem="1">
        <MUIFavoriteWorkspace IsPortal="0" Username="" IsFavorite="1" />
      </row>
    </MUIWorkspace>
    <MUISubcategory>
      <row IsPortal="1" SubcategoryID="98e86774-69e3-41ea-b94f-eb2c7a8426d4" Order="896" Name="Inquiries" Icon="" IsSystem="1" />
      <row IsPortal="0" SubcategoryID="98e86774-69e3-41ea-b94f-eb2c7a8426d4" Order="896" Name="Inquiries" Icon="" IsSystem="1" />
    </MUISubcategory>
  </data>
</data-set>