示例#1
0
 /// <summary>
 /// 提醒写日志
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void RemindwriteLog_Tick(object sender, EventArgs e)
 {
     if(DateTime.Now.Hour == 17 && DateTime.Now.Minute == 10)
     {
         if (sec == null)
         {
             sec = new Secretary(this);
             sec.Show();
             sec.SetWriteIsVis();
         }
         else
         {
             if (sec.IsDisposed)
             {
                 sec = new Secretary(this);
                 sec.Show();
             }
             sec.SetWriteIsVis();
         }
     }
 }
示例#2
0
        //设置日程提醒
        private void schedule_listen_timer_Tick(object sender, EventArgs e)
        {
            IList sl = scheduleList;
            if (sl != null && sl.Count > 0)
            {
                foreach (StaffSchedule ss in sl)
                {
                    DateTime scheduleTime = new DateTime(ss.ScheduleTime);
                    if (scheduleTime.Hour ==DateTime.Now.Hour && scheduleTime.Minute == DateTime.Now.Minute &&DateTime.Now.Year == scheduleTime.Year)
                    {
                        if (sec == null)
                        {
                            sec = new Secretary(this);
                            sec.Show();
                            sec.AddRiChengInFlow2(scheduleTime.ToString("MM-dd HH:mm"), ss.Subject);
                        }
                        else
                        {
                            if (sec.IsDisposed)
                            {
                                sec = new Secretary(this);
                                sec.Show();
                            }
                            sec.AddRiChengInFlow2(scheduleTime.ToString("MM-dd HH:mm"), ss.Subject);
                        }

                        if (scheduleList.Contains(ss))
                        {
                            scheduleList.Remove(ss);
                            break;
                        }
                    }
                }
            }
        }
示例#3
0
        private void ReceiveChattingMessage()
        {
            #region 接受聊天信息
            try
            {
                KjqbService.ChatInService[] lists7;
                lists7 = ser.SearchChatInfo((int)this.user.Id);
                for (int i = 0; i < lists7.Length; i++)
                {
                    chatinservice.Add(lists7[i]);
                    if (!IsInChatUserlist(lists7[i].SendUserId))
                    {
                        WkTUser w = new WkTUser();
                        w = (WkTUser)baseService.loadEntity(w, lists7[i].SendUserId);
                        this.chattinguserlist.Add(w);

                        if (sec == null)
                        {
                            sec = new Secretary(this);
                            sec.Show();
                            sec.AddMessageLabelInFlowPanel1(w);
                        }

                        else
                        {
                            if (sec.IsDisposed)
                            {
                                sec = new Secretary(this);
                                sec.Show();
                            }
                            sec.AddMessageLabelInFlowPanel1(w);
                        }

                        this.chattinguserlist.Add(w);
                    }

                }
                SetMessageCount(meaaageCountLabelOfXiaoXI, lists7.Length);
            }
            catch { }
            SetthechatingUserIsTwinkle();
            #endregion
        }