private void PopulateFilters() { bizOpportunity biz = new bizOpportunity(); // OAMPS Income List <Classification> cls = biz.ListClassifications(); this.ucMessanger1.ProcessMessages(biz.MSGS, true); this.ddlOAMPSIncome.Items.Add(new ListItem("OAMPS Income (All)", "0")); foreach (Classification cl in cls) { this.ddlOAMPSIncome.Items.Add(new ListItem(cl.ClassificationName, cl.ClassificationID.ToString())); } // Business Type var excludedTypes = new List <string> { "Quick quote", "Quick win", "Quick call" }; List <BusinessType> bts = biz.ListBusinessTypes().Where(x => !excludedTypes.Contains(x.BusinessTypeName)).ToList(); this.ucMessanger1.ProcessMessages(biz.MSGS, false); this.ddlBusinessType.Items.Add(new ListItem("Type (All)", "0")); foreach (BusinessType bt in bts) { this.ddlBusinessType.Items.Add(new ListItem(bt.BusinessTypeName, bt.BusinessTypeID.ToString())); } }
private void PopulateBusinessType() { bizOpportunity biz = new bizOpportunity(); List <BusinessType> bts = biz.ListBusinessTypes(); this.ucMessanger1.ProcessMessages(biz.MSGS, false); this.ddlBusinessType.Items.Add(new ListItem("-- Please Select --", "")); foreach (BusinessType bt in bts) { this.ddlBusinessType.Items.Add(new ListItem(bt.BusinessTypeName, bt.BusinessTypeID.ToString())); } }
private void PopulateBusinessType() { var biz = new bizOpportunity(); var bts = biz.ListBusinessTypes(); if (bts == null) { return; } ddlBusinessType.Items.Add(new ListItem("(All)", "0")); foreach (var bt in bts) { ddlBusinessType.Items.Add(new ListItem(bt.BusinessTypeName, bt.BusinessTypeID.ToString())); } }
private void PopulateBusinessType() { bizOpportunity biz = new bizOpportunity(); List <BusinessType> bts = biz.ListBusinessTypes(); this.ucMessanger1.ProcessMessages(biz.MSGS, false); //this.ddlBusinessType.Items.Add(new ListItem("-- Please Select --", "")); // remove quick win and quick qoute bts = bts.Where(x => (x.BusinessTypeName != "Quick win" && x.BusinessTypeName != "Quick quote")).ToList(); foreach (BusinessType bt in bts) { this.ddlBusinessType.Items.Add(new ListItem(bt.BusinessTypeName, bt.BusinessTypeID.ToString())); } //if (this.ddlBusinessType.Items.Count > 0) this.ddlBusinessType.SelectedIndex = 0; }
private void PopulateBusinessType() { bizOpportunity biz = new bizOpportunity(); List <BusinessType> bts = biz.ListBusinessTypes(); this.ucMessanger1.ProcessMessages(biz.MSGS, false); bts = bts.Where(x => (x.BusinessTypeName != "Quick win" && x.BusinessTypeName != "Quick quote") && x.BusinessTypeName != "Quick call").ToList(); //this.ddlBusinessType.Items.Add(new ListItem("-- Please Select --", "")); foreach (BusinessType bt in bts) { this.ddlBusinessType.Items.Add(new ListItem(bt.BusinessTypeName, bt.BusinessTypeID.ToString())); } if (this.ddlBusinessType.Items.Count > 0) { this.ddlBusinessType.SelectedIndex = this.ddlBusinessType.Items.IndexOf(this.ddlBusinessType.Items.FindByText(Enums.enBusinessType.NewBusiness)); } }
private void PopulateFilters() { var biz = new bizOpportunity(); // OAMPS Income var cls = biz.ListClassifications(); ucMessanger1.ProcessMessages(biz.MSGS, true); ddlOAMPSIncome.Items.Add(new ListItem("OAMPS Income (All)", "0")); foreach (var cl in cls) { ddlOAMPSIncome.Items.Add(new ListItem(cl.ClassificationName, cl.ClassificationID.ToString())); } // Business Type var bts = biz.ListBusinessTypes(); ucMessanger1.ProcessMessages(biz.MSGS, false); ddlBusinessType.Items.Add(new ListItem("Type (All)", "0")); foreach (var bt in bts) { ddlBusinessType.Items.Add(new ListItem(bt.BusinessTypeName, bt.BusinessTypeID.ToString())); } }