<%@ Page Title="" Language="C#" MasterPageFile="~/whir_system/master/DialogMasterPage.master"
    AutoEventWireup="true" CodeFile="WorkFlowReasonBatch.aspx.cs" Inherits="Whir_System_ModuleMark_Common_WorkFlowReasonBatch" %>

<%--批量退审页面--%>
<%@ Import Namespace="Whir.Language" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        $(function () {
            $("[name=_dialog] .btn-primary", parent.document).click(function () {
                $("#formEdit").bootstrapValidator('validate');
                if ($("#formEdit").data('bootstrapValidator').isValid()) {

                    whir.ajax.post("<%= SysPath %>Handler/Common/UnauditedList.aspx?_action=BatchEvent", {
                        data: {
                            cmd: "returnflow",
                            subjectid: "<%=SubjectId %>",
                            cbPosition: "<%=Keys %>",
                            reason: $("#txtReason").val()
                        },
                        success: function (response) {
                            whir.loading.remove();
                            if (response.Status == true) {
                                window.parent.whir.toastr.success(response.Message);
                                window.parent.whir.dialog.remove();
                                window.parent.search();
                            } else {
                                whir.toastr.error(response.Message);
                            }
                        }
                    });
                    return false;
                }
            });
        });
    </script>
</asp:Content>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="Server">
    <div class="content-wrap">
        <div class="space15"></div>
        <div class="panel">
            <div class="panel-body">
                <div class="form_center">
                        <form id="formEdit" enctype="multipart/form-data" class="form-horizontal" form-url="">
                        <div class="form-group">
                            <div class="col-md-2 control-label" for="Reasion">
                                <%="退审理由：".ToLang()%></div>
                            <div class="col-md-10 ">
                                <textarea id="txtReason" name="Reason" style="width:100%" value="" rows="6" class="form-control" required="true"
                                    maxlength="256"></textarea>
                            </div>
                        </div>
                        </form>
                    </div>
            </div>
        </div>
    </div>
</asp:content>
