日期:2014-05-17 浏览次数:20419 次
//绑定
private void BindWeek(DataTable dtWeek)
{
DataRow dr = dtWeek.NewRow();
dr["WeekName"] = "全选";
dr["WeekID"] = "0";
dtWeek.Rows.InsertAt(dr, 0);
foreach (DataRow drs in dtWeek.Rows)
{
var lvItem = new ListViewItem();
lvItem.SubItems[0].Text = drs["WeekName"].ToString();
lv_WeekID.Items.Add(lvItem);
}
}
//取值
private PlanTeacherCourseModel GetParameter()
{
string str = "";
foreach (ListViewItem lvItem in lv_TimeRangeID.CheckedItems)
{
str += lvItem.Text + ",";
}
MessageBox.Show(str);
}