public string GenerarTxtFacturadorSunatResumenDiario(DateTime fecha, string EmpresaID, string Ruta, bool FlgEst, int TipoComprobanteID) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); DataTable dtTMP = new DataTable(); return(ObjCD_Comprobante.GenerarTxtFacturadorSunatResumenDiario(fecha, EmpresaID, Ruta, FlgEst, TipoComprobanteID)); }
public DataTable InsertComprobante(E_Comprobante ObjComprobante, DataTable dtComprobante, int NumPedido, string Tipo, DataTable DTValesConsumo, DataTable DtBoucher, DataTable DtNotaIngreso) { string xml, xmlDetalle; CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); xml = new BaseFunctions().GetXML(dtComprobante).Replace("NewDataSet", "DocumentElement"); xmlDetalle = xml.Replace("Table", "Comprobante"); DataTable DT = ObjCD_Comprobante.InsertComprobante(ObjComprobante, xmlDetalle, NumPedido, Tipo, DTValesConsumo, DtBoucher, DtNotaIngreso); string tipo = ""; if (ObjComprobante.TipoComprobanteID == 5) { tipo = "01"; } else if (ObjComprobante.TipoComprobanteID == 4) { tipo = "03"; } string valor = ""; //if (ObjComprobante.EmpresaID == "IH") // valor = GenerarSunat(ObjComprobante.TipoComprobanteID, DT.Rows[0]["NumComprobante"].ToString(), ObjComprobante.EmpresaID, tipo, "", ""); //else valor = "OK"; DT.Columns.Add("respuesta", typeof(string)); DT.Rows[0]["respuesta"] = valor; return(DT); }
public string GenerarTxtFacturadorSunatComunicacionBaja(string EmpresaID, string NumComprobante, string MotivoBaja, string Ruta) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); DataTable dtTMP = new DataTable(); return(ObjCD_Comprobante.GenerarTxtFacturadorSunatComunicacionBaja(EmpresaID, NumComprobante, MotivoBaja, Ruta)); }
public DataSet ListarFacturadorSunat(string EmpresaID, DateTime FechaIni, DateTime FechaFin, int TipoComprobanteId, string EstadoSunat, int pagenum, int pagesize, int tipo) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.ListarFacturadorSunat(EmpresaID, FechaIni, FechaFin, TipoComprobanteId, EstadoSunat, pagenum, pagesize, tipo)); }
public DataTable GenerarTxtFacturadorSunatVarios(string EmpresaID, int TipoComprobanteID, DateTime FechaIni, DateTime FechaFin, string Ruta) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); DataTable dtTMP = new DataTable(); dtTMP = ObjCD_Comprobante.GenerarTxtFacturadorSunatVarios(EmpresaID, TipoComprobanteID, FechaIni, FechaFin, Ruta); return(dtTMP); }
public DataSet GenerarTxtFacturadorSunat(Int64 ID, string Ruta) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); DataSet dtTMP = new DataSet(); dtTMP = ObjCD_Comprobante.GenerarTxtFacturadorSunat(ID, Ruta); return(dtTMP); }
public DataTable GetCajasSedeT(string DireccionIP) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); DataTable dtTMP = new DataTable(); dtTMP = ObjCD_Comprobante.GetCajasSedeT(DireccionIP); return(dtTMP); }
public void ActualizarDesdeFacturadorSunat(string EmpresaID, string NumComprobante, int TipoComprobanteID, DateTime?fechaenvio, string mensaje, string EstadoSunat, string NroTicket) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); ObjCD_Comprobante.ActualizarDesdeFacturadorSunat(EmpresaID, NumComprobante, TipoComprobanteID, fechaenvio, mensaje, EstadoSunat, NroTicket); }
public DataTable GetSerieGuiasT(string Sede) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); DataTable dtTMP = new DataTable(); dtTMP = ObjCD_Comprobante.GetSerieGuiasT(Sede); return(dtTMP); }
public DataTable ObtenerFacturadorComprobantesEliminar(string EmpresaID) { DataTable dt1 = ObtenerDatosFacturdorSunat(EmpresaID); string rutabd = "Data Source=" + dt1.Rows[0]["RutaBDSunat"].ToString() + ";Version=3;New=true;Compress=True;"; CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(rutabd); return(ObjCD_Comprobante.ObtenerFacturadorComprobantesEliminar()); }
public DataTable InsertarNotaCreditoFE(string Tipo, string EmpresaID, string SerieRelacionado, Int32 NumeroRelacionado, int TipoComprobanteID, decimal Importe, string Concepto, decimal Descuento, int ClienteID, int UsuarioID, string SedeID) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.InsertarNotaCreditoFE(Tipo, EmpresaID, SerieRelacionado, NumeroRelacionado, TipoComprobanteID, Importe, Concepto, Descuento, ClienteID, UsuarioID, SedeID)); }
public void EliminarFacturadorComprobantes(string nombrearchivo, string EmpresaID) { DataTable dt1 = ObtenerDatosFacturdorSunat(EmpresaID); string rutabd = "Data Source=" + dt1.Rows[0]["RutaBDSunat"].ToString() + ";Version=3;New=true;Compress=True;"; CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(rutabd); ObjCD_Comprobante.EliminarFacturadorComprobantes(nombrearchivo); }
public DataTable getFormaPago() { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); DataTable dtTMP = new DataTable(); dtTMP = ObjCD_Comprobante.getFormaPago(); return(dtTMP); }
public int getIGV() { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); int IGV; IGV = ObjCD_Comprobante.getIGV(); return(IGV); }
public DataTable GetCajasSede(string EmpresaSede) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); DataTable dtTMP = new DataTable(); dtTMP = ObjCD_Comprobante.GetCajasSede(EmpresaSede); return(dtTMP); }
public void InsertComprobanteManual(string NumComprobante, E_Comprobante ObjComprobante, DataTable dtComprobante, int NumPedido, string Tipo, DataTable DTValesConsumo, DateTime AudCrea, DataTable DtBoucher) { string xml, xmlDetalle; CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); xml = new BaseFunctions().GetXML(dtComprobante).Replace("NewDataSet", "DocumentElement"); xmlDetalle = xml.Replace("Table", "Comprobante"); ObjCD_Comprobante.InsertComprobanteManual(NumComprobante, ObjComprobante, xmlDetalle, NumPedido, Tipo, DTValesConsumo, AudCrea, DtBoucher); }
public DataTable ActualizarTicketBaja(int id, string mensaje) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.ActualizarTicketBaja(id, mensaje)); }
public void ActualizarNotaCredito(Int32 NotaID, Int64 TicketSunat, string MensajeSunat, string EnviadoSunat, Int64 ComprobanteId) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); ObjCD_Comprobante.ActualizarNotaCredito(NotaID, TicketSunat, MensajeSunat, EnviadoSunat, ComprobanteId); }
public DataTable ActualizarComprobanteSunat(int ComprobanteId, string EnviadoSunat, string MensajeSunat) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.ActualizarComprobanteSunat(ComprobanteId, EnviadoSunat, MensajeSunat)); }
public DataTable ObtenerEstadosSunat() { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.ObtenerEstadosSunat()); }
public DataSet ConsultarValidez(string RUC, string ValidezId, string ValidezClave, string codComp, string numeroSerie, int numero, DateTime fechaEmision, decimal monto) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.ConsultarValidez(RUC, ValidezId, ValidezClave, codComp, numeroSerie, numero, fechaEmision, monto)); }
public void EditarDatosFacturadorSunat(string EmpresaID, string RutaArchivosSunat, string RutaBDSunat) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); ObjCD_Comprobante.EditarDatosFacturadorSunat(EmpresaID, RutaArchivosSunat, RutaBDSunat); }
public void InsertarIGV(int IGV, int UsuarioID) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); ObjCD_Comprobante.InsertarIGV(IGV, UsuarioID); }
public void ELIMINAR_COMPROBANTES(string EmpresaID, string Serie, Int32 NumeroIni, Int32 numeroFin, int UsuarioID, int TipoComprobanteId) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); ObjCD_Comprobante.ELIMINAR_COMPROBANTES(EmpresaID, Serie, NumeroIni, numeroFin, UsuarioID, TipoComprobanteId); }
public DataTable ObtenerComprobantesResumen(int id) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.ObtenerComprobantesResumen(id)); }
public DataSet ListarEnvioOSE(string EmpresaID, DateTime Fecha) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.ListarEnvioOSE(EmpresaID, Fecha)); }
public void AnularComprobante(string NumComprobante, int TipoComprobanteID, int UsuarioID, string SedeIDE) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); ObjCD_Comprobante.AnularComprobante(NumComprobante, TipoComprobanteID, UsuarioID, SedeIDE); }
public void UpdateSerieComprobante(string EmpresaSede, int TipoDocumento, string Serie, Int32 Numero, int UsuarioID, string NroAutorizacion, string SerieEticketera) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); ObjCD_Comprobante.UpdateSerieComprobante(EmpresaSede, TipoDocumento, Serie, Numero, UsuarioID, NroAutorizacion, SerieEticketera); }
public DataTable ObtenerPuntosCliente(int ClienteID) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.ObtenerPuntosCliente(ClienteID)); }
public DataTable ObtenerDatosFacturdorSunat(string EmpresaID) { CD_Comprobante ObjCD_Comprobante = new CD_Comprobante(AppSettings.GetConnectionString); return(ObjCD_Comprobante.ObtenerDatosFacturdorSunat(EmpresaID)); }