Exemplo n.º 1
0
        private void bind()
        {
            #region Bind Default Child Data

            string[] classUnitTypeNames;
            byte[]   classUnitTypeValues;

            msOptions.Items.Clear();
            DojoSeminarOptionManager optionsManager =
                new DojoSeminarOptionManager();
            DojoSeminarOptionCollection optionsCollection =
                optionsManager.GetCollection(string.Empty, string.Empty);
            foreach (DojoSeminarOption options in optionsCollection)
            {
                ListItem i = new ListItem(options.Name +
                                          " (" + options.Fee.ToString("c") + ")", options.ID.ToString());
                msOptions.Items.Add(i);
            }

            GreyFoxContactManager locationManager =
                new GreyFoxContactManager("kitTessen_Locations");
            GreyFoxContactCollection locationCollection =
                locationManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact location in locationCollection)
            {
                ComboBoxItem item = new ComboBoxItem();
                item.Text  = location.BusinessName;
                item.Value = location.ID.ToString();
                comboLocation.Items.Add(item);
            }

            RHItemManager    rhim    = new RHItemManager();
            RHItemCollection rhItems =
                rhim.GetCollection(string.Empty, string.Empty, null);
            foreach (RHItem rhItem in rhItems)
            {
                ComboBoxItem item = new ComboBoxItem();
                item.Text  = rhItem.Name;
                item.Value = rhItem.ID.ToString();
                comboRappahanockItem.Items.Add(item);
            }

            //
            // Bind Class Unit Types
            //
            ddClassUnitType.Items.Clear();
            classUnitTypeNames  = Enum.GetNames(typeof(DojoSeminarClassUnitType));
            classUnitTypeValues = (byte[])Enum.GetValues(typeof(DojoSeminarClassUnitType));
            for (int i = 0; i <= classUnitTypeNames.GetUpperBound(0); i++)
            {
                ddClassUnitType.Items.Add(new ListItem(
                                              classUnitTypeNames[i],
                                              classUnitTypeValues[i].ToString()));
            }

            #endregion
        }
Exemplo n.º 2
0
        private void bindDropDownLists()
        {
            #region Bind Default Child Data

            msInstructor.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    instructorManager    = new DojoMemberManager();
            DojoMemberCollection instructorCollection = instructorManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember instructor in instructorCollection)
            {
                ListItem i = new ListItem(instructor.ToString(), instructor.ID.ToString());
                msInstructor.Items.Add(i);
            }

            msParentSeminar.Items.Add(new ListItem("Null", "Null"));
            DojoSeminarManager    parentSeminarManager    = new DojoSeminarManager();
            DojoSeminarCollection parentSeminarCollection = parentSeminarManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoSeminar parentSeminar in parentSeminarCollection)
            {
                ListItem i = new ListItem(parentSeminar.ToString(), parentSeminar.ID.ToString());
                msParentSeminar.Items.Add(i);
            }

            msParentDefinition.Items.Add(new ListItem("Null", "Null"));
            DojoClassDefinitionManager    parentDefinitionManager    = new DojoClassDefinitionManager();
            DojoClassDefinitionCollection parentDefinitionCollection = parentDefinitionManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoClassDefinition parentDefinition in parentDefinitionCollection)
            {
                ListItem i = new ListItem(parentDefinition.ToString(), parentDefinition.ID.ToString());
                msParentDefinition.Items.Add(i);
            }

            msLocation.Items.Add(new ListItem("Null", "Null"));
            GreyFoxContactManager    locationManager    = new GreyFoxContactManager("kitTessen_Locations");
            GreyFoxContactCollection locationCollection = locationManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact location in locationCollection)
            {
                ListItem i = new ListItem(location.ToString(), location.ID.ToString());
                msLocation.Items.Add(i);
            }

            msAccessControlGroup.Items.Add(new ListItem("Null", "Null"));
            DojoAccessControlGroupManager    accessControlGroupManager    = new DojoAccessControlGroupManager();
            DojoAccessControlGroupCollection accessControlGroupCollection = accessControlGroupManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoAccessControlGroup accessControlGroup in accessControlGroupCollection)
            {
                ListItem i = new ListItem(accessControlGroup.ToString(), accessControlGroup.ID.ToString());
                msAccessControlGroup.Items.Add(i);
            }

            #endregion
        }
