<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="leaveauditingmanage.aspx.cs" Inherits="Us.Web.admin.leave.leaveauditingmanage" %>



<%@ Register src="leaveinfo.ascx" tagname="leaveinfo" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>流程审批</title>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery/jquery.js"></script>
     <%=ImportScriptStr %>
    <script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>
    <script language="javascript" src="/admin/My97DatePicker/WdatePicker.js" type="text/jscript"></script>
    <script  language="javascript" src="/editor/xheditor.js" type="text/javascript" ></script>
    <script type="text/javascript" src="/editor/xheditor_lang/zh-cn.js"></script>
   
    
<script language="javascript" type="text/javascript">
   

    $(window).load(function () {

        //$('#loading').fadeOut();
        $("#radYes").click(function () { if ($("#txtFInfo").val() == "" || $("#txtFInfo").val() == "拒绝审批") { $("#txtFInfo").val("同意审批") } });
        $("#radNo").click(function () { if ($("#txtFInfo").val() == "" || $("#txtFInfo").val() == "同意审批") { $("#txtFInfo").val("拒绝审批") } });
        //txtFInfo
        //art.dialog.data("retdata", 0);
    });



    function jscheckAll() {
        var b = false;
        if ($('#radYes').is(':checked')) {
            b =true;
        }

        var info = "";
        if (b) {
            info="您确实要提交审核状态吗，提交审核后，您将无法修改，是否要继续吗？";
        }
        else {
            info="您确实要提交审核状态为[拒绝审核]吗，提交审核后，您将无法修改，整个流程也将终止，是否要继续吗？";
        }


       
        //info = "您确实要修改数据库连接吗？修改成功后，需要重新登录系统！";
        //alert(art.dialog.data("retdata"));
        if (art.dialog.data("retdata") == 1) {
            art.dialog.data("retdata", 0);//重置
            return true;
        }
        art.dialog.confirm(info, function () {
            art.dialog.data("retdata", 1);
            document.getElementById("btnSubmit").click();
        });

        return false;

    }
 </script>

    </head>
<body onload="win_onLoad();">
    <form id="form1" runat="server">
    
    <div id="tbMain">
        <div class="divTbg">
            <div class="divTbgL">
            </div>
            <div class="divTbgInfo">
                <div class="divTbgTitle">
                   流程审批</div>
            </div>
        </div>
        <div class="divTbgF">
        </div>
        <div class="divTNavBG" id="topURL">
            <ul id="topURLul">
                <li class="divURLed" id="div1">
                    <div>
                        <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                        基本信息</div>
                </li>
            </ul>
        </div>
        <div id="mypanel">
            <div class="divInfoContext">

                <uc1:leaveinfo ID="leaveinfo1" runat="server" />


                <div class="divInfo">
                    <div class="divInfoblack">
                        <div class="divInfoTopList">
                            <div class="listLeft">
                                <div class="navtitle">
                                    2.流程审批</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="divInfo">
                  <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist" onMouseOver="changeto()" onmouseout="changeback()">


<tr class="tablisttr">
<td class="tablisttitle">审批备注<span class="fStar">*</span></td><td class="tabmanagertr">
    

    <asp:TextBox ID="txtFInfo" runat="server" CssClass="1" ToolTip="审批备注" Text="同意审批"  Width="100%" TextMode="MultiLine" Height="60px" MaxLength="1000" ></asp:TextBox>


                                  </td>
</tr>

<tr class="tablisttr">
<td class="tablisttitle">审批意见<span class="fStar">*</span></td><td class="tabmanagertr">&nbsp;
    <asp:RadioButton ID="radYes" runat="server" Checked="True" GroupName="c" Text="同意审批" />
    <asp:RadioButton ID="radNo" runat="server" GroupName="c" Text="拒绝审批" />
    </td>
</tr>
</table>

                    <div class="divSave">
<asp:Button ID="btnSubmit" runat="server" Text="保存(S)" 
                            CssClass="SkyButtonFocus" onclick="btnSubmit_Click" />
                        <asp:Button ID="btnExit" runat="server" Text="取消(C)" CssClass="SkyButtonFocus" 
                            onclick="btnSubmit_Click" />
                    </div>
                </div>

                 <div class="divInfo">
        <span class="usHelpMessage"> * 注意事项： </span>  
                     1、如果您选择[同意审批],则流程可以继续执行；如果您选择[拒绝审批]流程则直接结束；
                    
    </div>

            </div>
        </div>
    </div>
    </form>
</body>
</html>
