protected override void RefreshMainData()
        {
            Datos.DataSource = _entity;
            PgMng.Grow();

            _caja = Cash.Get(_entity.OidCaja);
            PgMng.Grow();

            base.RefreshMainData();
        }
        protected override void SetCajaAction()
        {
            CashList       list = CashList.GetList(false);
            CashSelectForm form = new CashSelectForm(this, list);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                CashInfo caja = form.Selected as CashInfo;

                if (_caja != null)
                {
                    _caja.CloseSession();
                }

                _caja = Cash.Get(caja.Oid, false);

                UpdateSaldo();
            }
        }
 protected override void GetFormSourceData(long oid)
 {
     _entity = Cash.Get(oid);
     _entity.BeginEdit();
 }