Exemple #1
0
        public SqlDataAdapter ListarMarcas()
        {
            CargaParametroMat();
            RegCatMarcas OpLst = new RegCatMarcas(db);

            return(OpLst.ListMarcas());
        }
Exemple #2
0
        public int ActualizaMarcas()
        {
            CargaParametroMat();
            RegCatMarcas OpUp = new RegCatMarcas(MatParam, db);

            return(OpUp.UpdateMarcas());
        }
Exemple #3
0
        public int AgregarMarcas()
        {
            CargaParametroMat();
            RegCatMarcas OpRadd = new RegCatMarcas(MatParam, db);

            return(OpRadd.AddRegMarcas());
        }
Exemple #4
0
        public int EliminaMarcas()
        {
            //CargaParametroMat();
            MatParam       = new object[1, 2];
            MatParam[0, 0] = "CveMarca"; MatParam[0, 1] = CveMarca;
            RegCatMarcas OpDel = new RegCatMarcas(MatParam, db);

            return(OpDel.DeleteMarcas());
        }
Exemple #5
0
        public SqlDataAdapter BuscaMarcas(string buscar)
        {
            /* MatParam = new object[4, 2];
             * MatParam[0, 0] = "CodLinea"; 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;
             * RegCatMarcas OpBsq = new RegCatMarcas(MatParam);/
             */
            RegCatMarcas OpBsq = new RegCatMarcas(db);

            return(OpBsq.BuscaMarcas(buscar));
        }
Exemple #6
0
        public void EditarMarcas()
        {
            MatParam       = new object[1, 2];
            MatParam[0, 0] = "CveMarca"; MatParam[0, 1] = CveMarca;
            RegCatMarcas OpEdit = new RegCatMarcas(MatParam, db);

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

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

            CveMarca    = ObjA[0].ToString();
            Descripcion = ObjA[1].ToString();
            Estatus     = int.Parse(ObjA[2].ToString());
        }