Пример #1
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
        }
Пример #2
0
        private void bind()
        {
            DojoMemberManager    dojoMemberManager    = new DojoMemberManager();
            DojoMemberCollection dojoMemberCollection = dojoMemberManager.GetCollection(string.Empty, string.Empty);

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


            DojoOrganizationManager    dojoOrganizationManager    = new DojoOrganizationManager();
            DojoOrganizationCollection dojoOrganizationCollection = dojoOrganizationManager.GetCollection(string.Empty, string.Empty);

            foreach (DojoOrganization itemObject in dojoOrganizationCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.ToString();
                item.Value = itemObject.ID.ToString();
                comboOrganization.Items.Add(item);
            }


            DojoMembershipManager    dojoMembershipManager    = new DojoMembershipManager();
            DojoMembershipCollection dojoMembershipCollection = dojoMembershipManager.GetCollection(string.Empty, string.Empty);

            ddParent.Items.Add(new ListItem("             ", "null"));
            foreach (DojoMembership itemObject in dojoMembershipCollection)
            {
                ddParent.Items.Add(new ListItem(itemObject.ToString(), itemObject.ID.ToString()));
            }


            DojoMemberTypeTemplateManager    dojoMemberTypeTemplateManager    = new DojoMemberTypeTemplateManager();
            DojoMemberTypeTemplateCollection dojoMemberTypeTemplateCollection = dojoMemberTypeTemplateManager.GetCollection(string.Empty, string.Empty);

            foreach (DojoMemberTypeTemplate itemObject in dojoMemberTypeTemplateCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.ToString();
                item.Value = itemObject.ID.ToString();
                comboMemberTypeTemplate.Items.Add(item);
            }


            DojoMembershipTemplateManager    dojoMembershipTemplateManager    = new DojoMembershipTemplateManager();
            DojoMembershipTemplateCollection dojoMembershipTemplateCollection = dojoMembershipTemplateManager.GetCollection(string.Empty, string.Empty);

            foreach (DojoMembershipTemplate itemObject in dojoMembershipTemplateCollection)
            {
                ComponentArt.Web.UI.ComboBoxItem item = new ComponentArt.Web.UI.ComboBoxItem();
                item.Text  = itemObject.ToString();
                item.Value = itemObject.ID.ToString();
                comboMembershipTemplate.Items.Add(item);
            }



            RHInvoiceLineManager    rHInvoiceLineManager    = new RHInvoiceLineManager();
            RHInvoiceLineCollection rHInvoiceLineCollection = rHInvoiceLineManager.GetCollection(string.Empty, string.Empty);

            ddInvoiceLine.Items.Add(new ListItem("             ", "null"));
            foreach (RHInvoiceLine itemObject in rHInvoiceLineCollection)
            {
                ddInvoiceLine.Items.Add(new ListItem(itemObject.ToString(), itemObject.ID.ToString()));
            }
        }
Пример #3
0
        private void bindDropDownLists()
        {
            #region Bind Default Child Data

            msMember.Items.Add(new ListItem("Null", "Null"));
            DojoMemberManager    memberManager    = new DojoMemberManager();
            DojoMemberCollection memberCollection = memberManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMember member in memberCollection)
            {
                ListItem i = new ListItem(member.ToString(), member.ID.ToString());
                msMember.Items.Add(i);
            }

            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);
            }

            msOrganization.Items.Add(new ListItem("Null", "Null"));
            DojoOrganizationManager    organizationManager    = new DojoOrganizationManager();
            DojoOrganizationCollection organizationCollection = organizationManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoOrganization organization in organizationCollection)
            {
                ListItem i = new ListItem(organization.ToString(), organization.ID.ToString());
                msOrganization.Items.Add(i);
            }

            msParentMembership.Items.Add(new ListItem("Null", "Null"));
            DojoMembershipManager    parentMembershipManager    = new DojoMembershipManager();
            DojoMembershipCollection parentMembershipCollection = parentMembershipManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMembership parentMembership in parentMembershipCollection)
            {
                ListItem i = new ListItem(parentMembership.ToString(), parentMembership.ID.ToString());
                msParentMembership.Items.Add(i);
            }

            msSourceTemplate.Items.Add(new ListItem("Null", "Null"));
            DojoMembershipTemplateManager    sourceTemplateManager    = new DojoMembershipTemplateManager();
            DojoMembershipTemplateCollection sourceTemplateCollection = sourceTemplateManager.GetCollection(string.Empty, string.Empty, null);
            foreach (DojoMembershipTemplate sourceTemplate in sourceTemplateCollection)
            {
                ListItem i = new ListItem(sourceTemplate.ToString(), sourceTemplate.ID.ToString());
                msSourceTemplate.Items.Add(i);
            }

            #endregion

            #region Bind Rappahanock Child Data

            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);
            }

            #endregion
        }