Hidistro.UI.Web/Admin/promotion/UCGameLists.cs

(开头部分) 8KB

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

using System;
using System.Collections.Generic;
using System.Data;
using System.Runtime.CompilerServices;
using System.Web.UI.WebControls;
using ASPNET.WebControls;
using ControlPanel.Promotions;
using Hidistro.Core.Entities;
using Hidistro.Entities.Promotions;
using Hidistro.UI.ControlPanel.Utility;
using Hidistro.UI.Web.Admin.Ascx;

namespace Hidistro.UI.Web.Admin.promotion
{
    public class UCGameLists : BaseUserControl
    {
        protected Button btnDel;
        protected Button btnSeach;
        protected ucDateTimePicker calendarEndDate;
        protected ucDateTimePicker calendarStartDate;
        protected Grid grdGameLists;
        protected PageSize hrefPageSize;
        protected string isFinished = "0";
        private int pageIndex = 1;
        protected Pager pager1;
        private int pageSize = 10;

        private void BindData()
        {
            GameSearch search = new GameSearch
            {
                SortBy = "GameId",
                PageIndex = this.pageIndex,
                PageSize = this.pageSize,
                GameType = (int)this.PGameType.Value,
                BeginTime = this.calendarStartDate.SelectedDate,
                EndTime = this.calendarEndDate.SelectedDate
            };
            string isFinished = this.isFinished;
            if (!string.IsNullOrEmpty(isFinished))
            {
                search.Status = isFinished;
            }
            DbQueryResult gameListByView = GameHelper.GetGameListByView(search);
            DataTable data = (DataTable)gameListByView.Data;
            this.grdGameLists.DataSource = data;
            this.grdGameLists.DataBind();
            this.pager1.TotalRecords = gameListByView.TotalRecords;
        }

        protected void btnDel_Click(object sender, EventArgs e)
        {
            List<int> list = new List<int>();
            foreach (GridViewRow row in this.grdGameLists.Rows)
            {
                if (row.RowIndex >= 0)
                {
                    CheckBox box = row.Cells[0].Controls[0] as CheckBox;
                    if (box.Checked)
                    {
后面还有 174 行代码,购买后查看完整代码

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

AI 解读 AI

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

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