コード例 #1
0
        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;
        }
コード例 #2
0
        public static void Invoke_Folio(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions)
        {
            string Campo = @__Message.ReadAnsiString("Campo");
            string Serie = @__Message.ReadAnsiString("Serie");
            int    Result;

            Result = ((IRPDataService)(@__Instance)).Folio(Campo, Serie);
            @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "FolioResponse");
            @__Message.WriteInt32("Result", Result);
            @__Message.FinalizeMessage();
            @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault;
        }
コード例 #3
0
 public static void Invoke_NotaCredito(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 {
         string   NewParam  = @__Message.ReadAnsiString("NewParam");
         string   NewParam1 = @__Message.ReadAnsiString("NewParam1");
         string   NewParam2 = @__Message.ReadAnsiString("NewParam2");
         string   NewParam3 = @__Message.ReadAnsiString("NewParam3");
         TFactura Result;
         Result = ((IRPDataService)(@__Instance)).NotaCredito(NewParam, NewParam1, NewParam2, NewParam3);
         @__ObjectDisposer.Add(Result);
         @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "NotaCreditoResponse");
         @__Message.Write("Result", Result, typeof(TFactura), RemObjects.SDK.StreamingFormat.Default);
         @__Message.FinalizeMessage();
         @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault;
     }
     finally {
         @__ObjectDisposer.Dispose();
     }
 }
コード例 #4
0
        public static void Invoke_GetProductoID(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)).GetProductoID(Datos);
            @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "GetProductoIDResponse");
            @__Message.WriteInt32("Result", Result);
            @__Message.FinalizeMessage();
            @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault;
        }
コード例 #5
0
        public static void Invoke_CancelarPedido(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions)
        {
            string Datos = @__Message.ReadAnsiString("Datos");
            bool   Result;

            Result = ((IRPDataService)(@__Instance)).CancelarPedido(Datos);
            @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "CancelarPedidoResponse");
            @__Message.WriteBoolean("Result", Result);
            @__Message.FinalizeMessage();
            @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault;
        }
コード例 #6
0
 public static void Invoke_GetVehiculoTransportista(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 {
         string      Datos = @__Message.ReadAnsiString("Datos");
         TVehiculo[] Result;
         Result = ((IRPDataService)(@__Instance)).GetVehiculoTransportista(Datos);
         @__ObjectDisposer.Add(Result);
         @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "GetVehiculoTransportistaResponse");
         @__Message.Write("Result", Result, typeof(TVehiculo[]), RemObjects.SDK.StreamingFormat.Default);
         @__Message.FinalizeMessage();
         @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault;
     }
     finally {
         @__ObjectDisposer.Dispose();
     }
 }