Exemplo n.º 3
0
        private void bindDropDownLists()
        {
            #region Bind General Child Data

            #endregion

            #region Bind Contact Child Data

            msContact.Items.Add(new ListItem("Null", "Null"));
            GreyFoxContactManager    contactManager    = new GreyFoxContactManager("kitTessen_SeminarRegistrations_Contacts");
            GreyFoxContactCollection contactCollection = contactManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact contact in contactCollection)
            {
                ListItem i = new ListItem(contact.ToString(), contact.ID.ToString());
                msContact.Items.Add(i);
            }

            #endregion

            #region Bind Rappahanock Child Data

            msCustomer.Items.Add(new ListItem("Null", "Null"));
            RHCustomerManager    customerManager    = new RHCustomerManager();
            RHCustomerCollection customerCollection = customerManager.GetCollection(string.Empty, string.Empty, null);
            foreach (RHCustomer customer in customerCollection)
            {
                ListItem i = new ListItem(customer.ToString(), customer.ID.ToString());
                msCustomer.Items.Add(i);
            }

            msInvoiceLine.Items.Add(new ListItem("Null", "Null"));
            RHInvoiceLineManager    invoiceLineManager    = new RHInvoiceLineManager();
            RHInvoiceLineCollection invoiceLineCollection = invoiceLineManager.GetCollection(string.Empty, string.Empty, null);
            foreach (RHInvoiceLine invoiceLine in invoiceLineCollection)
            {
                ListItem i = new ListItem(invoiceLine.ToString(), invoiceLine.ID.ToString());
                msInvoiceLine.Items.Add(i);
            }

            msSalesOrderLine.Items.Add(new ListItem("Null", "Null"));
            RHSalesOrderLineManager    salesOrderLineManager    = new RHSalesOrderLineManager();
            RHSalesOrderLineCollection salesOrderLineCollection = salesOrderLineManager.GetCollection(string.Empty, string.Empty, null);
            foreach (RHSalesOrderLine salesOrderLine in salesOrderLineCollection)
            {
                ListItem i = new ListItem(salesOrderLine.ToString(), salesOrderLine.ID.ToString());
                msSalesOrderLine.Items.Add(i);
            }

            #endregion
        }
Exemplo n.º 4
0
        private void bindDropDownLists()
        {
            #region Bind Default Child Data

            msLocation.Items.Add(new ListItem("Null", "Null"));
            GreyFoxContactManager    locationManager    = new GreyFoxContactManager("kitTessen_Locations");
            GreyFoxContactCollection locationCollection = locationManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact location in locationCollection)
            {
                ListItem i = new ListItem(location.ToString(), location.ID.ToString());
                msLocation.Items.Add(i);
            }

            msClassLocations.Items.Add(new ListItem("Null", "Null"));
            GreyFoxContactManager    classLocationsManager    = new GreyFoxContactManager("kitTessen_Locations");
            GreyFoxContactCollection classLocationsCollection = classLocationsManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact classLocations in classLocationsCollection)
            {
                ListItem i = new ListItem(classLocations.ToString(), classLocations.ID.ToString());
                msClassLocations.Items.Add(i);
            }

            msAdministrativeContact.Items.Add(new ListItem("Null", "Null"));
            GreyFoxContactManager    administrativeContactManager    = new GreyFoxContactManager("sysGlobal_Contacts");
            GreyFoxContactCollection administrativeContactCollection = administrativeContactManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact administrativeContact in administrativeContactCollection)
            {
                ListItem i = new ListItem(administrativeContact.ToString(), administrativeContact.ID.ToString());
                msAdministrativeContact.Items.Add(i);
            }

            #endregion

            #region Bind Membership Child Data

            msDefaultMemberType.Items.Add(new ListItem("Null", "Null"));
            DojoMemberTypeManager    defaultMemberTypeManager    = new DojoMemberTypeManager();
            DojoMemberTypeCollection defaultMemberTypeCollection = defaultMemberTypeManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMemberType defaultMemberType in defaultMemberTypeCollection)
            {
                ListItem i = new ListItem(defaultMemberType.ToString(), defaultMemberType.ID.ToString());
                msDefaultMemberType.Items.Add(i);
            }

            #endregion
        }
