<%@ Page Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true" CodeFile="AutomaticClaims.aspx.cs" Inherits="Business_AutomaticClaims"  %>
<%@ Register src="../UserControls/DatePicker.ascx" tagname="DatePicker" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style2
        {
            width: 20%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
                    <tr align="center">
                        <td valign="top">
                            <!------------------------------------body St  ---------------------------------------------->
                            <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                                <tr>
                                    <td>
                                        Automatic Claims</td>
                            </table>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal">  Search Type  </td>
                                    <td colspan="4">
                                        <asp:RadioButton ID="rdMADAClm" runat="server" GroupName="aa" Text="MADA Claims" Checked="True"
                                            AutoPostBack="True" OnCheckedChanged="rdMADAClaims_CheckedChanged" />
                                        <asp:RadioButton ID="rdGCCClm" runat="server" GroupName="aa" Text="GCC Claims" AutoPostBack="True"
                                            OnCheckedChanged="rdGCCClaims_CheckedChanged" />
                                    </td>
        
                                    </tr>
                              </table>
                            <br>
                            <!------------------------------------body End1 ----------------------------------------------->
                            <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                                <tr>
                                    <td align="center">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                            <tr>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                        <br />
                                        <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                            <asp:Panel ID="pnlBR" runat="server" Width="100%">
                                            <fieldset id="addItem">
                                                <legend id="addItem">Loading CPS files</legend>
                                            </fieldset>
                                            <table border="1" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal" style="width: 15%">
                                                        Choose File
                                                    </td>
                                                    <td colspan="3" style="width: 50%">
                                                        <asp:FileUpload ID="FileUpload1" runat="server" class="fieldWithBtn" />
                                                    </td>
                                                    <td class="tdNormal">
                                                        <asp:Button ID="btnUpload" runat="server" Text="Upload" class="Btn_L_Normal" 
                                                            onclick="btnUpload_Click" />
                                                    </td>
                                                </tr>
                                                   <tr>
                                                        <td class="tdNormal" style="width:15%"> Files </td>
                                                        <td class="tdNormal" style="width:30%"><asp:DropDownList ID="ddlFiles" 
                                                                runat="server" DataTextField="filename" 
                                                             DataValueField="filename" class="fieldNormal" ></asp:DropDownList> 
                                                        </td>
                                                        <td class="tdNormal" style="width:10%"> </td>
                                                        <td class="tdNormal" colspan=2 style="width:45%"> <asp:Button ID="btnLoad" runat="server" Text="   Load   "
                                                                class="Btn_M_Normal" onclick="btnLoad_Click"/>
                                                        </td>
                                                    </tr>
                                            </table>
                                            <br />
                                                <fieldset id="addItem">
                                                 <legend id="addItem">Generating CPS</legend>
                                                </fieldset>
                                                <table border="0" width="95%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                    
                                                    <tr>
                                                        <td class="tdNormal" style="width:15%"></td>
                                                        <td class="tdNormal" style="width:30%">
                                                            <asp:HyperLink Visible=false ID="lnkFile" runat="server">Download Generated File</asp:HyperLink>
                                                        </td>
                                                        <td class="tdNormal" style="width:10%"> </td>
                                                        <td class="tdNormal" colspan=2 style="width:45%"> 
                                                        <asp:Button ID="btnGenerate" runat="server" Text="   Generate   "
                                                                class="Btn_M_Normal" onclick="btnGenerate_Click" />
                                                        </td>
                                                    </tr>
                                                </table>
                                                
                                            </asp:Panel>
                                            <asp:Panel ID="pnlGCC" runat="server" Width="100%">                                           
                                            <br />
                                                <fieldset id="addItem">
                                                 <legend id="addItem">Generating GCCNet Claim File </legend>
                                                </fieldset>
                                                <table border="0" width="95%" cellpadding="0" cellspacing="0" class="add_ItemTB1">                                                    
                                                    <tr>
                                                        <td class="tdNormal" style="width:15%"></td>
                                                        <td class="tdNormal" style="width:15%"></td>
                                                        <td class="tdNormal" colspan=2   style="width:10% text-align: left" > 
                                                        <asp:Button ID="btnGenGCC" runat="server" Text="Generate GCC File"
                                                                class="Btn_L_Normal1" onclick="btnGenerateGCC_Click" />
                                                        </td>
                                                    </tr>
                                                </table>

                                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                    <tr>
                                                        <td>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                 <tr>
                                                        <td class="tdNormal" style="width:15%"> GCC Files </td>
                                                        <td class="style2">
                                                        <asp:DropDownList ID="ddlGCCFiles" 
                                                                runat="server" DataTextField="filename" 
                                                             DataValueField="filename" class="fieldNormal" ></asp:DropDownList> 
                                                        </td>          
                                                        <td class="tdNormal" colspan=2 style="width:35%"> 
                                                        <asp:Button ID="btnGCCDownload" runat="server" Text="Download File"
                                                                CssClass="Btn_L_Normal" onclick="btnGCCDownload_Click"/>
                                                        </td>
                                                    </tr>
                                                        <%--<tr>
                                                        <td class="tdNormal" style="width:20%">
                                                            GCC FILES
                                                        </td>
                                                        <td colspan="4" style="text-align: center">
                                                            <asp:DropDownList ID="ddlFiles2" runat="server" class="fieldNormal">
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="5" style="text-align: center">
                                                            <asp:Button ID="btnGCCDownload" runat="server" Text="Download GCC File" 
                                                            CssClass="Btn_L_Normal"
                                                            OnClientClick="" OnClick="btnGCCDownload_Click" />
                                                        </td>
                                                    </tr>--%>
                                            <tr runat="server" id="rowLink2">
                                                <td class="tdNormal" style="width:10%">
                                                    <%--Link--%>
                                                </td>
                                                <td class="style2">
                                                  <%--  <asp:HyperLink ID="lnk2" runat="server">Download File</asp:HyperLink>--%>
                                        
                                                </td>
                                                <td class="tdNormal" style="width:10%">
                                        
                                                    &nbsp;</td>
                                                <td class="tdNormal" style="width:10%">
                                                </td>
                                                <td class="tdNormal" style="width:305%">
                                                </td>
                                            </tr>
                                        </table>
                                      </asp:Panel>
                                        <!------------------------------------body End2 ----------------------------------------------->
                                        <br>
                                    </td>
                                </tr>
                            </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                        </td>
                    </tr>
                </table>
</asp:Content>

