int y1;
int y2;
int y3;
operation oper = new operation();
oper.CdbmkzTable();
oper.myViews.Sort = "zim";
string lc_cdbm1 = "";
string lc_cdbm2 = "";
string lc_cdbm3 = "";
int ln_test;
int ln_zim;
//添加一级菜单项
for (int i = 0; i <= x1 - 1; i++)
{
lc_cdbm1 = cdbm1[i].ToString();
oper.Test(lc_cdbm1, out ln_test); //检测 cdbm 某一位是否数字
if (ln_test == 1) //不是数字转换为数字
{
ln_zim = oper.myViews.Find(lc_cdbm1);
y1 = int.Parse(oper.myViews[ln_zim]["xuhao"].ToString());
}
else
{
y1 = int.Parse(cdbm1[i]);
}
if (cdbj1[i] == 0) //标记为0菜单隐藏
{
cdmc1[i].Visible = false;
cdmc1[i].Enabled = false;
}
|