using System; using System.Collections; 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 DSWeb.Models; using DSWeb.EntityDA; namespace DSWeb.WorkFlow { public partial class CompanyTree : System.Web.UI.Page { private string strUserID;//登录人GID private string strCompanyID;//分公司GID protected void Page_Load(object sender, EventArgs e) { if (Session["USERID"] != null) { strUserID = Session["USERID"].ToString(); } if (Request.QueryString["compid"] != null) { strCompanyID = Request.QueryString["compid"].ToString().Trim(); } if (strCompanyID != null) { InitWorkFlowInfo(); } } private void InitWorkFlowInfo() { CompanyDA companyDA = new CompanyDA(); CompanyEntity companyEntity = new CompanyEntity(); if (strCompanyID != "") { companyEntity = companyDA.GetCompanyByID(strCompanyID); this.sel_company.Items.Add(new ListItem(companyEntity.NAME, companyEntity.GID)); } } } }