Пример #1
0
 protected  override void Bind(Sybase.Persistence.ConnectionProfile profile, System.Data.IDataReader rs) 
 {
     this.__sistema = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"sistema",0);
     this.__CUIT = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"CUIT",1);
     this.__idDireccionEntrega = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"idDireccionEntrega",2);
     this.__periodoMesAnio = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"periodoMesAnio",3);
     this.__grupoArticulo_CodigoSAP = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"grupoArticulo_CodigoSAP",4);
     this.__volumen = com.sybase.afx.db.ReaderUtil.GetDecimal(profile,rs,"volumen",5);
     this.__unidadMedida = com.sybase.afx.db.ReaderUtil.GetString(profile,rs,"unidadMedida",6);
     this.__importeBruto = com.sybase.afx.db.ReaderUtil.GetDecimal(profile,rs,"importeBruto",7);
     this.__pending = com.sybase.afx.db.ReaderUtil.GetBoolean(profile,rs,"pending",8);
     this.__pendingChange = com.sybase.afx.db.ReaderUtil.GetChar(profile,rs,"pendingChange",9);
     this.__replayPending = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"replayPending",10);
     this.__replayFailure = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"replayFailure",11);
     this.__surrogateKey = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"surrogateKey",12);
     this.__replayCounter = com.sybase.afx.db.ReaderUtil.GetLong(profile,rs,"replayCounter",13);
     this.__disableSubmit = com.sybase.afx.db.ReaderUtil.GetBoolean(profile,rs,"disableSubmit",14);
     _isNew = false;
     _isDirty = false;
     if (this.IsPending)
     {
         this.SetOriginalState(null);
         this.__originalStateValid = false;
     }
     else
     {
         YPF.Comercial.RRCC.SUP.ClienteFacturacion os_1 = new YPF.Comercial.RRCC.SUP.ClienteFacturacion();
         os_1.CopyAll(this);
         this.SetOriginalState(os_1);
     }
 }
Пример #2
0
 /// <summary>
 /// Refresh the mobile business object from database.
 /// </summary>
 public void Refresh()
 {
     if (!_isNew && !__isOsEntity)
     {
         YPF.Comercial.RRCC.SUP.ClienteFacturacion ent = Load(_pk());
         CopyAll(ent);
         if (this.IsPending)
         {
             this.SetOriginalState(null);
             this.__originalStateValid = false;
         }
         else
         {
             YPF.Comercial.RRCC.SUP.ClienteFacturacion os_1 = new YPF.Comercial.RRCC.SUP.ClienteFacturacion();
             os_1.CopyAll(this);
             this.SetOriginalState(os_1);
         }
         _isNew = false;
         _isDirty = false;
     }
 }