YKT_EShop/Admin/Admin_ProductAnswer.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YKT_Common;
using System.Data;
using YKT_BLL;
using YKT_Model;
using Wuqi.Webdiyer;

namespace YKT_EShop.Admin
{
    public partial class Admin_ProductAnswer : System.Web.UI.Page
    {
        int askID = 0;
        protected MultiView MultiViewList;
        protected GridView gvList;
        protected AspNetPager Pager;
        protected void Page_Load(object sender, EventArgs e)
        {
            askID = Input.SetInt(Request["askid"]);
            if (!this.IsPostBack)
            {
                Bind_gvList();
            }
        }


        private void Bind_gvList()
        {
            this.MultiViewList.ActiveViewIndex = 0;
            int Count = 0;
            string strWhere = " askid=" + askID;

            DataTable dt = new BLLProductAnswer().GetList(

                Pager.PageSize,
                Pager.CurrentPageIndex,
                strWhere,
                ref Count).Tables[0];
            this.Pager.RecordCount = Count;
            this.gvList.DataSource = dt;

            this.gvList.DataBind();
        }


        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="oUserID"></param>
        /// <returns></returns>
        public ModelUser Get_User(object oUserID)
        {
            int UserID = Input.SetInt(oUserID);
            if (UserID > 0)
            {
                return new BLLUser().GetModel(UserID);
后面还有 66 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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