2024年5月30日发(作者:)

{

if (e().ToString() == "")

{

//("id:" + + " text:" + ((Label)ctr).Text + "

");

if (ng().Length == 6)

{

int LabelId1 = 32(ing(5, 1).ToString().Trim());

((Label)ctr).Text = eName(LabelId1);

}

if (ng().Length == 7)

{

int LabelId2 = 32(ing(5, 2).ToString().Trim());

((Label)ctr).Text = eName(LabelId2);

}

}

}

}

///

/// 遍历dropdownlist赋值

///

protected void SetDropDownListValue()

{

foreach (Control ctr in ls)

{

if (e().ToString() == "wnList")

{

//("id:" + + " text:" + ((DropDownList)ctr).ng() + "

");

if (ng().Length == 13)

{

int LabelId1 = 32(ing(12, 1).ToString().Trim());

((DropDownList)ctr).DataSource = (LabelId1);

((DropDownList)ctr).DataValueField = "mName";

((DropDownList)ctr).DataTextField = "mCode";

((DropDownList)ctr).DataBind();

}

if (ng().Length == 14)

{

int LabelId2 = 32(ing(12, 2).ToString().Trim());

((DropDownList)ctr).DataSource = (LabelId2);

((DropDownList)ctr).DataValueField = "mName";

((DropDownList)ctr).DataTextField = "mCode";

((DropDownList)ctr).DataBind();

}

}

}

}