<%@ Page Language="C#" MasterPageFile="~/MasterPages/FormDetail.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="SS201000.aspx.cs" Inherits="Page_SS201000" Title="ShipStation Mapping" %>

<%@ MasterType VirtualPath="~/MasterPages/TabView.master" %>

<asp:Content ID="cont1" ContentPlaceHolderID="phDS" runat="Server">
    <px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%" PrimaryView="MappingSetupFilter" TypeName="ShipStation.SSMappingMaint">
        <CallbackCommands>
            <px:PXDSCallbackCommand Name="loadShipStationSchema" Visible="False" />
            <px:PXDSCallbackCommand Name="loadAcumaticaSchema" Visible="False" />
            <px:PXDSCallbackCommand Name="loadMappingSchema" Visible="False" />
        </CallbackCommands>
    </px:PXDataSource>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="phF" runat="server">
    <px:PXFormView runat="server" ID="frmACMappingType" DataMember="MappingSetupFilter" DataSourceID="ds" TabIndex="2200" Width="100%" RenderStyle="Normal">
        <Template>
            <px:PXLayoutRule runat="server" StartRow="True" />
            <px:PXDropDown ID="edAcumaticaExportEntityType" runat="server" CommitChanges="True" DataField="MappingAcumaticaExportEntity" LabelWidth="250px" Size="XM" />
        </Template>
    </px:PXFormView>
</asp:Content>

<asp:Content ID="cont3" ContentPlaceHolderID="phG" runat="server">
    <px:PXGrid ID="grdOrderMapping" runat="server" DataSourceID="ds" SkinID="PrimaryInquire" TabIndex="-18136" Width="100%" SyncPosition="True">
        <EmptyMsg AnonFilteredAddMessage="No records found.
Try to change filter to see records here."
            AnonFilteredMessage="No records found.
Try to change filter to see records here."
            ComboAddMessage="No records found.
Try to change filter or modify parameters above to see records here."
            FilteredAddMessage="No records found.
Try to change filter to see records here."
            FilteredMessage="No records found.
Try to change filter to see records here."
            NamedComboAddMessage="No records found as '{0}'.
Try to change filter or modify parameters above to see records here."
            NamedComboMessage="No records found as '{0}'.
Try to change filter or modify parameters above to see records here."
            NamedFilteredAddMessage="No records found as '{0}'.
Try to change filter to see records here."
            NamedFilteredMessage="No records found as '{0}'.
Try to change filter to see records here." />
        <Levels>
            <px:PXGridLevel DataMember="OrdersMapping" DataKeyNames="LineNbr,EntityType">
                <RowTemplate>
                    <px:PXNumberEdit ID="edLineNbr" runat="server" AlreadyLocalized="False" DataField="LineNbr" DefaultLocale="">
                    </px:PXNumberEdit>
                    <px:PXDropDown ID="edEntityType" runat="server" DataField="EntityType">
                    </px:PXDropDown>
                    <px:PXTextEdit ID="edSSShipStationMappingField__XPath" runat="server" AlreadyLocalized="False" DataField="SSShipStationMappingField__XPath">
                    </px:PXTextEdit>
                    <px:PXSelector ID="edSFieldCD" runat="server" DataField="SFieldCD">
                    </px:PXSelector>
                    <px:PXDropDown ID="edMappingRule" runat="server" CommitChanges="True" DataField="MappingRule" SyncStateWithCommand="True">
                    </px:PXDropDown>
                    <px:PXSelector ID="edAViewName" runat="server" AutoRefresh="True" CommitChanges="True" DataField="AViewName">
                    </px:PXSelector>
                    <px:PXSelector ID="edAFieldCD" runat="server" AutoRefresh="True" CommitChanges="True" DataField="AFieldCD">
                    </px:PXSelector>
                </RowTemplate>
                <Columns>
                    <px:PXGridColumn DataField="LineNbr" TextAlign="Right">
                    </px:PXGridColumn>
                    <px:PXGridColumn DataField="EntityType" Width="140px">
                    </px:PXGridColumn>
                    <px:PXGridColumn DataField="SSShipStationMappingField__XPath" Width="360px">
                    </px:PXGridColumn>
                    <px:PXGridColumn DataField="SFieldCD" Width="220px">
                    </px:PXGridColumn>
                    <px:PXGridColumn DataField="MappingRule" Width="140px" CommitChanges="True">
                    </px:PXGridColumn>
                    <px:PXGridColumn DataField="AViewName" Width="180px" CommitChanges="True">
                    </px:PXGridColumn>
                    <px:PXGridColumn CommitChanges="True" DataField="AFieldCD" Width="220px">
                    </px:PXGridColumn>
                    <px:PXGridColumn DataField="SSShipStationMappingField__Required" TextAlign="Center" Type="CheckBox" Width="100px">
                    </px:PXGridColumn>
   <px:PXGridColumn DataField="SSShipStationMappingField__MaxAllowed" TextAlign="Center"  Width="100px">
                    </px:PXGridColumn>
                    <px:PXGridColumn DataField="SSShipStationMappingField__IsContainer" TextAlign="Center" Type="CheckBox" Width="100px">
                    </px:PXGridColumn>
                </Columns>
            </px:PXGridLevel>
        </Levels>
        <AutoSize MinHeight="500" Container="Window" Enabled="True" />
        <Mode AllowAddNew="False" AllowUpload="False" />
        <ActionBar>
            <Actions>
                <ExportExcel ToolBarVisible="False" />
                <FilterShow ToolBarVisible="False" />
            </Actions>
        </ActionBar>
    </px:PXGrid>
</asp:Content>