Exemplo n.º 1
0
        public void Insert(int IdComprobante, DateTime?Fecha, string Tipo, string Descripcion, string Usuario)
        {
            PnLogComprobante item = new PnLogComprobante();

            item.IdComprobante = IdComprobante;

            item.Fecha = Fecha;

            item.Tipo = Tipo;

            item.Descripcion = Descripcion;

            item.Usuario = Usuario;


            item.Save(UserName);
        }
Exemplo n.º 2
0
        public void Update(int IdLogComprobante, int IdComprobante, DateTime?Fecha, string Tipo, string Descripcion, string Usuario)
        {
            PnLogComprobante item = new PnLogComprobante();

            item.MarkOld();
            item.IsLoaded = true;

            item.IdLogComprobante = IdLogComprobante;

            item.IdComprobante = IdComprobante;

            item.Fecha = Fecha;

            item.Tipo = Tipo;

            item.Descripcion = Descripcion;

            item.Usuario = Usuario;

            item.Save(UserName);
        }
Exemplo n.º 3
0
 public bool Destroy(object IdLogComprobante)
 {
     return(PnLogComprobante.Destroy(IdLogComprobante) == 1);
 }
Exemplo n.º 4
0
 public bool Delete(object IdLogComprobante)
 {
     return(PnLogComprobante.Delete(IdLogComprobante) == 1);
 }