UU跑腿标准版

callinreasonedit.aspx.cs 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using HySoft.Common;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. namespace HySoft.BaseCallCenter.Web.telmanage
  9. {
  10. public partial class callinreasonedit : System.Web.UI.Page
  11. {
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. LoginUser users = new LoginUser(Context);
  15. hidUserID.Value = users.UserID.ToString();
  16. if (!IsPostBack)
  17. {
  18. if (!string.IsNullOrEmpty(Request.QueryString["callid"]))
  19. {
  20. string callid = Request.QueryString["callid"].ToString();
  21. hidcallid.Value = callid;
  22. BindData(callid);
  23. }
  24. if (!string.IsNullOrEmpty(Request.QueryString["tel"]))
  25. {
  26. hidTel.Value = Request.QueryString["tel"].ToString();
  27. }
  28. }
  29. }
  30. private void BindData(string callid)
  31. {
  32. Model.T_Call_ReasonRecord rModel = new BLL.T_Call_ReasonRecord().GetModelList(" F_CallID=" + callid + " and F_DeleteFlag=0").FirstOrDefault();
  33. if (rModel != null)
  34. {
  35. hidtreecid.Value = rModel.F_LIDS;
  36. hidtreectext.Value = rModel.F_LNameS;
  37. if (rModel.F_Remark.IndexOf('|') > 0)
  38. {
  39. hidtreecqtid.Value = rModel.F_Remark.Split('|')[0];
  40. hidtreecqttext.Value = rModel.F_Remark.Split('|')[1];
  41. }
  42. }
  43. }
  44. }
  45. }