/// <summary> /// 商机类别 /// </summary> private void SetOpportun() { this.ddlOpportunityType.DataSource = opp.GetOpportun(); this.ddlOpportunityType.DataValueField = "OpportunityTypeID"; this.ddlOpportunityType.DataTextField = "OpportunityTypeName"; this.ddlOpportunityType.DataBind(); }
//protected void Page_PreInit(object sender, EventArgs e) //{ // bool isTof = Page.User.IsInRole("GT1002"); // if (isTof) // { // Page.MasterPageFile = "/indexTof.master"; // } // else // { // Page.MasterPageFile = "/MasterPage.master"; // } //} /// <summary> /// 商机类别 /// </summary> private void SetOpportun() { Tz888.BLL.Info.OpportunityInfoBLL opp = new Tz888.BLL.Info.OpportunityInfoBLL(); this.ddlOpportunityType.DataSource = opp.GetOpportun(); this.ddlOpportunityType.DataValueField = "OpportunityTypeID"; this.ddlOpportunityType.DataTextField = "OpportunityTypeName"; this.ddlOpportunityType.DataBind(); }