Beispiel #1
0
        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);
        }
        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);
        }