Exemplo n.º 5
0
        private void bind()
        {
            #region Bind Access Control Child Data

            DojoAccessControlGroupManager    accessControlGroupManager    = new DojoAccessControlGroupManager();
            DojoAccessControlGroupCollection accessControlGroupCollection = accessControlGroupManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoAccessControlGroup accessControlGroup in accessControlGroupCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem();
                i.Text  = accessControlGroup.ToString();
                i.Value = accessControlGroup.ID.ToString();
                comboAccessControlGroup.Items.Add(i);
            }

            #endregion

            #region Bind Next Class Child Data

            DojoMemberManager    instructorManager    = new DojoMemberManager();
            DojoMemberCollection instructorCollection =
                instructorManager.GetCollection("IsInstructor=true",
                                                "LastName, FirstName, MiddleName",
                                                DojoMemberFlags.PrivateContact);
            foreach (DojoMember instructor in instructorCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem();
                i.Text  = instructor.PrivateContact.FullName;
                i.Value = instructor.ID.ToString();
                comboInstructor.Items.Add(i);
            }

            GreyFoxContactManager    locationManager    = new GreyFoxContactManager("kitTessen_Locations");
            GreyFoxContactCollection locationCollection = locationManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact location in locationCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem();
                i.Text  = location.BusinessName;
                i.Value = location.ID.ToString();
                comboLocation.Items.Add(i);
            }

            #endregion
        }
Exemplo n.º 6
0
        private void bindDropDownLists()
        {
            #region Bind General Child Data

            msLocation.Items.Add(new ListItem("Null", "Null"));
            GreyFoxContactManager    locationManager    = new GreyFoxContactManager("kitTessen_Locations");
            GreyFoxContactCollection locationCollection = locationManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact location in locationCollection)
            {
                ListItem i = new ListItem(location.ToString(), location.ID.ToString());
                msLocation.Items.Add(i);
            }

            #endregion

            #region Bind Registration Child Data

            msOptions.Items.Add(new ListItem("Null", "Null"));
            DojoSeminarOptionManager    optionsManager    = new DojoSeminarOptionManager();
            DojoSeminarOptionCollection optionsCollection = optionsManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoSeminarOption options in optionsCollection)
            {
                ListItem i = new ListItem(options.ToString(), options.ID.ToString());
                msOptions.Items.Add(i);
            }

            #endregion

            #region Bind Rappahanock Child Data

            msItem.Items.Add(new ListItem("Null", "Null"));
            RHItemManager    itemManager    = new RHItemManager();
            RHItemCollection itemCollection = itemManager.GetCollection(string.Empty, string.Empty, null);
            foreach (RHItem item in itemCollection)
            {
                ListItem i = new ListItem(item.ToString(), item.ID.ToString());
                msItem.Items.Add(i);
            }

            #endregion
        }
