예제 #1
0
        private void SelectedBindBlock(int depth, int level)
        {
            try
            {
                ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
                DataSet     theDSList     = CustomManager.GetICDList();
                foreach (DataRow theDR1 in theDSList.Tables[0].Rows)
                {
                    ICDChapterCode       = new TreeNode();
                    ICDChapterCode.Text  = Convert.ToString(theDR1["ChapterName"]);
                    ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
                    foreach (DataRow theDR2 in theDSList.Tables[1].Rows)
                    {
                        if (depth == Convert.ToInt32(theDR1["ChapterId"]))
                        {
                            if (Convert.ToInt32(theDR1["ChapterId"]) == Convert.ToInt32(theDR2["ChapterId"]) && level == 0)
                            {
                                ICDBlockCode       = new TreeNode();
                                ICDBlockCode.Text  = theDR2["BlockCode"] + " " + theDR2["BlockName"];
                                ICDBlockCode.Value = theDR2["BlockId"].ToString();
                                ICDChapterCode.ChildNodes.Add(ICDBlockCode);
                            }
                            ICDChapterCode.Expand();
                        }
                    }
                    TVICD10.Nodes.Add(ICDChapterCode);
                }
                TVICD10.ShowLines  = true;
                TVICD10.NodeIndent = 5;
                TVICD10.ExpandAll();
            }
            catch { }

            finally { }
        }
예제 #2
0
    private void BindList()
    {
        try
        {
            ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
            DataSet     theDSList     = CustomManager.GetICDList();
            DataRow[]   ChapterRow    = theDSList.Tables[4].Select("FieldId=" + Request.QueryString["Param"].Substring(4).ToString() + "");
            foreach (DataRow theDR1 in ChapterRow)
            {
                blnPartialsearch     = true;
                blnfullsearch        = false;
                ICDChapterCode       = new TreeNode();
                ICDChapterCode.Text  = Convert.ToString(theDR1["ChapterName"]);
                ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
                TVICD10.Nodes.Add(ICDChapterCode);
            }
            TVICD10.ShowLines  = true;
            TVICD10.NodeIndent = 5;
            //CollapseAll();
            //foreach (DataRow theDR1 in theDSList.Tables[0].Rows)
            //{
            //    ICDChapterCode = new TreeNode();
            //    ICDChapterCode.Text = Convert.ToString(theDR1["ChapterName"]);
            //    ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
            //    TVICD10.Nodes.Add(ICDChapterCode);
            //}
            //TVICD10.ShowLines = true;
            //TVICD10.NodeIndent = 5;
        }
        catch { }

        finally { }
    }
예제 #3
0
    private void BindList()
    {
        try
        {
            ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
            DataSet     theDSList     = CustomManager.GetICDList();
            foreach (DataRow theDR1 in theDSList.Tables[0].Rows)
            {
                ICDChapterCode       = new TreeNode();
                ICDChapterCode.Text  = Convert.ToString(theDR1["ChapterName"]);
                ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
                //foreach (DataRow theDR2 in theDSList.Tables[1].Rows)
                //{
                //    if (Convert.ToInt32(theDR1["ChapterId"]) == Convert.ToInt32(theDR2["ChapterId"]))
                //    {
                //        ICDBlockCode = new TreeNode();
                //        ICDBlockCode.Text = theDR2["BlockCode"] + " " + theDR2["BlockName"];
                //        ICDBlockCode.Value = theDR2["BlockId"].ToString();
                //        ICDChapterCode.ChildNodes.Add(ICDBlockCode);
                //    }
                //}
                TVICD10.Nodes.Add(ICDChapterCode);
            }
            TVICD10.ShowLines  = true;
            TVICD10.NodeIndent = 5;
            TVICD10.CollapseAll();
        }
        catch { }

        finally { }
    }
