boguCms/App_Admin/product/biglist.aspx.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using AccessDal;
using Model;
using System.IO;



public partial class App_Admin_product_biglist : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            GetPage();
        }
    }
    private void GetPage()
    {
        AspNetPager1.RecordCount = ProBigOpe.GetCount();
        int StartRecord = AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1);
        int MaxRecord = AspNetPager1.PageSize;
        gridIma.DataSource = ProBigOpe.GetListBid(StartRecord,MaxRecord);
        gridIma.DataBind();

        for (int i = 0; i < gridIma.Rows.Count; i++)
        {
            Label lblcount=(Label)gridIma.Rows[i].FindControl("lblcount");
            lblcount.Text = ProMidOpe.GetCount(Convert.ToInt32(gridIma.DataKeys[i].Value)).ToString();
        }
    }
    protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
    {
        AspNetPager1.CurrentPageIndex = e.NewPageIndex;
        GetPage();
    }
    protected void gridIma_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        int id = Convert.ToInt32(gridIma.DataKeys[e.RowIndex].Value);
        if (ProMidOpe.GetCount(id)!=0)
        {
            Page.RegisterStartupScript("script","<script>alert('此大类中有小类,请删除小类后删除此大类')</script>");
        }
        else
        {
            ProBigOpe.Delete(id);
        }
        GetPage();
    }
    protected void lbdelete_Click(object sender, EventArgs e)
    {
        for (int i = 0; i < gridIma.Rows.Count; i++)
        {
            CheckBox chkRemove = (CheckBox)gridIma.Rows[i].FindControl("chkRemove");
            if (chkRemove.Checked)
            {
后面还有 16 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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