Exemplo n.º 7
0
        /// <summary>
        /// Render this control to the output parameter specified.
        /// </summary>
        /// <param name="output"> The HTML writer to write out to </param>
        protected override void RenderContent(HtmlTextWriter output)
        {
            GreyFoxContactManager    m = new GreyFoxContactManager(tableName);
            GreyFoxContactCollection greyFoxContactCollection = m.GetCollection(string.Empty, string.Empty);

            // Render Header Row
            this.headerLockEnabled = true;
            RenderRow(this.HeaderRowCssClass, );

            bool   rowflag = false;
            string rowCssClass;

            //
            // Render Records
            //
            foreach (GreyFoxContact greyFoxContact in greyFoxContactCollection)
            {
                if (rowflag)
                {
                    rowCssClass = defaultRowCssClass;
                }
                else
                {
                    rowCssClass = alternateRowCssClass;
                }
                rowflag = !rowflag;
                output.WriteBeginTag("tr");
                output.WriteAttribute("i", greyFoxContact.ID.ToString());
                output.WriteLine(HtmlTextWriter.TagRightChar);
                output.Indent++;

                output.Indent--;
                output.WriteEndTag("tr");
                output.WriteLine();
            }
        }
Exemplo n.º 8
0
        private void bindDropDownLists()
        {
            #region Bind Default Child Data

            msContact.Items.Add(new ListItem("Null", "Null"));
            GreyFoxContactManager    contactManager    = new GreyFoxContactManager("sysGlobal_Contacts");
            GreyFoxContactCollection contactCollection = contactManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact contact in contactCollection)
            {
                ListItem i = new ListItem(contact.ToString(), contact.ID.ToString());
                msContact.Items.Add(i);
            }

            msRoles.Items.Add(new ListItem("Null", "Null"));
            GreyFoxRoleManager    rolesManager    = new GreyFoxRoleManager();
            GreyFoxRoleCollection rolesCollection = rolesManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxRole roles in rolesCollection)
            {
                ListItem i = new ListItem(roles.ToString(), roles.ID.ToString());
                msRoles.Items.Add(i);
            }

            #endregion
        }
