private void GetList() { DataTable dt = tmo_order.GetDayPlanOrder(txtcustname.Text, txtconno.Text, txtyewuyuan.Text, txtstlgrd.Text, txtStart.Value, txtEnd.Value, droptype.SelectedItem.Value, txtspec.Text, txtmatcode.Text).Tables[0]; if (dt.Rows.Count > 0) { rptList.DataSource = dt; rptList.DataBind(); } else { rptList.DataSource = null; rptList.DataBind(); } }