protected void Page_Load(object sender, EventArgs e) { string sequence = Request.QueryString["seq"]; string userId = Request.QueryString["userId"]; string from = Request.QueryString["from"]; if (!String.IsNullOrEmpty(from)) { //this.btnBack.Visible = false; } this.lblSeq.Text = sequence; this.lblWechatUser.Text = userId; AgentComplainDao agentComplainDao = new ChinaUnion_DataAccess.AgentComplainDao(); AgentComplain agentComplain = agentComplainDao.Get(int.Parse(sequence)); AgentComplainReplyDao agentComplainReplyDao = new AgentComplainReplyDao(); IList<AgentComplainReply> agentComplainReplyList = agentComplainReplyDao.GetList(sequence); if (agentComplain != null) { this.lblUserId.Text = agentComplain.userName; this.lblProcessCode.Text = agentComplain.processCode; this.lblJoinTime.Text = agentComplain.joinTime; this.lblJoinMenu.Text = agentComplain.joinMenu; this.lblComplainContent.Text = agentComplain.content; this.lblBranchCode.Text = agentComplain.processBranchCode; this.lblBranchName.Text = agentComplain.processBranchName; this.lblReplyTime.Text = agentComplain.replyTime; this.lblComment.Text = agentComplain.comment; this.lblReplyHis.Text = "<br>"; foreach (AgentComplainReply agentComplainReply in agentComplainReplyList) { this.lblReplyHis.Text += "【"+agentComplainReply.replyTime + "】" + agentComplainReply.replyContent + "<br>"; } WechatQueryLog wechatQueryLog = new ChinaUnion_BO.WechatQueryLog(); wechatQueryLog.agentName = ""; wechatQueryLog.module = Util.MyConstant.module_Complain; wechatQueryLog.subSystem = "投诉协查"; wechatQueryLog.queryTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); wechatQueryLog.queryString = ""; wechatQueryLog.wechatId = userId; WechatQueryLogDao wechatQueryLogDao = new WechatQueryLogDao(); try { wechatQueryLogDao.Add(wechatQueryLog); } catch { } } else { this.lblType.Text = "记录不存在"; } }
private void dgAgentComplain_SelectionChanged(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; if (this.dgComplain.CurrentRow != null) { if (this.dgComplain[0,this.dgComplain.CurrentRow.Index].Value != null) { this.initControl(); AgentComplain agentComplain = agentComplainDao.Get(Int32.Parse(this.dgComplain[0, this.dgComplain.CurrentRow.Index].Value.ToString())); if (agentComplain != null) { this.txtUserName.Text = agentComplain.userName; this.txtProcessCode.Text = agentComplain.processCode; this.txtJoinMenu.Text = agentComplain.joinMenu; this.txtJoinTime.Text = agentComplain.joinTime; this.txtComplainContent.Text = agentComplain.content; this.txtBranchName.Text = agentComplain.processBranchName; this.txtBranchCode.Text = agentComplain.processBranchCode; for (int i = 0; i < this.cboAgentNo.Items.Count; i++) { if (cboAgentNo.Items[i].ToString().Contains(agentComplain.agentNo)) { this.cboAgentNo.SelectedIndex = i; break; } } this.txtComent.Text = agentComplain.comment; this.dtReplyTime.Value = DateTime.Parse(agentComplain.replyTime); this.txtSequence.Text = agentComplain.sequence; AgentComplainReplyDao agentComplainReplyDao = new AgentComplainReplyDao(); IList<AgentComplainReply> agentComplainReplyList = agentComplainReplyDao.GetList(agentComplain.sequence); foreach (AgentComplainReply agentComplainReply in agentComplainReplyList) { this.txtHistory.Text += "【" + agentComplainReply.replyTime + "】" + agentComplainReply.replyContent + "\n"; } } } } this.Cursor = Cursors.Default; }