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



    
    
<!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 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>
    <%=ImportScriptStr %>
    
<script language="javascript" type="text/javascript">
    function opJsTreeUser(txt, txtValue) {
        var para = "/admin/basic/usertreeselect.aspx?para=1&list=" + $("#" + txtValue).val() + "&PostID=<% =LoginUserInfo.sPostID %>&DeptID=<% =LoginUserInfo.sDeptID %>";
        UsOpenDialogTreeBack(para, txt, txtValue, function () {
            //alert();
            document.getElementById("btnSearch").click();
        });
    }

    function jscheckAll() {
        var sValue = $("#drpTaskState").val();

        var UserID = $("#txtUserID").attr("title") + ",";
        var RUserID = $("#txtReceiveUserID").val() + ",";


        if (RUserID.indexOf(UserID) >= 0) {
            alert('对不起，系统暂时不支持把工作请假分配给自己，请重新选择请假责任人！');
            return false;

        }


        if (sValue == "2") {
            return window.confirm("当您提交工作请假状态为[已经发布]状态，您将无法修改，是否要继续吗？");
        }
        return true;
    }


 </script>
   <%-- <script type="text/javascript">
        $(window).load(function () {
            $('#loading').fadeOut();
        });
	    </script>--%>
    </head>
<body onLoad="win_onLoad();">
  <%--   <div id="loading" style="position: fixed;top: -50%;left: -50%;width: 200%;height: 200%;background: #fff;z-index: 1000;overflow: hidden;">
                <img src="/admin/style/default/images/loading.gif" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;margin: auto;"/>
</div>--%>
    <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">
                <div class="divInfo">
                    <div class="divInfoblack">
                        <div class="divInfoTopList">
                            <div class="listLeft">
                                <div class="navtitle">
                              1.请假人信息</div>
                            </div>
                        </div>
                    </div>
                </div><div class="divInfo">
                <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" onMouseOver="changeto()" onMouseOut="changeback()">
<tr class="tablisttr">
  <td  class="tablisttitle">登录编号</td>
  <td class="tabmanagertr"  width="40%"><span class="divSave">
    <asp:TextBox ID="txtUserID" runat="server" ToolTip="申请人" Text=""  CssClass="1"></asp:TextBox>
  </span></td>
  <td  class="tablisttitle">申请编号</td>
  <td class="tabmanagertr"  width="40%"><asp:TextBox ID="txtLeaveID" runat="server" ToolTip="申请编号" Text=""></asp:TextBox></td>
</tr>
<tr class="tablisttr">
  <td  class="tablisttitle">申请人名</td>
  <td class="tabmanagertr">
    
      <asp:TextBox ID="txtUserName" runat="server" Text=""  CssClass="1" ToolTip="申请人"></asp:TextBox>
      <span class="fStar">*</span>
      </td>
  <td  class="tablisttitle">申请部门</td>
  <td class="tabmanagertr">
    <asp:TextBox ID="txtDeptID" runat="server" ToolTip="计划部门" Text=""></asp:TextBox></td>
</tr>
<tr class="tablisttr">
  <td class="tablisttitle">电子邮件</td>
  <td class="tabmanagertr"><asp:TextBox ID="txtUEmail" runat="server" ToolTip="电子邮件" Text=""></asp:TextBox></td>
  <td class="tablisttitle">联系电话</td>
  <td class="tabmanagertr"><asp:TextBox ID="txtUTel" runat="server" ToolTip="联系电话" Text=""></asp:TextBox></td>
</tr>
</table></div>
                <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" onMouseOver="changeto()" onMouseOut="changeback()">
<tr class="tablisttr">
  <td class="tablisttitle">请假类型<span class="fStar">*</span></td>
  <td class="tabmanagertr" colspan="3">
     <asp:RadioButtonList runat="server" ID="radLCType" ToolTip="请假分类" RepeatColumns="4" RepeatDirection="Horizontal" Width="100%">
    <asp:ListItem Value="LeaveCType" Text="codeno"></asp:ListItem>
    </asp:RadioButtonList></td>

