Example #1
0
        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 PopulateClassification()
        {
            bizOpportunity        biz = new bizOpportunity();
            List <Classification> cls;

            cls = biz.ListClassifications();
            this.ucMessanger1.ProcessMessages(biz.MSGS, true);

            if (cls == null)
            {
                return;
            }

            this.ddlClassification.Items.Clear();
            this.ddlClassification.Items.Add(new ListItem("-- Please Select --", ""));
            foreach (Classification cl in cls)
            {
                this.ddlClassification.Items.Add(new ListItem(cl.ClassificationName, cl.ClassificationID.ToString()));
            }
        }
Example #3
0
        private void PopulateClassification()
        {
            var bizM = new bizMessage();

            var biz = new bizOpportunity();
            List <Classification> cls;

            cls = biz.ListClassifications();

            if (cls == null)
            {
                return;
            }

            ddlClassification.Items.Clear();
            ddlClassification.Items.Add(new ListItem("(All)", "0"));
            foreach (var cl in cls)
            {
                ddlClassification.Items.Add(new ListItem(cl.ClassificationName, cl.ClassificationID.ToString()));
            }
        }
        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()));
            }
        }