private void get_remote_fileinfo(HttpContext context) { string filePath = OSRequest.GetFormString("remotepath"); if (string.IsNullOrEmpty(filePath)) { context.Response.Write("{\"status\": 0, \"msg\": \"没有找到远程附件地址!\"}"); return; } if (!filePath.ToLower().StartsWith("http://")) { context.Response.Write("{\"status\": 0, \"msg\": \"不是远程附件地址!\"}"); return; } try { HttpWebRequest _request = (HttpWebRequest)WebRequest.Create(filePath); HttpWebResponse _response = (HttpWebResponse)_request.GetResponse(); int fileSize = (int)_response.ContentLength; string fileName = filePath.Substring(filePath.LastIndexOf("/") + 1); string fileExt = filePath.Substring(filePath.LastIndexOf(".") + 1).ToUpper(); context.Response.Write("{\"status\": 1, \"msg\": \"获取远程文件成功!\", \"name\": \"" + fileName + "\", \"path\": \"" + filePath + "\", \"size\": " + fileSize + ", \"ext\": \"" + fileExt + "\"}"); } catch { context.Response.Write("{\"status\": 0, \"msg\": \"远程文件不存在!\"}"); return; } }
private void navigation_validate(HttpContext context) { string navname = OSRequest.GetString("param"); string old_name = OSRequest.GetString("old_name"); if (string.IsNullOrEmpty(navname)) { context.Response.Write("{ \"info\":\"该导航菜单ID不可为空!\", \"status\":\"n\" }"); return; } if (navname.ToLower() == old_name.ToLower()) { context.Response.Write("{ \"info\":\"该导航菜单ID可使用\", \"status\":\"y\" }"); return; } //检查保留的名称开头 if (navname.ToLower().StartsWith("channel_")) { context.Response.Write("{ \"info\":\"该导航菜单ID系统保留,请更换!\", \"status\":\"n\" }"); return; } BLL.contents.article_category bll = new BLL.contents.article_category(); if (bll.Exists(navname)) { context.Response.Write("{ \"info\":\"该导航菜单ID已被占用,请更换!\", \"status\":\"n\" }"); return; } context.Response.Write("{ \"info\":\"该导航菜单ID可使用\", \"status\":\"y\" }"); return; }
private void validate_username(HttpContext context) { string user_name = OSRequest.GetString("param"); //如果为Null,退出 if (string.IsNullOrEmpty(user_name)) { context.Response.Write("{ \"info\":\"请输入用户名\", \"status\":\"n\" }"); return; } Model.configs.userconfig userConfig = new BLL.configs.userconfig().loadConfig(); //过滤注册用户名字符 string[] strArray = userConfig.regkeywords.Split(','); foreach (string s in strArray) { if (s.ToLower() == user_name.ToLower()) { context.Response.Write("{ \"info\":\"用户名不可用\", \"status\":\"n\" }"); return; } } BLL.users.users bll = new BLL.users.users(); //查询数据库 if (bll.Exists(user_name.Trim())) { context.Response.Write("{ \"info\":\"用户名已重复\", \"status\":\"n\" }"); return; } context.Response.Write("{ \"info\":\"用户名可用\", \"status\":\"y\" }"); return; }
//页面加载事件 protected void Page_Load(object sender, EventArgs e) { string _action = OSRequest.GetQueryString("action"); if (this.category_id == 0) { PageErrorMsg("栏目参数不正确"); } this.category_name = new BLL.contents.article_category().GetChannelName(this.category_id); //取得频道名称 if (!string.IsNullOrEmpty(_action) && _action == OSEnums.ActionEnum.Edit.ToString()) { this.action = OSEnums.ActionEnum.Edit.ToString();//修改类型 if (this.id == 0) { PageErrorMsg("传输参数不正确"); } if (!new BLL.contents.article().Exists(this.id)) { PageErrorMsg("信息不存在或已被删除"); } } if (!Page.IsPostBack) { ChkAdminLevel(category_name, OSEnums.ActionEnum.View.ToString()); //检查权限 ShowSysField(this.category_id); //显示相应的默认控件 if (action == OSEnums.ActionEnum.Edit.ToString()) //修改 { ShowInfo(this.id); } } }
private void UpLoadFile(HttpContext context) { string _delfile = OSRequest.GetString("DelFilePath"); HttpPostedFile _upfile = context.Request.Files["Filedata"]; bool _iswater = false; //默认不打水印 bool _isthumbnail = false; //默认不生成缩略图 if (OSRequest.GetQueryString("IsWater") == "1") { _iswater = true; } if (OSRequest.GetQueryString("IsThumbnail") == "1") { _isthumbnail = true; } if (_upfile == null) { context.Response.Write("{\"status\": 0, \"msg\": \"请选择要上传文件!\"}"); return; } UpLoad upFiles = new UpLoad(); string msg = upFiles.fileSaveAs(_upfile, _isthumbnail, _iswater); //删除已存在的旧文件 if (!string.IsNullOrEmpty(_delfile)) { Utils.DeleteUpFile(_delfile); } //返回成功信息 context.Response.Write(msg); context.Response.End(); }
protected void Page_Load(object sender, EventArgs e) { string _action = OSRequest.GetQueryString("action"); if (!string.IsNullOrEmpty(_action) && _action == OSEnums.ActionEnum.Edit.ToString()) { this.action = OSEnums.ActionEnum.Edit.ToString();//修改类型 if (this.id == 0) { PageErrorMsg("传输参数不正确"); } if (!new BLL.managers.manager().Exists(this.id)) { PageErrorMsg("记录不存在或已被删除"); } } if (!Page.IsPostBack) { ChkAdminLevel("manager", OSEnums.ActionEnum.View.ToString()); //检查权限 Model.managers.manager model = GetAdminInfo(); //取得管理员信息 RoleBind(ddlRoleId, model.role_type); if (action == OSEnums.ActionEnum.Edit.ToString()) //修改 { ShowInfo(this.id); } } }
protected void Page_Load(object sender, EventArgs e) { string _action = OSRequest.GetQueryString("action"); if (!string.IsNullOrEmpty(_action) && _action == OSEnums.ActionEnum.Edit.ToString()) { this.action = OSEnums.ActionEnum.Edit.ToString();//修改类型 this.id = OSRequest.GetQueryInt("id"); if (this.id == 0) { JscriptMsg("传输参数不正确!", "back", "Error"); return; } if (!new BLL.contents.article_attribute_field().Exists(this.id)) { JscriptMsg("记录不存在或已被删除!", "back", "Error"); return; } } if (!Page.IsPostBack) { ChkAdminLevel("attribute_field", OSEnums.ActionEnum.View.ToString()); //检查权限 dlIsPassWord.Visible = dlIsHtml.Visible = dlEditorType.Visible = dlDataType.Visible = dlDataLength.Visible = dlDataPlace.Visible = dlItemOption.Visible = false; //隐藏相应控件 if (action == OSEnums.ActionEnum.Edit.ToString()) //修改 { ShowInfo(this.id); } } }
protected void Page_Load(object sender, EventArgs e) { string _action = OSRequest.GetQueryString("action"); if (!string.IsNullOrEmpty(_action) && _action == OSEnums.ActionEnum.Edit.ToString()) { this.action = OSEnums.ActionEnum.Edit.ToString();//修改类型 this.id = OSRequest.GetQueryInt("id", 0); if (this.id < 1) { PageErrorMsg("传输参数不正确"); } if (!new BLL.plugins.advert().Exists(this.id)) { PageErrorMsg("信息不存在或已被删除"); } } if (!Page.IsPostBack) { ChkAdminLevel("advert", OSEnums.ActionEnum.View.ToString()); //检查权限 if (action == OSEnums.ActionEnum.Edit.ToString()) //修改 { ShowInfo(this.id); } } }
protected void Page_Load(object sender, EventArgs e) { string _action = OSRequest.GetQueryString("action"); if (!string.IsNullOrEmpty(_action) && _action == OSEnums.ActionEnum.Edit.ToString()) { this.action = OSEnums.ActionEnum.Edit.ToString();//修改类型 this.id = OSRequest.GetQueryInt("id"); if (this.id == 0) { PageErrorMsg("传输参数不正确"); } if (!new BLL.plugins.advert_banner().Exists(this.id)) { PageErrorMsg("信息不存在或已被删除"); } } else { this.aid = OSRequest.GetQueryInt("aid"); } if (!Page.IsPostBack) { ChkAdminLevel("advert", OSEnums.ActionEnum.View.ToString()); //检查权限 TreeBind(); //绑定广告位 if (action == OSEnums.ActionEnum.Edit.ToString()) //修改 { ShowInfo(this.id); } else if (this.aid > 0) { ddlAdvertId.SelectedValue = this.aid.ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { string _action = OSRequest.GetQueryString("action"); if (!string.IsNullOrEmpty(_action) && _action == OSEnums.ActionEnum.Edit.ToString()) { this.action = OSEnums.ActionEnum.Edit.ToString();//修改类型 this.urlName = OSRequest.GetQueryString("name"); if (string.IsNullOrEmpty(this.urlName)) { PageErrorMsg("传输参数不正确"); } } if (!Page.IsPostBack) { ChkAdminLevel("site_url_rewrite", OSEnums.ActionEnum.View.ToString()); //检查权限 if (action == OSEnums.ActionEnum.Edit.ToString()) //修改 { ShowInfo(urlName); } else { txtName.Attributes.Add("ajaxurl", "../../ashx/admin_ajax.ashx?action=urlrewrite_name_validate"); } } }
protected void Page_Load(object sender, EventArgs e) { string _action = OSRequest.GetQueryString("action"); if (!string.IsNullOrEmpty(_action) && _action == OSEnums.ActionEnum.Edit.ToString()) { this.action = OSEnums.ActionEnum.Edit.ToString();//修改类型 this.id = OSRequest.GetQueryInt("id"); if (this.id == 0) { PageErrorMsg("传输参数不正确"); } if (!new BLL.configs.mail_template().Exists(this.id)) { PageErrorMsg("记录不存在或已被删除"); } } if (!Page.IsPostBack) { ChkAdminLevel("user_mail_template", OSEnums.ActionEnum.View.ToString()); //检查权限 if (action == OSEnums.ActionEnum.Edit.ToString()) //修改 { ShowInfo(this.id); } } }
protected void Page_Load(object sender, EventArgs e) { string _action = OSRequest.GetQueryString("action"); if (!string.IsNullOrEmpty(_action) && _action == OSEnums.ActionEnum.Edit.ToString()) { this.action = OSEnums.ActionEnum.Edit.ToString(); //修改类型 this.id = OSRequest.GetQueryInt("id"); if (this.id == 0) { JscriptMsg("传输参数不正确!", "back", "Error"); return; } if (!new BLL.users.users().Exists(this.id)) { JscriptMsg("信息不存在或已被删除!", "back", "Error"); return; } } if (!Page.IsPostBack) { ChkAdminLevel("user_list", OSEnums.ActionEnum.View.ToString()); //检查权限 TreeBind("is_lock=0"); //绑定类别 groupId = string.IsNullOrEmpty(ddlGroupId.SelectedValue.ToString()) ? "1" : ddlGroupId.SelectedValue.ToString(); txtUserName.Text = Utils.GetUserNumber(groupId); txtUserName.Enabled = false; if (action == OSEnums.ActionEnum.Edit.ToString()) //修改 { ShowInfo(this.id); txtUserName.Visible = true; } groupId = string.IsNullOrEmpty(ddlGroupId.SelectedValue.ToString()) ? "1" : ddlGroupId.SelectedValue.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { string _action = OSRequest.GetQueryString("action"); this.id = OSRequest.GetQueryInt("id"); if (!string.IsNullOrEmpty(_action) && _action == OSEnums.ActionEnum.Edit.ToString()) { this.action = OSEnums.ActionEnum.Edit.ToString();//修改类型 if (this.id == 0) { JscriptMsg("传输参数不正确!", "back", "Error"); return; } if (!new BLL.managers.manager_role().Exists(this.id)) { JscriptMsg("角色不存在或已被删除!", "back", "Error"); return; } } if (!Page.IsPostBack) { ChkAdminLevel("manager_role", OSEnums.ActionEnum.View.ToString()); //检查权限 RoleTypeBind(); //绑定角色类型 NavBind(); //绑定导航 if (action == OSEnums.ActionEnum.Edit.ToString()) //修改 { ShowInfo(this.id); } } }
private void file_validate(HttpContext context) { string file_name = OSRequest.GetString("param"); string skin = OSRequest.GetString("skin"); string type = OSRequest.GetString("type"); if (string.IsNullOrEmpty(file_name)) { context.Response.Write("{ \"info\":\"文件名不可为空\", \"status\":\"n\" }"); return; } string sl = !string.IsNullOrEmpty(skin) ? "/" + skin : ""; DirectoryInfo FatherDirectory = new DirectoryInfo(Utils.GetMapPath(@"../Template" + sl)); //当前目录 FileInfo[] NewFileInfo = FatherDirectory.GetFiles(); foreach (FileInfo DirFile in NewFileInfo) //获取此级目录下的所有文件 { if (file_name + type == DirFile.Name.ToString()) { context.Response.Write("{ \"info\":\"该文件名已被占用,请更换!\", \"status\":\"n\" }"); return; } } context.Response.Write("{ \"info\":\"该文件名可使用\", \"status\":\"y\" }"); return; }
private void RptBind(string _strWhere, string _orderby) { this.page = OSRequest.GetQueryInt("page", 1); this.ddlProperty.SelectedValue = this.property; this.txtKeywords.Text = this.keywords; //图表或列表显示 BLL.contents.article bll = new BLL.contents.article(); switch (this.prolistview) { case "Txt": this.rptList1.Visible = false; this.rptList2.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList2.DataBind(); break; default: this.rptList2.Visible = false; this.rptList1.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList1.DataBind(); break; } //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("article_list.aspx", "category_id={0}&keywords={1}&property={2}&page={3}", category_id.ToString(), this.keywords, this.property, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void edit_category(HttpContext context) { //取得管理员登录信息 Model.managers.manager adminInfo = new Web.UI.ManagePage().GetAdminInfo(); if (adminInfo == null) { context.Response.Write("{\"status\": 0, \"msg\": \"未登录或已超时,请重新登录!\"}"); return; } int category1 = OSRequest.GetFormInt("Category1"); int category2 = OSRequest.GetFormInt("Category2"); if (category1 == category2) { context.Response.Write("{\"status\": 0, \"msg\": \"移动目录跟目的目录不能相同!\"}"); return; } BLL.contents.article_category bll = new BLL.contents.article_category(); Model.contents.article_category model = bll.GetModel(category2); if (model.class_list.IndexOf("," + category1 + ",") > 0) { context.Response.Write("{\"status\": 0, \"msg\": \"父级本不能向其子级转移!\"}"); return; } if (bll.GetModel(category1).parent_id == category2) { context.Response.Write("{\"status\": 0, \"msg\": \"移动目录已经在目的目录里!\"}"); return; } DataTable dt = bll.GetList(0, "class_list like '%," + category1 + ",%'", "class_layer asc").Tables[0]; if (dt.Rows != null && dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { int id = Convert.ToInt32(dt.Rows[i]["id"]); string class_list = dt.Rows[i]["class_list"].ToString(); int new_channel_id = model.channel_id; string new_class_list = model.class_list + class_list.Substring(class_list.IndexOf("," + category1 + ",")).TrimStart(','); string new_class_layer = new_class_list.Trim(',').Split(',').Length.ToString(); if (i == 0) { bll.UpdateField(id, "channel_id=" + new_channel_id + ", parent_id=" + category2 + ", class_list='" + new_class_list + "',class_layer=" + new_class_layer); } else { bll.UpdateField(id, "channel_id=" + new_channel_id + ", class_list='" + new_class_list + "',class_layer=" + new_class_layer); } } } new BLL.managers.manager_log().Add(adminInfo.id, adminInfo.user_name, OSEnums.ActionEnum.Edit.ToString(), "移动栏目:" + bll.GetModel(category1).title); //记录日志 context.Response.Write("{\"status\": 1, \"msg\": \"栏目转移成功!\"}"); }
private bool DoAdd() { bool result = false; Model.users.users model = new Model.users.users(); BLL.users.users bll = new BLL.users.users(); model.group_id = int.Parse(ddlGroupId.SelectedValue); model.status = int.Parse(rblStatus.SelectedValue); //检测用户名是否重复 if (bll.Exists(txtUserName.Text.Trim())) { return(false); } //model.user_name = Utils.DropHTML(txtUserName.Text.Trim()); model.user_name = Utils.GetUserNumber(model.group_id.ToString()); //检测用户名是否重复 if (bll.Exists(model.user_name.Trim())) { model.user_name = Utils.GetUserNumber(model.group_id.ToString()); } //获得6位的salt加密字符串 model.salt = Utils.GetCheckCode(6); //以随机生成的6位字符串做为密钥加密 model.password = DESEncrypt.Encrypt(txtPassword.Text.Trim(), model.salt); model.email = Utils.DropHTML(txtEmail.Text); model.nick_name = Utils.DropHTML(txtNickName.Text); model.avatar = Utils.DropHTML(txtAvatar.Text); model.sex = rblSex.SelectedValue; DateTime _birthday; if (DateTime.TryParse(txtBirthday.Text.Trim(), out _birthday)) { model.birthday = _birthday; } model.telphone = Utils.DropHTML(txtTelphone.Text.Trim()); model.mobile = Utils.DropHTML(txtMobile.Text.Trim()); model.universities = txtUniversities.Text; model.professional = txtProfessional.Text; model.goodat = txtGoodat.Text; model.workat = txtWorkat.Text; model.industry = txtIndustry.Text; model.qq = Utils.DropHTML(txtQQ.Text); model.address = Utils.DropHTML(txtAddress.Text.Trim()); model.amount = decimal.Parse(txtAmount.Text.Trim()); model.point = int.Parse(txtPoint.Text.Trim()); model.exp = int.Parse(txtExp.Text.Trim()); model.reg_time = DateTime.Now; model.reg_ip = OSRequest.GetIP(); if (bll.Add(model) > 0) { AddAdminLog(OSEnums.ActionEnum.Add.ToString(), "添加用户:" + model.user_name); //记录日志 result = true; } return(result); }
private void create_folder(HttpContext context) { string _name = OSRequest.GetFormString("_name"); string folderName = OSRequest.GetFormString("folderName"); if (string.IsNullOrEmpty(folderName)) { context.Response.Write("{\"status\": 0, \"msg\": \"文件夹名称不可为空!\"}"); return; } if (string.IsNullOrEmpty(_name)) { try { DirectoryInfo di = new DirectoryInfo(Utils.GetMapPath(@"../Template/" + folderName)); if (di.Exists) { context.Response.Write("{\"status\": 0, \"msg\": \"该文件夹已经存在,请更换!\"}"); return; } else { di.Create(); context.Response.Write("{\"status\": 1, \"msg\": \"创建文件夹成功!\"}"); return; } } catch (Exception error) { context.Response.Write("{ \"info\":\"创建文件夹失败!失败原因:" + error.ToString() + "\", \"status\":\"n\" }"); return; } } else { if (_name == folderName) { context.Response.Write("{\"status\": 1, \"msg\": \"更改文件名成功!\"}"); return; } try { DirectoryInfo di = new DirectoryInfo(Utils.GetMapPath(@"../Template/" + _name)); if (di.Exists) { di.MoveTo(Utils.GetMapPath(@"../Template/" + folderName)); context.Response.Write("{\"status\": 1, \"msg\": \"更改文件名成功!\"}"); return; } } catch (Exception error) { context.Response.Write("{ \"info\":\"更改文件名成功失败!原因:" + error.ToString() + "\", \"status\":\"n\" }"); return; } } }
public void ProcessRequest(HttpContext context) { //取得处事类型 string action = OSRequest.GetQueryString("action"); switch (action) { } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = OSRequest.GetQueryString("keywords"); if (!Page.IsPostBack) { ChkAdminLevel("manager_role", OSEnums.ActionEnum.View.ToString()); //检查权限 Model.managers.manager model = GetAdminInfo(); //取得当前管理员信息 RptBind("role_type>=" + model.role_type + CombSqlTxt(this.keywords)); } }
/// <summary> /// 增加管理日志 /// </summary> /// <param name="用户id"></param> /// <param name="用户名"></param> /// <param name="操作类型"></param> /// <param name="备注"></param> /// <returns></returns> public int Add(int user_id, string user_name, string action_type, string remark) { Model.managers.manager_log manager_log_model = new Model.managers.manager_log(); manager_log_model.user_id = user_id; manager_log_model.user_name = user_name; manager_log_model.action_type = action_type; manager_log_model.remark = remark; manager_log_model.user_ip = OSRequest.GetIP(); return(dal.Add(manager_log_model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(int user_id, string user_name, string remark) { Model.users.user_login_log model = new Model.users.user_login_log(); model.user_id = user_id; model.user_name = user_name; model.remark = remark; model.login_ip = OSRequest.GetIP(); model.login_time = DateTime.Now; return(dal.Add(model)); }
protected void Page_Load(object sender, EventArgs e) { this.keywords = OSRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("user_mail_template", OSEnums.ActionEnum.View.ToString()); //检查权限 RptBind("id>0" + CombSqlTxt(keywords), "id asc"); } }
public void ProcessRequest(HttpContext context) { BLL.contents.article_category bll = new BLL.contents.article_category(); Model.contents.article_category model = new Model.contents.article_category(); int id = OSRequest.GetQueryInt("id", -2); int type = OSRequest.GetQueryInt("type", -2); //0上 ;1下 model = bll.GetModel(id); DataTable dt_sx = bll.GetList(0, "parent_id=" + model.parent_id, "sort_id asc,id desc").Tables[0]; if (dt_sx.Rows != null && dt_sx.Rows.Count > 0) { for (int i = 0; i < dt_sx.Rows.Count; i++) { if (Convert.ToInt32(dt_sx.Rows[i]["ID"]) == id) { if (type == 1) { if ((i + 1) < dt_sx.Rows.Count) { int newId = Convert.ToInt32(dt_sx.Rows[i + 1]["ID"]); //位置互换 bll.UpdateField(newId, "sort_id=" + model.sort_id + ""); bll.UpdateField(id, "sort_id=" + (bll.GetModel(newId).sort_id + 1) + ""); context.Response.Write("OK"); } else { context.Response.Write("down"); } } else if (type == 0) { if ((i - 1) >= 0) { int newId = Convert.ToInt32(dt_sx.Rows[i - 1]["ID"]); //位置互换 bll.UpdateField(newId, "sort_id=" + model.sort_id + ""); bll.UpdateField(id, "sort_id=" + (bll.GetModel(newId).sort_id - 1) + ""); context.Response.Write("OK"); } else { context.Response.Write("up"); } } else { context.Response.Write("参数错误"); } } } } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = OSRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("user_audit", OSEnums.ActionEnum.View.ToString()); //检查权限 RptBind("status>0 and status<3" + CombSqlTxt(this.keywords), "reg_time desc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = OSRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("feedback", OSEnums.ActionEnum.View.ToString()); //检查权限 RptBind("id>0" + CombSqlTxt(this.keywords), "is_lock desc,add_time desc"); } }
protected void Page_Load(object sender, EventArgs e) { this.channel = OSRequest.GetQueryString("channel"); this.type = OSRequest.GetQueryString("type"); if (!Page.IsPostBack) { ChkAdminLevel("site_url_rewrite", OSEnums.ActionEnum.View.ToString()); //检查权限 RptBind(); } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = OSRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("manager_log", OSEnums.ActionEnum.View.ToString()); //检查权限 model = GetAdminInfo(); //取得当前管理员信息 RptBind("id>0" + CombSqlTxt(keywords), "add_time desc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { this.control_type = OSRequest.GetQueryString("control_type"); this.keywords = OSRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("attribute_field", OSEnums.ActionEnum.View.ToString()); //检查权限 RptBind("id>0" + CombSqlTxt(this.control_type, this.keywords), "is_sys desc,sort_id asc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { ChkAdminLevel("user_list", OSEnums.ActionEnum.View.ToString()); //检查权限 this.group_id = OSRequest.GetQueryInt("group_id"); this.keywords = OSRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { TreeBind("is_lock=0"); //绑定类别 RptBind("id>0" + CombSqlTxt(this.group_id, this.keywords), "reg_time desc,id desc"); } }