using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace HySoft.BaseCallCenter.Web.reportmanage.operationdata { public partial class ZuoXiReport : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { begintime.Text = DateTime.Now.ToString("yyyy-MM-01"); endtime.Text = DateTime.Now.ToString("yyyy-MM-dd"); if (!this.IsPostBack) { DataTable dt = DBUtility.DbHelperSQL.Query("select F_DeptId,F_DeptName,F_Remark from T_Sys_Department where F_ParentId!=0 and F_State=0").Tables[0]; this.dtDpt.DataTextField = "F_DeptName"; this.dtDpt.DataValueField = "F_DeptId"; this.dtDpt.DataSource = dt; this.dtDpt.DataBind(); this.dtDpt.Items.Insert(0, new ListItem("请选择")); this.dtDpt.SelectedIndex = 0; } } } }