| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using HySoft.Common;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace HySoft.BaseCallCenter.Web.telmanage
- {
- public partial class callinreasonedit : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- LoginUser users = new LoginUser(Context);
- hidUserID.Value = users.UserID.ToString();
- if (!IsPostBack)
- {
- if (!string.IsNullOrEmpty(Request.QueryString["callid"]))
- {
- string callid = Request.QueryString["callid"].ToString();
- hidcallid.Value = callid;
- BindData(callid);
- }
- if (!string.IsNullOrEmpty(Request.QueryString["tel"]))
- {
- hidTel.Value = Request.QueryString["tel"].ToString();
- }
-
- }
- }
- private void BindData(string callid)
- {
- Model.T_Call_ReasonRecord rModel = new BLL.T_Call_ReasonRecord().GetModelList(" F_CallID=" + callid + " and F_DeleteFlag=0").FirstOrDefault();
- if (rModel != null)
- {
- hidtreecid.Value = rModel.F_LIDS;
- hidtreectext.Value = rModel.F_LNameS;
- if (rModel.F_Remark.IndexOf('|') > 0)
- {
- hidtreecqtid.Value = rModel.F_Remark.Split('|')[0];
- hidtreecqttext.Value = rModel.F_Remark.Split('|')[1];
- }
- }
- }
- }
- }
|