Ejemplo n.º 1
0
 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_GuardaFactura(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 {
         TFactura Datos = ((TFactura)(@__Message.Read("Datos", typeof(TFactura), RemObjects.SDK.StreamingFormat.Default)));
         @__ObjectDisposer.Add(Datos);
         bool Result;
         Result = ((IRPDataService)(@__Instance)).GuardaFactura(Datos);
         @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "GuardaFacturaResponse");
         @__Message.WriteBoolean("Result", Result);
         @__Message.FinalizeMessage();
         @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault;
     }
     finally {
         @__ObjectDisposer.Dispose();
     }
 }
Ejemplo n.º 3
0
 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();
     }
 }