市长热线演示版

calloutoptrecordlist.aspx.cs 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  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.calloutmanage
  9. {
  10. public partial class calloutoptrecordlist : System.Web.UI.Page
  11. {
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. string sqlwhere = "F_SeatFlag=1";
  15. BindAccount(ddlAccount, sqlwhere);
  16. if (!string.IsNullOrEmpty(Request.QueryString["id"]))
  17. {
  18. txtHFId.Value = Request.QueryString["id"].Trim();
  19. }
  20. }
  21. /// <summary>
  22. ///绑定坐席列表
  23. /// </summary>
  24. /// <param name="ddl"></param>
  25. /// <param name="p_Condition"></param>
  26. private void BindAccount(DropDownList ddl, string strwhere)
  27. {
  28. T_Sys_UserAccount t = new T_Sys_UserAccount();
  29. ddl.DataSource = t.GetList(strwhere);
  30. ddl.DataValueField = "F_UserCode";
  31. ddl.DataTextField = "F_UserName";
  32. ddl.DataBind();
  33. ddl.Items.Insert(0, new ListItem("--全部--", ""));
  34. }
  35. }
  36. }