/// <summary> /// override /// US:878 /// saves the checklist /// </summary> /// <param name="lStatusCode"></param> /// <param name="strStatusComment"></param> /// <returns></returns> public override CStatus SaveControl() { CPatChecklistData pcld = new CPatChecklistData(BaseMstr.BaseData); CPatChecklistDataItem di = null; CStatus status = pcld.GetPatChecklistDI(Convert.ToInt64(ddlPatChecklist.SelectedValue), out di); if (!status.Status) { return(status); } di.ChecklistStateID = (k_CHECKLIST_STATE_ID)Convert.ToInt64(ddlChecklistState.SelectedValue); di.ProcedureDate = CDataUtils.GetDate( tbProcedureDate.Text, ucProcedureTime.HH, ucProcedureTime.MM, ucProcedureTime.SS); status = pcld.UpdatePatChecklist(di); if (!status.Status) { return(status); } return(new CStatus()); }
/// <summary> /// method /// US:911 /// cancels the checklist specified by the patient checklist id /// </summary> /// <param name="lPatCLID"></param> /// <returns></returns> private CStatus CancelChecklist(long lPatCLID) { CPatChecklistData PatChecklist = new CPatChecklistData(BaseData); CPatChecklistDataItem di = null; CStatus status = PatChecklist.GetPatChecklistDI(lPatCLID, out di); if (!status.Status) { return(status); } di.ChecklistStateID = k_CHECKLIST_STATE_ID.Cancelled; return(PatChecklist.UpdatePatChecklist(di)); }