Beispiel #1
0
        protected override void GetFormSourceData(long oid, object[] parameters)
        {
            LivestockBookLine source = parameters[0] as LivestockBookLine;

            if (source == null)
            {
                _entity = LivestockBookLine.Get(oid, (ETipoLineaLibroGanadero)parameters[1]);
            }
            else
            {
                IsChild = true;
                _source = source;
                _entity = _source.Clone();
            }

            _entity.BeginEdit();
        }
Beispiel #2
0
 protected override void GetFormSourceData(long oid)
 {
     _entity = LivestockBookLine.Get(Oid);
     _entity.BeginEdit();
 }