예제 #4
0
    protected void TVICD10_SelectedNodeChanged(object sender, EventArgs e)
    {
        btnAdd.Enabled = false;

        Object SelectedValue = ((TreeView)sender).SelectedValue;

        ((TreeView)sender).SelectedNodeStyle.ForeColor = System.Drawing.Color.Red;
        if (((TreeView)sender).SelectedNode.Depth == 0)
        {
            TVICD10.Nodes.Clear();
            SelectedBindBlock(Convert.ToInt32(SelectedValue), 0);
            //TVICD10.SelectedNodeStyle.Font.Underline = true;
        }
        else if (((TreeView)sender).SelectedNode.Depth == 1)
        {
            ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
            DataSet     theDSList     = CustomManager.GetICDList();
            DataView    theDV         = new DataView(theDSList.Tables[1]);
            String[]    Id            = SelectedValue.ToString().Split('^');
            txtvalue.Text   = SelectedValue.ToString() + "^" + ((TreeView)sender).SelectedNode.Depth;
            theDV.RowFilter = "BlockId=" + Id[0].ToString();
            DataTable theDT = theDV.ToTable();
            TVICD10.Nodes.Clear();
            //txtvalue.Text = theDT.Rows[0]["BlockId"] + "^" + theDT.Rows[0]["BlockCode"] + " " + theDT.Rows[0]["BlockName"] + "^" + "1";
            SelectedBindSubBlock(Convert.ToInt32(Id[0]), 1, Convert.ToInt32(theDT.Rows[0][1]));
            txtvalue.Text = theDT.Rows[0]["BlockId"] + "^" + theDT.Rows[0]["BlockCode"] + " " + theDT.Rows[0]["BlockName"] + "^" + "1";
            //TVICD10.SelectedNodeStyle.Font.Underline = true;
        }
        else if (((TreeView)sender).SelectedNode.Depth == 2)
        {
            ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
            DataSet     theDSList     = CustomManager.GetICDList();
            DataView    theDV         = new DataView(theDSList.Tables[2]);
            String[]    Id            = SelectedValue.ToString().Split('^');
            theDV.RowFilter = "SubBlockId=" + Id[0].ToString();
            DataTable theDT = theDV.ToTable();
            theDV           = new DataView(theDSList.Tables[1]);
            theDV.RowFilter = "BlockId=" + Convert.ToString(theDT.Rows[0][0]);
            DataTable theDT1 = theDV.ToTable();
            TVICD10.Nodes.Clear();
            SelectedBindICDCodes(Convert.ToInt32(Id[0]), 2, Convert.ToInt32(theDT.Rows[0][0]), Convert.ToInt32(theDT1.Rows[0][1]));
            txtvalue.Text = theDT.Rows[0]["SubBlockId"] + "^" + theDT.Rows[0]["SubBlockCode"] + " " + theDT.Rows[0]["SubBlockName"] + "^" + "2";

            //txtvalue.Text = theDT.Rows[0]["SubBlockId"] + "^" + theDT.Rows[0]["SubBlockCode"] + " " + theDT.Rows[0]["SubBlockName"] + "^"+"2";
            //TVICD10.SelectedNodeStyle.Font.Underline = true;
            //TVICD10.SelectedNodeStyle.ForeColor = System.Drawing.Color.Red;
        }
        else if (((TreeView)sender).SelectedNode.Depth == 3)
        {
            txtvalue.Text = SelectedValue.ToString() + "^" + ((TreeView)sender).SelectedNode.Depth;
            //TVICD10.SelectedNodeStyle.Font.Underline = true;
            //TVICD10.SelectedNodeStyle.ForeColor = System.Drawing.Color.Red;
        }
        if (txtvalue.Text != "")
        {
            btnAdd.Enabled = true;
        }
        //ScriptManager.RegisterStartupScript(Page, Page.GetType(), "ScrollToSelectedNode", "ScrollToSelectedNode();", true);
    }
