private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { Appointment.MarkPrinted(a); LegacyCoreAPI.stopWorkingWithAppointment(a); QueueData.UpdateBigQueueByMrn(u); }
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { LegacyCoreAPI.StartWorkingWithAppointment(apptid, ""); ParameterCollection pc = new ParameterCollection(); pc.Add("application", "RiskApps3"); pc.Add("userLogin", SessionManager.Instance.ActiveUser.userLogin); pc.Add("machineName", System.Environment.MachineName); pc.Add("message", "Accessed appointment"); pc.Add("apptID", apptid); BCDB2.Instance.RunSPWithParams("sp_3_AuditUserActivity", pc); }
public ActionResult RunRiskModule(int type, string unitnum, int apptid) { if (type == 1) { _applicationContext.ServiceContext.AppointmentService.CalculateRiskAndRunAutomation(apptid, unitnum); } else { LegacyCoreAPI.stopWorkingWithAppointment(apptid); } return(RedirectToAction("InstitutionDashboard", "Institution")); }
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { //RiskAppCore.Globals.setApptID(apptid); //RiskAppCore.ApptUtils.MarkApptStartedAndPullForward(); //SessionManager.Instance.GetActivePatient().hra_state = Model.HraObject.States.NULL; LegacyCoreAPI.StartWorkingWithAppointment(apptid, ""); SessionManager.Instance.GetActivePatient().BackgroundLoadWork(); ParameterCollection pc = new ParameterCollection(); pc.Add("application", "RiskApps3"); pc.Add("userLogin", SessionManager.Instance.ActiveUser.userLogin); pc.Add("machineName", System.Environment.MachineName); pc.Add("message", "Accessed appointment"); pc.Add("apptID", apptid); BCDB2.Instance.RunSPWithParams("sp_3_AuditUserActivity", pc); }