CmsWeb/Admin/wxRule/editWenBen.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cms.Common;
using Cms.BLL;


public partial class Admin_wxRule_editWenBen : System.Web.UI.Page
{
    private string action =Enums.ActionEnum.Add.ToString(); //操作类型
    private int id = 0;
    wx_requestRule rBll = new wx_requestRule();
    wx_requestRuleContent rcBll = new wx_requestRuleContent();

    protected void Page_Load(object sender, EventArgs e)
    {
        string _action =DTRequest.GetQueryString("action");
        if (!string.IsNullOrEmpty(_action) && _action == Enums.ActionEnum.Edit.ToString())
        {
            this.action = Enums.ActionEnum.Edit.ToString();//修改类型
            if (!int.TryParse(Request.QueryString["id"] as string, out this.id))
            {
                JscriptMsg("传输参数不正确!", "back", "Error");
                return;
            }
            if (!rBll.Exists(this.id))
            {
                JscriptMsg("记录不存在或已被删除!", "back", "Error");
                return;
            }
        }
        if (!Page.IsPostBack)
        {

            //  ChkAdminLevel("manager_list", MXEnums.ActionEnum.View.ToString()); //检查权限

            if (action == Enums.ActionEnum.Edit.ToString()) //修改
            {
                ShowInfo(this.id);
            }
        }
    }



    #region 赋值操作=================================
    private void ShowInfo(int id)
    {
        DataSet ds = rBll.GetRuleContent("id=" + id);
        if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
        {
            DataRow dr = ds.Tables[0].Rows[0];
            txtreqKeywords.Text = MyCommFun.ObjToStr(dr["reqKeywords"]);
            if (MyCommFun.ObjToStr(dr["isLikeSearch"]) != "")
            {
                if (dr["isLikeSearch"].ToString().ToLower() == "false")
                {
后面还有 151 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。