Exemplo n.º 9
0
        private void bindDropDownLists()
        {
            #region Bind General Child Data

            msMemberType.Items.Add(new ListItem("Null", "Null"));
            DojoMemberTypeManager    memberTypeManager    = new DojoMemberTypeManager();
            DojoMemberTypeCollection memberTypeCollection = memberTypeManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMemberType memberType in memberTypeCollection)
            {
                ListItem i = new ListItem(memberType.ToString(), memberType.ID.ToString());
                msMemberType.Items.Add(i);
            }

            msPublicContact.Items.Add(new ListItem("Null", "Null"));
            GreyFoxContactManager    publicContactManager    = new GreyFoxContactManager("kitTessen_Members_PublicContacts");
            GreyFoxContactCollection publicContactCollection = publicContactManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact publicContact in publicContactCollection)
            {
                ListItem i = new ListItem(publicContact.ToString(), publicContact.ID.ToString());
                msPublicContact.Items.Add(i);
            }

            msParentMember.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    parentMemberManager    = new DojoMemberManager();
            DojoMemberCollection parentMemberCollection = parentMemberManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember parentMember in parentMemberCollection)
            {
                ListItem i = new ListItem(parentMember.ToString(), parentMember.ID.ToString());
                msParentMember.Items.Add(i);
            }

            #endregion

            #region Bind Membership Child Data

            msPrimaryOrgMembership.Items.Add(new ListItem("Null", "Null"));
            DojoMembershipManager    primaryOrgMembershipManager    = new DojoMembershipManager();
            DojoMembershipCollection primaryOrgMembershipCollection = primaryOrgMembershipManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMembership primaryOrgMembership in primaryOrgMembershipCollection)
            {
                ListItem i = new ListItem(primaryOrgMembership.ToString(), primaryOrgMembership.ID.ToString());
                msPrimaryOrgMembership.Items.Add(i);
            }

            msParentOrgMembership.Items.Add(new ListItem("Null", "Null"));
            DojoMembershipManager    parentOrgMembershipManager    = new DojoMembershipManager();
            DojoMembershipCollection parentOrgMembershipCollection = parentOrgMembershipManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMembership parentOrgMembership in parentOrgMembershipCollection)
            {
                ListItem i = new ListItem(parentOrgMembership.ToString(), parentOrgMembership.ID.ToString());
                msParentOrgMembership.Items.Add(i);
            }

            #endregion

            #region Bind Attendance Child Data

            msInstructor1.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    instructor1Manager    = new DojoMemberManager();
            DojoMemberCollection instructor1Collection = instructor1Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember instructor1 in instructor1Collection)
            {
                ListItem i = new ListItem(instructor1.ToString(), instructor1.ID.ToString());
                msInstructor1.Items.Add(i);
            }

            msInstructor2.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    instructor2Manager    = new DojoMemberManager();
            DojoMemberCollection instructor2Collection = instructor2Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember instructor2 in instructor2Collection)
            {
                ListItem i = new ListItem(instructor2.ToString(), instructor2.ID.ToString());
                msInstructor2.Items.Add(i);
            }

            msInstructor3.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    instructor3Manager    = new DojoMemberManager();
            DojoMemberCollection instructor3Collection = instructor3Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember instructor3 in instructor3Collection)
            {
                ListItem i = new ListItem(instructor3.ToString(), instructor3.ID.ToString());
                msInstructor3.Items.Add(i);
            }

            #endregion

            #region Bind Activity Child Data

            msPromotionFlags.Items.Add(new ListItem("Null", "Null"));
            DojoPromotionFlagManager    promotionFlagsManager    = new DojoPromotionFlagManager();
            DojoPromotionFlagCollection promotionFlagsCollection = promotionFlagsManager.GetCollection(string.Empty, string.Empty);
            foreach (DojoPromotionFlag promotionFlags in promotionFlagsCollection)
            {
                ListItem i = new ListItem(promotionFlags.ToString(), promotionFlags.ID.ToString());
                msPromotionFlags.Items.Add(i);
            }

            msRank.Items.Add(new ListItem("Null", "Null"));
            DojoRankManager    rankManager    = new DojoRankManager();
            DojoRankCollection rankCollection = rankManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoRank rank in rankCollection)
            {
                ListItem i = new ListItem(rank.ToString(), rank.ID.ToString());
                msRank.Items.Add(i);
            }

            #endregion

            #region Bind Security Child Data

            #endregion

            #region Bind Rappahanock Child Data

            msCustomer.Items.Add(new ListItem("Null", "Null"));
            RHCustomerManager    customerManager    = new RHCustomerManager();
            RHCustomerCollection customerCollection = customerManager.GetCollection(string.Empty, string.Empty, null);
            foreach (RHCustomer customer in customerCollection)
            {
                ListItem i = new ListItem(customer.ToString(), customer.ID.ToString());
                msCustomer.Items.Add(i);
            }

            #endregion
        }
