XueLiView.aspx.cs

(开头部分) 2KB

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

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class XueLiView : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            XueLi xueli = new XueLi();
            DataSet ds_XueLi = xueli.GetDataSet("");
            GV_XueLi.DataSource = ds_XueLi.Tables["T_XueLi"];
            GV_XueLi.DataBind();
            lbl_Count.Text = ds_XueLi.Tables["T_XueLi"].Rows.Count.ToString();
        }
        if (Request.Cookies["Rank_Code"] != null)
        {
            publicFunction pFunction = new publicFunction();
            String strRankCode = Request.Cookies["Rank_Code"].Value;
            String strFunctionCode = "XueLi";
            String strReturn = pFunction.GetPurview(strRankCode, strFunctionCode);
            if (strReturn.Contains("fail"))
                Response.Redirect("PurviewError.aspx");
        }
    }
    protected void GV_XueLi_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
        int Int_SelectIndex = e.NewSelectedIndex;

        Response.Cookies["RowIndex_xueli"].Value = Int_SelectIndex.ToString();

        XueLi xueli = new XueLi();
        DataSet ds_XueLi = xueli.GetDataSet("");
        GV_XueLi.DataSource = ds_XueLi.Tables["T_XueLi"];
        GV_XueLi.DataBind();
    }
    protected void GV_XueLi_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        int Int_RowIndex = e.RowIndex;

        XueLi xueli = new XueLi();

        //删除部门
        xueli.RowIndex_xueli = Int_RowIndex;
        String strReturn = xueli.XueLiDelete();
        if (strReturn.Contains("ok"))
        {
            //获取新的部门信息列表
            DataSet ds_XueLi = new DataSet();
            ds_XueLi = xueli.GetDataSet("");
            GV_XueLi.DataSource = ds_XueLi.Tables["T_XueLi"];
            GV_XueLi.DataBind();
后面还有 25 行代码,解锁后查看完整代码

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

AI 解读

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

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