예제 #1
0
        public virtual void CopyValues(AreaRecord source)
        {
            if (source == null)
            {
                return;
            }

            Oid            = source.Oid;
            _nombre        = source.Nombre;
            _codigo        = source.Codigo;
            _serial        = source.Serial;
            _observaciones = source.Observaciones;
        }
예제 #2
0
 protected override void DataPortal_Update()
 {
     if (IsDirty)
     {
         try
         {
             AreaRecord obj = Session().Get <AreaRecord>(Oid);
             obj.CopyValues(this.Base.Record);
             Session().Update(obj);
         }
         catch (Exception ex)
         {
             iQExceptionHandler.TreatException(ex);
         }
     }
 }