/// <summary>
        ///     Конструктор класса
        /// </summary>
        public DSOResidence()
        {
            var tableName = "МестаХранения";

            KeyField  = "КодМестаХранения";
            NameField = "МестоХранения";

            IDs  = new FOptIDs();
            Name = new FOptName();
            AllChildrenWithParentIDs = new FOptParentsIDs(TreeQueryType.AllChildrenWithoutParent, tableName, KeyField,
                                                          NameField);
            AllChildrenWithoutParentIDs = new FOptParentsIDs(TreeQueryType.AllChildrenWithParent, tableName, KeyField,
                                                             NameField);
            ChildrenWithParentIDs    = new FOptParentsIDs(TreeQueryType.ChildrenWithoutParent, tableName, KeyField);
            ChildrenWithoutParentIDs = new FOptParentsIDs(TreeQueryType.ChildrenWithParent, tableName, KeyField);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Конструктор класса
        /// </summary>
        public DSOResource()
        {
            var tableName = "Ресурсы";

            KeyField  = "КодРесурса";
            NameField = "РесурсРус";

            IDs         = new FOptIDs();
            Name        = new FOptName();
            Text        = Name;
            CurrencyIDs = new FOptCurrencyIDs();

            AllChildrenWithParentIDs =
                new FOptParentsIDs(TreeQueryType.AllChildrenWithParent, tableName, KeyField, NameField);
            AllChildrenWithoutParentIDs =
                new FOptParentsIDs(TreeQueryType.AllChildrenWithoutParent, tableName, KeyField, NameField);
            ChildrenWithParentIDs    = new FOptParentsIDs(TreeQueryType.ChildrenWithParent, tableName, KeyField);
            ChildrenWithoutParentIDs = new FOptParentsIDs(TreeQueryType.ChildrenWithoutParent, tableName, KeyField);

            PersonIDs = new FOptPersonIDs();
        }