public static void Invoke_InsertarFactura(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions) { string Serie = @__Message.ReadAnsiString("Serie"); int Folio = @__Message.ReadInt32("Folio"); System.DateTime Fecha = @__Message.ReadDateTime("Fecha"); int Ejercicio = @__Message.ReadInt32("Ejercicio"); int Periodo = @__Message.ReadInt32("Periodo"); int Dia = @__Message.ReadInt32("Dia"); System.DateTime FechaVencimiento = @__Message.ReadDateTime("FechaVencimiento"); double ImpuestoPorcentaje = @__Message.ReadDouble("ImpuestoPorcentaje"); string Observacion = @__Message.ReadAnsiString("Observacion"); int FacturaUsoID = @__Message.ReadInt32("FacturaUsoID"); int FormaPagoID = @__Message.ReadInt32("FormaPagoID"); int MetodoPagoID = @__Message.ReadInt32("MetodoPagoID"); int EstacionID = @__Message.ReadInt32("EstacionID"); int ConfiguracionID = @__Message.ReadInt32("ConfiguracionID"); int MovimientoID = @__Message.ReadInt32("MovimientoID"); int Result; Result = ((IRPDataService)(@__Instance)).InsertarFactura(Serie, Folio, Fecha, Ejercicio, Periodo, Dia, FechaVencimiento, ImpuestoPorcentaje, Observacion, FacturaUsoID, FormaPagoID, MetodoPagoID, EstacionID, ConfiguracionID, MovimientoID); @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "InsertarFacturaResponse"); @__Message.WriteInt32("Result", Result); @__Message.FinalizeMessage(); @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault; }
public static void Invoke_SPGetFolio(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions) { string Datos = @__Message.ReadAnsiString("Datos"); int Result; Result = ((IRPDataService)(@__Instance)).SPGetFolio(Datos); @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "SPGetFolioResponse"); @__Message.WriteInt32("Result", Result); @__Message.FinalizeMessage(); @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault; }
public static void Invoke_UpdatePedidoFactura(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions) { int PedidoID = @__Message.ReadInt32("PedidoID"); int FacturaID = @__Message.ReadInt32("FacturaID"); int Result; Result = ((IRPDataService)(@__Instance)).UpdatePedidoFactura(PedidoID, FacturaID); @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "UpdatePedidoFacturaResponse"); @__Message.WriteInt32("Result", Result); @__Message.FinalizeMessage(); @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault; }
public static void Invoke_GuardaClienteNuevo(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions) { RemObjects.SDK.ObjectDisposer @__ObjectDisposer = new RemObjects.SDK.ObjectDisposer(1); try { TClienteNuevo Datos = ((TClienteNuevo)(@__Message.Read("Datos", typeof(TClienteNuevo), RemObjects.SDK.StreamingFormat.Default))); @__ObjectDisposer.Add(Datos); int Result; Result = ((IRPDataService)(@__Instance)).GuardaClienteNuevo(Datos); @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "GuardaClienteNuevoResponse"); @__Message.WriteInt32("Result", Result); @__Message.FinalizeMessage(); @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault; } finally { @__ObjectDisposer.Dispose(); } }
public static void Invoke_InsertaMuestradeProducto(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions) { RemObjects.SDK.ObjectDisposer @__ObjectDisposer = new RemObjects.SDK.ObjectDisposer(1); try { TMuestraProducto MuestraProducto = ((TMuestraProducto)(@__Message.Read("MuestraProducto", typeof(TMuestraProducto), RemObjects.SDK.StreamingFormat.Default))); @__ObjectDisposer.Add(MuestraProducto); int Result; Result = ((IRPDataService)(@__Instance)).InsertaMuestradeProducto(MuestraProducto); @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "InsertaMuestradeProductoResponse"); @__Message.WriteInt32("Result", Result); @__Message.FinalizeMessage(); @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault; } finally { @__ObjectDisposer.Dispose(); } }
public static void Invoke_GenerarFactura(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions) { RemObjects.SDK.ObjectDisposer @__ObjectDisposer = new RemObjects.SDK.ObjectDisposer(2); try { TPedido Datos = ((TPedido)(@__Message.Read("Datos", typeof(TPedido), RemObjects.SDK.StreamingFormat.Default))); TDetallePedido DatosDetalle = ((TDetallePedido)(@__Message.Read("DatosDetalle", typeof(TDetallePedido), RemObjects.SDK.StreamingFormat.Default))); @__ObjectDisposer.Add(Datos); @__ObjectDisposer.Add(DatosDetalle); int Result; Result = ((IRPDataService)(@__Instance)).GenerarFactura(Datos, DatosDetalle); @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "GenerarFacturaResponse"); @__Message.WriteInt32("Result", Result); @__Message.FinalizeMessage(); @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault; } finally { @__ObjectDisposer.Dispose(); } }
public static void Invoke_InsertarDetalleFactura(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions) { int Cantidad = @__Message.ReadInt32("Cantidad"); double Precio = @__Message.ReadDouble("Precio"); double SubTotal = @__Message.ReadDouble("SubTotal"); double IVA = @__Message.ReadDouble("IVA"); double IEPS = @__Message.ReadDouble("IEPS"); double Total = @__Message.ReadDouble("Total"); double Descuento = @__Message.ReadDouble("Descuento"); int NoItems = @__Message.ReadInt32("NoItems"); int FacturaID = @__Message.ReadInt32("FacturaID"); int ProductoID = @__Message.ReadInt32("ProductoID"); int Result; Result = ((IRPDataService)(@__Instance)).InsertarDetalleFactura(Cantidad, Precio, SubTotal, IVA, IEPS, Total, Descuento, NoItems, FacturaID, ProductoID); @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "InsertarDetalleFacturaResponse"); @__Message.WriteInt32("Result", Result); @__Message.FinalizeMessage(); @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault; }