市长热线演示版

CallRecInfList.aspx.cs 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. using HySoft.BaseCallCenter.BLL;
  8. namespace HySoft.BaseCallCenter.Web.reportmanage.operationdata
  9. {
  10. public partial class CallRecInfList : System.Web.UI.Page
  11. {
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. if (!this.IsPostBack)
  15. {
  16. string sqlwhere = "F_SeatFlag=1";
  17. BindAccount(ddlAccount, sqlwhere);
  18. }
  19. }
  20. /// <summary>
  21. ///绑定坐席列表
  22. /// </summary>
  23. /// <param name="ddl"></param>
  24. /// <param name="p_Condition"></param>
  25. private void BindAccount(DropDownList ddl, string strwhere)
  26. {
  27. T_Sys_UserAccount t = new T_Sys_UserAccount();
  28. ddl.DataSource = t.GetList(strwhere);
  29. ddl.DataValueField = "F_UserCode";
  30. ddl.DataTextField = "F_UserName";
  31. ddl.DataBind();
  32. ddl.Items.Insert(0, new ListItem("--全部--", ""));
  33. }
  34. }
  35. }