if (!IsPostBack)
{
//没有问题
(new DDL()).DDB_List(TypeNumber, "Select * From Basic_MaterialType order by P_Order", "0");
}
}
catch (Exception ex) { Alert.ShowInTop(ex.ToString(), "加载页面失败", MessageBoxIcon.Error); }
}
protected void ClassID_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
if (ClassID.SelectedIndex != -1)
{
if (ClassID.SelectedValue.ToString() == "5" || ClassID.SelectedValue.ToString() == "7")
{
// MaterialSizeTypeNumber.Items.Clear();
(new DDL()).DDB_List(MaterialSizeTypeNumber, "Select * From MaterialSizeType Where IsHanHeJian=1 order by P_Order", "0");
}
else
{
// MaterialSizeTypeNumber.Items.Clear();
(new DDL()).DDB_List(MaterialSizeTypeNumber, "Select * From MaterialSizeType Where IsHanHeJian=0 order by P_Order", "0");
}
}
}
catch (Exception ex)
{
Alert.ShowInTop("失败_ClassID_SelectedIndexChanged!!" + ex.Message);
}
}