/// <summary> /// event /// US:838 /// assigns the selected checklist to the selected patients /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnAssignChecklist(object sender, EventArgs e) { if (ChecklistID < 1) { Master.ShowStatusInfo(k_STATUS_CODE.Failed, Resources.ErrorMessages.ERROR_AC_CLID); return; } PatientIDs = CGridView.GetCheckedRows( gvPatients, "chkSelect"); string[] astrPatientIDs = PatientIDs.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); if (astrPatientIDs.Count() < 1) { Master.ShowStatusInfo(k_STATUS_CODE.Failed, Resources.ErrorMessages.ERROR_AC_NONESEL); return; } ucExistingChecklist.ChecklistID = ChecklistID; ucExistingChecklist.PatientIDs = PatientIDs; CStatus status = ucExistingChecklist.LoadControl(k_EDIT_MODE.READ_ONLY); if (!status.Status) { Master.ShowStatusInfo(status); return; } }
private void StoreAndContinue() { List <string> lstIDs = CGridView.GetUncheckedRowsList( gvExistingCL, "chkSelect"); foreach (string strID in lstIDs) { PatientIDs = PatientIDs.Replace("," + strID + ",", ","); } if (_Continue != null) { CAppUserControlArgs args = new CAppUserControlArgs( k_EVENT.SELECT, k_STATUS_CODE.Success, string.Empty, "1"); _Continue(this, args); } }