예제 #5
0
        private void GetSelectedBindICDCodes(int SelectedValue, int Current_level, int BlockId, int ChapterId)
        {
            try
            {
                int         level_0       = 0;
                int         level_1       = 1;
                ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
                DataSet     theDSList     = CustomManager.GetICDList();
                foreach (DataRow theDR1 in theDSList.Tables[0].Rows)
                {
                    ICDChapterCode       = new TreeNode();
                    ICDChapterCode.Text  = Convert.ToString(theDR1["ChapterName"]);
                    ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
                    foreach (DataRow theDR2 in theDSList.Tables[1].Rows)
                    {
                        if (Convert.ToInt32(theDR1["ChapterId"]) == Convert.ToInt32(theDR2["ChapterId"]) && ChapterId == Convert.ToInt32(theDR2["ChapterId"]) && level_0 == 0)
                        {
                            ICDBlockCode       = new TreeNode();
                            ICDBlockCode.Text  = theDR2["BlockCode"] + " " + theDR2["BlockName"];
                            ICDBlockCode.Value = theDR2["BlockId"].ToString();
                            foreach (DataRow theDR3 in theDSList.Tables[2].Rows)
                            {
                                if (Convert.ToInt32(ICDBlockCode.Value) == Convert.ToInt32(theDR3["BlockId"]) && BlockId == Convert.ToInt32(ICDBlockCode.Value) && level_1 == 1)
                                {
                                    ICDSubBlockCode       = new TreeNode();
                                    ICDSubBlockCode.Text  = theDR3["SubBlockCode"] + " " + theDR3["SubBlockName"];
                                    ICDSubBlockCode.Value = Convert.ToString(theDR3["SubBlockId"]);
                                    foreach (DataRow theDR4 in theDSList.Tables[3].Rows)
                                    {
                                        ICDCode10       = new TreeNode();
                                        ICDCode10.Text  = theDR4["ICDCode"] + " " + theDR4["ICDCodeName"];
                                        ICDCode10.Value = Convert.ToString(theDR4["ID"] + "-" + theDR4["ICDCode"] + " " + theDR4["ICDCodeName"]);
                                        //ICDCode10.Value = Convert.ToString(theDR4["ID"]);
                                        if (Convert.ToInt32(ICDSubBlockCode.Value) == Convert.ToInt32(theDR4["SubBlockId"]) && SelectedValue == Convert.ToInt32(theDR4["ID"]) && Current_level == 2)
                                        {
                                            ICDCode10.Selected = true;
                                            ICDSubBlockCode.ChildNodes.Add(ICDCode10);
                                        }
                                    }
                                    ICDBlockCode.ChildNodes.Add(ICDSubBlockCode);
                                }
                            }
                            ICDChapterCode.ChildNodes.Add(ICDBlockCode);
                        }
                    }
                    TVICD10.Nodes.Add(ICDChapterCode);
                }
                TVICD10.SelectedNodeStyle.Font.Underline = true;
                TVICD10.SelectedNodeStyle.ForeColor      = System.Drawing.Color.Red;
                TVICD10.ShowLines  = true;
                TVICD10.NodeIndent = 5;
                TVICD10.ExpandAll();
            }
            catch { }

            finally { }
        }
예제 #6
0
        private void BindList()
        {
            try
            {
                ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
                DataSet     theDSList     = CustomManager.GetICDList();
                foreach (DataRow theDR1 in theDSList.Tables[0].Rows)
                {
                    ICDChapterCode       = new TreeNode();
                    ICDChapterCode.Text  = Convert.ToString(theDR1["ChapterName"]);
                    ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
                    TVICD10.Nodes.Add(ICDChapterCode);
                }
                TVICD10.ShowLines  = true;
                TVICD10.NodeIndent = 5;
                //TVICD10.CollapseAll();
            }
            catch { }

            finally { }
        }
예제 #7
0
    protected void lnkfullpath_Click(object sender, EventArgs e)
    {
        try
        {
            blnfullsearch    = true;
            blnPartialsearch = false;
            ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
            DataSet     theDSList     = CustomManager.GetICDList();
            foreach (DataRow theDR1 in theDSList.Tables[0].Rows)
            {
                ICDChapterCode       = new TreeNode();
                ICDChapterCode.Text  = Convert.ToString(theDR1["ChapterName"]);
                ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
                TVICD10.Nodes.Add(ICDChapterCode);
            }
            TVICD10.ShowLines  = true;
            TVICD10.NodeIndent = 5;
        }
        catch { }

        finally { }
    }
