UU跑腿标准版

qcedit.aspx.cs 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 qcedit : 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. this.txtAdvise.Text = model.F_QCAdvise;
  44. this.txtQuestion.Text = model.F_QCQuestion;
  45. }
  46. }
  47. catch
  48. {
  49. }
  50. }
  51. public string GetSrc()
  52. {
  53. string res = "";
  54. try
  55. {
  56. BLL.T_Sys_SystemConfig bll_T_Sys_SystemConfig = new BLL.T_Sys_SystemConfig();
  57. string CTIserverIP = bll_T_Sys_SystemConfig.GetParamValueByParamCode("PlayPath");//CTIIP
  58. string path = Request.QueryString["path"];
  59. if (path.IndexOf(":") < 0)
  60. {
  61. res = CTIserverIP + path;
  62. }
  63. else
  64. {
  65. res = CTIserverIP + path.Substring(path.IndexOf(":")+1);
  66. //res = path.Replace("D:", CTIserverIP);
  67. }
  68. res = HttpUtility.HtmlEncode(res);
  69. }
  70. catch
  71. {
  72. }
  73. return res;
  74. }
  75. protected void btnSubmit_Click(object sender, EventArgs e)
  76. {
  77. }
  78. }
  79. }