Example #1
0
        /// <summary>
        /// Método que retorna os projetos
        /// </summary>
        /// <returns>Lista com os projetos</returns>
        public static List <MD_Projeto> GetProjetos()
        {
            Util.CL_Files.WriteOnTheLog("MD_Projeto.GetProjetos()", Util.Global.TipoLog.DETALHADO);

            List <MD_Projeto> projeto  = new List <MD_Projeto>();
            string            sentenca = new DAO.MD_Projeto().table.CreateCommandSQLTable();

            DbDataReader reader = DataBase.Connection.Select(sentenca);

            while (reader.Read())
            {
                projeto.Add(new MD_Projeto(int.Parse(reader["CODIGO"].ToString())));
            }
            reader.Close();

            return(projeto);
        }
Example #2
0
        /// <summary>
        /// Construtor secundário da classe
        /// </summary>
        /// <param name="codigo"></param>
        /// <param name="projeto"></param>
        /// <param name="tabelaOrigem"></param>
        /// <param name="tabelaDestino"></param>
        /// <param name="campoOrigem"></param>
        /// <param name="campoDestino"></param>
        public MD_Relacao(int codigo, DAO.MD_Projeto projeto, DAO.MD_Tabela tabelaOrigem, DAO.MD_Tabela tabelaDestino, DAO.MD_Campos campoOrigem, DAO.MD_Campos campoDestino)
        {
            Util.CL_Files.WriteOnTheLog("MD_Relacao()", Util.Global.TipoLog.DETALHADO);

            this.DAO = new DAO.MD_Relacao(codigo, projeto, tabelaOrigem, tabelaDestino, campoOrigem, campoDestino);
        }
Example #3
0
        /// <summary>
        /// Construtor principal da classe
        /// </summary>
        /// <param name="codigo">Código da projeto</param>
        public MD_Projeto(int codigo)
        {
            Util.CL_Files.WriteOnTheLog("MD_Projeto()", Util.Global.TipoLog.DETALHADO);

            this.DAO = new DAO.MD_Projeto(codigo);
        }