Ejemplo n.º 1
0
        private DataTable GetPartnerAttributeSystemCategoryTypeListTable(TDBTransaction AReadTransaction, string ATableName)
        {
            PPartnerAttributeCategoryRow template = new PPartnerAttributeCategoryTable().NewRowTyped(false);

            template.SystemCategory = true;

            return(PPartnerAttributeTypeAccess.LoadViaPPartnerAttributeCategoryTemplate(template, null, null, AReadTransaction,
                                                                                        StringHelper.InitStrArr(new String[] { "ORDER BY", PPartnerAttributeTypeTable.GetTableDBName() + "." +
                                                                                                                               PPartnerAttributeTypeTable.GetIndexDBName() + " ASC" }), 0, 0));
        }
        private DataTable GetContactTypeListTable(TDBTransaction AReadTransaction, string ATableName)
        {
            PPartnerAttributeCategoryRow template = new PPartnerAttributeCategoryTable().NewRowTyped(false);

            template.PartnerContactCategory = true;
            template.SystemCategory         = false;

            TSharedDataCache.TMPartner.MarkPartnerContactDetailAttributeTypesConcatStrNeedsRefreshing();
            TSharedDataCache.TMPartner.MarkEmailPartnerAttributesConcatStrNeedsRefreshing();
            TSharedDataCache.TMPartner.MarkPhonePartnerAttributesConcatStrNeedsRefreshing();

            return(PPartnerAttributeTypeAccess.LoadViaPPartnerAttributeCategoryTemplate(template, null, null, AReadTransaction,
                                                                                        StringHelper.InitStrArr(new String[] { "ORDER BY", PPartnerAttributeTypeTable.GetTableDBName() + "." +
                                                                                                                               PPartnerAttributeTypeTable.GetIndexDBName() + " ASC" }), 0, 0));
        }