예제 #8
0
        protected void TVICD10_SelectedNodeChanged(object sender, EventArgs e)
        {
            object SelectedValue = ((TreeView)sender).SelectedValue;

            if (((TreeView)sender).SelectedNode.Depth == 0)
            {
                TVICD10.Nodes.Clear();
                SelectedBindBlock(Convert.ToInt32(SelectedValue), 0);
                TVICD10.SelectedNodeStyle.Font.Underline = true;
            }
            else if (((TreeView)sender).SelectedNode.Depth == 1)
            {
                ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
                DataSet     theDSList     = CustomManager.GetICDList();
                DataView    theDV         = new DataView(theDSList.Tables[1]);
                theDV.RowFilter = "BlockId=" + SelectedValue.ToString();
                DataTable theDT = theDV.ToTable();
                TVICD10.Nodes.Clear();
                SelectedBindSubBlock(Convert.ToInt32(SelectedValue), 1, Convert.ToInt32(theDT.Rows[0][1]));
                TVICD10.SelectedNodeStyle.Font.Underline = true;
            }
            else if (((TreeView)sender).SelectedNode.Depth == 2)
            {
                ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
                DataSet     theDSList     = CustomManager.GetICDList();
                DataView    theDV         = new DataView(theDSList.Tables[2]);
                theDV.RowFilter = "SubBlockId=" + SelectedValue.ToString();
                DataTable theDT = theDV.ToTable();
                theDV           = new DataView(theDSList.Tables[1]);
                theDV.RowFilter = "BlockId=" + Convert.ToString(theDT.Rows[0][0]);
                DataTable theDT1 = theDV.ToTable();
                TVICD10.Nodes.Clear();
                SelectedBindICDCodes(Convert.ToInt32(SelectedValue), 2, Convert.ToInt32(theDT.Rows[0][0]), Convert.ToInt32(theDT1.Rows[0][1]));
                TVICD10.SelectedNodeStyle.Font.Underline = true;
                TVICD10.SelectedNodeStyle.ForeColor      = System.Drawing.Color.Red;
            }
        }
예제 #9
0
        private void GetBindList(string value)
        {
            try
            {
                ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
                DataSet     theDSList     = CustomManager.GetICDList();
                DataView    theDV         = new DataView(theDSList.Tables[3]);
                theDV.RowFilter = "CodeName IN( '" + value + "')";
                theDV.ToTable();

                DataSet theDS = CustomManager.GetICDData(Convert.ToInt32(theDV.ToTable().Rows[0][0]), 2);
                if (theDS.Tables[0].Rows.Count > 0)
                {
                    if (theDS.Tables[0].Rows[0][0] != DBNull.Value && theDS.Tables[2].Rows[0][0] != DBNull.Value && theDS.Tables[3].Rows[0][0] != DBNull.Value)
                    {
                        ViewState["ICDCodeId"] = theDS.Tables[0].Rows[0][0];
                        GetSelectedBindICDCodes(Convert.ToInt32(theDS.Tables[0].Rows[0][0]), 2, Convert.ToInt32(theDS.Tables[2].Rows[0][0]), Convert.ToInt32(theDS.Tables[3].Rows[0][0]));
                    }
                }
            }
            catch { }

            finally { }
        }
