Example #1
0
        /// <summary>
        /// Initializes the data.
        /// </summary>
        protected override void InitData()
        {
            _budgetKindItemsPresenter.Display();

            if (KeyValue != null)
            {
                _budgetKindItemPresenter.Display(KeyValue);
                CurrentBudgetKindItemCode = BudgetKindItemCode;
            }
            else
            {
                if (CurrentNode != null)
                {
                    txtBudgetKindItemCode.Text      = ((BudgetKindItemModel)CurrentNode).BudgetKindItemCode;
                    grdLookUpEditParentId.EditValue = ((BudgetKindItemModel)CurrentNode).BudgetKindItemId;
                }
            }
        }
Example #2
0
 /// <summary>
 /// Initializes the data.
 /// </summary>
 protected override void InitData()
 {
     if (KeyValue != null)
     {
         _fixedAssetCategoryPresenter.Display(KeyValue);
     }
     else
     {
         if (CurrentNode != null)
         {
             txtFixedAssetCategoryCode.Text            = ((FixedAssetCategoryModel)CurrentNode).FixedAssetCategoryCode;
             grdLookUpFixedAssetCategoryKind.EditValue = ((FixedAssetCategoryModel)CurrentNode).FixedAssetCategoryId;
         }
     }
     _fixedAssetCategoriesPresenter.Display();
     _budgetChapterPresenter.Display();
     _budgetKindItemsPresenter.Display();
     _budgetItemsPresenter.Display();
     _accountPresenter.Display();
     txtFixedAssetCategoryCode.Focus();
 }
Example #3
0
 /// <summary>
 /// Loads the data into tree.
 /// </summary>
 protected override void LoadDataIntoTree()
 {
     _budgetKindItemsPresenter.Display();
     treeList.ExpandAll();
 }