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


<%@ 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" />
     <%=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">
    var UserID = '<% =LoginUserInfo.sUserID %>';
    var UserName = '<% =LoginUserInfo.sUserName %>';
    function opJsTreeUser(txt, txtValue) {
        var para = "/admin/basic/usertreeselect.aspx?para=1&list=" + $("#" + txtValue).val() + "&PostID=<% =LoginUserInfo.sPostID %>&DeptID=<% =LoginUserInfo.sDeptID %>";
        CareffArtOpen4(para, '人员选择', 300, 500, function (path) {
            //alert(path);
            if (path == null) { return false; }
            var strs = path.split("#")
            var m = $id(txt)
            m.value = strs[1];
            var m1 = $id(txtValue)
            m1.value = strs[0];


        });
    }

    $(window).load(function () {
        //art.dialog.data("retdata", 0);

        $("#radLType input").click(function () {
            //alert($(this).val());

            if ($(this).val() == "4") {
                
                $('#txtUserID').val(UserID);
                $('#txtUserName').val(UserName);
            }


        });
    });

    
    

    function jscheckAll() {

        var altInfo = "";
        
        var TUserID = $('#txtUserID').val();
        if (UserID == TUserID)
        {
            //window.alert("申请人和审批人尽量不要是同一人！");
            //return false;
            altInfo = ("申请人和审批人尽量不要是同一人！"+"\n");
        }
        var b = false;
        var UserName = $('#txtUserName').val();
        if ($('#radLType_0').is(':checked')) {
            b = true;
        }

        var info = "";

        if (b) {
            info= (altInfo + "您确实要将任务提交给[" + UserName + "]审核吗，提交审核后，您将无法修改，是否要继续吗？");
        }
        else {
            info = (altInfo + "您确实要将任务提交给[" + UserName + "]存档吗，提交存档后，您将无法修改，存档人接收后流程自动结束，是否要继续吗？");
        }


       
        //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">审批操作类型</td>
  <td class="tabmanagertr">
       
      <asp:RadioButtonList runat="server" ID="radLType" ToolTip="提交审批:可以交给别人继续审批。转交归档：转交档案人员存档后流程自动终止；" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="LeaveState" Text="codeno"></asp:ListItem>
                                </asp:RadioButtonList></td>
 
</tr>
<tr class="tablisttr">
  <td class="tablisttitle">审批人员选择 <span class="fStar">*</span></td>
  <td class="tabmanagertr">   <asp:TextBox ID="txtUserName" runat="server" Text=""  CssClass="1" ToolTip="审批人员"></asp:TextBox>
   <div style="display:none">
          <asp:TextBox ID="txtUserID" runat="server" Text=""  CssClass="1" ToolTip="审批人员" ></asp:TextBox>
       </div>
     
      <a href="javascript:opJsTreeUser('txtUserName','txtUserID');">[选择]</a></td>

</tr>


<tr class="tablisttr">
<td class="tablisttitle">附带留言</td><td class="tabmanagertr">
    

    <asp:TextBox ID="txtFInfo" runat="server" ToolTip="附带留言" Text=""  Width="100%" TextMode="MultiLine" Height="60px" MaxLength="1000" ></asp:TextBox>


                                  </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、您需要选择将此审批任务交由谁进行审批；一般情况下您的申请需要交给您的部门经理或者主管进行审批；
2、如果您的流程只需要一次审批，请选择[转交归档]，提交后审批即可完成；
                    3、[转交归档]的审批人员直接选择是自己即可；
    </div>

            </div>
        </div>
    </div>







        







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