<%@ Page Language="C#" MasterPageFile="~/MasterPage_1.master" AutoEventWireup="true"
    CodeFile="InvoicesCreated.aspx.cs" Inherits="InvoiceManagement_InvoicesCreated"
    Title="Invoice Created" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script language="javascript" type="text/javascript">
            function checkAllBoxer()
            {            
              var totalChkBoxes = parseInt(‘<%= this.gvInvoiceDetails.Rows.Count %>’);  
              var gvControl = document.getElementById(‘<%= this.gvInvoiceDetails.ClientID %>’);
              var gvChkBoxControl = "chkBoxChild"; 
              var mainChkBox = document.getElementById("ctl00_ContentPlaceHolder1_chkBoxAlls");
              var inputTypes = gvControl.getElementsByTagName("input");
              for(var i = 0; i < inputTypes.length; i++)
              {         
                 if(inputTypes[i].type == ‘checkbox’ && inputTypes[i].id.indexOf(gvChkBoxControl,0) >= 0)
                      inputTypes[i].checked = mainChkBox.checked; 
                }
            }
            function getConfirmationForDelete(hdnID)
            {
               var hdn = document.getElementById(hdnID);
               var result = confirm("Are you sure to perform the selected operation? ");
               if (result==true)
               {
                  hdn.value = "OK";
               }
               else
               {
                  hdn.value = "Cancel";
               }
               return true;
           }
    </script>
    <table>
        <tr style="border: 1px #DFDFDF solid;">
            <td class="blackBoldp" style="border: 1px #DFDFDF solid;" colspan="3">
                Invoice Detail
            </td>
            <td style="border: 1px #DFDFDF solid;">
                <asp:Button ID="btnBack" runat="server" Text="Back" CssClass="btn" OnClick="btnBack_Click" />
                <asp:Button ID="btnCreateInvoice" runat="server" Text="Create Invoice" CssClass="btn" OnClick="btnCreateInvoice_Click" />
                <asp:Button ID="btnCreateXml" runat="server" Text="Create XML" CssClass="btn" OnClick="btnCreateXml_Click" />
                <asp:Button ID="btnCreateHTML" runat="server" Text="Create HTML" CssClass="btn" OnClick="btnCreateHTML_Click" />
                <asp:Button ID="btnCancelInvoice" runat="server" Text="Cancel Invoice" CssClass="btn" OnClick="btnCancelInvoice_Click" />
                <asp:Button ID="btnExecuteRun" runat="server" Text="Execute Run" CssClass="btn" OnClick="btnExecuteRun_Click" />
                <asp:Button ID="btnCancelRun" runat="server" Text="Cancel Run" CssClass="btn" OnClick="btnCancelRun_Click" />
            </td>
        </tr>
    </table>
    <br />
    &nbsp;<input id="chkBoxAlls" type="checkbox" onclick="checkAllBoxer()" title="Select" runat="server" />
    <asp:Label ID="Label1" runat="server" Text="SelectAll"></asp:Label>
    <asp:HiddenField ID="hdnFlag" runat="server" />   
    <div id="div" style="background-color: #ffffff; -moz-border-radius: 15px; -webkit-border-radius: 15px;
        border: 1px solid #DFDFDF; padding: 5px;" runat="server">
        <%–/* #eef4fc */–%>
        <asp:Panel ID="Panel8" runat="server" Style="overflow: scroll;" Height="580px" Width="1600px">
            <asp:GridView ID="gvInvoiceDetails" runat="server" AutoGenerateColumns="False" CssClass="tableborder1"
                GridLines="None" ForeColor="Black" ShowFooter="false" OnRowCommand="gvInvoiceDetails_RowCommand">
                <Columns>
                    <asp:TemplateField HeaderText="Select">                       
                        <ItemTemplate>
                            <asp:CheckBox ID="chkBoxChild" runat="server" AutoPostBack="false" />
                        </ItemTemplate>
                        <ItemStyle CssClass="testBox1" />
                        <HeaderStyle CssClass="blackBold" />
                        <FooterStyle CssClass="testBox1" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Bill Run ID" DataField="BillRunId">
                        <FooterStyle CssClass="blackBoldfooter" />
                        <HeaderStyle CssClass="blackBold" />
                        <ItemStyle CssClass="testBox2" />
                        <ControlStyle CssClass="testBox2" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Bill Run Detail Id" DataField="BillRunDetailId">
                        <FooterStyle CssClass="blackBoldfooter" />
                        <HeaderStyle CssClass="blackBold" />
                        <ItemStyle CssClass="testBox2" />
                        <ControlStyle CssClass="testBox2" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Partner Id" DataField="PartnerId">
                        <FooterStyle CssClass="blackBoldfooter" />
                        <HeaderStyle CssClass="blackBold" />
                        <ItemStyle CssClass="testBox2" />
                        <ControlStyle CssClass="testBox2" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Customer Id" DataField="CustomerId">
                        <FooterStyle CssClass="blackBoldfooter" />
                        <HeaderStyle CssClass="blackBold" />
                        <ItemStyle CssClass="testBox2" />
                        <ControlStyle CssClass="testBox2" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="InvoiceId">
                        <ItemTemplate>
                            <%–<asp:LinkButton ID="lnkButton" runat="server" OnCommand="GetCustomerdetails">Details</asp:LinkButton>–%>
                            <asp:LinkButton ID="lnkInvoice" runat="server" CommandArgument="<%# Container.DisplayIndex %>"
                                Text='<%# DataBinder.Eval(Container.DataItem, "InvoiceId") %>’ CommandName="InvoiceId" />
                        </ItemTemplate>
                        <FooterStyle CssClass="blackBoldfooter" />
                        <HeaderStyle CssClass="blackBold" />
                        <ItemStyle CssClass="testBox2" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Status" DataField="Status">
                        <HeaderStyle CssClass="blackBold" />
                        <ItemStyle CssClass="testBox2" />
                        <ControlStyle CssClass="testBox2" />
                        <FooterStyle CssClass="blackBoldfooter" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Initial Invoice" DataField="InitialInvoice">
                        <HeaderStyle CssClass="blackBold" />
                        <ItemStyle CssClass="testBox2" />
                        <ControlStyle CssClass="testBox2" />
                        <FooterStyle CssClass="blackBoldfooter" />
                    </asp:BoundField>
                </Columns>
                <AlternatingRowStyle CssClass="rowB" />
                <FooterStyle CssClass="blackBoldfooter" BackColor="#E3E4EA" />
                <PagerStyle CssClass="blackBoldfooter" HorizontalAlign="Left" VerticalAlign="Top" />
            </asp:GridView>
        </asp:Panel>
        <asp:Label ID="lblMessage" runat="server" Text="Label"></asp:Label>
    </div>
</asp:Content>
Advertisements