예제 #10
0
    private void SelectedBindBlock(int depth, int level)
    {
        if (blnfullsearch)
        {
            try
            {
                ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
                DataSet     theDSList     = CustomManager.GetICDList();
                foreach (DataRow theDR1 in theDSList.Tables[0].Rows)
                {
                    ICDChapterCode       = new TreeNode();
                    ICDChapterCode.Text  = Convert.ToString(theDR1["ChapterName"]);
                    ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
                    foreach (DataRow theDR2 in theDSList.Tables[1].Rows)
                    {
                        if (depth == Convert.ToInt32(theDR1["ChapterId"]))
                        {
                            if (Convert.ToInt32(theDR1["ChapterId"]) == Convert.ToInt32(theDR2["ChapterId"]) && level == 0)
                            {
                                ICDBlockCode       = new TreeNode();
                                ICDBlockCode.Text  = theDR2["BlockCode"] + " " + theDR2["BlockName"];
                                ICDBlockCode.Value = theDR2["BlockId"] + "^" + theDR2["BlockCode"] + " " + theDR2["BlockName"];//theDR2["BlockId"].ToString();
                                ICDChapterCode.ChildNodes.Add(ICDBlockCode);
                            }
                            ICDChapterCode.Expand();
                        }
                    }
                    TVICD10.Nodes.Add(ICDChapterCode);
                }
                TVICD10.ShowLines  = true;
                TVICD10.NodeIndent = 5;
                //TVICD10.SelectedNodeStyle.Font.Underline = true;
                //TVICD10.SelectedNodeStyle.ForeColor = System.Drawing.Color.Red;
                TVICD10.ParentNodeStyle.BackColor   = System.Drawing.Color.Crimson;
                TVICD10.ParentNodeStyle.ForeColor   = System.Drawing.Color.Snow;
                TVICD10.ParentNodeStyle.BorderWidth = 1;
                TVICD10.ParentNodeStyle.BorderColor = System.Drawing.Color.HotPink;
                TVICD10.ParentNodeStyle.Font.Italic = true;
                TVICD10.ExpandAll();
            }
            catch { }

            finally { }
        }
        if (blnPartialsearch)
        {
            try
            {
                ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
                DataSet     theDSList     = CustomManager.GetICDList();
                DataRow[]   ChapterRow    = theDSList.Tables[4].Select("FieldId=" + Request.QueryString["Param"].Substring(4).ToString() + "");
                foreach (DataRow theDR1 in ChapterRow)
                {
                    ICDChapterCode       = new TreeNode();
                    ICDChapterCode.Text  = Convert.ToString(theDR1["ChapterName"]);
                    ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
                    foreach (DataRow theDR2 in theDSList.Tables[1].Rows)
                    {
                        if (depth == Convert.ToInt32(theDR1["ChapterId"]))
                        {
                            if (Convert.ToInt32(theDR1["ChapterId"]) == Convert.ToInt32(theDR2["ChapterId"]) && level == 0)
                            {
                                ICDBlockCode       = new TreeNode();
                                ICDBlockCode.Text  = theDR2["BlockCode"] + " " + theDR2["BlockName"];
                                ICDBlockCode.Value = theDR2["BlockId"] + "^" + theDR2["BlockCode"] + " " + theDR2["BlockName"];//theDR2["BlockId"].ToString();
                                ICDChapterCode.ChildNodes.Add(ICDBlockCode);
                            }
                            ICDChapterCode.Expand();
                        }
                    }
                    TVICD10.Nodes.Add(ICDChapterCode);
                }
                TVICD10.ShowLines  = true;
                TVICD10.NodeIndent = 5;
                //TVICD10.SelectedNodeStyle.Font.Underline = true;
                //TVICD10.SelectedNodeStyle.ForeColor = System.Drawing.Color.Red;
                TVICD10.ParentNodeStyle.BackColor   = System.Drawing.Color.Crimson;
                TVICD10.ParentNodeStyle.ForeColor   = System.Drawing.Color.Snow;
                TVICD10.ParentNodeStyle.BorderWidth = 1;
                TVICD10.ParentNodeStyle.BorderColor = System.Drawing.Color.HotPink;
                TVICD10.ParentNodeStyle.Font.Italic = true;
                TVICD10.ExpandAll();
            }
            catch { }

            finally { }
        }
    }
