<%@ page title="Add Account" language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="AddAccount, App_Web_ot14egh0" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .auto-style2 {
        width: 100%;
    }
    .auto-style4 {
        text-align: right;
        width: 352px;
    }
    .auto-style6 {
        text-align: left;
        font-size: x-large;
        width: 296px;
    }
        .auto-style7 {
            text-align: center;
            width: 717px;
        }
        .auto-style8 {
            width: 290px;
        }
        .GridViewClass th 
        {
            text-align: center !important;
        }
        .auto-style11 {
            width: 7px;
        }
        .auto-style13 {
            width: 179px;
        }
        .auto-style15 {
            text-align: right;
            width: 37px;
        }
        .auto-style16 {
            text-decoration: underline;
            font-size: x-large;
            text-align: center;
        }
        .auto-style17 {
            text-align: left;
        }
    </style>


    <script src="JS/SweetAlert.js" type="text/javascript"></script>
    <script>
        function alertme_AddAcc_AddAccount()
        {
            Swal.fire({
            position: 'top-end',
            type: 'success',
            title: 'Account Added Successfully!',
            showConfirmButton: false,
            timer: 1500
        })
        }

        function alertme_AddAcc_AccountExist()
        {
            Swal.fire({
            type: 'error',
            title: 'Oops...',
            text: 'Same Account Name Exist.!',
        })

        }
        function alertme_AddAcc_AccountTypeMissing()
        {
            Swal.fire({
            type: 'error',
            title: 'Oops...',
            text: 'Choose Account Type.!',
        })

        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

        <link href="Css/Local_SetEodDate_bootstrap.min.css" rel="stylesheet" />
    <link href="Css/Local_CMS_LogSheet_bootstrap-datetimepicker.css" rel="stylesheet" />
    <script src="js/Local_SetEodDate_moment-with-locales.js"></script>
    <script src="js/Local_SetEodDate_bootstrap-datetimepicker.js"></script>


    <asp:ScriptManager ID="ScriptManager_AddAcc" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel_AddAcc" runat="server">
        <ContentTemplate>
            <table class="nav-justified">
                <tr>
                    <td>&nbsp;</td>
                    <td class="auto-style16"><strong>Add Account</strong></td>
                    <td>&nbsp;</td>
                </tr>
            </table>
            <table class="auto-style2">
                <tr>
                    <td class="auto-style4">Account Name: </td>
                    <td class="auto-style6">
                        <asp:TextBox ID="TextBox_AddAcc_AccountName" runat="server" Height="35px" Width="296px" class="form-control" Font-Underline="False"></asp:TextBox>
                    </td>
                    <td class="auto-style11">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox_AddAcc_AccountName" ErrorMessage="*" ValidationGroup="AddAcc"></asp:RequiredFieldValidator>
                    </td>
                    <td class="auto-style15">Type: </td>
                    <td class="auto-style13">
                        <asp:DropDownList ID="DropDownList_AddAcc_Type" runat="server" Height="35px" Width="160px" class="form-control">
                        </asp:DropDownList>
                    </td>
                    <td class="auto-style17">&nbsp;&nbsp;
                        <asp:Button ID="Button_AddAcc_AccountName" runat="server" class="btn btn-primary" OnClick="Button_AddAcc_AccountName_Click" Text="Add Account" ValidationGroup="AddAcc" Width="147px" />
                    </td>
                </tr>
            </table>
            <br />
            <table class="auto-style2">
                <tr>
                    <td class="auto-style8">&nbsp;</td>
                    <td class="auto-style7">
                        <asp:GridView ID="GridView_AddAcc_AccountList" runat="server" CssClass = "GridViewClass" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3"  GridLines="Vertical" Width="686px" Font-Size="Large">
                            <AlternatingRowStyle BackColor="#DCDCDC" />
                            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#F1F1F1" />
                            <SortedAscendingHeaderStyle BackColor="#0000A9" />
                            <SortedDescendingCellStyle BackColor="#CAC9C9" />
                            <SortedDescendingHeaderStyle BackColor="#000065" />
                        </asp:GridView>
                    </td>
                    <td>&nbsp;</td>
                </tr>
            </table>

        </ContentTemplate>
    </asp:UpdatePanel>
        
</asp:Content>

