private void ClosePermit()
        {
            PermitMoving moving1 = Permit.Close(EntryPoint, User.Empty);

            moving1.Save(Database);

            RaiseCloseControl("Пропуск " + Permit.ShortNumber + ": ЗАКРЫТ " + moving1.MovingTime.ToString("dd.MM.yyyy HH:mm"));
        }
        private void ClosePermit()
        {
            PermitMoving moving1 = Permit.Close(EntryPoint, Database.ConnectedUser);

            moving1.Save(Database);


            string message = EntryControl.Resources.Doc.Permit.PermitClose;

            message = message.Replace("@movingTime", moving1.MovingTime.ToString("dd.MM.yyyy HH:mm"));
            MessageBox.Show(message, Permit.ToString());
        }