예제 #1
0
 private void SaveNewOrder()
 {
     using (MetaDataServiceClient _mdc = new MetaDataServiceClient())
     {
         TreeList treeListNode = this.CurrentNode.TreeList;
         Dictionary <string, int> ChildTableOrder = new Dictionary <string, int>();
         TreeListNode             _fnode          = this.CurrentNode.ParentNode;
         int i = 1;
         foreach (TreeListNode _tn in _fnode.Nodes)
         {
             object _selectedItem = _tn.GetValue(treeListNode.Columns[0]);
             if (_selectedItem is MD_ViewTable)
             {
                 MD_ViewTable _vt = _selectedItem as MD_ViewTable;
                 ChildTableOrder.Add(_vt.ViewTableID, i * 10);
                 i++;
             }
         }
         _mdc.SaveViewTableOrder_UserDefine(ChildTableOrder);
     }
 }