Ejemplo n.º 1
0
        private void tv_tjlxb_AfterSelect(object sender, TreeViewEventArgs e)
        {
            if (object.Equals(null, tv_tjlxb.SelectedNode.Tag))
            {
                return;
            }

            MyTreeNode node = (MyTreeNode)e.Node;

            str_tjlx            = node.Tag.ToString().Trim();
            str_lclx            = node.Str.ToString().Trim();
            dt_TJ_SUGGESTION    = ywszbiz.Get_TJ_SUGGESTION_All(str_tjlx, str_lclx);
            dgv_zdjy.DataSource = dt_TJ_SUGGESTION;
            this.Text           = "诊断建议维护【" + node.Text.Trim() + "】";


            if (tv_tjlxb.SelectedNode.Nodes.Count == 0)
            {
                tv_tjlxb.SelectedNode.SelectedImageIndex = tv_tjlxb.SelectedNode.ImageIndex;
            }
        }