Esempio n. 1
0
 public ICollection <ContactsApplicationMapping> FindByIdContact(long idContact)
 {
     using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao)
     {
         return(dao.GetContactsByIdContact(idContact));
     }
 }
Esempio n. 2
0
 public void SetContattoAsDefault(long idTitolo, long idEntita, long idContatto)
 {
     using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao)
     {
         dao.setDefaultContact(idTitolo, idEntita, idContatto);
     }
 }
Esempio n. 3
0
 public ICollection <ContactsApplicationMapping> FindByBackendCodeAndCodComunicazione(IEnumerable <string> codes, string codCom)
 {
     using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao)
     {
         return(dao.FindByBackendCodeAndCodComunicazione(codes, codCom));
     }
 }
Esempio n. 4
0
        public ICollection <ContactsApplicationMapping> FindByDatiGenerici(ContactsApplicationMapping contact)
        {
            List <ContactsApplicationMapping> listContacts = null;

            using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao)
            {
                listContacts = (List <ContactsApplicationMapping>)dao.GetContactsByCriteria(BuildQueryByData(contact));
            }
            return(listContacts);
        }
Esempio n. 5
0
        public void UpdateContattoAppMappings(RubricaContatti cont)
        {
            IContactsApplicationMappingDao dao1 = getDaoContext().DaoImpl.ContactsApplicationMappingDao;
            long refOrg = default(long);

            if (cont.Entita == null)
            {
                refOrg = cont.RefIdReferral ?? default(long);
            }
            else
            {
                refOrg = cont.Entita.RefOrg ?? cont.Entita.IdReferral.Value;
            }
            dao1.setDefaultContact(cont.T_MappedAppID, refOrg, cont.IdContact.Value);
        }
Esempio n. 6
0
        public ICollection <ContactsApplicationMapping> FindByDatiGenerici(ICollection <ContactsApplicationMapping> contacts)
        {
            List <ContactsApplicationMapping> listContacts = new List <ContactsApplicationMapping>();

            using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao)
            {
                foreach (ContactsApplicationMapping m in contacts)
                {
                    ICollection <ContactsApplicationMapping> cm = dao.GetContactsByCriteria(BuildQueryByData(m));
                    if (cm != null)
                    {
                        listContacts.AddRange(cm);
                    }
                }
            }
            if (listContacts.Count == 0)
            {
                listContacts = null;
            }
            return(listContacts);
        }