Esempio n. 1
0
        public List <EnteDao> GetAllEnti()
        {
            List <EnteDao> _enti = new List <EnteDao>();

            //List<EnteBL> _entiBL = new List<EnteBL>();
            try
            {
                IServiceAsdep <EnteDao> _service = new EnteService();
                _enti = _service.GetAll();

                #region comment
                //foreach (EnteBL _ente in _entiBL)
                //{
                //    WcfService.DAL.Ente _e = new DAL.Ente
                //    {
                //        #region _e
                //        IdEnte = _ente.IdEnte,
                //        CodAppl = _ente.CodAppl,
                //        CodiceEnte = _ente.CodiceEnte,
                //        CodiceFiscale = _ente.CodiceFiscale,
                //        CodiceUtente = _ente.CodiceUtente,
                //        DataAggiornamento = _ente.DataAggiornamento,
                //        DataFine = _ente.DataFine,
                //        DataInizio = _ente.DataInizio,
                //        Progressivo = _ente.Progressivo,
                //        RagioneSociale = _ente.RagioneSociale
                //        #endregion
                //    };
                //    _enti.Add(_e);
                //}
                #endregion
            }
            catch (Exception ex) { }
            return(_enti);
        }
Esempio n. 2
0
        public List <string> GetAllEntiInLavorazione()
        {
            List <string> _enti = new List <string>();

            try
            {
                EnteService _service = new EnteService();
                _enti = _service.GetAllEntiInLavorazione();
            }
            catch { }
            return(_enti);
        }
Esempio n. 3
0
        public Asdep.Common.DAO.T_ErroriIODao Esegui(string valore)
        {
            EnteService _eService = new EnteService();
            EnteDao     enteBL    = _eService.SelectByCodiceEnte(valore);

            if (enteBL.CodiceEnte == null)
            {
                ErroriIOService _service = new ErroriIOService();
                Errore = _service.GetById("003");
            }
            return(Errore);
        }