cr_tree(treeView1.Nodes[0]);
string lc_cdbms = string.Empty;
for (int i = 0; i <= ln_ljs - 1; i++)
{
if (ln_cdbm2[i] == string.Empty)
{
continue;
}
lc_cdbms = lc_cdbms + ln_cdbm2[i].Trim() + "*"; //数组加分隔符累加组成新字串
}
int ln_count = lc_cdbms.Length;
lc_cdbms = lc_cdbms.Remove(ln_count - 1, 1);
//以下是检验任一无执行命令上级菜单已授权,而所属下级菜单是否授权
xmlFile = XElement.Load(@"ftp://100.100.0.1/yhcd1/XMLCdsj.xml");
string[] lc_cd;
lc_cd = lc_cdbms.Split('*'); //字串分解并赋给数组
int ln_cdsl = lc_cd.Length;
string lc_zxml = string.Empty;
string[] lc_cd1 = new string[100]; //定义新数组
string[] lc_cd2 = new string[100];
int[] ln_yj = new int[100]; //辨别数组lc_cd[]菜单名称是否 "-"
int ln_cd1 = 0;
int ln_cd2 = 0;
for (int i = 0; i <= ln_cdsl - 1; i++)
{
ln_yj[i] = 0; //数组初始化
foreach (var p in xmlFile.Elements("cdbm"))
{
if (p.Value.ToString() == lc_cd[i])
{
if (((string)p.Attribute("cdmc")).ToString().Trim() == "-")
|