Example #1
0
        public static string InsertarTipo(string Nombre, string CoordProyect, string CoordInspec, string CorreoProyect, string CorreoInspec)//No necesita el id
        {
            Tipo Obj = new Tipo();

            Obj.Nombre      = Nombre; //Se repite con cada parametro de metodo insertar
            Obj.CoordProy   = CoordProyect;
            Obj.CoordInspec = CoordInspec;
            Obj.CorreoProy  = CorreoProyect;
            Obj.CorreoInsp  = CorreoInspec;

            return(DTipo.DInsertarTipo(Obj));
        }
        public static string Editar(int ID, string Nombre, string Representante, string Correo, string Telefono)
        {
            Constructora Obj = new Constructora();

            Obj.ID            = ID;
            Obj.Nombre        = Nombre;
            Obj.Representante = Representante;
            Obj.Correo        = Correo;
            Obj.Telefono      = Telefono;

            DConstructora DT = new DTipo();

            return(DT.DEditarTipo(Obj));
        }
Example #3
0
        public static string EditarTipo(int ID, string Nombre, string CoordProy, string CoordInsp, string CorreoProyect, string CorreoInspec)//No necesita el id
        {
            Tipo Obj = new Tipo();

            Obj.ID          = ID;
            Obj.Nombre      = Nombre;
            Obj.CoordProy   = CoordProy;
            Obj.CoordInspec = CoordInsp;
            Obj.CorreoProy  = CorreoProyect;
            Obj.CorreoInsp  = CorreoInspec;

            DTipo DT = new DTipo();

            return(DT.DEditarTipo(Obj));
        }
Example #4
0
        public DataTable ConsultarLosTipos()
        {
            DTipo ObjDtipo = new DTipo(ObjNTipo);

            return(ObjDtipo.ConsultaTipos());
        }
Example #5
0
        public bool InsertarBDTipo()
        {
            DTipo ObjDTipo = new DTipo(ObjNTipo);  //objEstudianteModelo se declara aca

            return(ObjDTipo.InsertaDato());
        }