Sry.Solution.UI/View/ODept.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sry.Framework.Dal;
using Sry.Data;
using Sry.Entity;
using Sry.Solution.Components;
using Sry.Solution.Data;
namespace Sry.Solution.UI.View
{
public partial class ODept : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
AspNetPager1.PageSize = PublicMethod.ConvertTo<int>(ddlPageSize.SelectedItem.Text, 10);
if (!String.IsNullOrEmpty(CurrentUser.LoginName))
{
#region 判断查询、添加、删除、修改、详情权限
if (!new UsersRolesPurviewsData().getPur(new List<string> { "系统管理", "部门管理", "查询", CurrentUser.LoginName }))
PublicMethod.hideBtn(new List<Control> { spName, txtSearch, btnSear });
if (!new UsersRolesPurviewsData().getPur(new List<string> { "系统管理", "部门管理", "添加", CurrentUser.LoginName }))
PublicMethod.hideBtn(new List<Control> { btnAdd });
if (!new UsersRolesPurviewsData().getPur(new List<string> { "系统管理", "部门管理", "删除", CurrentUser.LoginName }))
PublicMethod.hideBtn(new List<Control> { btnDel });
#endregion
bindList();
}
else
Response.Redirect("nonPur.aspx");
}
private void bindList()
{
QueryParams param = new QueryParams();
param.Fields = @"[dep_ID]
,[dep_Name]
,[dep_CreateTime]";
param.OrderBy = "dep_ID desc";
param.PageNo = AspNetPager1.CurrentPageIndex;
param.PageSize = AspNetPager1.PageSize;
var rsp = new DeptData().Select(new Dept() { dep_Name = txtSearch.Value.Trim() }, 0, ref param);
if (rsp == null || rsp.Tables[0] == null || rsp.Tables[0].Rows.Count == 0)
{
nodata.Visible = true;
list.DataSource = null;
list.DataBind();
AspNetPager1.CurrentPageIndex = 1;
}
else
{
nodata.Visible = false;
list.DataSource = rsp;
list.DataBind();
AspNetPager1.RecordCount = param.Count;
}
后面还有 13 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。