Ejemplo n.º 1
0
        public override void DeleteObject(long oid)
        {
            //if (ProgressInfoMng.ShowQuestion(moleQule.Face.Resources.Messages.DELETE_CONFIRM) == DialogResult.Yes)
            //{
            BatchList partidas = BatchList.GetListByAlmacen(oid, false);

            if (partidas.Count > 0)
            {
                PgMng.ShowInfoException("El almacén tiene productos asociados");

                _action_result = DialogResult.Ignore;
                return;
            }

            Almacen.Delete(oid);
            _action_result = DialogResult.OK;
            //}
        }