Ejemplo n.º 1
0
 /// <summary>
 /// 이관업무받을때 이관화면 팝업
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void PopUpNotifyOnCustomerInfoTransfered(object sender, CustomEventArgs e)//pass|ani|senderID|receiverID|TONG_DATE|TONG_TIME|CustomerName
 {
     try
     {
         string[] tempMsg = (string[])e.GetItem;
         if (!tempMsg[2].Equals(ConfigHelper.Id))
         {
             notifyform = new NotifyForm(tempMsg);
             notifyform.Focus();
             notifyform.Show();
         }
     }
     catch (Exception ex)
     {
         Logger.error(ex.ToString());
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 이관업무받을때 이관화면 팝업
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void PopUpNotifyOnCustomerInfoTransfered(object sender, CustomEventArgs e)//pass|ani|senderID|receiverID|TONG_DATE|TONG_TIME|CustomerName
 {
     try
     {
         string[] tempMsg = (string[])e.GetItem;
         if (!tempMsg[2].Equals(ConfigHelper.Id))
         {
             notifyform = new NotifyForm(tempMsg);
             notifyform.Focus();
             notifyform.Show();
         }
     }
     catch (Exception ex)
     {
         Logger.error(ex.ToString());
     }
 }
Ejemplo n.º 3
0
        private void timerForNotify_Tick(object sender, EventArgs e)
        {
            try
            {
                if (notifyform != null)
                {
                    timerForNotify.Stop();
                    int height_point = 0;

                    if (TransferNotiArea.Count > 0)
                    {
                        foreach (DictionaryEntry de in TransferNotiArea)
                        {
                            if (de.Value.ToString().Equals("0"))
                            {
                                int temp = Convert.ToInt32(de.Key.ToString());
                                if (temp > height_point)
                                {
                                    height_point = temp;
                                }
                            }
                            else
                            {
                                logWrite("TransferNotiArea[" + de.Key.ToString() + "] = " + de.Value.ToString());
                                logWrite(de.Key.ToString() + " is not 0");
                            }
                        }

                        if (height_point == 0)
                        {
                            //가장 오래된 태그폼 삭제
                            NoParamDele dele = new NoParamDele(closeNoticeForm);
                            Invoke(dele);

                            foreach (DictionaryEntry de in TransferNotiArea)
                            {
                                if (de.Value.ToString().Equals("0"))
                                {
                                    int temp = Convert.ToInt32(de.Key.ToString());
                                    if (temp > height_point)
                                    {
                                        height_point = temp;
                                    }
                                }
                                else
                                {
                                    logWrite("TransferNotiArea[" + de.Key.ToString() + "] = " + de.Value.ToString());
                                    logWrite(de.Key.ToString() + " is not 0");
                                }
                            }
                        }
                    }
                    TransferNotiForm miniform = new TransferNotiForm();
                    miniform.pbx_icon.Image = global::Client.Properties.Resources.img_customer;
                    miniform.MouseClick += new MouseEventHandler(miniform_MouseClick);
                    miniform.pbx_icon.MouseClick+=new MouseEventHandler(pbx_icon_MouseClick_for_Transfer);
                    miniform.label_Customer.MouseClick += new MouseEventHandler(label_Customer_MouseClick);
                    miniform.label_from.MouseClick += new MouseEventHandler(label_Customer_MouseClick);
                    miniform.label_Customer.Text = notifyform.label_Customer.Text;
                    miniform.label_from.Text = notifyform.label_sender.Text;
                    miniform.label_ani.Text = notifyform.label_ani.Text;
                    miniform.label_date.Text = notifyform.label_TONGDATE.Text;
                    miniform.label_time.Text = notifyform.label_TONGTIME.Text;
                    miniform.label_senderid.Text = notifyform.label_senderid.Text;
                    screenWidth = Screen.PrimaryScreen.WorkingArea.Width;
                    screenHeight = Screen.PrimaryScreen.WorkingArea.Height;
                    miniform.SetBounds(screenWidth - miniform.Width, height_point, miniform.Width, miniform.Height);
                    notifyform.Close();
                    notifyform = null;
                    miniform.TopLevel = true;
                    miniform.Show();
                    TransferNotiArea[height_point.ToString()] = "1";
                    NotiFormList.Add(miniform);
                }
            }
            catch (Exception ex)
            {
                logWrite(ex.ToString());
            }
        }
Ejemplo n.º 4
0
        private void notifyTransfer(string[] tempMsg)//pass|ani|senderID|receiverID|TONG_DATE|TONG_TIME|CustomerName
        {
            try
            {
                notifyform = new NotifyForm();
                notifyform.button1.MouseClick += new MouseEventHandler(NotifyForm_Confirm_MouseClick);
                notifyform.Tag = tempMsg[1];
                notifyform.label_TONGDATE.Text = tempMsg[4];
                notifyform.label_TONGTIME.Text = tempMsg[5];
                notifyform.label_ani.Text = tempMsg[1];
                notifyform.label_senderid.Text = tempMsg[2];
                if (tempMsg.Length > 6)
                {
                    if (tempMsg[6].Length > 0)
                    {
                        notifyform.label_Customer.Text = tempMsg[6];
                    }
                    else
                    {
                        notifyform.label_Customer.Text = tempMsg[1];
                    }

                    string senderName = GetUserName(tempMsg[2]);
                    notifyform.label_sender.Text = "from " + senderName + "(" + tempMsg[2] + ")";
                }

                notifyform.Focus();
                notifyform.Show();
                timerForNotify.Start();
                
            }
            catch (Exception ex)
            {
                
            }
        }