private void MapAreaRoomControl_MouseUp(object sender,MouseEventArgs e)
 {
     if(!_allowClickOptions || _phoneCur==null) {
         return;//disable click options in setup window.
     }
     if(e==null || e.Button!=MouseButtons.Right) {
         if(e.Button==MouseButtons.Left && !IsFlashing && Status!="OnWay") {
             if(_rectName.Contains(e.Location)) {
                 PhoneUI.EmployeeSettings(_phoneCur);
                 return;
             }
             if(_rectPhone.Contains(e.Location) && _phoneCur.PatNum!=0) {
                 OnGoToChanged();
             }
         }
         return;
     }
     bool allowStatusEdit=ClockEvents.IsClockedIn(EmployeeNum);
     if(EmployeeNum==Security.CurUser.EmployeeNum) {//can always edit yourself
         allowStatusEdit=true;
     }
     if(Status==Phones.ConvertClockStatusToString(ClockStatusEnum.NeedsHelp)) {
         //Always allow any employee to change any other employee from NeedsAssistance to Available
         allowStatusEdit=true;
     }
     string statusOnBehalfOf=EmployeeName;
     bool allowSetSelfAvailable=false;
     if(!ClockEvents.IsClockedIn(EmployeeNum) //No one is clocked in at this extension.
         && !ClockEvents.IsClockedIn(Security.CurUser.EmployeeNum)) //This user is not clocked in either.
     {
         //Vacant extension and this user is not clocked in so allow this user to clock in at this extension.
         statusOnBehalfOf=Security.CurUser.UserName;
         allowSetSelfAvailable=true;
     }
     AddToolstripGroup("menuItemStatusOnBehalf","Status for: "+statusOnBehalfOf);
     AddToolstripGroup("menuItemRingGroupOnBehalf","Queues for ext: "+Extension.ToString());
     AddToolstripGroup("menuItemClockOnBehalf","Clock event for: "+EmployeeName);
     AddToolstripGroup("menuItemCustomer","Customer: "+_phoneCur.CustomerNumber);
     AddToolstripGroup("menuItemEmployee","Employee: "+EmployeeName);
     SetToolstripItemText("menuItemAvailable",allowStatusEdit || allowSetSelfAvailable);
     SetToolstripItemText("menuItemTraining",allowStatusEdit);
     SetToolstripItemText("menuItemTeamAssist",allowStatusEdit);
     SetToolstripItemText("menuItemNeedsHelp",allowStatusEdit);
     SetToolstripItemText("menuItemWrapUp",allowStatusEdit);
     SetToolstripItemText("menuItemOfflineAssist",allowStatusEdit);
     SetToolstripItemText("menuItemUnavailable",allowStatusEdit);
     SetToolstripItemText("menuItemTCResponder",allowStatusEdit);
     SetToolstripItemText("menuItemBackup",allowStatusEdit);
     SetToolstripItemText("menuItemLunch",allowStatusEdit);
     SetToolstripItemText("menuItemHome",allowStatusEdit);
     SetToolstripItemText("menuItemBreak",allowStatusEdit);
     menuItemGoTo.Enabled=true;
     if(_phoneCur.PatNum==0) {//disable go to if not a current patient
         menuItemGoTo.Enabled=false;
     }
     Point p=new Point(Location.X+e.Location.X,Location.Y+e.Location.Y);
     menuStatus.Show(Cursor.Position);
 }
 private void ShowMenuStatus(Point location, Phone phoneCur)
 {
     if (phoneCur == null)
     {
         return;
     }
     PhoneUI.BuildMenuStatus(menuStatus, phoneCur);
     menuStatus.Show(location);
 }
 private void toggleHelp_Click(object sender, EventArgs e)
 {
     if (phoneTile.PhoneCur.ClockStatus == ClockStatusEnum.NeedsHelp ||
         phoneTile.PhoneCur.ClockStatus == ClockStatusEnum.HelpOnTheWay)
     {
         PhoneUI.Available(phoneTile);
     }
     else
     {
         PhoneUI.NeedsHelp(phoneTile);
     }
     FillTile();
 }
