oaPro/rc/jh_deptplan.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using COM.OA.BLL;
using COM.OA.Entity;
public partial class rc_deptplan : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
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>");
}
else
{
this.Response.Write("<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td width='6' height='21'><img src='../images/sj/leftlin1.gif' width='6' height='21'></td><td width='936' bgcolor='#5AAE18'><div align='center'><div align='center' class='style1'><span class='style3 style2 style1 style16'><strong>部 门 计 划 </strong></span></div><span class='style1'></span></div></td><td width='6' height='21'><img src='../images/sj/rightlin1.gif' width='6' height='21'></td></tr></table>");
//取出所有部门
IList<department> deptList = departmentBLL.Select();
if (deptList.Count != 0)
{
this.Response.Write("<table width='100%' border='0' cellpadding='2' cellspacing='1' bgcolor='#5AAE18'><tr><td bgcolor='#FFFFFF'>");
foreach (department d in deptList)
{
this.Response.Write("<a href='jh_deptplan.aspx?dept=" + d.dept_id + "'>" + d.dept_department + "</a> ");
}
this.Response.Write("</td></tr></table>");
}
this.Response.Write("<table width='200' border='0' cellspacing='0' cellpadding='0'><tr><td> </td></tr></table>");
int to_u_id = 0;
int deptvalue = 0;
if (!Page.IsPostBack)
{
deptvalue = Int32.Parse(this.Request.QueryString["dept"]);
}
string sql2 = "u_dept_id='{0}'";
sql2 = string.Format(sql2, deptvalue);
IList<users> userList = usersBLL.Select(sql2);
if (userList.Count != 0)
{
foreach (users user in userList)
{
to_u_id = user.u_id;
}
}
string sql = "to_u_id='{0}' and to_state='1'";
后面还有 57 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
