private void DeclineCommandProcess() { isAnswerMessage = false; if (!isVideo) { callBusiness.RejectCall(); //超时不做这个动作,只关界面 2015/7/28 } else { MakeCallBusiness bus = new MakeCallBusiness(); bus.RejectVideoCall(); } winCallReceive.isCloseButton = false; //7/27 winCallReceive.lync.setBtn(); //先设置图形 //if (winCallReceive.lync.toolBar.JointType == PhoneJointType.PC_Device) //{ // if (winCallReceive.lync.winCall.btnVideo.IsEnabled == false) // { // winCallReceive.lync.winCall.btnVideo.IsEnabled = true; // UpdateImage.UpdateData(winCallReceive.lync.winCall.imgVideo, "/Image/call/video_1.png"); // } //} if (winCallReceive.Visibility == Visibility.Visible) { winCallReceive.Close(); winCallReceive.lync.isHave = false; } string name = StringHelper.GetSubString(winCallReceive.callName); string url = StringHelper.GetLyncUrl(name); HistoryQueryBusiness query = new HistoryQueryBusiness(); query.InsertCallHistory(CallHistoryType.HISTORY_CALL_MISSED, url, name, -1); }
private void DeclineCommandProcess() { isAnswerMessage = false; if (!isVideo) { callBusiness.RejectCall(); //超时不做这个动作,只关界面 2015/7/28 } else { MakeCallBusiness bus = new MakeCallBusiness(); bus.RejectVideoCall(); } winCallReceive.isCloseButton = false; //7/27 winCallReceive.lync.setBtn(); //先设置图形 //if (winCallReceive.lync.toolBar.JointType == PhoneJointType.PC_Device) //{ // if (winCallReceive.lync.winCall.btnVideo.IsEnabled == false) // { // winCallReceive.lync.winCall.btnVideo.IsEnabled = true; // UpdateImage.UpdateData(winCallReceive.lync.winCall.imgVideo, "/Image/call/video_1.png"); // } //} if (winCallReceive.Visibility == Visibility.Visible ) { winCallReceive.Close(); winCallReceive.lync.isHave = false; } string name = StringHelper.GetSubString(winCallReceive.callName); string url = StringHelper.GetLyncUrl(name); HistoryQueryBusiness query = new HistoryQueryBusiness(); query.InsertCallHistory(CallHistoryType.HISTORY_CALL_MISSED, url, name, -1); }
void InsertConfHistoryThread() { lock (WinCall.lockObject) { try { LogManager.SystemLog.Info("InsertConfHistory Monitor.Enter"); if (SingletonObj.LoginInfo == null) { return; } List<UCContact> contactList = winCall.listContact.ItemsSource as List<UCContact>; if (contactList == null || contactList.Count == 0) { return; } HistoryQueryBusiness query = new HistoryQueryBusiness(); int _duration = winCall.GetAllSeconds(); string str = ""; StringBuilder _historyID = new StringBuilder(100); for (int index = 0; index < contactList.Count; index++) { if (contactList[index].IsLeader) { str = contactList[index].UserName; string strSIP = ""; if (contactList[index].UCMemberType == MemberType.UC_IPPHONE) { strSIP = str; } else { strSIP = "sip:" + str; } query.InsertConvHistory(strSIP, str, _duration, _historyID); break; } } for (int index = 0; index < contactList.Count; index++) { if (!contactList[index].IsLeader) { str = StringHelper.GetSubString(contactList[index].UserName); string url = StringHelper.GetLyncUrl(str); query.InsertConvHistoryPart(_historyID.ToString(), url == "" ? str : url, str); } } } finally { LogManager.SystemLog.Info("InsertConfHistory Monitor.Exit"); } } }
void InsertCallHistoryThread() { lock (WinCall.lockObject) { try { LogManager.SystemLog.Info("InsertCallHistory Monitor.Enter"); string lyncName = ""; if (SingletonObj.LoginInfo == null) { return; } else { lyncName = SingletonObj.LoginInfo.LyncName; } HistoryQueryBusiness query = new HistoryQueryBusiness(); string url = ""; string name = ""; List<UCContact> contactList = winCall.listContact.ItemsSource as List<UCContact>; if (contactList == null || contactList.Count == 0) { return; } UCContact uc = contactList.Find((x) => { return x.UserName != lyncName; }); if (uc == null) { return; } name = StringHelper.GetSubString(uc.UserName); if (uc.UCMemberType == MemberType.UC_IPPHONE) { url = name; } else { url = StringHelper.GetLyncUrl(name); } int dt = winCall.GetAllSeconds(); query.InsertCallHistory(winCall.callType, url == "" ? name : url, name, dt); } finally { LogManager.SystemLog.Info("InsertCallHistory Monitor.Exit"); } } }