Beispiel #1
0
        /// <summary>
        /// Borra un registro de la base de datos.
        /// </summary>
        /// <param name="parent">Objeto padre</param>
        /// <remarks>Borrado inmediato<remarks/>
        internal void DeleteSelf(WorkReport parent)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }

            // if we're new then don't update the database
            if (this.IsNew)
            {
                return;
            }

            if (EEntityType == ETipoEntidad.OutputDelivery)
            {
                OutputDelivery.Delete(OidResource, ETipoEntidad.WorkReport, parent.SessionCode);
            }

            SessionCode = parent.SessionCode;
            Session().Delete(Session().Get <WorkReportResourceRecord>(Oid));

            MarkNew();
        }
 public override void DeleteAction()
 {
     OutputDelivery.Delete(ActiveOID, ActiveItem.EHolderType);
     _action_result = DialogResult.OK;
 }