<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_Network_ServiceDirector_Workflows, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolkit" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <asp:HiddenField ID="HF_WorkFlowType" runat="server" />

    <style type="text/css">
        .csp-subs-tag {
            font-size: 0.80em;
            font-weight: bold;
            background-color: #3F51B5;
            color: white;
            -webkit-border-radius: 12px;
            -moz-border-radius: 12px;
            border-radius: 12px;
            padding: 2px 12px;
            border: outset 1px #9FB1F4;
            display: inline-block;
        }
    </style>
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <div class="row Div_OpsRow" id="Div_Operations" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN00001320%>    
                                </h3>
                            </div>
                            <div class="body">
                                <asp:Button ID="Btn_AddWorkflow" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,strAddWorkflow%>" />
                            </div>
                        </div>
                    </div>
                </div>

                <asp:Panel ID="Pnl_WorkflowsListing" runat="server" DefaultButton="Btn_Search">
                    <div class="row">
                        <div class="panel-group search-panel" id="pg-workflows" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="tab-workflows">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#pg-workflows" href="#<%= SB_Workflows.ClientID%>" aria-expanded="true" aria-controls="tab-workflows">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="SB_Workflows" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="tab-workflows" aria-expanded="false">
                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="div_search_ownerddl">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_SearchWorkflowOwner" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="Ddl_SearchWorkflowType" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_SearchWorkflowStatus" runat="server">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SearchWorkflowName" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Lbl_SearchWorkflowName" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strWorkflowName%>" class="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SearchWorkflowData" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Lbl_SearchWorkflowData" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002192%>" class="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12" id="div_search_customer" runat="server">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SearchCustomer" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Customer%>" class="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:Button ID="Btn_Search" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                        Text="<%$ Resources:Content,String289 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:GridView ID="GV_Workflows" AllowSorting="true" runat="server" CssClass="table table-bordered table-striped table-hover"
                                EmptyDataText="<%$ Resources:Content,GN00001375%>" AutoGenerateColumns="false">

                                <Columns>
                                    <asp:TemplateField SortExpression="Owner" HeaderText='<%$ Resources:Content,SPT002811%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="Lbtn_Owner" runat="server" CommandName="Owner">
                                            </asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="CustomerId" HeaderText='<%$ Resources:Content,GN0000850%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="HL_Client" runat="server"></asp:HyperLink>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="WorkflowName" HeaderText='<%$ Resources:Content,strWorkflow%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="Lbtn_WorkflowName" runat="server" CommandName="WorkflowDetail"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content,Lync169%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_WorkflowType" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content,DGN1110431%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                        <ItemTemplate>
                                            <table class="table small">
                                                <tr>
                                                    <td class="row-label"><%= Resources.Content.String385%>:</td>
                                                    <td>
                                                        <asp:Label ID="Lbl_WorkflowStatus" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="row-label"><%= Resources.Content.GN0000668%>:</td>
                                                    <td>
                                                        <asp:Label ID="Lbl_CreatedOn" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="row-label"><%= Resources.Content.strScheduled%>:</td>
                                                    <td>
                                                        <asp:Literal ID="Ltrl_ScheduledTime" runat="server"></asp:Literal>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="row-label"><%= Resources.Content.strExecutedOn%>:</td>
                                                    <td>
                                                        <asp:Label ID="Lbl_ExecutedOn" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="row-label"><%= Resources.Content.GN0000765%>:</td>
                                                    <td>
                                                        <asp:Label ID="Lbl_TriesCount" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000275%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <ul class="option-menu">
                                                <li class="dropdown">
                                                    <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                                        aria-haspopup="true" aria-expanded="false">
                                                        <i class="material-icons">menu</i>
                                                    </a>
                                                    <ul class="dropdown-menu pull-right" id="UL_OptionMenu" runat="server">
                                                        <li>
                                                            <asp:LinkButton ID="Lbtn_Edit" runat="server"
                                                                Text='<%$ Resources:Content,strEdit%>'></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="Lbtn_Execute" runat="server" CssClass="btnAction"
                                                                Text='<%$ Resources:Content,strExecute%>'></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="Lbtn_Remove" runat="server" CssClass="btnAction"
                                                                Text='<%$ Resources:Content,GN0000278%>' CommandName="remove"></asp:LinkButton></li>
                                                        <AjaxToolkit:ConfirmButtonExtender ID="CBE_Remove" runat="server"
                                                            TargetControlID="Lbtn_Remove">
                                                        </AjaxToolkit:ConfirmButtonExtender>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <%--PagerTemplate Start--%>
                                <PagerTemplate>
                                    <UC:Pager ID="Pager1" runat="server" />
                                </PagerTemplate>
                                <%--PagerTemplate End--%>
                            </asp:GridView>
                        </div>
                    </div>

                    <asp:Panel ID="Pnl_WorkflowDataDetail" runat="server" CssClass="width-modal-popup-auto">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header container-fluid">
                                    <h3 class="pull-left">
                                        <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,strWorkflowDetails%>" />
                                    </h3>
                                    <span>
                                        <button type="button" class="close" onclick="$find('<%=MPE_WorkflowDetail.ClientID%>').hide();">&times;</button>
                                    </span>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,strWorkflowData%>" />:
                                            </label>
                                        </div>
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="form-group">
                                                <div style="max-height: 150px; overflow-y: auto;">
                                                    <asp:Literal ID="Ltrl_WorkflowData" runat="server"></asp:Literal>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,strLastExecutionLog%>" />:
                                            </label>
                                        </div>
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="form-group">
                                                <asp:Literal ID="Ltrl_LastExecutionTime" runat="server"></asp:Literal>
                                                <br />
                                                <div style="max-height: 150px; overflow-y: auto;">
                                                    <p ID="Para_LastExecutionLog" runat="server"></p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </asp:Panel>
                    <asp:Button ID="Btn_WDummy" runat="server" CssClass="hide mp-hide btn-dummy" Text=' ' />
                    <AjaxToolkit:ModalPopupExtender runat="server" ID="MPE_WorkflowDetail" BackgroundCssClass="modalBackground"
                        DropShadow="false" PopupControlID="Pnl_WorkflowDataDetail"
                        TargetControlID="Btn_WDummy" />
                </asp:Panel>

                <asp:Panel ID="Pnl_WorkflowDetail" runat="server" Visible="false">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <%= Resources.Content.strWorkflowDetails%>
                                    </h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,strWorkflowType%>" />:
                                            </label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group" id="div_SelectWorkflowType" runat="server">
                                                <asp:DropDownList ID="Ddl_SelectWorkflowType" AutoPostBack="true" runat="server">
                                                </asp:DropDownList>
                                                
                                            </div>
                                            <asp:Label ID="Lbl_SelectWorkflowType" runat="server"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="row" id="row_selectowner" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,L00108%>" />:
                                            </label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_SelectWorkflowOwner" AutoPostBack="true" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row" id="row_selectcustomer" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN0000889%>" />:
                                            </label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_SelectWorkflowCustomer" runat="server" AutoPostBack="true">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Literal177" runat="server" Text="<%$ Resources:Content,strWorkflowName%>" />:
                                            </label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_WorkflowName" runat="server"></asp:TextBox>
                                                </div>
                                            </div>
                                            <asp:RequiredFieldValidator ID="RFV__WorkflowName" runat="server" ControlToValidate="TxBx_WorkflowName"
                                                Display="None" SetFocusOnError="True" ValidationGroup="AddWorkflow" ErrorMessage="<%$ Resources:Content,strWorkflowNameMandatory %>"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,strWorkflowDesc%>" />:
                                            </label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:TextBox ID="TxBx_WorkflowDescription" runat="server" TextMode="MultiLine" Rows="5"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>

                                    <asp:PlaceHolder ID="WorkflowDataPlaceHoder" runat="server"></asp:PlaceHolder>

                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,strSchedule%>" />:
                                            </label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:CheckBox ID="CB_IsDelayed" runat="server" Text=" " onClick="showHideScheduleDetail(this,event)" />
                                            </div>
                                        </div>
                                    </div>
                                    <div id="div-schedule-detail" class="hide">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal55" runat="server" Text="<%$ Resources:Content,strExecutionDate%>" />:
                                                </label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_ExecutionDate" runat="server" onkeydown='event.preventDefault();' Style="width: 200px">
                                                        </asp:TextBox>
                                                        <AjaxToolkit:CalendarExtender ID="CE_ExecutionDate" runat="server" TargetControlID="TxBx_ExecutionDate"
                                                            CssClass="date__calendar" OnClientDateSelectionChanged="checkDate">
                                                        </AjaxToolkit:CalendarExtender>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-offset-3 col-sm-8 col-md-6 hidden-xs">
                                                <span style='width: 39%;' class="display-inline-float-left">
                                                    <asp:Label ID="Ltrl_ExecutionHour" runat="server" Text="<%$ Resources:Content,strHours %>" CssClass="pull-left"></asp:Label>
                                                </span>
                                                <span style="width: 20px; height: 10px;" class="display-inline-float-left"></span>
                                                <span style='width: 39%;' class="display-inline-float-left">
                                                    <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,strMinutes %>" CssClass="pull-left"></asp:Label>
                                                </span>
                                            </div>
                                            <div class="col-sm-1 col-md-3 hidden-xs" style="min-height: 20px"></div>

                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,strExecutionTime%>" />:
                                                </label>
                                            </div>
                                            <div class="col-sm-8 col-md-6 col-xs-12">
                                                <div class="form-group">
                                                    <span style='width: 35%;' class="display-inline-float-left">

                                                        <span class="display-inline-float-left">
                                                            <asp:TextBox ID="TxBx_ExecutionHour" runat="server" onkeydown='event.preventDefault();'>
                                                            </asp:TextBox>
                                                        </span>
                                                    </span>
                                                    <span class="numeric-updown-icon-wrapper">

                                                        <a id="execution_hour_up" runat="server">
                                                            <i class="glyphicon glyphicon-triangle-top"></i>
                                                        </a>
                                                        <span class="clearfix"></span>
                                                        <a id="execution_hour_down" runat="server">
                                                            <i class="glyphicon glyphicon-triangle-bottom"></i>
                                                        </a>
                                                    </span>
                                                    <AjaxToolkit:NumericUpDownExtender ID="NUD_ExecutionHour" runat="server" TargetControlID="TxBx_ExecutionHour"
                                                        Step="1" RefValues="00;01;02;03;04;05;06;07;08;09;10;11;12;13;14;15;16;17;18;19;20;21;22;23" Width="75" TargetButtonUpID="execution_hour_up" TargetButtonDownID="execution_hour_down">
                                                    </AjaxToolkit:NumericUpDownExtender>
                                                </div>
                                                <span style="width: 20px; height: 10px;" class="display-inline-float-left"></span>
                                                <div class="form-group">
                                                    <span style='width: 35%;' class="display-inline-float-left m-t--5">
                                                        <span class="display-inline-float-left">
                                                            <asp:TextBox ID="TxBx_ExecutionMin" runat="server" Text="00" onkeydown='event.preventDefault();' onChange="checkMin(this,event)">
                                                            </asp:TextBox>
                                                        </span>
                                                    </span>
                                                    <span class="numeric-updown-icon-wrapper m-t--5">

                                                        <a id="execution_Min_up" runat="server">
                                                            <i class="glyphicon glyphicon-triangle-top"></i>
                                                        </a>
                                                        <span class="clearfix"></span>
                                                        <a id="execution_Min_down" runat="server">
                                                            <i class="glyphicon glyphicon-triangle-bottom"></i>
                                                        </a>
                                                    </span>
                                                    <AjaxToolkit:NumericUpDownExtender ID="NUD_ExecutionMin" runat="server" TargetControlID="TxBx_ExecutionMin"
                                                        Step="15" Width="75" TargetButtonUpID="execution_Min_up" TargetButtonDownID="execution_Min_down">
                                                    </AjaxToolkit:NumericUpDownExtender>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="div_repeatdetails" runat="server">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    *<asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,strTimesToRepeat%>" />:
                                                </label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_TimesToRepeat" runat="server" Enabled="false" MaxLength="10">
                                                        </asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-5 col-xs-5 row-label">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="ChBx_UnlimitedTimesToRepeat" Text="<%$ Resources:Content,GN0000908%>" runat="server"
                                                        Checked="true" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    *<asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,strRepeatIntervalInDays%>" />:
                                                </label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_RepeatIntervalInDays" runat="server" Text="1">
                                                        </asp:TextBox>
                                                        <AjaxToolkit:FilteredTextBoxExtender ID="FTE_RepeatIntervalInDays" runat="server" FilterType="Numbers" TargetControlID="TxBx_RepeatIntervalInDays"></AjaxToolkit:FilteredTextBoxExtender>
                                                    </div>
                                                </div>
                                                <asp:RequiredFieldValidator ID="RFV_TxBx_RepeatIntervalInDays"
                                                    runat="server"
                                                    Display="None"
                                                    ControlToValidate="TxBx_RepeatIntervalInDays"
                                                    ErrorMessage="<%$ Resources: Content,RepeatIntervalInDaysMandatory %>"
                                                    ValidationGroup="AddWorkflow"
                                                    SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                <asp:RangeValidator runat="server"
                                                    Display="None"
                                                    ID="valrNumberOfPreviousOwners"
                                                    ControlToValidate="TxBx_RepeatIntervalInDays"
                                                    Type="Integer"
                                                    MinimumValue="1"
                                                    MaximumValue="365"
                                                    ErrorMessage="<%$ Resources:Content, PleaseEnerPositiveIntegerBetween1And365 %>"
                                                    ValidationGroup="AddWorkflow"
                                                    SetFocusOnError="true">
                                                </asp:RangeValidator>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
                                                ShowSummary="false" ValidationGroup="AddWorkflow" HeaderText="<%$ Resources:Content,EM000001%>" />
                                            <asp:LinkButton ID="LBtn_SaveWorkflow" runat="server" Text="<%$ Resources:Content,GN0000281 %>"
                                                CssClass="btn btn-primary btnAction" CausesValidation="true"
                                                ValidationGroup="AddWorkflow" />
                                            <asp:LinkButton ID="LBtn_CanelSaveWorkflow" runat="server" Text="<%$ Resources:Content,GN0000572 %>" CssClass="btn btn-primary btn-default" CausesValidation="false" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </div>
        </div>
    </div>

    <style type="text/css">
        .display-inline-float-left,
        .numeric-updown-icon-wrapper {
            display: inline-block;
            float: left;
        }

        .numeric-updown-icon-wrapper {
            margin-right: 5px;
            margin-left: 2px;
        }
    </style>

    <script lang="javascript" type="text/javascript">
        $(function () {
            var cbIsDelayed = $get('<%= CB_IsDelayed.ClientID%>');
            if (cbIsDelayed && cbIsDelayed.checked)
                $('#div-schedule-detail').removeClass('hide');
        });

        function showHideScheduleDetail(source, e) {
            //alert('called');
            if (source.checked)
                $('#div-schedule-detail').removeClass('hide');
            else
                $('#div-schedule-detail').addClass('hide');
        }

        function checkMin(source, e) {
            if (source.value > 60 || source.value < 0)
                source.value = '00';
            else if (source.value == 60)
                source.value = 59
            else if (source.value % 15 != 0 && source.value != 59)
                source.value = parseInt(source.value) + 1;
        }
        function checkDate(sender, args) {
            if (sender._selectedDate < new Date()) {
                sender._selectedDate = new Date();
                // set the date back to the current date
                sender._element.value = sender._selectedDate.format(sender._format);
            }
            setTimeout(function () { sender.hide(); }, 1000);
        }
    </script>
</asp:Content>

