protected override void InitData()
        {
            AccountingObjectCategories = new ObjectGeneral().GetAccountingObjectCategories(true, false, true, true);
            if (KeyValue != null)
            {
                switch (AccountingObjectCategoryId)
                {
                case 0:
                    _vendorPresenter.Display(KeyValue);
                    break;

                case 2:
                    _accountingObjectPresenter.Display(Convert.ToInt32(KeyValue));
                    break;

                case 3:
                    _customerPresenter.Display(KeyValue);
                    break;
                }
            }
            else
            {
                //txtAcountingObjectCode.Text = GetAutoNumber();
            }
            BankId = null;
        }
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     _employeeTypesPresenter.DisplayActive();
     _departmentsPresenter.DisplayActive();
     if (KeyValue != null)
     {
         _accountingObjectPresenter.Display(KeyValue);
     }
     else
     {
         IsEmployee = true;
     }
 }