Пример #1
0
        public int ActualizaDoctores()
        {
            CargaParametroMat();
            RegCatDoctores OpUp = new RegCatDoctores(MatParam, db);

            return(OpUp.UpdateDoctores());
        }
Пример #2
0
        public int AgregarDoctor()
        {
            CargaParametroMat();
            RegCatDoctores OpRadd = new RegCatDoctores(MatParam, db);

            return(OpRadd.AddRegDoctores());
        }
Пример #3
0
        public SqlDataAdapter ListarDoctores()
        {
            CargaParametroMat();
            RegCatDoctores OpLst = new RegCatDoctores(db);

            return(OpLst.ListDoctores());
        }
Пример #4
0
        public int EliminaDoctores()
        {
            //CargaParametroMat();
            MatParam       = new object[1, 2];
            MatParam[0, 0] = "Cedula"; MatParam[0, 1] = Cedula;
            RegCatDoctores OpDel = new RegCatDoctores(MatParam, db);

            return(OpDel.DeleteDoctores());
        }
Пример #5
0
        public DataTable CboDoctores()
        {
            CargaParametroMat();
            RegCatDoctores OpLst = new RegCatDoctores(db);
            DataSet        Cbo   = new DataSet();

            OpLst.ComboDoctores().Fill(Cbo);
            return(Cbo.Tables[0]);
        }
Пример #6
0
        public void EditarDoctores()
        {
            MatParam       = new object[1, 2];
            MatParam[0, 0] = "Cedula"; MatParam[0, 1] = Cedula;
            RegCatDoctores OpEdit = new RegCatDoctores(MatParam, db);

            Datos = OpEdit.RegistroActivo();
            DataSet Ds = new DataSet();

            Datos.Fill(Ds);
            object[] ObjA = Ds.Tables[0].Rows[0].ItemArray;
            //Cedula,Nombre,Calle,Telefono,Localidad,Correo,CP
            Cedula    = ObjA[0].ToString();
            Nombre    = ObjA[1].ToString();
            Calle     = ObjA[2].ToString();
            Telefono  = ObjA[3].ToString();
            Localidad = int.Parse(ObjA[4].ToString());
            Correo    = ObjA[5].ToString();
            CP        = ObjA[6].ToString();
        }
Пример #7
0
        public SqlDataAdapter BuscaDoctores(string buscar)
        {
            RegCatDoctores OpBsq = new RegCatDoctores(db);

            return(OpBsq.BuscaDoctores(buscar));
        }