VideoHome.Web/admin/Course/CourseList.aspx.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using myfilm.Web.Admin;
using System.Data;
using myfilm.Common;
using myfilm.Vod;
using Maticsoft.DAL;
using System.IO;
using myfilm.Data;
using myfilm.Config;
using Maticsoft.DBUtility;

namespace myfilm.Web.admin.Course
{
    public partial class CourseList : AdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }

        }
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            BindData();
            JsExe(upList, "dd", "document.getElementById('" + btnSearch.MyClientID + "').disabled = false;");

        }
        protected void drpFilmClass_SelectedIndexChanged(object sender, EventArgs e)
        {
            BindData();
        }


        protected void BindData()
        {
            #region 数据控件绑定

            T_CourseInfoDAL dal = new T_CourseInfoDAL();
            int recordCount = 0;
            string where = "Where  1=1 and type=0";

            int classID = Utils.StrToInt(drpFilmClass.Text, 0);
            int topClassID = Utils.StrToInt(drpTopFilmClass.Text, 0);

            int dType = Utils.StrToInt(DropDownSelect.Text, 0);
            if (classID != 0)
            {
                where += " and KMClassId =" + classID;
            }
            else if (topClassID != 0)
            {
                where += " and KMClassId in( Select ID From " + BaseConfigs.GetTablePrefix + "CourseClass where parentID=" + topClassID + ")";
            }
后面还有 76 行代码,购买后查看完整代码

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

AI 解读 AI

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

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