市长热线演示版

qcshow.aspx.cs 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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.Common;
  8. namespace HySoft.BaseCallCenter.Web.qualitymanage
  9. {
  10. public partial class qcshow : System.Web.UI.Page
  11. {
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. if (!Page.IsPostBack)
  15. {
  16. try
  17. {
  18. LoginUser p_LoginUser = new LoginUser(this.Context);
  19. txtUserId.Value = p_LoginUser.UserID.ToString();
  20. txtUserName.Value = p_LoginUser.UserName.Trim();
  21. }
  22. catch { }
  23. if (!string.IsNullOrEmpty(Request.QueryString["id"]))
  24. {
  25. txtId.Value = Request.QueryString["id"].Trim();
  26. BindTelInfo(Request.QueryString["id"].Trim());
  27. }
  28. }
  29. }
  30. private void BindTelInfo(string id)
  31. {
  32. try
  33. {
  34. Model.T_Call_CallRecords_QC model = new BLL.T_Call_CallRecords_QC().GetModel(Convert.ToInt32(id));
  35. if (model != null)
  36. {
  37. this.lblCallNumber.Text = model.CallNumber;
  38. this.lblCallType.Text = model.CallType.ToString().Replace("0", "呼入").Replace("1", "呼出");
  39. this.lblBeginTime.Text = model.BeginTime.ToString();
  40. this.lblTalkLongTime.Text = model.TalkLongTime.ToString() + "秒";
  41. this.lblUserCode.Text = model.UserCode;
  42. this.lblUserName.Text = model.UserName;
  43. }
  44. }
  45. catch
  46. {
  47. }
  48. }
  49. public string GetSrc()
  50. {
  51. string res = "";
  52. try
  53. {
  54. BLL.T_Sys_SystemConfig bll_T_Sys_SystemConfig = new BLL.T_Sys_SystemConfig();
  55. string CTIserverIP = bll_T_Sys_SystemConfig.GetParamValueByParamCode("PlayPath");//CTIIP
  56. string path = Request.QueryString["path"];
  57. if (path.IndexOf(":") < 0)
  58. {
  59. res = CTIserverIP + path;
  60. }
  61. else
  62. {
  63. res = path.Replace("D:", CTIserverIP);
  64. }
  65. res = HttpUtility.HtmlEncode(res);
  66. }
  67. catch
  68. {
  69. }
  70. return res;
  71. }
  72. protected void btnSubmit_Click(object sender, EventArgs e)
  73. {
  74. }
  75. }
  76. }