Beispiel #1
0
 public static void InitializeMerchant(ref TreeNode rootNode)
 {
     TBaseInfoDTO[] result = _client.TBaseInfoQueryAll();
     if (result != null && result.Length > 0)
     {
         foreach (TBaseInfoDTO item in result)
         {
             TreeNode pNode = new TreeNode();
             FindParentNode(rootNode, item.MerchantId, ref pNode);
             TreeNode tempNode = new TreeNode(item.MerchantName);
             tempNode.Name               = item.BaseInfoId;
             tempNode.ToolTipText        = item.MerchantBoss + ":" + item.MerchantTel;
             tempNode.ImageIndex         = 2;
             tempNode.SelectedImageIndex = 3;
             tempNode.Tag = item.BaseInfoId;
             pNode.Nodes.Add(tempNode);
         }
     }
 }