Exemple #1
0
        public void PartTypeTreeTest()
        {
            int typ_id = 15270; //   525 i (192 HP) Modification
            //int mod_id = 1449;  //   BMW 5 (E39) Model
            int st_item_id = 10001; //  Номер айтема в дереве поиска

            using( TecdocBaseDataContext ctx = new TecdocBaseDataContext() )
            {
                ctx.Log = new DebuggerWriter();
                var tree = ctx.GetTree( typ_id );

                var itemName = ctx.GetTreeItem( typ_id, st_item_id );
            }
        }
Exemple #2
0
 public static SearchTreeNodeHelper GetTreeItem( int modificationId, int searchTreeNodeId )
 {
     using( var ctx = new TecdocBaseDataContext() )
     {
         return ctx.GetTreeItem( modificationId, searchTreeNodeId );
     }
 }