Example #1
0
 /// <summary>
 /// Agrega una nueva instancia del item a la coleccion de items.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="item"></param>
 public virtual void Add(ComprobanteDeCompra sender, ItemComprobanteCompra item)
 {
     this.Parent = sender;
     this.Add(item);
     //	item.OnRecalcItem += new ItemComprobante.RecalcularItem( this.EscuchoRecalculo );
     //	item.OnRefreshItem += new ItemComprobante.RefrescarItem( this.EscuchoRefresco );
     //	if ( OnRecalcItems != null )
     //	{
     //		this.OnRecalcItems( this, new System.EventArgs() );
     //	}
 }
        public static ComprobanteDeCompra Read(Stream stream)
        {
            stream.Position = 0;

            XmlSerializer serializer = new XmlSerializer(typeof(ComprobanteDeCompra));
            XmlReader     reader     = new XmlTextReader(stream);

            ComprobanteDeCompra j = ( ComprobanteDeCompra )serializer.Deserialize(reader);

            reader.Close();

            //j.FileName = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

            return(j);
        }
Example #3
0
 public ItemsComprobantesCompra(string action, ComprobanteDeCompra parent, RelacionesComprobanteDeCompraOrigenDestino relaciones)
 {
     this._parent = parent;
     Init(action, relaciones);
 }
Example #4
0
 public ItemsComprobantesCompra(string action, ComprobanteDeCompra parent)
 {
     this._parent = parent;
     Init(action, null);
 }