private void perenos_btn_Click(object sender, EventArgs e) { if (m_TaskInfo == null) { return; } m_TaskInfo.DatePerenos = dateTimePickerperenos.Value; perenos(); DatesList.AddString("Запрос переноса на: " + m_TaskInfo.DatePerenos); m_TaskInfo.Status = CoreLib.TaskStatus.OnSoglPerenos; if (PerenosPressed != null) { PerenosPressed(m_TaskInfo, null); } }
private void agreement_send_btn_Click(object sender, EventArgs e) { if (m_TaskInfo == null) { return; } if (m_TaskInfo.Status == CoreLib.TaskStatus.OnSogl || m_TaskInfo.Status == CoreLib.TaskStatus.OnUtv || m_TaskInfo.Status == CoreLib.TaskStatus.OnSoglPerenos) { if (isp_comment.Text.Length > 0) { m_TaskInfo.Chat.Add(m_CurrentIsp.Name + "(" + DateTime.Now.ToString("dd.MM.yyyy") + ")" + ": " + isp_comment.Text); isp_comment.Text = ""; toolTipchat.SetToolTip(isp_comment, m_TaskInfo.GetChatOneString()); // messages_txb.Text = m_TaskInfo.GetChatOneString(); messages_txb.Lines = m_TaskInfo.Chat.ToArray(); if (SendMsg != null) { SendMsg(m_TaskInfo, null); } } } if (m_TaskInfo.Status == CoreLib.TaskStatus.InProgress) { if (isp_comment.Text.Length > 0) { m_TaskInfo.Chat.Add(m_CurrentIsp.Name + "(" + DateTime.Now.ToString("dd.MM.yyyy") + ")" + ": " + isp_comment.Text); toolTipchat.SetToolTip(isp_comment, m_TaskInfo.GetChatOneString()); // messages_txb.Text = m_TaskInfo.GetChatOneString(); messages_txb.Lines = m_TaskInfo.Chat.ToArray(); m_TaskInfo.DateIspZapros = DateTime.Now; DatesList.AddString("Запрос на согл/утв: " + m_TaskInfo.DateIspZapros); isp_comment.Text = ""; if (m_TaskInfo.UserAgreementArray.Count > 0) { m_TaskInfo.Status = CoreLib.TaskStatus.OnSogl; } else { m_TaskInfo.Status = CoreLib.TaskStatus.OnUtv; } perenos(); if (SendOnSoglUtv != null) { SendOnSoglUtv(m_TaskInfo, null); } } } if (m_TaskInfo.Status == CoreLib.TaskStatus.Closed) { if (CloseTask != null) { CloseTask(m_TaskInfo, null); } } }