예제 #11
0
    private void SelectedBindSubBlock(int SelectedValue, int Current_level, int ChapterId)
    {
        try
        {
            int         level_0       = 0;
            ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
            DataSet     theDSList     = CustomManager.GetICDList();
            foreach (DataRow theDR1 in theDSList.Tables[0].Rows)
            {
                ICDChapterCode       = new TreeNode();
                ICDChapterCode.Text  = Convert.ToString(theDR1["ChapterName"]);
                ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
                foreach (DataRow theDR2 in theDSList.Tables[1].Rows)
                {
                    if (Convert.ToInt32(theDR1["ChapterId"]) == Convert.ToInt32(theDR2["ChapterId"]) && ChapterId == Convert.ToInt32(theDR2["ChapterId"]) && level_0 == 0)
                    {
                        ICDBlockCode       = new TreeNode();
                        ICDBlockCode.Text  = theDR2["BlockCode"] + " " + theDR2["BlockName"];
                        ICDBlockCode.Value = theDR2["BlockId"].ToString();
                        foreach (DataRow theDR3 in theDSList.Tables[2].Rows)
                        {
                            if (Convert.ToInt32(ICDBlockCode.Value) == Convert.ToInt32(theDR3["BlockId"]) && SelectedValue == Convert.ToInt32(ICDBlockCode.Value) && Current_level == 1)
                            {
                                ICDSubBlockCode       = new TreeNode();
                                ICDSubBlockCode.Text  = theDR3["SubBlockCode"] + " " + theDR3["SubBlockName"];
                                ICDSubBlockCode.Value = Convert.ToString(theDR3["SubBlockId"]);
                                ICDBlockCode.ChildNodes.Add(ICDSubBlockCode);
                            }
                        }
                        ICDChapterCode.ChildNodes.Add(ICDBlockCode);
                        ICDChapterCode.Expand();
                    }
                }
                TVICD10.Nodes.Add(ICDChapterCode);
            }
            TVICD10.ShowLines  = true;
            TVICD10.NodeIndent = 5;
            TVICD10.ExpandAll();
        }
        catch { }

        finally { }

        //try
        //{
        //    ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
        //    DataSet theDSList = CustomManager.GetICDList();
        //    foreach (DataRow theDR1 in theDSList.Tables[0].Rows)
        //    {
        //        ICDChapterCode = new TreeNode();
        //        ICDChapterCode.Text = Convert.ToString(theDR1["ChapterName"]);
        //        ICDChapterCode.Value = Convert.ToString(theDR1["ChapterCode"]);
        //        foreach (DataRow theDR2 in theDSList.Tables[1].Rows)
        //        {
        //            if (Convert.ToInt32(theDR1["ChapterId"]) == Convert.ToInt32(theDR2["ChapterId"]))
        //            {
        //                ICDBlockCode = new TreeNode();
        //                ICDBlockCode.Text = theDR2["BlockCode"] + " " + theDR2["BlockName"];
        //                ICDBlockCode.Value = theDR2["BlockId"].ToString();
        //                foreach (DataRow theDR3 in theDSList.Tables[2].Rows)
        //                {
        //                    if (Convert.ToInt32(ICDBlockCode.Value) == Convert.ToInt32(theDR3["BlockId"]) && depth == Convert.ToInt32(ICDBlockCode.Value) && level == 1)
        //                    {
        //                        ICDSubBlockCode = new TreeNode();
        //                        ICDSubBlockCode.Text = theDR3["SubBlockCode"] + " " + theDR3["SubBlockName"];
        //                        ICDSubBlockCode.Value = Convert.ToString(theDR3["SubBlockId"]);
        //                        ICDBlockCode.ChildNodes.Add(ICDSubBlockCode);
        //                     }
        //                }
        //                ICDChapterCode.ChildNodes.Add(ICDBlockCode);
        //                ICDChapterCode.Expand();
        //            }
        //        }
        //        TVICD10.Nodes.Add(ICDChapterCode);
        //    }
        //    TVICD10.ShowLines = true;
        //    TVICD10.NodeIndent = 5;
        //    TVICD10.ExpandAll();
        //}
        //catch { }

        //finally { }
    }