<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Wf_Reply.aspx.cs" Inherits="TotCms.Web.Office.Archives.Wf_Reply" ValidateRequest="false" %>
<!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">
    <title>流程</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <link href="../../swfupload/swfupload.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
      $(function () {
        $("#dialog:ui-dialog").dialog("destroy");
        $("#dialog-win").dialog({
          autoOpen: false,
          height: 350,
          width: 450,
          modal: true,
          buttons: {
            "关闭窗口": function () {
              $(this).dialog("close");
            }
          },
          close: function () {

          }
        });

        $("#selclass").click(function () {
          $("#dialog-win").dialog("open");
        });

        $("#rplist tr").hover(
         function () {
           $(this).removeClass("lines");
           $(this).addClass("lines2");    //鼠标经过添加hover样式 
         },
         function () {
           $(this).removeClass("lines2");
           $(this).addClass("lines");    //鼠标经过添加hover样式 
         }
        );
       });
       function CloseFrame() {
         $("#dialog-win").dialog("close");
       }
       function ReturnValue(v, t) {
         $('#tbStaffs').val(t);
         $('#tbStaffId').val(v);
         CloseFrame();
       }
    </script>
    <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>
    <style type="text/css">
      .style1
      {
        width: 100%;
      }
    </style>
    
</head>
<body>
    <form id="form1" runat="server">
    <div id="dialog-win" title="选择员工">
	    <iframe src="../Staff/Staff_Select.aspx" width="370" height="350" frameborder="0" scrolling="auto"></iframe>	
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="border">
      <tr class="suphead">
        <td colspan="2">档案借阅流程查看</td>
    </tr>    
    <tr>
      <td class="fields_text" width="100">
          标题：</td>
      <td class="fields_input">
        <asp:Label ID="lbTitle" runat="server" Text="Label"></asp:Label>
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          发起人：</td>
      <td class="fields_input">
          
        <asp:HyperLink ID="hlStaff" runat="server"></asp:HyperLink>
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          发起日期：</td>
      <td class="fields_input">
          
        <asp:Label ID="lbPubDate" runat="server" Text="Label"></asp:Label>
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          完成日期：</td>
      <td class="fields_input">
          
        <asp:Label ID="lbCompleteDate" runat="server" Text="Label"></asp:Label>
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          申请号：</td>
      <td class="fields_input">          
        <asp:Literal ID="tbApplyNo" runat="server"></asp:Literal>          
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          使用原因：</td>
      <td class="fields_input">     
        <asp:Literal ID="tbUserReason" runat="server"></asp:Literal>      
      </td>
    </tr>
    <tr class="suphead">
        <td colspan="2">借阅文档</td>
    </tr>
    <tr>      
      <td class="fields_input" colspan="2">     
        <table cellpadding="0" cellspacing="1" border="0" width="100%">         
    <asp:Repeater ID="rptList" runat="server">
        <HeaderTemplate>
          <tr  class="lines">
              <td><strong>名称</strong></td>
              <td><strong>文号</strong></td>
              <td><strong>来源</strong></td>
              <td><strong>密级</strong></td>
              <td><strong>文件类型</strong></td>
              <td><strong>日期</strong></td>
          </tr>
        </HeaderTemplate>
        <ItemTemplate>
          <tr class="lines">
            <td><%# Eval("Title")%></td>
            <td><%# Eval("Code")%></td>
            <td><%# Eval("PubBy")%></td>
            <td><%# Eval("Encrypt")%></td>
            <td><%# Eval("FileType")%></td>
            <td><%# Eval("PubDate","{0:yyyy-MM-dd}")%></td>
          </tr>
         </ItemTemplate>
         </asp:Repeater>         
    </table>
      </td>
    </tr>
    <tr class="suphead">
        <td colspan="2">流程步骤</td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        <table class="style1" id="rplist">
          <tr>            
            <td height="26">
              <b>步骤</b></td>
            <td>
              <b>名称</b></td>
            <td>
              <b>执行人</b></td>
            <td><b>类型</b></td>
            <td><b>结果</b></td>
            <td><b>状态</b></td>
            <td>
              <b>执行日期</b></td>
          </tr>
          <asp:Literal ID="rpSteps" runat="server"></asp:Literal>
          </table>
      </td>
    </tr>
    <tr class="suphead">
        <td colspan="2">流程处理</td>
    </tr>

    <tr>
      <td colspan="2">
        <table class="style1">
          <tr>
            <td>
              处理意见：</td>
            <td>
              <asp:RadioButtonList ID="rbRunSatus" runat="server" 
                RepeatDirection="Horizontal" RepeatLayout="Flow">
                <asp:ListItem Value="2" Selected="True">同意</asp:ListItem>
                <asp:ListItem Value="3">否定</asp:ListItem>
              </asp:RadioButtonList>
            </td>
          </tr>
          <%
          if (this.actiontype == 3)
          {
          %>
          <tr>
            <td>
                指定下一步执行人：</td>
            <td>
                <input name="tbStaffs" type="text" id="tbStaffs" class="input_middle" />
                <input name="tbStaffId" type="text" id="tbStaffId" class="hidden" />
                <input id="selclass" name="selclass" type="button" value="请选择" class="selclass" />
            </td>
          </tr>
          <%}else{%>
           <input name="tbStaffs" type="text" id="tbStaffs" value="" class="hidden" />
           <input name="tbStaffId" type="text" id="tbStaffId" value="0" class="hidden" />
           <%}%>
          <tr>
            <td>
              结果：</td>
            <td>
            <asp:TextBox ID="Content" runat="server" TextMode="MultiLine"></asp:TextBox>
          <script type="text/javascript">
		      //<![CDATA[
            // Replace the <textarea id="Content"> with an CKEditor instance.            

            var editor = CKEDITOR.replace('Content',
			      {
			        toolbar:
					    [
						    ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
						    ['UIColor']
					    ],
			        filebrowserBrowseUrl: '../../ckfinder/ckfinder.html', //启用浏览功能
			        filebrowserImageBrowseUrl: '../../ckfinder/ckfinder.html?Type=Images',
			        filebrowserFlashBrowseUrl: '../../ckfinder/ckfinder.html?Type=Flash',
			        filebrowserUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
			        filebrowserImageUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
			        filebrowserFlashUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
			      }
            );
		      //]]>
		      </script>
            </td>
          </tr>
          <tr>
            <td>
              &nbsp;</td>
            <td>
              <asp:Button ID="Button3" runat="server" 
                OnClientClick="return confirm('操作后将无法退回，确定操作吗?')" Text="处理" 
                onclick="Button3_Click" />
        <input id="Button2" type="reset" value="返回" 
          onclick="javascript:history.back();" /></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
    </form>
</body>
</html>