Exemplo n.º 10
0
        private void bind()
        {
            #region Bind Default Child Data

            DojoMemberManager                instructorManager    = new DojoMemberManager();
            DojoMemberCollection             instructorCollection = instructorManager.GetCollection(string.Empty, string.Empty, null);
            ComponentArt.Web.UI.ComboBoxItem InstructorNullItem   = new ComponentArt.Web.UI.ComboBoxItem();
            InstructorNullItem.Text  = "Null";
            InstructorNullItem.Value = "Null";
            comboInstructor.Items.Add(InstructorNullItem);
            foreach (DojoMember instructor in instructorCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem();
                i.Text  = instructor.ToString();
                i.Value = instructor.ID.ToString();
                comboInstructor.Items.Add(i);
            }

            DojoSeminarManager               parentSeminarManager    = new DojoSeminarManager();
            DojoSeminarCollection            parentSeminarCollection = parentSeminarManager.GetCollection(string.Empty, string.Empty, null);
            ComponentArt.Web.UI.ComboBoxItem ParentSeminarNullItem   = new ComponentArt.Web.UI.ComboBoxItem();
            ParentSeminarNullItem.Text  = "Null";
            ParentSeminarNullItem.Value = "Null";
            comboParentSeminar.Items.Add(ParentSeminarNullItem);
            foreach (DojoSeminar parentSeminar in parentSeminarCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem();
                i.Text  = parentSeminar.ToString();
                i.Value = parentSeminar.ID.ToString();
                comboParentSeminar.Items.Add(i);
            }

            DojoClassDefinitionManager       parentDefinitionManager    = new DojoClassDefinitionManager();
            DojoClassDefinitionCollection    parentDefinitionCollection = parentDefinitionManager.GetCollection(string.Empty, string.Empty, null);
            ComponentArt.Web.UI.ComboBoxItem ParentDefinitionNullItem   = new ComponentArt.Web.UI.ComboBoxItem();
            ParentDefinitionNullItem.Text  = "Null";
            ParentDefinitionNullItem.Value = "Null";
            comboParentDefinition.Items.Add(ParentDefinitionNullItem);
            foreach (DojoClassDefinition parentDefinition in parentDefinitionCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem();
                i.Text  = parentDefinition.ToString();
                i.Value = parentDefinition.ID.ToString();
                comboParentDefinition.Items.Add(i);
            }

            GreyFoxContactManager            locationManager    = new GreyFoxContactManager("kitTessen_Locations");
            GreyFoxContactCollection         locationCollection = locationManager.GetCollection(string.Empty, string.Empty);
            ComponentArt.Web.UI.ComboBoxItem LocationNullItem   = new ComponentArt.Web.UI.ComboBoxItem();
            LocationNullItem.Text  = "Null";
            LocationNullItem.Value = "Null";
            comboLocation.Items.Add(LocationNullItem);
            foreach (GreyFoxContact location in locationCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem();
                i.Text  = location.ToString();
                i.Value = location.ID.ToString();
                comboLocation.Items.Add(i);
            }

            DojoAccessControlGroupManager    accessControlGroupManager    = new DojoAccessControlGroupManager();
            DojoAccessControlGroupCollection accessControlGroupCollection = accessControlGroupManager.GetCollection(string.Empty, string.Empty, null);
            ComponentArt.Web.UI.ComboBoxItem AccessControlGroupNullItem   = new ComponentArt.Web.UI.ComboBoxItem();
            AccessControlGroupNullItem.Text  = "Null";
            AccessControlGroupNullItem.Value = "Null";
            comboAccessControlGroup.Items.Add(AccessControlGroupNullItem);
            foreach (DojoAccessControlGroup accessControlGroup in accessControlGroupCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem();
                i.Text  = accessControlGroup.ToString();
                i.Value = accessControlGroup.ID.ToString();
                comboAccessControlGroup.Items.Add(i);
            }

            #endregion
        }
