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;
        }
Example #2
0
        public static void Invoke_UpdateSaldoCargoPedido(RemObjects.SDK.IROService @__Instance, RemObjects.SDK.IMessage @__Message, RemObjects.SDK.Server.IServerChannelInfo @__ServerChannelInfo, out RemObjects.SDK.Server.ResponseOptions @__oResponseOptions)
        {
            double Saldo      = @__Message.ReadDouble("Saldo");
            int    EstacionID = @__Message.ReadInt32("EstacionID");
            double Result;

            Result = ((IRPDataService)(@__Instance)).UpdateSaldoCargoPedido(Saldo, EstacionID);
            @__Message.InitializeResponseMessage(@__ServerChannelInfo, "RPSuiteServer", "RPDataService", "UpdateSaldoCargoPedidoResponse");
            @__Message.WriteDouble("Result", Result);
            @__Message.FinalizeMessage();
            @__oResponseOptions = RemObjects.SDK.Server.ResponseOptions.roDefault;
        }
Example #3
0
        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;
        }