protected void Submit_Click(object sender, EventArgs e) { //EventLog.WriteEntry("ICSNET", "Clicked Submit", EventLogEntryType.Information); if (hf_Saveable.Value != "false") { CNTR_CovidForm_Rec covid_Form_Submission = CreateSubmission(); CNTR_CovidForm_Rec_Facade covidForm_Rec_Facade = new CNTR_CovidForm_Rec_Facade(); covidForm_Rec_Facade.Add(covid_Form_Submission); SetLabels(covid_Form_Submission); if (covid_Form_Submission.Symptomatic) { blocked(); } else if (covid_Form_Submission.Quarantined) { quarantined(); } else { //EventLog.WriteEntry("ICSNET", "Cleared user", EventLogEntryType.Information); cleared(); } } else { div_Warning.Visible = true; } }
protected void ResubmitButton_Click(object sender, EventArgs e) { CNTR_CovidForm_Rec_Facade covidForm_Rec_Facade = new CNTR_CovidForm_Rec_Facade(); List <CNTR_CovidForm_Rec> user_Daily_Forms = new JICSBaseFacade <CNTR_CovidForm_Rec>().GetQuery().Where(x => x.UserID == PortalUser.Current.ID && x.SubmittedDate.Date == DateTime.Today).OrderBy(x => x.SubmittedDate).ToList(); //EventLog.WriteEntry("ICSNET", "Made it to resubmit!", EventLogEntryType.Information); if (user_Daily_Forms.Count > 0) { //EventLog.WriteEntry("ICSNET", "About to Delete Submission:" + user_Daily_Forms[0].SubmissionID, EventLogEntryType.Information); covidForm_Rec_Facade.Remove(user_Daily_Forms[0]); } InitializeForm(); }