///<summary>Add a sheet the the device check-in checklist.</summary> public static void CI_AddSheet(long patNum, long sheetNum) { Patient pat = Patients.GetPat(patNum); if (pat == null) { return; } List <MobileAppDevice> listMads = MobileAppDevices.GetAll(patNum); if (listMads.IsNullOrEmpty()) { return; } Sheet sheet = Sheets.GetOne(sheetNum); if (sheet == null) { return; } //See CI_AddSheet for input details. foreach (MobileAppDevice mad in listMads) { SendPushBackground(PushType.CI_AddSheet, mad.MobileAppDeviceNum, listPrimaryKeys: new List <long>() { pat.PatNum, sheet.SheetNum }); } }