/// <summary>
        /// Метод для установки лица
        /// </summary>
        /// <param name="id">Код лица</param>
        public void SetPerson(int id)
        {
            V4Control[] ctrls = { _info, _code, _person, _address, _transport_node, _store, _store_info, _notes };

            foreach (V4Control ctrl in ctrls)
            {
                if (null == ctrl)
                {
                    continue;
                }
                if (ctrl.BindDocField != null)
                {
                    ctrl.BindDocField.Value = null;
                }
            }

            _current_store = null;
            _current_code  = null;

            if (0 == id)
            {
                ClientScripts.SendSetInnerHtml(_page, _prefix + Nakladnaya.suffixTitle, GetTitle());
                return;
            }

            _person.BindDocField.Value = id.ToString();

            BindFieldsByPerson();

            ClientScripts.SendSetInnerHtml(_page, _prefix + Nakladnaya.suffixTitle, GetTitle());
        }
        /// <summary>
        /// Обработчик события изменения даты документа
        /// </summary>
        public void OnDocDateChanged()
        {
            _person.RenderNtf();
            _address.RenderNtf();
            _store.RenderNtf();

            ClientScripts.SendSetInnerHtml(_page, _prefix + Nakladnaya.suffixTitle, GetTitle());
        }
        /// <summary>
        /// Установка адреса
        /// </summary>
        /// <param name="address"></param>
        public void SetAddress(string address)
        {
            if (_address.BindDocField != null)
            {
                _address.BindDocField.Value = address;
            }
            _address.Value = address;

            BindFieldsByPerson();

            ClientScripts.SendSetInnerHtml(_page, _prefix + Nakladnaya.suffixTitle, GetTitle());
        }
        /// <summary>
        /// Метод для обновления значений в связанной панели
        /// </summary>
        /// <param name="sender">Объект источник события в результате которого потребовалось произвести обновление</param>
        /// <param name="args">Параметры события</param>
        private void UpdateBindedPanel(object sender, ProperyChangedEventArgs args)
        {
            if (null == _p)
            {
                return;
            }

            _p._person.BindDocField.Value = _person.Value;
            if (_p._address.BindDocField != null)
            {
                _p._address.BindDocField.Value = _address.Value;
            }
            _p._store.BindDocField.Value = _store.Value;

            _p.BindFieldsByPerson();
            _p.Store_Changed(null, null);

            ClientScripts.SendSetInnerHtml(_page, _p._prefix + Nakladnaya.suffixTitle, _p.GetTitle());
        }
        /// <summary>
        /// Установка лица
        /// </summary>
        /// <param name="id"></param>
        /// <param name="address"></param>
        /// <param name="info"></param>
        public void SetPerson(int id, string address, string info)
        {
            if (_notes != null && _notes.BindDocField != null)
            {
                _notes.BindDocField.Value = "";
            }
            _code.BindDocField.Value  = "";
            _info.BindDocField.Value  = "";
            _store.BindDocField.Value = "";

            _person.BindDocField.Value = id.ToString();
            if (_address.BindDocField != null)
            {
                _address.BindDocField.Value = address;
            }
            _address.Value           = address;
            _info.BindDocField.Value = info;

            BindFieldsByPerson();

            ClientScripts.SendSetInnerHtml(_page, _prefix + Nakladnaya.suffixTitle, GetTitle());
        }
 /// <summary>
 /// Обработчик события изменения валюты документа
 /// </summary>
 public void OnCurrencyChanged()
 {
     Store_Changed(null, null);
     _store.RenderNtf();
     ClientScripts.SendSetInnerHtml(_page, _prefix + Nakladnaya.suffixTitle, GetTitle());
 }