Exemplo n.º 1
0
        /// <summary>
        /// Populate associated organizations based on Contact Id
        /// </summary>
        private void PopulateOrgRptr()
        {
            // Get DataSource for Organization Display List as well as Organization Grid
            ProjectManagementDa projDA       = new ProjectManagementDa();
            DataTable           displayTable = projDA.GetAllOrgsByContactId(contactId);
            // Get a list of unassociated organizations to determine how many blank rows
            // as well as bind CaisisSelects
            DataView view = projDA.GetAllUnassociatedOrgsByContact(contactId).DefaultView;

            OrgGrid2.BlankRows  = view.Count;
            OrgGrid2.DataSource = displayTable;
            OrgGrid2.DataBind();

            // Bind View
            OrgViewList.DataSource = displayTable;
            OrgViewList.DataBind();

            // bind contact's documents
            DataView contactDocs = ContactRegulatoryDetail.GetByFieldsAsDataView <ContactRegulatoryDetail>(new Dictionary <string, object>
            {
                { ContactRegulatoryDetail.ContactId, contactId }
            });

            ContactDocumentsGrid.DataSource = contactDocs;
            ContactDocumentsGrid.DataBind();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Populate associated organizations based on Contact Id
        /// <param name="contactId"></param>
        /// </summary>
        private void PopulateOrgRptr(int contactId)
        {
            // Get DataSource for Organization Display List as well as Organization Grid
            ProjectManagementDa projDA       = new ProjectManagementDa();
            DataTable           displayTable = projDA.GetAllOrgsByContactId(contactId);


            // Bind View
            OrgViewList.DataSource = displayTable;
            OrgViewList.DataBind();

            // bind contact's documents
            //DataView contactDocs = ContactRegulatoryDetail.GetByFieldsAsDataView<ContactRegulatoryDetail>(new Dictionary<string, object>
            //{
            //    {ContactRegulatoryDetail.ContactId,  ContactId}
            //});
            //ContactDocumentsGrid.DataSource = contactDocs;
            //ContactDocumentsGrid.DataBind();
        }