Backup/Web/Main/SelectUser.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 SelectCondition : System.Web.UI.Page
{    
    protected void Page_Load(object sender, EventArgs e)
    {        
        if (!Page.IsPostBack)
        {
            ZWL.Common.PublicMethod.CheckSession();
            DataBindToGridview();            
        }
    }
    public void DataBindToGridview()
    {
        string ConditionStr = "";
        try
        {
            if (Request.QueryString["Condition"].ToString().Trim().Length <= 0)
            {
                ConditionStr = "";
            }
            else
            {
                ConditionStr = " and UserName in ('" + ZWL.DBUtility.DbHelperSQL.GetSHSL("select top 1 JingBanRenYuanList from ERPWorkFlowJieDian where ID=" + Request.QueryString["Condition"].ToString()).Replace(",", "','") + "')";
            }
        }
        catch
        { }
        //Response.Write(ConditionStr);
        ZWL.DBUtility.DbHelperSQL.BindItemList("select distinct UserName as SelectContent from ERPUser where Department like '%" + this.TextBox2.Text + "%' " + ConditionStr + " and JiaoSe like '%" + this.TextBox3.Text + "%'", this.ListBox1, "SelectContent", "SelectContent");
    }   
    protected void ImageButton4_Click(object sender, ImageClickEventArgs e)
    {
        DataBindToGridview();
    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        this.TextBox4.Text = ZWL.Common.PublicMethod.GetListStr(this.ListBox1, this.ListBox2, "添加", "部分");
    }
    protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
    {
        this.TextBox4.Text = ZWL.Common.PublicMethod.GetListStr(this.ListBox1, this.ListBox2, "添加", "全部");
    }
    protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
    {
        this.TextBox4.Text = ZWL.Common.PublicMethod.GetListStr(this.ListBox1, this.ListBox2, "去除", "部分");
    }
    protected void ImageButton5_Click(object sender, ImageClickEventArgs e)
    {
        this.TextBox4.Text = ZWL.Common.PublicMethod.GetListStr(this.ListBox1, this.ListBox2, "去除", "全部");
    }
后面还有 1 行代码,购买后查看完整代码

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

AI 解读 AI

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

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