<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RejectApproval.aspx.cs" Inherits="Approval_RejectApproval" ValidateRequest="false" meta:resourcekey="Page" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../libs/fontawesome/css/all.min.css" >
    <script type="text/javascript" src="../libs/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="../libs/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
    <script type="text/javascript">
        $(document).ready(function () {
            Dialog.setMessage('<asp:Literal runat="server" Text="<%$ Resources:Dialog, Title%>" />', '<asp:Literal runat="server" Text="<%$ Resources:Dialog, OK%>" />', '<asp:Literal runat="server" Text="<%$ Resources:Dialog, Cancel%>" />');
            Dialog.setUseBrowserConfirm(<%=AppSetting.UseBrowserConfirm%>);
        });

        function Reject() {
            // 해당 결재 문서를 반려하시겠습니까?
            Dialog.confirm({
                content: '<asp:Literal runat="server" Text="<%$ Resources:, Msg01%>" />',
                ok: function () {
                    __doPostBack("RejectButton", "");
                }
            });
        }

        function GoBack() {
            history.back();
        }
    </script>

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            <CompositeScript>
                <Scripts>
                    <asp:ScriptReference Path="~/libs/tabs/common.js" />
                    <asp:ScriptReference Path="~/libs/tabs/dialog.js" />
                </Scripts>
            </CompositeScript>
        </asp:ScriptManager>

        <div class="container-fluid">
            <div class="row" id="toolBar" data-spy="affix">
                <div class="col-xs-12" style="padding-top:2px;padding-bottom:2px;">
                    <button type="button" id="declineToolButton" class="btn btn-primary" onclick="Reject()"><span class="fa-regular fa-circle-xmark"></span> <%=_declineButtonText%></button>
                    <span>&nbsp;</span>
                    <button type="button" id="gobackToolButton" class="btn btn-primary" onclick="GoBack();"><span class="fa-solid fa-xmark"></span></button>
                </div>
            </div>
        </div>

        <div class="container-fluid" style="padding-top:40px">
            <div class="form-group">
                <label for="RejectTextBox"><asp:Localize ID="Localize1" runat="server" meta:resourcekey="L01">추가 코멘트</asp:Localize>:</label>
                <textarea class="form-control" rows="10" id="RejectTextBox" runat="server"></textarea>
            </div>
        </div>

        <div style="display:">            
            <asp:LinkButton ID="RejectButton" runat="server" onclick="RejectButton_Click" /> 
        </div>
    </form>
</body>
</html>
