Exemplo n.º 1
0
 /// <summary>
 /// 显示内容
 /// </summary>
 /// <param name="de">发送人</param>
 /// <param name="ins">发送时间</param>
 /// <param name="cont">发送内容</param>
 /// <param name="type">登陆人类别</param>
 /// <param name="wardName">发送人病区</param>
 private void JudgeShow(string de, string ins, string cont, string type, string wardName)
 {
     if (type == "1")
     {
         Notice n = new Notice(de, ins, cont);
         flp.Controls.Add(n);
     }
     else
     {
         MyTalkLog mtl = new MyTalkLog(de, ins, cont, wardName, DemployName, TalkName, login);
         flp.Controls.Add(mtl);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 显示内容
        /// </summary>
        /// <param name="de">发送人</param>
        /// <param name="ins">发送时间</param>
        /// <param name="cont">发送内容</param>
        /// <param name="type">登陆人类别</param>
        /// <param name="wardName">发送人病区</param>
        private void JudgeShow(string de,string ins,string cont,string type,string wardName)
        {
            if (type == "1")
            {
                Notice n = new Notice(de, ins, cont);
                flp.Controls.Add(n);

            }
            else
            {
                MyTalkLog mtl = new MyTalkLog(de, ins, cont, wardName, label2.Text, label3.Tag.ToString(),loginType);
                flp.Controls.Add(mtl);
            }
        }
Exemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (label3.Text == "")
            {
                MessageBox.Show("请选择接收人");
                return;
            }
            if (richTextBox1.Text.ToString().Trim() == "")
            {
                return; 
            }

            db.SetPIVAsDB(sql.InsertTalkLog(Demployeeid, richTextBox1.Text, label3.Tag.ToString(), label4.Tag.ToString(),"0"));
            MyTalkLog myl = new MyTalkLog(label2.Text, DateTime.Now.ToString(), richTextBox1.Text, label4.Text, label2.Text,label3.Tag.ToString(), loginType);
            flp.Controls.Add(myl);
            flp.ScrollControlIntoView(flp.Controls[flp.Controls.Count - 1]);
         
            richTextBox1.Text = "";
        }