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

📄 zongjie.aspx

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

<!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">
<!--
.style1 {	color: #FFFFFF;
	font-weight: bold;
}
.style2 {font-size: 12px}
-->
</style>
<link href="../css/link.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
<!--
.style3 {font-size: 14px}
.style17 {color: #5AAE18}
.style18 {color: #5AAE18; font-size: 12px; }
.style21 {
	color: #5EAE19;
	font-weight: bold;
}
.style7 {color: #FFFFFF}
.style22 {color: #5AAE18; font-weight: bold; font-size: 12px; }
-->
</style>
<link href="../css/link1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style5 {color: #000000}
-->
</style>
</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 style="text-align=center">
        <table style="width: 653px; height: 147px; text-align: center;" bgcolor="#5AAE18" border="0">
            <tr  bgcolor='#FFFFFF'>
                <td style="width: 175px; text-align: center;background-color:#5AAE18;" colspan="2">
                  <div align="center"><span class="style7"><span class="style1">所 有 工 作 总 结</span></span></div></td>
                              
            </tr>
            <% 
                //接收第几页
                string page = this.Request["page"];
                //声明全局变量
                System.Collections.Generic.IList<COM.OA.Entity.worksumup> wo;
                //设置where语句
                String where = "1=1";
                
                wo = COM.OA.BLL.worksumupBLL.Select();
                //取数据库相关信息总条数
                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">
                    &nbsp;&nbsp;
                </td>
                <td style="width: 470px">
                    时间:<%=ww.ws_time %></td>               
            </tr>
              <tr bgcolor='#FFFFFF'>
                <td style="width: 175px; height: 21px; text-align: center;" colspan="2">
                    &nbsp;&nbsp;
                </td>
                              
            </tr>
             
            <%
                }
%>
            <tr bgcolor='#FFFFFF'>
                <td style="width: 175px; height: 21px; text-align: center;" colspan="2">
                    <% if (pages == 1)
                       { %>
                        <a href="zongjie.aspx?page=1">首页</a>                    
                    
                    <%}
                      else
                      { %>
                    <a href="zongjie.aspx?page=<%=shangpage %>">上一页</a><% } %>&nbsp
                     <% if (pages == weiye){  %> <a href="zongjie.aspx?page=<%=weiye %>">尾页</a>
                     <% }else{  %> <a href="zongjie.aspx?page=<%=xiapage %>">下一页</a>
                     <% } %>
                </td>
                              
            </tr>
<%
            }
           else { 
                    %>
                <tr>
                <td style="width: 175px; text-align: center;" colspan="2">
                    无记录</td>
                              
            </tr>
                    <%
                }
          %>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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