public ITenderQuestionDetailForm(gpTfOperationWebDO gptfo) { InitializeComponent(); StringBuilder sb = new StringBuilder(); sb.AppendLine(string.Format("招标文件操作id:{0}", gptfo.gtoId)); sb.AppendLine(string.Format("招标文件操作code:{0}", gptfo.gtoCode)); sb.AppendLine(string.Format("招标项目id:{0}", gptfo.gtpId)); sb.AppendLine(string.Format("标段(包)id:{0}", gptfo.gsId)); sb.AppendLine(string.Format("招标文件id:{0}", gptfo.gtfId)); sb.AppendLine(string.Format("解答标题 :{0}", gptfo.gtoTitle)); sb.AppendLine(string.Format("解答类型:{0}", gptfo.gtoType)); sb.AppendLine(string.Format("解答内容:{0}", gptfo.gtoContent)); sb.AppendLine(string.Format("解答人id:{0}", gptfo.gtoAnswerId)); sb.AppendLine(string.Format("解答人企业id:{0}", gptfo.gtoAnswerCoId)); sb.AppendLine(string.Format("解答时间:{0}", gptfo.gtoAnswerTime)); sb.AppendLine(string.Format("解答文件id:{0}", gptfo.gtoAnswerFileId)); sb.AppendLine(string.Format("状态 :{0}", gptfo.state)); sb.AppendLine(string.Format("备注:{0}", gptfo.remark)); sb.AppendLine(string.Format("问题提出人id:{0}", gptfo.optId)); sb.AppendLine(string.Format("问题提出人企业id:{0}", gptfo.optCoId)); sb.AppendLine(string.Format("问题提出时间:{0}", gptfo.optTime)); sb.AppendLine(string.Format("批次:{0}", gptfo.gtoBatch)); sb.AppendLine(string.Format("发布状态:{0}", gptfo.sendState)); sb.AppendLine(string.Format("发布人id:{0}", gptfo.sendId)); sb.AppendLine(string.Format("发布企业id:{0}", gptfo.sendCoId)); sb.AppendLine(string.Format("发布时间:{0}", gptfo.sendTime)); txtDetail.AppendText(sb.ToString()); }
private void btnOK_Click(object sender, EventArgs e) { try { baseUserWebDO user = Cache.GetInstance().GetValue <baseUserWebDO>("login"); gpTfOperationWebDO gptfo = gpTfOperationService.FindById(this.gtoId); gptfo.gtoContent = this.txtContent.Text.Trim(); gptfo.gtoAnswerId = user.auID; gptfo.gtoAnswerCoId = user.acId; gptfo.gtoAnswerTime = DateTime.Now; if (gpTfOperationService.ReplayQuestion(gptfo)) { this.DialogResult = DialogResult.OK; } else { MetroMessageBox.Show(this, "操作失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } } catch (Exception ex) { log.Error(ex); MetroMessageBox.Show(this, "操作失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void grdITQuest_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) { return; } gpTfOperationWebDO gptfo = this.grdITQuest.Rows[e.RowIndex].Tag as gpTfOperationWebDO; if (e.ColumnIndex == this.colDetail.Index) { ITenderQuestionDetailForm iTenderQuestionDetailForm = new ITenderQuestionDetailForm(gptfo); iTenderQuestionDetailForm.ShowDialog(this); iTenderQuestionDetailForm.Dispose(); } else if (e.ColumnIndex == this.colReplayQuestion.Index) { ReplayQuestionForm replayQuestionForm = new ReplayQuestionForm(gpTfOperationService, gptfo.gtoId); replayQuestionForm.ShowDialog(this); replayQuestionForm.Dispose(); } }
/// <summary> /// ReplayQuestion /// </summary> /// <param name="gtowd">gtowd</param> /// <returns>bool</returns> public bool ReplayQuestion(gpTfOperationWebDO gtowd) { return(this.wsAgent.replayQuestions(gtowd).success); }