private void wbQueueNumber_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { wbQueueNumber.InvokeScript("createEvent", JsonConvert.SerializeObject(_jsCallCS.GetType().GetMethods().Where(d => d.IsPublic && !d.IsVirtual && !d.IsSecuritySafeCritical).ToArray().Select(d => d.Name))); wbQueueNumber.LoadPageHtml("QueueNumber.html"); ClockStart(); RefreshQueueNumbers(); }
private void LayerWeb_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { LogManager.Debug("WebBrowser Document Completed"); LayerWeb.InvokeScript("createEvent", JsonConvert.SerializeObject(_jsCallCS.GetType().GetMethods().Where(d => d.IsPublic && !d.IsVirtual && !d.IsSecuritySafeCritical).ToArray().Select(d => d.Name))); if (_isFirstTimeLoaded) { // Start page //NavigateTo(NavigatorEnums.Authentication_SmartCard); string startFrom = System.Configuration.ConfigurationManager.AppSettings["startFrom"]; // 50.132 //string superviseeId = "2FFD1A82-E5EC-4884-A5C6-1A68F661DAED"; //string dutyOfficerId = "9903e059-7209-45b6-a889-6c4cfdfaeea3"; // 1.120 //string superviseeId = "BEA35A8C-097E-41F2-94BE-6EE7228DA696"; //string dutyOfficerId = "f1748cb4-3bb5-4129-852d-2aba28bb8cec"; string superviseeId = System.Configuration.ConfigurationManager.AppSettings["superviseeId"]; string dutyOfficerId = System.Configuration.ConfigurationManager.AppSettings["dutyOfficerId"]; Session session = Session.Instance; if (startFrom == "Supervisee") { Trinity.BE.User user = new DAL_User().GetUserByUserId(superviseeId).Data; session[CommonConstants.USER_LOGIN] = user; session.IsSmartCardAuthenticated = true; session.IsFingerprintAuthenticated = true; NavigateTo(NavigatorEnums.Supervisee); } else if (startFrom == "Authentication_Fingerprint") { Trinity.BE.User user = new DAL_User().GetUserByUserId(superviseeId).Data; session[CommonConstants.USER_LOGIN] = user; session.IsSmartCardAuthenticated = true; session.IsFingerprintAuthenticated = true; NavigateTo(NavigatorEnums.Authentication_Fingerprint); } else if (startFrom == "Authentication_NRIC") { Trinity.BE.User user = new DAL_User().GetUserByUserId(dutyOfficerId).Data; session[CommonConstants.USER_LOGIN] = user; session.IsSmartCardAuthenticated = true; session.IsFingerprintAuthenticated = true; NavigateTo(NavigatorEnums.Authentication_NRIC); } else { NavigateTo(NavigatorEnums.Authentication_SmartCard); } _isFirstTimeLoaded = false; // LayerWeb initiation is compeleted, update application status ApplicationStatusManager.Instance.LayerWebInitilizationCompleted(); } }