fileslog.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:7k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="fileslog.aspx.cs" Inherits="files_fileslog" %>
- <!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/link.css" rel="stylesheet" type="text/css" />
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
- <style type="text/css">
- <!--
- body {
- margin-top: 2px;
- }
- -->
- 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>
- </head>
- <script type="text/javascript">
- function CheckAll(form){
- for (var i=0;i<form.elements.length;i++){
- var e = form.elements[i];
- if (e.name != 'chkAll')
- e.checked = form.chkAll.checked;
- }
- }
- </script>
- <script type="text/javascript" language="JavaScript">
- function check()//表单判断
- {
- var str="";
- var j=0;
- var el=document.form1.getElementsByTagName("input")
- for(i=0;i<el.length;i++){
- if(el[i].type=="checkbox"){
- if((el[i].checked)&&(el[i].name.indexOf("id")!='-1')){
- j++;
- }
- }
- }
- if(j > 100 || j<1)
- {
- alert("最少必须选择一项,最多不能超过100项!rt你现在选择了"+j+"项");
- return false;
- }
- if(!confirm('您确定要删除吗?'))
- {
- return false
- }
- else
- document.form1.submit
- }
- </script>
- <script type="text/javascript">
- <!--
- function check1() {
- if (document.form2.q.value=="") {
- window.alert ("请输入查询关键词!")
- document.form2.q.focus()
- return false
- }
- return true
- }
- //-->
- </script>
- <body style="text-align: center">
- <form name="form2" method="post" action="">
- <table width="103%" border="0">
- <tr>
- <td width="615"><div align="right">
-
- </div></td>
- </tr>
- </table>
- </form>
- <form name="form1" method="post" action="" onsubmit="return check()">
- <div align="center">
- <div align="center">
- <div class="RoundedCorner"> <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>
- <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#5AAE18">
- <tr bgcolor="#FFFFFF">
- <td colspan="2"><div align="center" class="style2 style10">
- <div align="center">
- <strong>文件名</strong></div>
- </div></td>
- <td width="5%"><div align="center"><strong>回 复</strong></div></td>
- <td width="5%"><div align="center"><strong>读 否</strong></div></td>
- <td width="5%"><div align="center"><strong>阅 读</strong></div></td>
- <td width="5%"><div align="center"><strong>下 载</strong></div></td>
- <td width="5%"><div align="center"><strong>备 注</strong></div></td>
- <td width="5%"><div align="center"><strong>备 注</strong></div></td>
- <td width="8%"><div align="center" class="style2">
- <div align="center"><strong>接收人</strong></div>
- </div></td>
- </tr>
- <%//取登陆传来的人的名字
- 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;
- //string name = "haha";
- //string where1 = "u_username='{0}'";
- //where1 = string.Format(where1, name);
- //System.Collections.Generic.IList<COM.OA.Entity.users> listuname = COM.OA.BLL.usersBLL.Select(where1);
- //COM.OA.Entity.users user = listuname[0];
- //int userId = user.u_id;
- //用登陆ID当条件查和接收人ID相同的
- string where2 = "f_takeu_id='{0}'";
- where2 = string.Format(where2, userId);
- System.Collections.Generic.IList<COM.OA.Entity.files> listwenjin = COM.OA.BLL.filesBLL.Select(where2);
- if (listwenjin.Count==0)
- {
- %>
- <tr bgcolor="#FFFFFF">
- <td colspan="11">
- <div align="center">无数据<span class="style2">
- </span> </div>
- </td>
- </tr>
- <%
- }
- else{
- COM.OA.Entity.files fss=listwenjin[0];
- int useridd = fss.f_takeu_id;
- COM.OA.Entity.users us = COM.OA.BLL.usersBLL.Select(useridd);
- //循环文件类,附直
- foreach (COM.OA.Entity.files fs in listwenjin) {%>
- <tr bgcolor="#FFFFFF" onmouseover = "this.style.backgroundColor = '#EEEEEE'" onmouseout = "this.style.backgroundColor = ''">
- <td style="width: 3%"></td>
- <td width="49%"><a href="readwenjian.aspx?fid=<%=fs.f_id %>"> <%=fs.f_filename %></a></td>
- <td>
- <%if (fs.f_isreturn == 0) {%> 无<%
- }else{%>
- <a href="chakanhuifu.aspx?f_takeu_id=<%=fs.f_takeu_id %>">查看</a>
- <% }%>
- </td>
- <td><%if (fs.f_isread == 0)
- {%>未读<%
- }
- else
- {%>已读
- <%} %>
- </td>
- <td><div align="center"><font color="#FF0000"><%=fs.f_readdegree%></font></div></td>
- <td><div align="center"><a href="download.aspx?id=<%=fs.f_id%>">下载</a></div></td>
- <td><div align="center"><a href="tianjiabeizhu.aspx?f_id=<%=fs.f_id %>">备 注</a> </div></td>
- <td><%=fs.f_remark %></td>
- <td><%=us.u_username%></td>
- </tr>
- <%}%>
- <tr bgcolor="#FFFFFF" onmouseover = "this.style.backgroundColor = '#EEEEEE'" onmouseout = "this.style.backgroundColor = ''">
- <td colspan="11">
- <div align="center"><span class="style2">
- </span> </div>
- </td>
- </tr>
- <tr bgcolor="#FFFFFF" onmouseover = "this.style.backgroundColor = '#EEEEEE'" onmouseout = "this.style.backgroundColor = ''">
- <td colspan="11"><span class="style2"> </span></td>
- </tr>
- </table>
- </div>
- </form>
- <table width="80%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><div align="center"> 总共 <%=listwenjin.Count %>条记录)</div></td>
- </tr>
- </table>
- <div align="right"></div>
- <a href="javascript:history.go(-1)"><img border="0" alt="" src="../images/qs/back.gif" width="37" height="45" /></a>
- <% } %>
- </body>
- </html>