//Método mostrar que llama al método mostrar Unidad de la capa datos public static DataTable BuscarNombre(string textobuscar) { DVendedor Obj = new DVendedor(); Obj.TextoBuscar = textobuscar; return(Obj.BuscarNombre(Obj)); }
public static string Editar(string cod_vendedor, string cod_vendedorv, string desc_vendedor, string rif, string telefono, string direccion, string nivel, decimal comisionventa, decimal comisioncobro, decimal tventas_item, decimal tventas_monto, DateTime fecha_reg, bool cobra, bool venta, bool activo, string campo1, string campo2, string campo3, string campo4, string campo5, string campo6) { DVendedor Obj = new DVendedor { Dcod_vendedor = cod_vendedor, Dcod_vendedorv = cod_vendedorv, Ddesc_vendedor = desc_vendedor, Drif = rif, Dtelefono = telefono, Ddireccion = direccion, Dnivel = nivel, Dcomisionventa = comisionventa, Dcomisioncobro = comisioncobro, Dtventas_item = tventas_item, Dtventas_monto = tventas_monto, Dfecha_reg = fecha_reg, Dcobra = cobra, Dventa = venta, Dactivo = activo, Dcampo1 = campo1, Dcampo2 = campo2, Dcampo3 = campo3, Dcampo4 = campo4, Dcampo5 = campo5, Dcampo6 = campo6, }; return(Obj.Editar(Obj)); }
//Método eliminar que llama al método eliminar Unidad de la capa datos public static string Eliminar(int idvendedor) { DVendedor Obj = new DVendedor(); Obj.IdVendedor = idvendedor; return(Obj.Eliminar(Obj)); }
//Método Modificar que llama al método Editar Unidad de la capa datos public static string Editar(int idvendedor, string nombre, decimal porc) { DVendedor Obj = new DVendedor(); Obj.IdVendedor = idvendedor; Obj.Nombre = nombre; Obj.Porc = porc; return(Obj.Editar(Obj)); }
public static string Eliminar(string cod_vendedor) { DVendedor Obj = new DVendedor { Dcod_vendedor = cod_vendedor, }; return(Obj.Eliminar(Obj)); }
public static string GenerarCod(string cod_vendedor) { DVendedor Obj = new DVendedor { Dcod_vendedor = cod_vendedor }; return(Obj.GenerarCod(Obj)); }
public static DataSet Siguiente(string cod_vendedor) { DVendedor Obj = new DVendedor() { Dcod_vendedor = cod_vendedor }; return(Obj.Siguiente(Obj)); }
public static DataSet Anterior(string cod_vendedor) { DVendedor Obj = new DVendedor() { Dcod_vendedor = cod_vendedor }; return(Obj.Anterior(Obj)); }
public static DataTable Buscar(string buscar, string btipo) { DVendedor Obj = new DVendedor() { Dbuscar = buscar, Dbtipo = btipo, }; return(Obj.Buscar(Obj)); }
public static DataTable RepBuscar(string buscard, string buscarh, string btipo) { DVendedor Obj = new DVendedor() { Dbuscard = buscard, Dbuscarh = buscarh, Dbtipo = btipo, }; return(Obj.Buscar(Obj)); }