<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Main.master" AutoEventWireup="true" CodeFile="Checker.aspx.cs" Inherits="Business_Checker" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script language="javascript" type="text/javascript">
     function Back() {
         history.go(-1);
         return false;
     }

  </script>
</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>
                            Manage Configurations
                        </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:Panel ID="pnl_filters" runat="server" Width="100%">
                                        <table border="0" width=100% cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal">
                                                        Page
                                                    </td>
                                                    <td colspan=4>
                                                        <asp:DropDownList ID="ddlPages" runat="server" DataTextField="Page" 
                                                            Width="250px" DataValueField="page_id" class="fieldNormal">
                                                        </asp:DropDownList>
                                                 </td>
                                                </tr>
                                                <tr>
                                                    <td class="tdNormal">
                                                        Request Type
                                                    </td>
                                                    <td colspan=4>
                                                       <asp:DropDownList ID="ddlRequestType" runat="server" DataTextField="change_type" 
                                                            Width="250px" DataValueField="ct_code" class="fieldNormal">
                                                        </asp:DropDownList>
                                                 </td>
                                                </tr>
                                                  <tr>
                                                    <td class="tdNormal">
                                                        Status
                                                    </td>
                                                    <td colspan=4>
                                                       <asp:DropDownList ID="ddlStatus" runat="server" DataTextField="change_status" 
                                                            Width="250px" DataValueField="sc_code" class="fieldNormal">
                                                        </asp:DropDownList>
                                                 </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5" style="text-align:center">
                                                        <asp:Button ID="Button1" runat="server" Text="Search" CssClass="Btn_L_Normal" 
                                                            onclick="Button1_Click" />
                                                    </td>
                                                </tr>
                                            </table>

                                    </asp:Panel>
                            <br />
                            <asp:Panel ID="pnlGrid" runat="server" Width="100%">
                             <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                    <tr>
                                        <td>
                                            Configurations
                                        </td>
                                    </tr>
                                </table>
                                <asp:GridView ID="GridView1" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                    OnRowCommand="GridView1_RowCommand" AllowSorting="True" CellPadding="4" 
                                    ForeColor="#333333" GridLines="None" OnRowCreated="GridView1_RowCreated"
                                    DataKeyNames="chg_id" AllowPaging ="True" 
                                    onpageindexchanging="GridView1_PageIndexChanging" 
                                    onrowdatabound="GridView1_RowDataBound">
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="page_id" HeaderText="Page ID" />
                                        <asp:BoundField DataField="page" ItemStyle-Width="20%" HeaderText="Page">
                                        <ItemStyle Width="20%" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="chg_id" HeaderText="Change Id" />
                                        <asp:BoundField DataField="maker_id" HeaderText="maker_id" />
                                        <asp:BoundField DataField="maker" HeaderText="Maker"  />
                                        <asp:BoundField DataField="made_on_date" HeaderText="Made On Date"  />                                       
                                        <asp:BoundField DataField="checker" HeaderText="Checker"  />
                                        <asp:BoundField DataField="checked_on_date" HeaderText="Checked On Date"  />
                                        <asp:BoundField DataField ="chg_type_code" HeaderText ="chg_type_code" />
                                        <asp:BoundField DataField="chg_type" HeaderText="Request Type"  />
                                        <asp:BoundField DataField ="chg_status_code" HeaderText ="chg_status_code" />
                                        <asp:BoundField DataField="chg_status" HeaderText="Status"  />
                                    
                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="vd" Text="View Details" ImageUrl="~/Images/document_view.jpg" />
                                     
                                        <%--<asp:ButtonField ButtonType="Image" CommandName="approve" 
                                            ImageUrl="~/Images/approve.jpg" ItemStyle-Width="20px" Text="Approve">
                                        <ItemStyle Width="20px" />
                                        </asp:ButtonField>
                                        <asp:ButtonField ButtonType="Image" CommandName="decline" 
                                            ImageUrl="~/Images/reject.jpg" ItemStyle-Width="20px" Text="Decline">
                                        <ItemStyle Width="20px" />
                                        </asp:ButtonField>--%>
                                    </Columns>
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                    <EditRowStyle BackColor="#999999" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                </asp:GridView>
                               
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                    <tr>
                                        <td>
                                            <asp:Button id="btnClose" runat ="server" Text ="   Back    "  
                                                OnClientClick ="return Back();" class="Btn_M_Normal" onclick="btnClose_Click" />
                                        </td> 
                                    </tr>
                                </table>
                            </asp:Panel>
                            <br />
                            <!------------------------------------body End1 ----------------------------------------------->
                            <asp:Panel ID="pnlDetails" runat="server" Width="100%" Visible ="false" >
                               <%-- <fieldset id="addItem">
                                    <legend id="addItem">
                                        <asp:Label ID="lbl_addUpdateLegandText" runat="server" Text="Details"></asp:Label>
                                    </legend>
                                </fieldset>--%>
                                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                    <tr>
                                        <td>
                                            Details
                                        </td>
                                    </tr>
                                </table>
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal" colspan="5">
                                                        <asp:GridView ID="GridView2" CssClass="gridMaster" Width ="100%" runat="server" 
                                                            AutoGenerateColumns="False" AllowSorting="True" CellPadding="4" 
                                                            ForeColor="#333333" GridLines="None" EmptyDataText="There are no Results" 
                                                            DataKeyNames="mkt_code" 
                                                            onrowcreated="GridView2_RowCreated" onrowcommand="GridView2_RowCommand" 
                                                            onrowdatabound="GridView2_RowDataBound" 
                                                            onpageindexchanging="GridView2_PageIndexChanging">
                                                            

                                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                             <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                                            
                                                            <Columns>
                                                                <asp:BoundField DataField="mkt_code" HeaderText="mkt_code" />
                                                                <asp:BoundField DataField="chg_id" HeaderText="Change Id" />
                                                                <asp:BoundField DataField="page_id" HeaderText="Page ID" />
                                                                <asp:BoundField DataField="URL" HeaderText="URL" />
                                                                <asp:BoundField DataField="table_name" HeaderText="Table Name" />
                                                                <asp:BoundField DataField="column_name" HeaderText="Column Name" />
                                                                <asp:BoundField DataField="old_value" HeaderText="Old Value" />
                                                                <asp:BoundField DataField="new_value" HeaderText="New Value" />
                                                                <asp:BoundField DataField="old_value_no" HeaderText="Old Value No" />
                                                                <asp:BoundField DataField="new_value_no" HeaderText="New Value No" />
                                                                <asp:BoundField DataField="changed_rec_id" HeaderText="Change Rec Id" />
                                                                <asp:BoundField DataField="chg_type_code" HeaderText="Type Code" />
                                                                <asp:BoundField DataField="chg_type" HeaderText="Request Type" />
                                                                <asp:BoundField DataField="chg_status_code" HeaderText="status code" />
                                                                <asp:BoundField DataField="chg_status" HeaderText="Status" />
                                                                 <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="vd" Text="View Details" ImageUrl="~/Images/document_view.jpg" />
                                                                 <asp:BoundField DataField="page" HeaderText="Page" />
                                                            </Columns>
                                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                             <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                            <EditRowStyle BackColor="#999999" />
                                                             <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr> 
                                                <tr align ="right" >
                                                    <td class="tdNormal" style="width:20%">  
                                                   
                                        
                                                             </td>
                                                    
                                                </tr>                                               
                                            </table>                            
                            </asp:Panel>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br />
                            <asp:Panel ID="pnlControls" runat="server" Width="100%" Visible="false" 
                                            style="text-align: left">
                                          
                                            <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal" style="width:15%">
                                                        Checker Notes : 
                                                    </td>
                                                    <td class="tdNormal" colspan="3">
                                                        <asp:Textbox ID ="txtCheckerNotes" runat ="server" class="fieldNormal" 
                                                            Width="800px" MaxLength="30"></asp:Textbox>
                                                    </td>
                                                  
                                                </tr>
                                                
                                            </table>
                                          
                                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                    <tr>
                                                        <td>
                                                         <asp:Button ID="btnCancel1" runat="server" Text="   Cancel   " 
                                                                 class="Btn_M_Normal" onclick="btnCancel1_Click" />
                                                            <asp:Button ID="btnCancel" runat="server" Text="   Reject   " 
                                                                class="Btn_M_Normal" onclick="btnCancel_Click" />
                                                            <asp:Button ID="btnApprove" runat="server" Text="    Approve     "
                                                                class="Btn_M_Normal" onclick="btnApprove_Click" />
                                                           
                                                            
                                                        </td>
                                                    </tr>
                                                </table>
                                           
                                        </asp:Panel>
                        </td>
                     </tr> 
                  </table> 
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
</asp:Content>

