yueguanli.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:6k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="yueguanli.aspx.cs" Inherits="wx_zongjie_yueguanli" %>
- <!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>
- <style type="text/css">
- <!--
- .style2 {font-size: 12px}
- -->
- </style>
- <link href="../css/input.css" rel="stylesheet" type="text/css">
- <link href="../css/link.css" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- .style3 {
- color: #FFFFFF;
- font-weight: bold;
- }
- .style4 {color: #5AAE18}
- .style6 {color: #000000}
- -->
- </style>
- <link href="../../../css/link1.css" rel="stylesheet" type="text/css">
- </head>
- <body style="text-align: center">
- <%
- //取登陆人信息
- COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
- //如果取不到跳转到登陆页
- if (loginuser == null)
- {
- this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
- }
- %>
- <form id="form1" runat="server">
- <div>
- <table style="width: 653px; height: 147px;" border="0" bgcolor="#5AAE18">
- <tr bgcolor='#FFFFFF'>
- <td style="width: 175px;" colspan="2" bgcolor="#5AAE18">
- <div style="text-align: center"><span class="style7"><span class="style3"><span class="style1">年 度 总 结 管 理</span></span></span></div></td>
- </tr>
- <%
- //接收第几页
- string page=this.Request["page"];
- //声明全局变量
- System.Collections.Generic.IList<COM.OA.Entity.worksumup> wo;
- //设置where语句
- String where = "ws_st_id='{0}'";
- where = string.Format(where, 2);
- //按where查询
- wo = COM.OA.BLL.worksumupBLL.Select(where);
- //取数据库相关信息总条数
- int count = wo.Count;
- //int转换成float类型
- float countd=count;
- //调用ceiling方法转换取值并转换成double类型
- double weiy = Math.Ceiling(countd/3);
- //转换成int类型
- int weiye = Int32.Parse(weiy.ToString());
- int pages=1;
- int shangpage=0;
- int xiapage=0;
- //判断是否第一次登陆,是就查前3条信息
- if (page == null)
- {
- wo = COM.OA.BLL.worksumupBLL.Select(3, 1, where);
- shangpage = 1;
- xiapage = 2;
- }
- //不是第一次登陆按页数查询
- else
- {
- pages = Int32.Parse(page);
- shangpage=pages - 1;
- xiapage = pages + 1;
- wo = COM.OA.BLL.worksumupBLL.Select(3, pages, where);
- }
- //判断查询出的内容是否为空
- if (wo.Count != 0)
- {
- foreach(COM.OA.Entity.worksumup ww in wo){
- %>
- <tr bgcolor='#FFFFFF'>
- <td style="width: 175px; text-align: center;">
- 月份</td>
- <td style="width: 470px">
- <%=ww.ws_year%>年<%=ww.ws_month %>月</td>
- </tr>
- <tr bgcolor='#FFFFFF'>
- <td style="width: 175px; height: 21px; text-align: center;">
- 常规工作</td>
- <td style="height: 21px; width: 470px;">
- <%=ww.ws_generalwork %></td>
- </tr>
- <tr bgcolor='#FFFFFF'>
- <td style="width: 175px; text-align: center;">
- 下周工作计划</td>
- <td style="width: 470px">
- <%=ww.ws_nextplan%></td>
- </tr>
- <tr bgcolor='#FFFFFF'>
- <td style="width: 175px; height: 21px; text-align: center;">
- 创新,问题反馈,意见与建议</td>
- <td style="height: 21px; width: 470px;">
- <%=ww.ws_advice %></td>
- </tr>
- <tr bgcolor='#FFFFFF'>
- <td style="width: 175px">
-
- </td>
- <td style="width: 470px">
- 时间:<%=ww.ws_time %></td>
- </tr>
- <tr bgcolor='#FFFFFF'>
- <td style="width: 175px; height: 21px; text-align: center;" colspan="2">
-
- </td>
- </tr>
- <%
- }
- %>
- <tr bgcolor='#FFFFFF'>
- <td style="width: 175px; height: 21px; text-align: center;" colspan="2">
- <% if (pages == 1)
- { %>
- <a href="yueguanli.aspx?page=1">首页</a>
- <%}
- else
- { %>
- <a href="yueguanli.aspx?page=<%=shangpage %>">上一页</a><% } %> 
- <% if (pages == weiye){ %> <a href="yueguanli.aspx?page=<%=weiye %>">尾页</a>
- <% }else{ %> <a href="yueguanli.aspx?page=<%=xiapage %>">下一页</a>
- <% } %>
- </td>
- </tr>
- <%
- }
- else {
- %>
- <tr bgcolor='#FFFFFF'>
- <td style="width: 175px; text-align: center;" colspan="2">
- 无记录</td>
- </tr>
- <%
- }
- %>
- </table>
- </div>
- </form>
- </body>
- </html>