Example #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;
        }