Exemplo n.º 11
0
        private void bind()
        {
            GreyFoxContactManager    locationManager    = new GreyFoxContactManager("kitTessen_Locations");
            GreyFoxContactCollection locationCollection = locationManager.GetCollection(string.Empty, string.Empty);

            foreach (GreyFoxContact itemObject in locationCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.BusinessName;
                item.Value = itemObject.ID.ToString();
                comboLocation.Items.Add(item);
            }


            DojoMemberTypeManager    dojoMemberTypeManager    = new DojoMemberTypeManager();
            DojoMemberTypeCollection dojoMemberTypeCollection = dojoMemberTypeManager.GetCollection(string.Empty, string.Empty);

            foreach (DojoMemberType itemObject in dojoMemberTypeCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.Name;
                item.Value = itemObject.ID.ToString();
                comboListMemberType1.Items.Add(item);
            }


            foreach (DojoMemberType itemObject in dojoMemberTypeCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.Name;
                item.Value = itemObject.ID.ToString();
                comboListMemberType2.Items.Add(item);
            }


            foreach (DojoMemberType itemObject in dojoMemberTypeCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.Name;
                item.Value = itemObject.ID.ToString();
                comboListMemberType3.Items.Add(item);
            }


            DojoMemberManager    dojoMemberManager    = new DojoMemberManager();
            DojoMemberCollection dojoMemberCollection = dojoMemberManager.GetCollection(
                "UserAccountID IS NOT NULL", string.Empty);

            ddPanelChief.Items.Add(new ListItem("             ", "null"));
            foreach (DojoMember itemObject in dojoMemberCollection)
            {
                ddPanelChief.Items.Add(new ListItem(itemObject.ToString(), itemObject.ID.ToString()));
            }

            foreach (DojoMember itemObject in dojoMemberCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.UserAccount.UserName;
                item.Value = itemObject.ID.ToString();
                comboPanelMembers.Items.Add(item);
            }


            DojoTestListStatusManager    dojoTestListStatusManager    = new DojoTestListStatusManager();
            DojoTestListStatusCollection dojoTestListStatusCollection = dojoTestListStatusManager.GetCollection(string.Empty, string.Empty);

            foreach (DojoTestListStatus itemObject in dojoTestListStatusCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.ToString();
                item.Value = itemObject.ID.ToString();
                comboStatus.Items.Add(item);
            }


            DojoTestListManager    dojoTestListManager    = new DojoTestListManager();
            DojoTestListCollection dojoTestListCollection = dojoTestListManager.GetCollection(string.Empty, string.Empty);

            ddActiveTestList.Items.Add(new ListItem("             ", "null"));
            foreach (DojoTestList itemObject in dojoTestListCollection)
            {
                ddActiveTestList.Items.Add(new ListItem(itemObject.ToString(), itemObject.ID.ToString()));
            }


            RHItemManager    rHItemManager    = new RHItemManager();
            RHItemCollection rHItemCollection = rHItemManager.GetCollection(string.Empty, string.Empty);

            foreach (RHItem itemObject in rHItemCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.ToString();
                item.Value = itemObject.ID.ToString();
                comboItem.Items.Add(item);
            }
        }
