FormDesign/system/forms/formlist.aspx.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

using BLL;
using Model;
using Common;

namespace FormDesign.system.forms
{
    public partial class formlist : System.Web.UI.Page
    {
        BllTbForm bllform = new BllTbForm();
        TbForm TbForm = new TbForm();

        protected void Page_Load(object sender, EventArgs e)
        {
            SiteHelp.IsLogin();
            AjaxPro.Utility.RegisterTypeForAjax(typeof(formAjax));//注册

            this.CMTool.barTitle = "表单列表";
            this.CMTool.BaseUrl = "../../";
            this.CMTool.searchClick = "JSDoSearch()";

            if (!IsPostBack)
            {
                if (Request["proGuid"] != null && Request["proGuid"].ToString() != "")
                {
                    this.proGuid.Value = Request["proGuid"].ToString();
                    ViewState["basekey"] = " proGuid =" + Request["proGuid"].ToString();
                    ViewState["SearchKey"] = "";
                    Infolist(ViewState["basekey"].ToString());
                }
                else
                {
                    Response.Redirect("../../error/error.aspx");
                }
            }
            buildMenu(Request["proGuid"].ToString());
        }

        /// <summary>
        /// 获取列表信息
        /// </summary>
        /// <param name="sWhere">检索条件sql语句</param>
        public void Infolist(string sWhere)
        {
            int recordcount;
            int pageindex = this.AspNetPager1.CurrentPageIndex - 1;
            DataSet ds = bllform.GetPageByWhere(" guid,proguid,title,createDate,orderNum ", sWhere, "  order  by  orderNum   asc ", pageindex, 10, out recordcount, "info");
            if (ds.Tables[0].Rows.Count <= 0)
            {
                this.CMGrid.DataSource = null;
            }
            else
            {
后面还有 89 行代码,购买后查看完整代码

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

AI 解读

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

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