public static void StartWorkinigWithAppointment(int apptid, string config_path) { if (!string.IsNullOrEmpty(config_path)) { RiskApps3.Utilities.Configurator.configFilePath = config_path; } //RiskApps3.Utilities.Logger.Instance.SetFilePath(Path.Combine(appRoot, "log.txt")); Utilities.ParameterCollection pc = new RiskApps3.Utilities.ParameterCollection(); pc.Add("apptID", apptid); object returnCode = BCDB2.Instance.ExecuteSpWithRetValAndParams("sp_3_Start_Working_With_Appt", SqlDbType.Int, pc); //Logger.Instance.WriteToLog("NEW: Started working with appointment!! Appt id = " + apptid + ", return value from new SP = " + (int)returnCode); }
public static void stopWorkingWithAppointment(int apptid) { Utilities.ParameterCollection pc = new RiskApps3.Utilities.ParameterCollection(); pc.Add("apptID", apptid); object returnCode = BCDB2.Instance.ExecuteSpWithRetValAndParams("sp_markRiskDataCompleted", SqlDbType.Int, pc); }