public DataSet BuscarGastos(ClassGastos _gasto, string _tabla) { if (_gasto.fechainigasto == null) { sql = "CALL sp_buscadorgastos(" + _gasto.idgasto + ",NULL,NULL,'" + _gasto.nombreproveedor + "','" + _gasto.nombrepunto + "',0,100);"; } else { sql = "CALL sp_buscadorgastos(" + _gasto.idgasto + ",'" + _gasto.fechainigasto + "','" + _gasto.fechafingasto + "','" + _gasto.nombreproveedor + "','" + _gasto.nombrepunto + "',0,100);"; } return(this.RealizarAccion(sql, _tabla)); }
public DataSet ABMGasto(ClassGastos _gasto, string _tabla) { sql = "CALL sp_abmgasto(" + _gasto.idgasto + ",'" + _gasto.fecharealcarga + "','" + _gasto.fechagasto + "','" + _gasto.tipofactura + "','" + _gasto.numerofactura + "','" + _gasto.idproveedor + "','" + _gasto.idpunto + "','" + _gasto.montopagado + "','" + _gasto.observacion + "','" + _gasto.accion + "','" + _gasto.fechaaccion + "','" + _gasto.idempleadoaccion + "','" + _gasto.idpuntoaccion + "');"; return(this.RealizarAccion(sql, _tabla)); }