public SqlDataAdapter ListarMarcas() { CargaParametroMat(); RegCatMarcas OpLst = new RegCatMarcas(db); return(OpLst.ListMarcas()); }
public int ActualizaMarcas() { CargaParametroMat(); RegCatMarcas OpUp = new RegCatMarcas(MatParam, db); return(OpUp.UpdateMarcas()); }
public int AgregarMarcas() { CargaParametroMat(); RegCatMarcas OpRadd = new RegCatMarcas(MatParam, db); return(OpRadd.AddRegMarcas()); }
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()); }
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)); }
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()); }