</tr>
<tr class="tablisttr">
  <td class="tablisttitle">开始时间<span class="fStar">*</span></td>
  <td class="tabmanagertr" width="40%"><asp:TextBox ID="txtSDate" runat="server" ToolTip="开始时间" Text=""  CssClass="1"
      ></asp:TextBox></td>
  <td class="tablisttitle">&nbsp;</td>
  <td class="tabmanagertr"  width="40%">
      &nbsp;</td>
</tr>

<tr class="tablisttr">
  <td class="tablisttitle">结束时间<span class="fStar">*</span></td><td class="tabmanagertr">
    <asp:TextBox ID="txtEDate" runat="server" ToolTip="结束时间" Text=""  CssClass="1"></asp:TextBox></td>
  <td class="tablisttitle">请假小时数<span class="fStar">*</span></td><td class="tabmanagertr">
      <asp:TextBox ID="txtLDay" runat="server" ToolTip="请假小时数" Text=""></asp:TextBox>
      (小时)</td>
</tr>


<tr class="tablisttr">
<td class="tablisttitle">请假说明</td><td class="tabmanagertr" colspan="3">
    

    <asp:TextBox ID="txtLInfo" runat="server" ToolTip="请假说明" Text=""  Width="100%" TextMode="MultiLine" Height="60px" ></asp:TextBox>


                                  </td>
</tr>
<tr class="tablisttr">
<td class="tablisttitle">请假附件</td><td class="tabmanagertr" colspan="3" >
    <asp:TextBox ID="txtLAddr" runat="server" ToolTip="请假附件" Width="80%"></asp:TextBox>
    <a href="#" onClick="SkyView('txtLAddr');">[查看]</a>
 </td>

</tr>
</table></div>
              <div class="divInfo">
                    <div class="divInfoblack">
                        <div class="divInfoTopList">
                            <div class="listLeft">
                                <div class="navtitle">
                                    3.处理流程息</div>
                            </div>
                        </div>
                    </div>
                </div><div class="divInfo">


<div style="width:100%; max-height:140px; overflow:auto;">
<asp:Repeater runat="server" ID="rptInfo">
                <HeaderTemplate>
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" onmouseover="changeto()"  onmouseout="changeback()">
                         <tr class="tablisttitlen">
<td width="15%" bgcolor="#FFFFFF" class="tablisttitlen">处理时间</td>
      <td width="10%" bgcolor="#FFFFFF" class="tablisttitlen">处理人</td>
      <td width="65%" bgcolor="#FFFFFF" class="tablisttitlen">处理内容 </td>
      <td width="10%" bgcolor="#FFFFFF" class="tablisttitlen">处理结果 </td>
    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                        <tr class="tablisttr">
                      <td class="tabmanagertr1"  ><%#UsToolsDateFormat(Eval("CreateDate"))%></td>
                      <td align="center" class="tabmanagertr1"  > <%#Eval("UserName")%></td>
                      <td align="left" class="tabmanagertr1"  ><%#UsToolsStringLengthTitle(Eval("FShow").ToString(),50)%></td>
                      <td class="tabmanagertr1" > <%#Eval("LeaveStateName")%></td>
                    </tr>  
                </ItemTemplate>
                <FooterTemplate>
                    </table></FooterTemplate>
            </asp:Repeater>


</div>




</div>
                <div class="divInfo">
                  

                    <div class="divSave">
                      <asp:Button ID="btnSubmit" runat="server" Text="打印(S)" 
                            CssClass="SkyButtonFocus" onclick="btnSubmit_Click" Enabled="false" />
                        <asp:Button ID="btnExit" runat="server" Text="关闭(C)" CssClass="SkyButtonFocus" 
                            onclick="btnSubmit_Click" />

              <%--     <a href="#"  onclick="javascript:CareffArtAlert('恭喜您操作成功',0)">关闭</a>
                   <a href="#"  onclick="javascript:CareffArtAlert('对不起操作失败',1)">关闭1</a>
                    <a href="#"  onclick="javascript:CareffArtAlert('对不起操作失败',3)">关闭3</a>

                        <a href="#"  onclick="javascript:parent.document.getElementById('btnSearch').click();">刷新</a>

                         <a href="#"  onclick="javascript:parent.location.reload(false);">刷新1</a>--%>

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







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