⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gw_takedocument.aspx

📁 OA自动化办公系统,就是OA自动化办公系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="gw_takedocument.aspx.cs" Inherits="gw_gw_takedocument" %>

<!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 runat="server">
    <title>接收公文</title>
    <link href="../css/textarea.css" rel="stylesheet" type="text/css"/>
    <style type="text/css"> 

div.RoundedCorner{background: #5AAE18} 
b.rtop, b.rbottom{display:block;background: #FFF} 
b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18} 
b.r1{margin: 0 4px} 
b.r2{margin: 0 3px} 
b.r3{margin: 0 2px} 
b.rtop b.r4, {margin: 0 1px;height: 1px}
.style1 {
	font-size: 13px;
	color: #FFFFFF;
font-weight: bold;
} 
</style>
<style type="text/css">
<!--
body {
	margin-top: 2px;
}
-->
</style>
<script type="text/javascript" language="javascript">
function submit_onclick() {
    var x = document.getElementById("form2");
    var cmd = document.getElementById("cmd").value;
    x.action="gw_selectlike.aspx?cmd="+cmd;
    document.myform.submit();

}
</script>
</head>
<body style="text-align: center">
<form id="form2" name="myform">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="72%" style="height: 28px"><div align="right">
          <input name="cmd" id="cmd" type="text"/>
          <input name="button" type="button" id="button" style="FONT-SIZE: 12px; HEIGHT: 27px"  value=" 查 询 " onclick="return submit_onclick()"/>
        </div></td>
        <td width="2%" style="height: 28px">&nbsp;</td>
        <td width="3%" style="height: 28px"><div align="center"><img alt=""  src="../images/sj/face1.gif" width="16" height="14"/></div></td>
        <td width="6%" style="height: 28px"><div align="center"><a href="gw_senddocument.aspx" target="mainFrame">发送公文</a></div></td>
        <td width="2%"><div align="center"><img alt=""  src="../images/sj/gw.gif" width="20" height="18"/></div></td>
        <td width="6%"><div align="center"><a href="gw_takedocument.aspx">接收公文</a></div></td>
        <td width="3%" style="height: 28px"><div align="center"><img alt=""  src="../images/sj/ico_msb.gif" width="18" height="18"/></div></td>
        <td width="6%" style="height: 28px"><div align="center"><a href="gw_sendnote.aspx">发送记录</a></div></td>
      </tr>
    </table>
    </form>
    
    <form id="form1" runat="server">
    <div>
    <%
                COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
                
                if (loginuser == null)
                {
                    Response.Write("<script language='javascript'>parent.document.location.href='../login.aspx'</script>");  
                    return;
                }
                int userid = loginuser.u_id;
                //设置where语句
                String where = "doc_u_id='{0}'";
                where = string.Format(where, userid);
                //查询
                System.Collections.Generic.IList<COM.OA.Entity.document> doclist = COM.OA.BLL.documentBLL.Select(where,true,false);
                
    %>
    <table align="center"  cellpadding="0" border="0" cellspacing="0" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; width: 93%;" >
        <tr><td colspan="5" style="height: 15px; width: 100%;" ><div class="RoundedCorner"><div align="center">
        <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
        <span class="style1">接 收 公 文</span></div></div></td></tr>
        <tr><td>
        <table cellpadding="0" border="0"  cellspacing="0" style="border-right: #5aae18 1px solid; border-top: #5aae18 1px solid; margin: 0px 1px 1px; border-left: #5aae18 1px solid; border-bottom: #5aae18 1px solid; width: 99.9%; padding-right: 1px; padding-left: 1px; padding-bottom: 1px; padding-top: 0px;" >
        
        <%
            if (doclist.Count != 0)
            {%>
        <tr>
          <td style="height: 24px; width: 123px;"><strong>标题</strong></td><td style="height: 24px; width: 77px;"><strong>发送人</strong></td><td style="height: 24px; width: 79px;"><strong>部门</strong></td><td style="height: 24px; width: 86px;"><strong>点击</strong></td><td style="width: 111px; height: 24px;"><strong>时间</strong></td><td style="width: 109px; height: 24px;"><strong>操作</strong></td>
        </tr>
        <%   foreach (COM.OA.Entity.document docu in doclist)
             {
                 %>
                 <tr>
                 <td style="height: 25px; width: 123px;"><a href="gw_documentinfo.aspx?docid=<%=docu.doc_id %>"><%=docu.doc_title%></a></td>
                 
                 <%  int sendid = docu.doc_sendu_id;
                     string sql3 = "u_id='{0}'";
                     sql3 = string.Format(sql3, sendid);
                     System.Collections.Generic.IList<COM.OA.Entity.users> userlist = COM.OA.BLL.usersBLL.Select(sql3, true, false);
                     if (userlist.Count == 1)
                     {
                         foreach (COM.OA.Entity.users u in userlist)
                         {
                             int loginname = u.u_em_id;
                             string emname = "";
                             string sql4 = "em_id='{0}'";
                             sql4 = string.Format(sql4, loginname);
                             System.Collections.Generic.IList<COM.OA.Entity.employee> emlist = COM.OA.BLL.employeeBLL.Select(sql4);
                             if (emlist.Count == 1)
                             {
                                 foreach (COM.OA.Entity.employee empl in emlist)
                                 {
                                     emname = empl.em_name;
                                 }
                             }
                             %>
                             <td style="height: 25px; width: 77px;"><%=emname%></td> 
                             <td style="height: 25px; width: 79px;"><%=u.department.dept_department%></td>
                             <%
            }
        }
                  %>
                 <td style="height: 25px; width: 86px;"><%=docu.doc_clicks%>次</td>
                 <td style="width: 111px; height: 25px"><%=docu.doc_releasetime%></td>              
                 <td style="height: 25px"><a href="gw_delectdocument.aspx?docid=<%=docu.doc_id %>">删除</a></td>
                 </tr>   
                 <%     
            }
        }
        else
        {
            %><tr><td colspan="6" align="center" style="height: 51px"><strong>没 有 您 的 公 文</strong></td></tr><%    
        }       
         %>
       
        </table>
        </td></tr>
    </table>
    </div>
    </form>
    <img alt=""  src="../images/sj/up.gif" width="17" height="12"/><a href="javascript:history.go(-1)">返 回</a>
    <br />
    &nbsp;
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -