<%@ Page Language="C#" MasterPageFile="~/MasterFile/TimeCheck.master" AutoEventWireup="true"
    CodeFile="Organization_CCMailGroupAdd.aspx.cs" Inherits="Organization_Settings_Organization_CCMailGroupAdd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">

    <script type="text/javascript" src="../plugins/slimScroll/Scroll-jquery.min.js"></script>

    <script type="text/javascript" language="javascript">

        function Validation() {
            if (document.getElementById("ctl00_BodyContentPH_ddlOrganization").value == 0) {
                document.getElementById("ctl00_BodyContentPH_ddlOrganization").focus();
                alert("Select Organization");
                return false;
            }
            if (document.getElementById("ctl00_BodyContentPH_ddlDesination").value == 0) {
                document.getElementById("ctl00_BodyContentPH_ddlDesination").focus();
                alert("Select Designation");
                return false;
            }
            return confirm("Are you sure to save?");
        }
    </script>

    <div class="content-header">
        <h1 style="background-image: url('../dist/img/LeaveSettings.png'); background-repeat: no-repeat; padding-left: 35px">
            <asp:Label ID="lbl_Header" Text="CC Mail Group - Add" runat="server"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <div class="inr-ftr">
            <div class="row" style="min-height: 30px">
                <div class="col-md-12">
                    <div class="pull-right">
                        <h6>
                            <span style="color: Red">|</span><span style="padding-left: 10px; padding-right: 10px">Mandatory
                                (2 No.)</span>
                        </h6>
                    </div>
                </div>
            </div>
        </div>
        <div class="emp-filter">
            <div class="form-horizontal">
                <div class="row form-group" style="margin-left: -20px; margin-right: -20px">
                    <div class="col-md-12">
                        <div class="col-md-2">
                            <asp:Label ID="lblOrganization" runat="server" Text="Organization"></asp:Label>
                        </div>
                        <div class="col-md-4">
                            <asp:DropDownList ID="ddlOrganization" runat="server" AppendDataBoundItems="true"
                                CssClass="form-control select2 Man-dat" AutoPostBack="True" OnSelectedIndexChanged="ddlOrganization_SelectedIndexChanged">
                                <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rfvOrganization" SetFocusOnError="true" ErrorMessage="Select Organization"
                                runat="server" Display="None" ControlToValidate="ddlOrganization" InitialValue="0"></asp:RequiredFieldValidator>
                        </div>
                        <div class="col-md-2">
                            <asp:Label ID="lblDesignation" runat="server" Text="Designation"></asp:Label>
                        </div>
                        <div class="col-md-4">
                            <asp:DropDownList ID="ddlDesination" runat="server" AppendDataBoundItems="true" CssClass="form-control select2 Man-dat"
                                AutoPostBack="True">
                                <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rfvDesignation" SetFocusOnError="true" ErrorMessage="Select Designation"
                                runat="server" Display="None" ControlToValidate="ddlDesination" InitialValue="0"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div>
                <div class="row form-group" style="margin-left: -20px; margin-right: -20px">
                    <div class="config-hdr">
                        <div class="row">
                            <div class="col-md-12">
                                <h3>
                                    <asp:Label ID="lblCcMailHeader1" runat="server" Font-Bold="true" Text="CC mails for Leaves / Permissions / OnDuty Approval"></asp:Label></h3>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="col-md-12">
                            <div class="form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblPlanned" Text="Planned" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-control">
                                        <div style="overflow: auto; height: 95px;" id="Div1">
                                            <asp:CheckBoxList ID="cblPlanned" CssClass="checkbox checkbox-primary" runat="server">
                                            </asp:CheckBoxList>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lblUnPlanned" runat="server" Text="Unplanned"></asp:Label>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-control">
                                        <div style="overflow: auto; height: 95px;" id="Div2">
                                            <asp:CheckBoxList ID="cblUnPlanned" CssClass="checkbox checkbox-primary" runat="server">
                                            </asp:CheckBoxList>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblOthers" runat="server" Text="Approval / Cancellation"></asp:Label>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-control">
                                        <div style="overflow: auto; height: 95px;" id="Div3">
                                            <asp:CheckBoxList ID="cblOthers" CssClass="checkbox checkbox-primary" runat="server">
                                            </asp:CheckBoxList>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lblODApproval" runat="server" Text="OnDuty Approval"></asp:Label>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-control">
                                        <div style="overflow: auto; height: 95px;" id="Div4">
                                            <asp:CheckBoxList ID="cblODApproval" CssClass="checkbox checkbox-primary" runat="server">
                                            </asp:CheckBoxList>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row form-group" style="margin-left: -20px; margin-right: -20px">
                    <div class="config-hdr">
                        <div class="row">
                            <div class="col-md-12">
                                <h3>
                                    <asp:Label ID="lblCCMailHeader2" runat="server" Font-Bold="true" Text="CC mails (Leaves / Permissions) for up-line supervisor"></asp:Label></h3>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="col-md-12">
                            <div class="form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblPlanned_Supervisor" runat="server" Text="Planned"></asp:Label>
                                </div>
                                <div class="col-md-4" style="padding-left: 0px">
                                    <div class="col-md-6">
                                        <asp:RadioButton ID="rbYes_Planned" runat="server" Text="Yes" GroupName="Planned"
                                            CssClass="radio radio-primary" />
                                    </div>
                                    <div class="col-md-6">
                                        <asp:RadioButton ID="rbNo_Planned" runat="server" Text="No" GroupName="Planned" Checked="true"
                                            CssClass="radio radio-primary" />
                                    </div>
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lblUnPlanned_Supervisor" runat="server" Text="Unplanned"></asp:Label>
                                </div>
                                <div class="col-md-4" style="padding-left: 0px">
                                    <div class="col-md-6">
                                        <asp:RadioButton ID="rbYes_UnPlanned" runat="server" Text="Yes" GroupName="UnPlanned"
                                            CssClass="radio radio-primary" />
                                    </div>
                                    <div class="col-md-6">
                                        <asp:RadioButton ID="rbNo_UnPlanned" runat="server" Text="No" Checked="true" GroupName="UnPlanned"
                                            CssClass="radio radio-primary" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="col-md-12">
                            <div class="form-group">
                                <div class="col-md-12">
                                    <div class="pull-right-button">
                                        <asp:ValidationSummary ID="vsCCGroup" runat="server" ShowMessageBox="True" ShowSummary="False" />
                                        <asp:LinkButton ID="btnSave" CssClass="btn save-btn fa-floppy-o" CausesValidation="true"
                                            runat="server" Text="&nbsp;&nbsp;Save" OnClientClick="return Validation()" OnClick="btnSave_Click" />
                                        <asp:LinkButton ID="btnCancel" CssClass="btn clr-btn fa-times" runat="server" CausesValidation="False"
                                            OnClick="btnCancel_Click" Text="&nbsp;&nbsp;Cancel" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        $(function () {

            $('#Div1').slimScroll({
                wheelStep: 20
            });
            $('#Div2').slimScroll({
                wheelStep: 20
            });
            $('#Div3').slimScroll({
                wheelStep: 20
            });
            $('#Div4').slimScroll({
                wheelStep: 20
            });
        });
</script>

</asp:Content>
