<%@ Page Language="C#" MasterPageFile="~/MasterPages/FormDetail.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="SS401000.aspx.cs" Inherits="Page_SS401000" Title="ShipStation Log Details" %>
<%@ MasterType VirtualPath="~/MasterPages/FormDetail.master" %>

<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server">
    <px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%" TypeName="ShipStation.SSRequestLogInq" PrimaryView="Logs">
		<CallbackCommands>
             <px:PXDSCallbackCommand Name="ClearLog" />
		</CallbackCommands>
	</px:PXDataSource>
</asp:Content>

<asp:Content ID="cont2" ContentPlaceHolderID="phF" runat="Server">
</asp:Content>

<asp:Content ID="cont3" ContentPlaceHolderID="phG" runat="Server">
    <px:PXGrid ID="grid" runat="server" DataSourceID="ds" Style="z-index: 100" Width="100%" Height="150px" SkinID="PrimaryInquire" TabIndex="4500" FilesIndicator="false" NoteIndicator="false">
        <Levels>
            <px:PXGridLevel DataMember="Logs">
                <RowTemplate>
                    <px:PXNumberEdit ID="edRequestId" runat="server" AlreadyLocalized="False" DataField="RequestId" />
                    <px:PXDateTimeEdit ID="edCreatedDateTime" runat="server" AlreadyLocalized="False" DataField="CreatedDateTime" TimeMode="True"  />
                      <px:PXDateTimeEdit ID="edOrderDate" runat="server" AlreadyLocalized="False" DataField="OrderDate" TimeMode="True"  />
                    <px:PXTextEdit ID="edExportEntityType" runat="server" DataField="ExportEntityType" AlreadyLocalized="False" DefaultLocale="" />
                    <px:PXTextEdit ID="edActionName" runat="server" AlreadyLocalized="False" DataField="ActionName" />
                    <px:PXTextEdit ID="edSalesOrderNbr" runat="server" AlreadyLocalized="False" DataField="SalesOrderNbr" />
                    <px:PXTextEdit ID="edShipmentNbr" runat="server" AlreadyLocalized="False" DataField="ShipmentNbr" />
                    <px:PXTextEdit ID="edLevel" runat="server" AlreadyLocalized="False" DataField="Level" />
                    <px:PXTextEdit ID="edShipNotifyData" runat="server" AlreadyLocalized="False" DataField="ShipNotifyData" />
                    <px:PXTextEdit ID="edDescription" runat="server" AlreadyLocalized="False" DataField="Description" />
                </RowTemplate>
                <Columns>
                    <px:PXGridColumn DataField="RequestId" TextAlign="Right" />
                    <px:PXGridColumn DataField="CreatedDateTime" Width="90px" />
                    <px:PXGridColumn DataField="ExportEntityType" Width="140px" />
                    <px:PXGridColumn DataField="ActionName" />
                    <px:PXGridColumn DataField="SalesOrderNbr" Width="140px" />
                    <px:PXGridColumn DataField="ShipmentNbr" Width="140px" />
                    <px:PXGridColumn DataField="Level" Width="140px" />
                    <px:PXGridColumn DataField="ShipNotifyData" Width="280px"  />
                    <px:PXGridColumn DataField="Description" Width="280px" />
                </Columns>
            </px:PXGridLevel>
        </Levels>
        <AutoSize Container="Window" Enabled="True" MinHeight="150" />
        <Mode AllowAddNew="False" AllowDelete="False" AllowUpdate="False" />     
    </px:PXGrid>

      <px:PXSmartPanel ID="pnlClearLog" runat="server" Caption="Clear Log" CaptionVisible="true" DesignView="Hidden" LoadOnDemand="true" Key="LogFilter" CreateOnDemand="false" AutoCallBack-Enabled="true"
        AutoCallBack-Target="formClearLog" AutoCallBack-Command="Refresh" CallBackMode-CommitChanges="True" CallBackMode-PostData="Page" AcceptButtonID="btnOK" AutoReload="true">
        <px:PXFormView ID="formClearLog" runat="server" DataSourceID="ds" Style="z-index: 100" Width="100%" CaptionVisible="False"  DataMember="LogFilter">
            <ContentStyle BackColor="Transparent" BorderStyle="None" />
            <Template>
                <px:PXLayoutRule ID="PXLayoutRule44" runat="server" StartColumn="True" LabelsWidth="S" ControlSize="M" />
                <px:PXDateTimeEdit ID="edFromDate" runat="server"  CommitChanges="True" DataField="FromDate" LabelWidth="130px" />
            </Template>
        </px:PXFormView>
        <px:PXPanel ID="PXPanel5" runat="server" SkinID="Buttons">
            <px:PXButton ID="btnOK" runat="server" DialogResult="OK" Text="OK"> </px:PXButton>
             <px:PXButton ID="btnCancel" runat="server" DialogResult="Cancel" Text="Cancel"> </px:PXButton>
        </px:PXPanel>
    </px:PXSmartPanel> 

</asp:Content>
