示例#1
0
        public SqlDataAdapter ListarPerfiles()
        {
            CargaParametroMat();
            RegSegPerfiles OpLst = new RegSegPerfiles(db);

            return(OpLst.ListPerfiles());
        }
示例#2
0
        public int ActualizaPerfil()
        {
            CargaParametroMat();
            RegSegPerfiles OpUp = new RegSegPerfiles(MatParam, db);

            return(OpUp.UpdatePerfil());
        }
示例#3
0
        public int AgregarPerfil()
        {
            CargaParametroMat();
            RegSegPerfiles OpRadd = new RegSegPerfiles(MatParam, db);

            return(OpRadd.AddRegPerfil());
        }
示例#4
0
        public int EliminaPerfil()
        {
            //CargaParametroMat();
            MatParam       = new object[1, 2];
            MatParam[0, 0] = "CodPerfil"; MatParam[0, 1] = CodPerfil;
            RegSegPerfiles OpDel = new RegSegPerfiles(MatParam, db);

            return(OpDel.DeletePerfil());
        }
示例#5
0
        public DataTable CboPerfiles()
        {
            CargaParametroMat();
            RegSegPerfiles OpLst = new RegSegPerfiles(db);
            DataSet        Cbo   = new DataSet();

            OpLst.ComboSPerfiles().Fill(Cbo);
            return(Cbo.Tables[0]);
        }
示例#6
0
        public SqlDataAdapter BuscaPerfil(string buscar)
        {
            /* MatParam = new object[4, 2];
             * MatParam[0, 0] = "Perfil"; MatParam[0, 1] = buscar;
             * MatParam[1, 0] = "Descripcion"; MatParam[1, 1] = buscar;
             * MatParam[2, 0] = "Ubicacion"; MatParam[2, 1] = buscar;
             * MatParam[3, 0] = "Encargado"; MatParam[3, 1] = buscar;
             * RegSegPerfiles OpBsq = new RegSegPerfiles(MatParam);/
             */
            RegSegPerfiles OpBsq = new RegSegPerfiles(db);

            return(OpBsq.BuscaPerfil(buscar));
        }
示例#7
0
        public void EditarPerfil()
        {
            MatParam       = new object[1, 2];
            MatParam[0, 0] = "CodPerfil"; MatParam[0, 1] = CodPerfil;
            RegSegPerfiles OpEdit = new RegSegPerfiles(MatParam, db);

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

            Datos.Fill(Ds);
            object[] ObjA = Ds.Tables[0].Rows[0].ItemArray;

            CodPerfil   = ObjA[0].ToString();
            Descripcion = ObjA[1].ToString();
        }