public WKF_CASE_ACTIVITY ParseReaderComplete(DataRow row) { WKF_CASE_ACTIVITY objReturn = ParseReaderCustom(row); if (objReturn != null) { if (objReturn.WKF_CASE_ID > 0) { WKF_CASEDB wKF_CASEDB = new WKF_CASEDB(); objReturn.WKF_CASE = wKF_CASEDB.ParseReaderComplete(row); } if (objReturn.STD_WKFACTIVITYTYPE_ID > 0) { STD_WKFACTIVITYTYPEDB sTD_WKFACTIVITYTYPEDB = new STD_WKFACTIVITYTYPEDB(); objReturn.STD_WKFACTIVITYTYPE = sTD_WKFACTIVITYTYPEDB.ParseReaderCustom(row); } if (objReturn.STD_WKFACTIVITYSTS_ID > 0) { STD_WKFACTIVITYSTSDB sTD_WKFACTIVITYSTSDB = new STD_WKFACTIVITYSTSDB(); objReturn.STD_WKFACTIVITYSTS = sTD_WKFACTIVITYSTSDB.ParseReaderCustom(row); } } return(objReturn); }
public WKF_CASE_ACTIVITY ParseReaderCustom(DataRow row) { WKF_CASE_ACTIVITY objReturn = new WKF_CASE_ACTIVITY { ADDRESS_LINE1 = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_ADDRESS_LINE1")), ADDRESS_LINE2 = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_ADDRESS_LINE2")), ADDRESS_LINE3 = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_ADDRESS_LINE3")), BEST_CALL_BACK_TIME = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_BEST_CALL_BACK_TIME")), CITY = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_CITY")), CONTACT_EMAIL = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_CONTACT_EMAIL")), CONTACT_NAME = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_CONTACT_NAME")), CONTACT_PHONE = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_CONTACT_PHONE")), COUNTRY = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_COUNTRY")), CREATED = (DateTime)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_CREATED")), CREATEDBY = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_CREATEDBY")), INFO_CONVEYED_TEXT = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_INFO_CONVEYED_TEXT")), INFO_RECEIVED_TEXT = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_INFO_RECEIVED_TEXT")), POSTAL_CODE = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_POSTAL_CODE")), STATE = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_STATE")), STD_WKFACTIVITYTYPE_ID = (Int32)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_STD_WKFACTIVITYTYPE_ID")), UPDATED = (DateTime)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_UPDATED")), UPDATEDBY = (string)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_UPDATEDBY")), WKF_CASE_ACTIVITY_ID = (Int32)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_WKF_CASE_ACTIVITY_ID")), WKF_CASE_ID = (Int32)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_WKF_CASE_ID")), STD_WKFACTIVITYSTS_ID = (Int32)GetNullableObject(row.Field <object>("WKF_CASE_ACTIVITY_STD_WKFACTIVITYSTS_ID")) }; return(objReturn); }
protected void LinkSelectActivity_Click(object sender, EventArgs e) { ServiceInterfaceManager.LogInformation("POSTBACK_EVENT", String.Format("{0}.{1}", System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name), HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId); try { LinkButton lb = (LinkButton)sender; if (lb != null) { int id = 0; if (int.TryParse(lb.CommandArgument, out id)) { WKF_CASE_ACTIVITY a = ServiceInterfaceManager.WKF_CASE_ACTIVITY_GET(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, id); if (a != null) { UserSession.CurrentWorkstreamId = a.WKF_CASE_ID; UserSession.CurrentActivityId = a.WKF_CASE_ACTIVITY_ID; Response.Redirect("~/Common/Activity.aspx", false); } } } } catch (Exception ex) { ServiceInterfaceManager.LogError(ex.Message, String.Format("{0}.{1}", System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name), HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId); throw ex; } }
public static Int32 Save(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, WKF_CASE_ACTIVITY objSave) { Int32 objReturn = 0; WKF_CASE_ACTIVITYDB objDB = new WKF_CASE_ACTIVITYDB(); objReturn = objDB.Save(CURRENT_USER, CURRENT_REGISTRY_ID, objSave); return(objReturn); }
public static WKF_CASE_ACTIVITY GetItem(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, Int32 WKF_CASE_ACTIVITY_ID) { WKF_CASE_ACTIVITY objReturn = null; WKF_CASE_ACTIVITYDB objDB = new WKF_CASE_ACTIVITYDB(); objReturn = objDB.GetItem(CURRENT_USER, CURRENT_REGISTRY_ID, WKF_CASE_ACTIVITY_ID); return(objReturn); }
protected void LinkEdit_Click(object sender, EventArgs e) { ServiceInterfaceManager.LogInformation("POSTBACK_EVENT", String.Format("{0}.{1}", System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name), HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId); try { UserSession.RefreshCommon(); LinkButton lb = (LinkButton)sender; if (lb != null) { int id = 0; int.TryParse(lb.CommandArgument, out id); if (id > 0) { WKF_CASE_ACTIVITY a = ServiceInterfaceManager.WKF_CASE_ACTIVITY_GET(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, id); if (a != null) { UserSession.CurrentActivityId = a.WKF_CASE_ACTIVITY_ID; WKF_CASE c = ServiceInterfaceManager.WKF_CASE_GET(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, a.WKF_CASE_ID); if (c != null) { UserSession.CurrentWorkstreamId = c.WKF_CASE_ID; if (c.REFERRAL_ID != null) { UserSession.CurrentReferralId = c.REFERRAL_ID.Value; } UserSession.CurrentPatientId = c.PATIENT_ID; } pnlActivities.Visible = false; pnlActivity.Visible = true; LoadForm(id); } } } } catch (Exception ex) { ServiceInterfaceManager.LogError(ex.Message, String.Format("{0}.{1}", System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name), HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId); throw ex; } }
public void LoadForm(int id) { ResetForm(); WKF_CASE_ACTIVITY activity = ServiceInterfaceManager.WKF_CASE_ACTIVITY_GET(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, id); if (activity != null) { activity.STD_WKFACTIVITYTYPE = ServiceInterfaceManager.STD_WKFACTIVITYTYPE_GET(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, activity.STD_WKFACTIVITYTYPE_ID); if (activity.STD_WKFACTIVITYTYPE != null) { lblActivityName.Text = activity.STD_WKFACTIVITYTYPE.NAME; } activity.STD_WKFACTIVITYSTS = ServiceInterfaceManager.STD_WKFACTIVITYSTS_GET(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, activity.STD_WKFACTIVITYSTS_ID); if (activity.STD_WKFACTIVITYSTS != null) { lblStatus.Text = activity.STD_WKFACTIVITYSTS.NAME; } lblContactName.Text = activity.CONTACT_NAME; lblContactEmail.Text = activity.CONTACT_EMAIL; lblContactPhone.Text = activity.CONTACT_PHONE; lblBestCallBackTime.Text = activity.BEST_CALL_BACK_TIME; lblInfoConveyedText.Text = activity.INFO_CONVEYED_TEXT; lblInforReceivedText.Text = activity.INFO_RECEIVED_TEXT; lblAddressLine1.Text = activity.ADDRESS_LINE1; lblAddressLine2.Text = activity.ADDRESS_LINE2; lblAddressLine3.Text = activity.ADDRESS_LINE3; lblCity.Text = activity.CITY; lblState.Text = activity.STATE; lblPostalCode.Text = activity.POSTAL_CODE; lblCountry.Text = activity.COUNTRY; lblCreatedBy.Text = activity.CREATEDBY; lblCreated.Text = activity.CREATED.ToString("MM/dd/yyyy"); lblUpdatedBy.Text = activity.UPDATEDBY; lblUpdated.Text = activity.UPDATED.ToString("MM/dd/yyyy"); } else { linkViewDetails.Visible = false; } }
private void LoadForm(int id) { ResetForm(); listActivityName.Enabled = false; WKF_CASE_ACTIVITY activity = ServiceInterfaceManager.WKF_CASE_ACTIVITY_GET(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, id); if (activity != null) { hideActivityId.Value = activity.WKF_CASE_ACTIVITY_ID.ToString(); hideWorkstreamId.Value = activity.WKF_CASE_ID.ToString(); foreach (ListItem li in listActivityName.Items) { if (li.Value == activity.STD_WKFACTIVITYTYPE_ID.ToString()) { li.Selected = true; break; } } txtContactName.Text = activity.CONTACT_NAME; txtContactEmail.Text = activity.CONTACT_EMAIL; txtContactPhone.Text = activity.CONTACT_PHONE; txtBestCallBackTime.Text = activity.BEST_CALL_BACK_TIME; txtAddressLine1.Text = activity.ADDRESS_LINE1; txtAddressLine2.Text = activity.ADDRESS_LINE2; txtAddressLine3.Text = activity.ADDRESS_LINE3; txtCity.Text = activity.CITY; txtState.Text = activity.STATE; txtPostalCode.Text = activity.POSTAL_CODE; txtCountry.Text = activity.COUNTRY; txtInfoConveyed.Text = activity.INFO_CONVEYED_TEXT; txtInfoReceived.Text = activity.INFO_RECEIVED_TEXT; } }
public static Boolean Delete(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, WKF_CASE_ACTIVITY objDelete) { return(Delete(CURRENT_USER, CURRENT_REGISTRY_ID, objDelete.WKF_CASE_ACTIVITY_ID)); }
public WKF_CASE_ACTIVITY GetItem(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, Int32 WKF_CASE_ACTIVITY_ID) { WKF_CASE_ACTIVITY objReturn = null; SqlConnection sConn = null; SqlCommand sCmd = null; SqlDataAdapter sAdapter = null; DataSet objTemp = null; try { sConn = new SqlConnection(SqlConnectionString); sConn.Open(); sCmd = new SqlCommand("CRS.usp_WKF_CASE_ACTIVITY_getitem", sConn); sCmd.CommandTimeout = SqlCommandTimeout; sCmd.CommandType = CommandType.StoredProcedure; sCmd.Parameters.AddWithValue("@CURRENT_USER", CURRENT_USER); sCmd.Parameters.AddWithValue("@CURRENT_REGISTRY_ID", CURRENT_REGISTRY_ID); sCmd.Parameters.AddWithValue("@WKF_CASE_ACTIVITY_ID", WKF_CASE_ACTIVITY_ID); objTemp = new DataSet(); sAdapter = new SqlDataAdapter(sCmd); LogDetails logDetails = new LogDetails(String.Format("{0}.{1}", System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name), CURRENT_USER, CURRENT_REGISTRY_ID); sAdapter.Fill(objTemp); LogManager.LogTiming(logDetails); CheckDataSet(objTemp); if (objTemp != null && objTemp.Tables.Count > 0 && objTemp.Tables[0].Rows.Count > 0) { objReturn = ParseReader(objTemp.Tables[0].Rows[0]); } sConn.Close(); } catch (Exception ex) { LogManager.LogError(ex.Message, String.Format("{0}.{1}", System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name), CURRENT_USER, CURRENT_REGISTRY_ID); throw ex; } finally { if (sAdapter != null) { sAdapter.Dispose(); sAdapter = null; } if (sCmd != null) { sCmd.Dispose(); sCmd = null; } if (sConn != null) { if (sConn.State != ConnectionState.Closed) { sConn.Close(); } sConn.Dispose(); sConn = null; } } return(objReturn); }
public Int32 Save(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, WKF_CASE_ACTIVITY objSave) { Int32 objReturn = 0; SqlConnection sConn = null; SqlCommand sCmd = null; SqlParameter p = null; SqlDataAdapter sAdapter = null; DataSet objTemp = null; try { sConn = new SqlConnection(SqlConnectionString); sConn.Open(); sCmd = new SqlCommand("CRS.usp_WKF_CASE_ACTIVITY_save", sConn); sCmd.CommandTimeout = SqlCommandTimeout; sCmd.CommandType = CommandType.StoredProcedure; sCmd.Parameters.AddWithValue("@CURRENT_USER", CURRENT_USER); sCmd.Parameters.AddWithValue("@CURRENT_REGISTRY_ID", CURRENT_REGISTRY_ID); p = new SqlParameter("@ADDRESS_LINE1", SqlDbType.VarChar, 100); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.ADDRESS_LINE1); p = new SqlParameter("@ADDRESS_LINE2", SqlDbType.VarChar, 100); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.ADDRESS_LINE2); p = new SqlParameter("@ADDRESS_LINE3", SqlDbType.VarChar, 100); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.ADDRESS_LINE3); p = new SqlParameter("@BEST_CALL_BACK_TIME", SqlDbType.VarChar, 50); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.BEST_CALL_BACK_TIME); p = new SqlParameter("@CITY", SqlDbType.VarChar, 60); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.CITY); p = new SqlParameter("@CONTACT_EMAIL", SqlDbType.VarChar, 255); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.CONTACT_EMAIL); p = new SqlParameter("@CONTACT_NAME", SqlDbType.VarChar, 255); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.CONTACT_NAME); p = new SqlParameter("@CONTACT_PHONE", SqlDbType.VarChar, 255); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.CONTACT_PHONE); p = new SqlParameter("@COUNTRY", SqlDbType.VarChar, 50); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.COUNTRY); p = new SqlParameter("@CREATED", SqlDbType.DateTime, 8); p.Precision = 23; p.Scale = 3; AddParameter(ref sCmd, ref p, objSave.CREATED); p = new SqlParameter("@CREATEDBY", SqlDbType.VarChar, 30); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.CREATEDBY); p = new SqlParameter("@INFO_CONVEYED_TEXT", SqlDbType.VarChar, -1); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.INFO_CONVEYED_TEXT); p = new SqlParameter("@INFO_RECEIVED_TEXT", SqlDbType.VarChar, -1); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.INFO_RECEIVED_TEXT); p = new SqlParameter("@POSTAL_CODE", SqlDbType.VarChar, 10); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.POSTAL_CODE); p = new SqlParameter("@STATE", SqlDbType.VarChar, 50); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.STATE); p = new SqlParameter("@STD_WKFACTIVITYTYPE_ID", SqlDbType.Int, 4); p.Precision = 10; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.STD_WKFACTIVITYTYPE_ID); p = new SqlParameter("@UPDATED", SqlDbType.DateTime, 8); p.Precision = 23; p.Scale = 3; AddParameter(ref sCmd, ref p, objSave.UPDATED); p = new SqlParameter("@UPDATEDBY", SqlDbType.VarChar, 30); p.Precision = 0; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.UPDATEDBY); p = new SqlParameter("@WKF_CASE_ACTIVITY_ID", SqlDbType.Int, 4); p.Direction = ParameterDirection.InputOutput; p.Precision = 10; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.WKF_CASE_ACTIVITY_ID); p = new SqlParameter("@WKF_CASE_ID", SqlDbType.Int, 4); p.Precision = 10; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.WKF_CASE_ID); p = new SqlParameter("@STD_WKFACTIVITYSTS_ID", SqlDbType.Int, 4); p.Precision = 10; p.Scale = 0; AddParameter(ref sCmd, ref p, objSave.STD_WKFACTIVITYSTS_ID); objTemp = new DataSet(); sAdapter = new SqlDataAdapter(sCmd); LogDetails logDetails = new LogDetails(String.Format("{0}.{1}", System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name), CURRENT_USER, CURRENT_REGISTRY_ID); //int cnt = sCmd.ExecuteNonQuery(); sAdapter.Fill(objTemp); LogManager.LogTiming(logDetails); CheckDataSet(objTemp); objReturn = (Int32)sCmd.Parameters["@WKF_CASE_ACTIVITY_ID"].Value; sConn.Close(); } catch (Exception ex) { LogManager.LogError(ex.Message, String.Format("{0}.{1}", System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName, System.Reflection.MethodBase.GetCurrentMethod().Name), CURRENT_USER, CURRENT_REGISTRY_ID); throw ex; } finally { if (sAdapter != null) { sAdapter.Dispose(); sAdapter = null; } if (sCmd != null) { sCmd.Dispose(); sCmd = null; } if (sConn != null) { if (sConn.State != ConnectionState.Closed) { sConn.Close(); } sConn.Dispose(); sConn = null; } } return(objReturn); }
private bool SaveForm(ref string strResult) { WKF_CASE_ACTIVITY activity = null; if (listActivityName.SelectedIndex > 0) { if (string.IsNullOrEmpty(txtContactName.Text)) { strResult = "<ul><li>Contact Name is Required</li></ul>"; } else if (string.IsNullOrEmpty(txtContactEmail.Text)) { strResult = "<ul><li>Contact Email is Required</li></ul>"; } else if (string.IsNullOrEmpty(txtContactPhone.Text)) { strResult = "<ul><li>Contact Phone is Required</li></ul>"; } else if (string.IsNullOrEmpty(txtBestCallBackTime.Text)) { strResult = "<ul><li>Best Call Back Time is Required</li></ul>"; } else if (string.IsNullOrEmpty(txtAddressLine1.Text)) { strResult = "<ul><li>Address Line 1 is Required</li></ul>"; } else if (string.IsNullOrEmpty(txtCity.Text)) { strResult = "<ul><li>City is Required</li></ul>"; } else if (string.IsNullOrEmpty(txtState.Text)) { strResult = "<ul><li>State is Required</li></ul>"; } else if (string.IsNullOrEmpty(txtPostalCode.Text)) { strResult = "<ul><li>Postal Codeis Required</li></ul>"; } else if (string.IsNullOrEmpty(txtCountry.Text)) { strResult = "<ul><li>Country is Required</li></ul>"; } else if (string.IsNullOrEmpty(txtInfoConveyed.Text)) { strResult = "<ul><li>Info Conveyed is Required</li></ul>"; } else if (string.IsNullOrEmpty(txtInfoReceived.Text)) { strResult = "<ul><li>Info Received is Required</li></ul>"; } else { int id = 0; if (!string.IsNullOrEmpty(hideActivityId.Value)) { int.TryParse(hideActivityId.Value, out id); } if (id > 0) { activity = ServiceInterfaceManager.WKF_CASE_ACTIVITY_GET(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, id); } if (activity == null) { activity = new WKF_CASE_ACTIVITY(); } activity.CREATED = activity.UPDATED = DateTime.Now; activity.CREATEDBY = activity.UPDATEDBY = HttpContext.Current.User.Identity.Name; int caseId = 0; int.TryParse(hideWorkstreamId.Value, out caseId); activity.WKF_CASE_ID = caseId; int typeId = 0; int.TryParse(listActivityName.SelectedValue, out typeId); activity.STD_WKFACTIVITYTYPE_ID = typeId; activity.CONTACT_NAME = txtContactName.Text; activity.CONTACT_EMAIL = txtContactEmail.Text; activity.CONTACT_PHONE = txtContactPhone.Text; activity.BEST_CALL_BACK_TIME = txtBestCallBackTime.Text; activity.ADDRESS_LINE1 = txtAddressLine1.Text; activity.ADDRESS_LINE2 = txtAddressLine2.Text; activity.ADDRESS_LINE3 = txtAddressLine3.Text; activity.CITY = txtCity.Text; activity.STATE = txtState.Text; activity.POSTAL_CODE = txtPostalCode.Text; activity.COUNTRY = txtCountry.Text; activity.INFO_CONVEYED_TEXT = txtInfoConveyed.Text; activity.INFO_RECEIVED_TEXT = txtInfoReceived.Text; activity.WKF_CASE_ID = ServiceInterfaceManager.WKF_CASE_ACTIVITY_SAVE(HttpContext.Current.User.Identity.Name, UserSession.CurrentRegistryId, activity); if (activity.WKF_CASE_ID > 0) { hideActivityId.Value = activity.WKF_CASE_ID.ToString(); strResult = "Save successful<br /><br />"; return(true); } else { strResult = "Error saving Activity, please try again<br /><br />"; } } } else { strResult = "<ul><li>Please select an available Activity</li></ul>"; } return(false); }