Exemple #1
0
        public List <TreeNodeTemp> listNodesISHIDE(string searchid)
        {
            List <TreeNodeTemp> list = new List <TreeNodeTemp>();

            try
            {
                Dictionary <string, object> dictionary = new Dictionary <string, object>();
                dictionary.Add("sjbm", searchid);
                DataTable table = this.baseDAO.querySQLDataTable("aisino.Fwkp.Bmgl.BMSPFL.SPFLTreeViewISHIDE", dictionary);
                for (int i = 0; i < table.Rows.Count; i++)
                {
                    TreeNodeTemp item = new TreeNodeTemp {
                        ParentBM = table.Rows[i]["SJBM"].ToString(),
                        BM       = table.Rows[i]["BM"].ToString(),
                        Name     = table.Rows[i]["MC"].ToString(),
                        Foldfile = Convert.ToInt32(table.Rows[i]["WJ"])
                    };
                    list.Add(item);
                }
                list.Sort(new Comparison <TreeNodeTemp>(StringUtils.CompareBM));
                return(list);
            }
            catch (DateBaseException)
            {
                return(list);
            }
        }
Exemple #2
0
 public static int CompareBM(TreeNodeTemp x, TreeNodeTemp y)
 {
     return(string.Compare(x.BM, y.BM));
 }