示例#1
0
        public void InitializeFieldMappings()
        {
            FieldMappings.InitializeFieldMappings(ConnectionString);

            accounts1.AddReadOnlyMappings();

            //Add two blank field mapping controls, each initialized with the default list of manual field mappings
            accounts1.AddNewMapping(FieldMappings.BCMAccountFields.BCMFields.UnMappedFields, FieldMappings.OCMAccountFields.OCMFields.UnMappedFields);
            accounts1.AddNewMapping(FieldMappings.BCMAccountFields.BCMFields.UnMappedFields, FieldMappings.OCMAccountFields.OCMFields.UnMappedFields);

            businessContacts1.AddReadOnlyMappings();
            //Add one field mapping control for custom field
            businessContacts1.AddNewMapping(FieldMappings.BCMBusinessContactFields.BCMFields.UnMappedFields, FieldMappings.OCMBusinessContactFields.OCMFields.UnMappedFields);

            opportunities1.AddReadOnlyMappings();
            //Add one field mapping control for custom field
            opportunities1.AddNewMapping(FieldMappings.BCMOpportunityFields.BCMFields.UnMappedFields, FieldMappings.OCMDealFields.OCMFields.UnMappedFields);

            Invalidate();
        }