Exemplo n.º 1
0
        /// <summary>
        /// 选择一条消息,回复消息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button3_Click(object sender, EventArgs e)
        {
            if (this.fpSpread1_Sheet1.RowCount == 0)
            {
                return;
            }

            string messageId = this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.ActiveRowIndex, 5].Text;

            try
            {
                Neusoft.HISFC.Models.Base.Message message = Neusoft.HISFC.BizProcess.Factory.Function.IntegrateEPR.QueryMessageById(messageId);

                message.IsRecieved = true;

                message.ReplyType = 0;

                this.UpdateState(message);

                frmReply reply = new frmReply(message, this.FindForm());

                reply.ShowDialog();

                InitMessageData();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 双击回复事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void fpSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            string messageId = this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.ActiveRowIndex, 5].Text;

            this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.ActiveRowIndex, 0].Value = Properties.Resources.open;

            try
            {
                Neusoft.HISFC.Models.Base.Message message = Neusoft.HISFC.BizProcess.Factory.Function.IntegrateEPR.QueryMessageById(messageId);

                message.IsRecieved = true;

                message.ReplyType = 0;

                this.UpdateState(message);

                frmReply reply = new frmReply(message, this.FindForm());

                reply.ShowDialog();

                InitMessageData();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }