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

📄 nianguanli.aspx

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

<!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/input.css" rel="stylesheet" type="text/css" />
<link href="../css/link.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style3 {color: #FFFFFF}
.style4 {color: #5AAE18}
.style7 {color: #5AAE18}
-->
</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; background-color:#5AAE18;" colspan="2" >
                    <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, 1);
                //按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">
                    &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="nianguanli.aspx?page=1">首页</a>                    
                    
                    <%}
                      else
                      { %>
                    <a href="nianguanli.aspx?page=<%=shangpage %>">上一页</a><% } %>&nbsp
                     <% if (pages == weiye){  %> <a href="nianguanli.aspx?page=<%=weiye %>">尾页</a>
                     <% }else{  %> <a href="nianguanli.aspx?page=<%=xiapage %>">下一页</a>
                     <% } %>
                </td>                              
            </tr>
            <%
            }
           else { 
                    %>
                <tr bgcolor='#FFFFFF'>
                <td style="width: 175px; text-align: center; height: 18px;" colspan="2">
                    无记录</td>
                              
            </tr>
                    <%
                }
          %>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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