Example #1
0
        public static List <DetalleLibroVentas> GetDetalleLibroVentasByIdLibro(int pklibro)
        {
            List <DetalleLibroVentas> listadeDetalleLibroVentas = new List <DetalleLibroVentas>();

            AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter objDataSet = new AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter();
            DetalleLibroVentasDS.DetalleLibroVentasDataTable dtDetalleLibroVentas = objDataSet.GetDetalleLibroVentaByIdLibro(pklibro);
            foreach (DetalleLibroVentasDS.DetalleLibroVentasRow row in dtDetalleLibroVentas)
            {
                DetalleLibroVentas objDetalleLibroVentas = rowToDto(row);
                listadeDetalleLibroVentas.Add(objDetalleLibroVentas);
            }
            return(listadeDetalleLibroVentas);
        }
Example #2
0
        public static DetalleLibroVentas GetDetalleLibroVentasById(int pk)
        {
            AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter objDataSet = new AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter();
            DetalleLibroVentasDS.DetalleLibroVentasDataTable dtDetalleLibroVentas = objDataSet.GetDetalleLibroVentaByID(pk);
            DetalleLibroVentas objDetalleLibroVentas = rowToDto(dtDetalleLibroVentas[0]);

            return(objDetalleLibroVentas);
        }
Example #3
0
 public static void DeleteDetalleLibroVentas(int id)
 {
     AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter objDataSet = new AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter();
     objDataSet.DeleteDetalleLibroVentas(id);
 }
Example #4
0
        public static int InsertDatosDetalleLibroVentas(int nro, DateTime fechaFactura, string txtNroFactura, string txtNroAutorizacion, string txtNitCliente, string txtNombreRazon, decimal decImporteTotal, decimal decImporteImpuestos, decimal decExportacionesExentos, decimal decVentasTasaCero, decimal decSubTotal, decimal decDescuentos, decimal decImporteBaseDF, decimal decDebitoFiscal, string txtCodigoControl, int fkLibro, int idUsuario)
        {
            AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter objDataSet = new AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter();
            int?DetalleLibroVentasId = 0;

            //objDataSet.Insert1(ref empleadoId, nombre, apellido, ci, fechanac, password, direccion, telefono, correo, fechaContrato, estado, tipo);
            objDataSet.InsertDetalleLibroVentas(ref DetalleLibroVentasId, nro, fechaFactura, txtNroFactura, txtNroAutorizacion, txtNitCliente, txtNombreRazon, decImporteTotal, decImporteImpuestos, decExportacionesExentos, decVentasTasaCero, decSubTotal, decDescuentos, decImporteBaseDF, decDebitoFiscal, txtCodigoControl, fkLibro, idUsuario);

            return((int)DetalleLibroVentasId);
        }
Example #5
0
        public static void UpdateDetalle(int pkRegistro, int nro, DateTime fechaFactura, string txtNroFactura, string txtNroAutorizacion, string txtEstado, string txtNitCliente, string txtNombreRazon, decimal decImporteTotal, decimal decImporteImpuestos, decimal decExportacionesExentos, decimal decVentasTasaCero, decimal decSubTotal, decimal decDescuentos, decimal decImporteBaseDF, decimal decDebitoFiscal, string txtCodigoControl, int fkLibro, int idUsuario)
        {
            AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter objDataSet = new AppSales.DAL.DetalleLibroVentasDSTableAdapters.DetalleLibroVentasTableAdapter();

            objDataSet.UpdateDetalleLibroVentas(pkRegistro, nro, fechaFactura, txtNroFactura, txtNroAutorizacion, txtEstado, txtNitCliente, txtNombreRazon, decImporteTotal, decImporteImpuestos, decExportacionesExentos, decVentasTasaCero, decSubTotal, decDescuentos, decImporteBaseDF, decDebitoFiscal, txtCodigoControl, fkLibro, idUsuario);
        }