Exemplo n.º 12
0
        private void bindDropDownLists()
        {
            #region Bind Default Child Data

            msLocation.Items.Add(new ListItem("Null", "Null"));
            GreyFoxContactManager    locationManager    = new GreyFoxContactManager("kitTessen_Locations");
            GreyFoxContactCollection locationCollection = locationManager.GetCollection(string.Empty, string.Empty);
            foreach (GreyFoxContact location in locationCollection)
            {
                ListItem i = new ListItem(location.ToString(), location.ID.ToString());
                msLocation.Items.Add(i);
            }

            #endregion

            #region Bind List Generator Child Data

            msListMemberType1.Items.Add(new ListItem("Null", "Null"));
            DojoMemberTypeManager    listMemberType1Manager    = new DojoMemberTypeManager();
            DojoMemberTypeCollection listMemberType1Collection = listMemberType1Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMemberType listMemberType1 in listMemberType1Collection)
            {
                ListItem i = new ListItem(listMemberType1.ToString(), listMemberType1.ID.ToString());
                msListMemberType1.Items.Add(i);
            }

            msListMemberType2.Items.Add(new ListItem("Null", "Null"));
            DojoMemberTypeManager    listMemberType2Manager    = new DojoMemberTypeManager();
            DojoMemberTypeCollection listMemberType2Collection = listMemberType2Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMemberType listMemberType2 in listMemberType2Collection)
            {
                ListItem i = new ListItem(listMemberType2.ToString(), listMemberType2.ID.ToString());
                msListMemberType2.Items.Add(i);
            }

            msListMemberType3.Items.Add(new ListItem("Null", "Null"));
            DojoMemberTypeManager    listMemberType3Manager    = new DojoMemberTypeManager();
            DojoMemberTypeCollection listMemberType3Collection = listMemberType3Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMemberType listMemberType3 in listMemberType3Collection)
            {
                ListItem i = new ListItem(listMemberType3.ToString(), listMemberType3.ID.ToString());
                msListMemberType3.Items.Add(i);
            }

            #endregion

            #region Bind Administration Child Data

            msPanelChief.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    panelChiefManager    = new DojoMemberManager();
            DojoMemberCollection panelChiefCollection = panelChiefManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember panelChief in panelChiefCollection)
            {
                ListItem i = new ListItem(panelChief.ToString(), panelChief.ID.ToString());
                msPanelChief.Items.Add(i);
            }

            msPanelMember1.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    panelMember1Manager    = new DojoMemberManager();
            DojoMemberCollection panelMember1Collection = panelMember1Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember panelMember1 in panelMember1Collection)
            {
                ListItem i = new ListItem(panelMember1.ToString(), panelMember1.ID.ToString());
                msPanelMember1.Items.Add(i);
            }

            msPanelMember2.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    panelMember2Manager    = new DojoMemberManager();
            DojoMemberCollection panelMember2Collection = panelMember2Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember panelMember2 in panelMember2Collection)
            {
                ListItem i = new ListItem(panelMember2.ToString(), panelMember2.ID.ToString());
                msPanelMember2.Items.Add(i);
            }

            msPanelMember3.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    panelMember3Manager    = new DojoMemberManager();
            DojoMemberCollection panelMember3Collection = panelMember3Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember panelMember3 in panelMember3Collection)
            {
                ListItem i = new ListItem(panelMember3.ToString(), panelMember3.ID.ToString());
                msPanelMember3.Items.Add(i);
            }

            msPanelMember4.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    panelMember4Manager    = new DojoMemberManager();
            DojoMemberCollection panelMember4Collection = panelMember4Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember panelMember4 in panelMember4Collection)
            {
                ListItem i = new ListItem(panelMember4.ToString(), panelMember4.ID.ToString());
                msPanelMember4.Items.Add(i);
            }

            msPanelMember5.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    panelMember5Manager    = new DojoMemberManager();
            DojoMemberCollection panelMember5Collection = panelMember5Manager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember panelMember5 in panelMember5Collection)
            {
                ListItem i = new ListItem(panelMember5.ToString(), panelMember5.ID.ToString());
                msPanelMember5.Items.Add(i);
            }

            #endregion

            #region Bind System Child Data

            msStatus.Items.Add(new ListItem("Null", "Null"));
            DojoTestListStatusManager    statusManager    = new DojoTestListStatusManager();
            DojoTestListStatusCollection statusCollection = statusManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoTestListStatus status in statusCollection)
            {
                ListItem i = new ListItem(status.ToString(), status.ID.ToString());
                msStatus.Items.Add(i);
            }

            msActiveTestList.Items.Add(new ListItem("Null", "Null"));
            DojoTestListManager    activeTestListManager    = new DojoTestListManager();
            DojoTestListCollection activeTestListCollection = activeTestListManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoTestList activeTestList in activeTestListCollection)
            {
                ListItem i = new ListItem(activeTestList.ToString(), activeTestList.ID.ToString());
                msActiveTestList.Items.Add(i);
            }

            #endregion

            #region Bind Rappahanock Child Data

            msItem.Items.Add(new ListItem("Null", "Null"));
            RHItemManager    itemManager    = new RHItemManager();
            RHItemCollection itemCollection = itemManager.GetCollection(string.Empty, string.Empty, null);
            foreach (RHItem item in itemCollection)
            {
                ListItem i = new ListItem(item.ToString(), item.ID.ToString());
                msItem.Items.Add(i);
            }

            #endregion
        }
Exemplo n.º 13
0
        public void GetContactsSortName()
        {
            GreyFoxContactManager    cm;
            GreyFoxContactCollection contacts;
            DateTime time;

            cm = new GreyFoxContactManager("TestContacts");

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, FirstName, MiddleName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName, Suffix");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName");
            TestContext.WriteLine((DateTime.Now - time).ToString());

            time     = DateTime.Now;
            contacts = cm.GetCollection(100, string.Empty, "LastName, MiddleName, FirstName");
            TestContext.WriteLine((DateTime.Now - time).ToString());
        }
Exemplo n.º 14
0
 public void GetContacts()
 {
     GreyFoxContactManager    cm       = new GreyFoxContactManager("TestContacts");
     GreyFoxContactCollection contacts = cm.GetCollection(100, string.Empty, string.Empty);
 }