<%@ Page Title="" Language="C#" MasterPageFile="~/eosWinkartWeb/eosWinkartWeb.Master"
    AutoEventWireup="true" CodeBehind="CustomReports.aspx.cs" Inherits="WebKart.eosWinkartWeb.CustomReports" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table width="100%">
        <tr>
            <td>
                <table width="100%">
                    <asp:Panel runat="server" ID="pnlSections" Visible="false">
                        <tr>
                            <td class="RightTD">
                                <asp:RadioButtonList ID="rdbSelectType" runat="server" Font-Names="Tahoma" Font-Size="11px"
                                    RepeatDirection="Horizontal" OnSelectedIndexChanged="rdbSelectType_OnSelectedIndexChanged" AutoPostBack="True">
                                    <asp:ListItem Value="0" Selected="True">فقط خودم</asp:ListItem>
                                    <asp:ListItem Value="1">پرسنل</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td class="RightTD" style="width: 250px; text-align: left">انتخاب افراد
                            </td>
                        </tr>
                        <tr>
                            <td class="RightTD">
                                <asp:DropDownList ID="ddlSections" runat="server" SkinID="ddlYellow" Width="400px"
                                    DataValueField="Code" DataTextField="Name" Visible="False" Enabled="False">
                                </asp:DropDownList>
                            </td>
                            <td class="RightTD" style="width: 250px; text-align: left">قسمت ها:
                            </td>
                        </tr>
                    </asp:Panel>
                    <tr>
                        <td class="RightTD">
                            <asp:DropDownList ID="ddlZone" runat="server" SkinID="ddlYellow" Width="400px" AutoPostBack="True"
                                DataValueField="ID" DataTextField="Name" OnSelectedIndexChanged="ZoneSelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td class="RightTD" style="width: 250px; text-align: left">گروهبندی گزارشات:
                        </td>
                    </tr>
                    <tr>
                        <td class="RightTD">
                            <asp:DropDownList ID="ddlReports" runat="server" SkinID="ddlYellow" Width="400px"
                                AutoPostBack="True" DataValueField="ID" DataTextField="ReportName" OnSelectedIndexChanged="ReportsSelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td class="RightTD" style="width: 250px; text-align: left">گزارش سفارشي:
                        </td>
                    </tr>
                    <tr>
                        <td class="CenterTD" colspan="2">
                            <hr style="color: Yellow; width: 500px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="CenterTD" colspan="2">
                            <asp:Label runat="server" ID="LblMessage" SkinID="lblError"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="CenterTD">
                <table style="width: 50%; margin-left: 18%;">
                    <tr>
                        <td>
                            <asp:Panel ID="panelFilter" runat="server">
                                <asp:Table ID="tblFilter" runat="server" Width="100%">
                                </asp:Table>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <%--        <tr>
            <td>
                <cc1:StiWebViewer ID="StiWebViewer" runat="server" Height="700px" ServerTimeout="00:30:00"
                    ThemeName="Silver" Width="100%" ShowExportToXps="False" ShowExportToText="False"
                    ShowExportToCsv="False" ShowExportToDbf="False" ShowExportToMetafile="False"
                    ShowExportToOpenDocumentCalc="False" ShowExportToSylk="False" ShowExportToSvgz="False"
                    ShowExportToSvg="False" ShowExportToPcx="False" Visible="False" />
            </td>
        </tr>--%>
        <tr>
            <td class="LeftTD" colspan="2">
                <asp:Button runat="server" Text="گزارش" SkinID="btnOrange" OnClick="GetReportClick"
                    ID="btnReport" Visible="False" />
            </td>
        </tr>
    </table>
    <%--    <table width="100%">
        <tr>
            <td>
                <asp:Panel runat="server" >
                    <table width="100%">
                        <asp:Panel runat="server" ID="pnlSections" Visible="False">
                            <tr>
                                <td class="RightTD">
                                    <asp:DropDownList ID="ddlSections" runat="server" SkinID="ddlYellow" Width="400px"
                                        DataValueField="Code" DataTextField="Name">
                                    </asp:DropDownList>
                                </td>
                                <td class="RightTD" style="width: 250px; text-align: left">
                                    قسمت ها:
                                </td>
                            </tr>
                        </asp:Panel>
                        <tr>
                            <td class="RightTD">
                                <asp:DropDownList ID="ddlReports" runat="server" SkinID="ddlYellow" Width="400px"
                                    AutoPostBack="True" DataValueField="ID" DataTextField="ReportName" OnSelectedIndexChanged="ReportClick">
                                </asp:DropDownList>
                            </td>
                            <td class="RightTD" style="width: 250px; text-align: left">
                                گزارش سفارشی:
                            </td>
                        </tr>
                        <tr>
                            <td class="CenterTD" colspan="2">
                                <hr style="color: Yellow; width: 500px" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="CenterTD">
                <asp:Panel ID="panelFilter" runat="server">
                 <asp:Table ID="tblFilter" runat="server" Width="100%">
                    </asp:Table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="LeftTD" colspan="2">
                <asp:Button runat="server" Text="گزارش" SkinID="btnOrange" OnClick="ReportClick" ID="btnReport" />
            </td>
        </tr>
        <tr>
            <td>
                <cc1:StiWebViewer ID="StiWebViewer" runat="server" Height="700px" ServerTimeout="00:30:00"
                    ThemeName="Silver" Width="100%" ShowExportToXps="False" ShowExportToText="False"
                    ShowExportToCsv="False" ShowExportToDbf="False" ShowExportToMetafile="False"
                    ShowExportToOpenDocumentCalc="False" ShowExportToSylk="False" ShowExportToSvgz="False"
                    ShowExportToSvg="False" ShowExportToPcx="False" Visible="False" />
            </td>
        </tr>
    </table>
    <div>
        <asp:Button ID="cmdSubmit" runat="server" Text="Button"  OnClick="cmdSubmit_Click"/>
        <asp:DropDownList ID="ddlRecipients" runat="server" AutoPostBack="True" 
            onselectedindexchanged="DropDownList1_SelectedIndexChanged">
            <asp:ListItem Value="1">Green</asp:ListItem>
            <asp:ListItem Value="2">Red</asp:ListItem>
        </asp:DropDownList>
    
<asp:table ID="tblRecipients" runat="server"></asp:table>
    </div>--%>
</asp:Content>
