/// <summary> /// Converts this instance of <see cref="facturacion"/> to an instance of <see cref="facturacionDto"/>. /// </summary> /// <param name="entity"><see cref="facturacion"/> to convert.</param> public static facturacionDto ToDTO(this facturacion entity) { if (entity == null) { return(null); } var dto = new facturacionDto(); dto.v_FacturacionId = entity.v_FacturacionId; dto.d_FechaRegistro = entity.d_FechaRegistro; dto.d_FechaCobro = entity.d_FechaCobro; dto.v_NumeroFactura = entity.v_NumeroFactura; dto.i_EstadoFacturacion = entity.i_EstadoFacturacion; dto.v_EmpresaCliente = entity.v_EmpresaCliente; dto.v_EmpresaSede = entity.v_EmpresaSede; dto.d_Detraccion = entity.d_Detraccion; dto.d_SubTotal = entity.d_SubTotal; dto.d_Igv = entity.d_Igv; dto.d_MontoTotal = entity.d_MontoTotal; dto.d_FechaInicio = entity.d_FechaInicio; dto.d_FechaFin = entity.d_FechaFin; dto.i_IsDeleted = entity.i_IsDeleted; dto.i_InsertUserId = entity.i_InsertUserId; dto.d_InsertDate = entity.d_InsertDate; dto.i_UpdateUserId = entity.i_UpdateUserId; dto.d_UpdateDate = entity.d_UpdateDate; dto.v_Descripcion = entity.v_Descripcion; dto.d_Descuento = entity.d_Descuento; entity.OnDTO(dto); return(dto); }
/// <summary> /// Converts this instance of <see cref="facturacionDto"/> to an instance of <see cref="facturacion"/>. /// </summary> /// <param name="dto"><see cref="facturacionDto"/> to convert.</param> public static facturacion ToEntity(this facturacionDto dto) { if (dto == null) { return(null); } var entity = new facturacion(); entity.v_FacturacionId = dto.v_FacturacionId; entity.d_FechaRegistro = dto.d_FechaRegistro; entity.d_FechaCobro = dto.d_FechaCobro; entity.v_NumeroFactura = dto.v_NumeroFactura; entity.i_EstadoFacturacion = dto.i_EstadoFacturacion; entity.v_EmpresaCliente = dto.v_EmpresaCliente; entity.v_EmpresaSede = dto.v_EmpresaSede; entity.d_Detraccion = dto.d_Detraccion; entity.d_SubTotal = dto.d_SubTotal; entity.d_Igv = dto.d_Igv; entity.d_MontoTotal = dto.d_MontoTotal; entity.d_FechaInicio = dto.d_FechaInicio; entity.d_FechaFin = dto.d_FechaFin; entity.i_IsDeleted = dto.i_IsDeleted; entity.i_InsertUserId = dto.i_InsertUserId; entity.d_InsertDate = dto.d_InsertDate; entity.i_UpdateUserId = dto.i_UpdateUserId; entity.d_UpdateDate = dto.d_UpdateDate; entity.v_Descripcion = dto.v_Descripcion; entity.d_Descuento = dto.d_Descuento; dto.OnEntity(entity); return(entity); }
public facturaciondetalleDto(String v_FacturacionDetalleId, String v_FacturacionId, String v_ServicioId, Nullable <Decimal> d_Monto, Nullable <Int32> i_IsDeleted, Nullable <Int32> i_InsertUserId, Nullable <DateTime> d_InsertDate, Nullable <Int32> i_UpdateUserId, Nullable <DateTime> d_UpdateDate, facturacionDto facturacion) { this.v_FacturacionDetalleId = v_FacturacionDetalleId; this.v_FacturacionId = v_FacturacionId; this.v_ServicioId = v_ServicioId; this.d_Monto = d_Monto; this.i_IsDeleted = i_IsDeleted; this.i_InsertUserId = i_InsertUserId; this.d_InsertDate = d_InsertDate; this.i_UpdateUserId = i_UpdateUserId; this.d_UpdateDate = d_UpdateDate; this.facturacion = facturacion; }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="facturacion"/> converted from <see cref="facturacionDto"/>.</param> static partial void OnEntity(this facturacionDto dto, facturacion entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="facturacionDto"/> converted from <see cref="facturacion"/>.</param> static partial void OnDTO(this facturacion entity, facturacionDto dto);