public string DeletarProj(int indice)
        {
            ProjetosDAO projeto  = new ProjetosDAO();
            string      mensagem = projeto.Deletar(indice);

            return(mensagem);
        }
        public string AdicionarProj(Projetos proj)
        {
            ProjetosDAO projeto  = new ProjetosDAO();
            string      mensagem = projeto.Adicionar(proj);

            return(mensagem);
        }
Ejemplo n.º 3
0
 public AddReg(string id)
 {
     InitializeComponent();
     textId.Text    = id;
     projetosDAO    = new ProjetosDAO();
     regCauDAO      = new RegCauDAO();
     regCreaDAO     = new RegCreaDAO();
     regCauProjDAO  = new RegCauProjetoDAO();
     regCreaProjDAO = new RegCreaProjetoDAO();
 }
Ejemplo n.º 4
0
 public RelObras()
 {
     InitializeComponent();
     obrasDAO = new ObrasDAO();
     projDAO  = new ProjetosDAO();
     fotosDAO = new FotosDAO();
     agendDAO = new AgendamentosDAO();
     path     = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + @"\rel\";
     radioUltimaFoto.Checked = true;
 }
Ejemplo n.º 5
0
 public Backup()
 {
     InitializeComponent();
     agendDAO    = new AgendamentosDAO();
     cidadesDAO  = new CidadesDAO();
     clientesDAO = new ClientesDAO();
     fornDAO     = new FornecedoresDAO();
     fotosDAO    = new FotosDAO();
     logsDAO     = new LogsDAO();
     obrasDAO    = new ObrasDAO();
     ofDAO       = new ObrasFornecedoresDAO();
     otDAO       = new ObrasTrabalhadoresDAO();
     obsDAO      = new ObservacoesDAO();
     palavrasDAO = new PalavrasProibidasDAO();
     projetosDAO = new ProjetosDAO();
     regCauDAO   = new RegCauDAO();
     regCauPDAO  = new RegCauProjetoDAO();
     regCreaDAO  = new RegCreaDAO();
     regCreaPDAO = new RegCreaProjetoDAO();
     respDAO     = new ResponsavelDAO();
     trabDAO     = new TrabalhadoresDAO();
     usuariosDAO = new UsuariosDAO();
     inserts     = new StringBuilder();
 }
Ejemplo n.º 6
0
        public AddAgendamento(int tipo, string id)
        {
            InitializeComponent();
            this.ActiveControl = textAssunto;
            textPara.Text      = id;

            agendDAO = new AgendamentosDAO();

            switch (tipo)
            {
            case 1:
                this.Text  += " - Projeto";
                projetosDAO = new ProjetosDAO();
                break;

            case 2:
                this.Text        += " - Obra";
                label1.Text       = "Código da Obra";
                textPara.Location = new System.Drawing.Point(99, 12);
                textPara.Size     = new System.Drawing.Size(214, 20);
                obrasDAO          = new ObrasDAO();
                break;
            }
        }
        public SqlDataReader RetornarProj(int indice)
        {
            ProjetosDAO projeto = new ProjetosDAO();

            return(projeto.RetornaProjetos());
        }