Exemple #4
0
 private void labelStatusAndNote_MouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button != MouseButtons.Right)
     {
         return;
     }
     if (_phoneCur == null)
     {
         return;
     }
     OnSelectedTileChanged();
     PhoneUI.BuildMenuStatus(MenuStatus, _phoneCur);
     MenuStatus.Show(labelStatusAndNote, e.Location);
 }
 private void menuItemHome_Click(object sender, EventArgs e)
 {
     PhoneUI.Home(phoneTile);
     FillTile();
 }
 private void menuItemQueueBackup_Click(object sender, EventArgs e)
 {
     PhoneUI.QueueBackup(phoneTile);
 }
        //RingGroups---------------------------------------------------

        private void menuItemQueueTech_Click(object sender, EventArgs e)
        {
            PhoneUI.QueueTech(phoneTile);
        }
 public void SetTeamAssist()
 {
     PhoneUI.TeamAssist(phoneTile);
     FillTile();
 }
 private void menuItemBackup_Click(object sender, EventArgs e)
 {
     PhoneUI.Backup(phoneTile);
     FillTile();
 }
 private void menuItemOfflineAssist_Click(object sender, EventArgs e)
 {
     PhoneUI.OfflineAssist(phoneTile);
     FillTile();
 }
Exemple #11
0
 private void menuItemQueueNone_Click(object sender, EventArgs e)
 {
     PhoneUI.QueueNone(selectedTile);
 }
Exemple #12
0
 private void menuItemEmployeeSettings_Click(object sender, EventArgs e)
 {
     PhoneUI.EmployeeSettings(selectedTile);
     FillTiles(true);
 }
Exemple #13
0
 private void menuItemTCResponder_Click(object sender, EventArgs e)
 {
     PhoneUI.TCResponder(selectedTile);
     FillTiles(true);
 }
Exemple #14
0
 private void menuItemUnavailable_Click(object sender, EventArgs e)
 {
     PhoneUI.Unavailable(selectedTile);
     FillTiles(true);
 }
Exemple #15
0
 private void menuItemOfflineAssist_Click(object sender, EventArgs e)
 {
     PhoneUI.OfflineAssist(selectedTile);
     FillTiles(true);
 }
Exemple #16
0
 private void menuItemWrapUp_Click(object sender, EventArgs e)
 {
     PhoneUI.WrapUp(selectedTile);
     FillTiles(true);
 }
 private void menuItemWrapUp_Click(object sender, EventArgs e)
 {
     PhoneUI.WrapUp(phoneTile);
     FillTile();
 }
Exemple #18
0
        //Timecard---------------------------------------------------

        private void menuItemLunch_Click(object sender, EventArgs e)
        {
            PhoneUI.Lunch(selectedTile);
            FillTiles(true);
        }
 private void menuItemUnavailable_Click(object sender, EventArgs e)
 {
     PhoneUI.Unavailable(phoneTile);
     FillTile();
 }
Exemple #20
0
 private void menuItemHome_Click(object sender, EventArgs e)
 {
     PhoneUI.Home(selectedTile);
     FillTiles(true);
 }
 public void SetAvailable()
 {
     PhoneUI.Available(phoneTile);
     FillTile();
 }
Exemple #22
0
 private void menuItemBreak_Click(object sender, EventArgs e)
 {
     PhoneUI.Break(selectedTile);
     FillTiles(true);
 }
 public void SetTCResponder()
 {
     PhoneUI.TCResponder(phoneTile);
     FillTile();
 }
 private void menuItemManage_Click(object sender, EventArgs e)
 {
     PhoneUI.Manage(phoneTile);
 }
 private void menuItemQueueDefault_Click(object sender, EventArgs e)
 {
     PhoneUI.QueueDefault(phoneTile);
 }
 private void menuItemAdd_Click(object sender, EventArgs e)
 {
     PhoneUI.Add(phoneTile);
 }
        //Timecard---------------------------------------------------

        private void menuItemLunch_Click(object sender, EventArgs e)
        {
            PhoneUI.Lunch(phoneTile);
            FillTile();
        }
 private void menuItemTraining_Click(object sender, EventArgs e)
 {
     PhoneUI.Training(phoneTile);
     FillTile();
 }
 private void menuItemBreak_Click(object sender, EventArgs e)
 {
     PhoneUI.Break(phoneTile);
     FillTile();
 }
 private void menuItemNeedsHelp_Click(object sender, EventArgs e)
 {
     PhoneUI.NeedsHelp(phoneTile);
     FillTile();
 }