using System; using System.Collections; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Text; using DSWeb.Models; using DSWeb.EntityDA; namespace DSWeb.Users { public partial class UserList : System.Web.UI.Page { public string strUserID;//登录用户GID public string strCompanyID;//公司GID public string strShowName;//用户显示名 public string strDeptName;//部门名称 protected void Page_Load(object sender, EventArgs e) { if (Session["USERID"] != null) { strUserID = Session["USERID"].ToString(); this.hdUserID.Value = strUserID; } else { Server.Transfer("~/Error/FriendError.aspx"); return; //strUserID = ""; //hdUserID.Value = ""; } if (Session["SHOWNAME"] != null) { strShowName = Session["SHOWNAME"].ToString(); } if (Session["COMPANYID"] != null) { strCompanyID = Session["COMPANYID"].ToString(); } if (Session["DEPTNAME"] != null) { strDeptName = Session["DEPTNAME"].ToString(); } // if (!IsPostBack) { } } protected void btDel_Click(object sender, EventArgs e) { if (this.hid_id.Value.Trim() != "") { UserDA UserDA = new UserDA(); string alt = UserDA.GetUserDel(this.hid_id.Value.Trim(), strUserID.Trim()); if (alt == "") { //Response.Write(""); return; } else { Response.Write(""); return; } } } } }