public static IEnumerable <OpenXmlElement> GetSection(EALInfo EALInfo)
        {
            List <OpenXmlElement> sectionParts = new List <OpenXmlElement>();

            if (EALInfo != null)
            {
                sectionParts.Add(ParagraphHelper.Paragraph("EAL", LSSDDocumentStyles.SectionTitle));

                sectionParts.Add(
                    TableHelper.StyledTable(
                        TableHelper.StickyTableRow(
                            TableHelper.LabelCell("Is EAL:"),
                            TableHelper.ValueCell(EALInfo.IsEAL),
                            TableHelper.LabelCell("First CDN School?:"),
                            TableHelper.ValueCell(EALInfo.IsFirstCanadianSchool)
                            ),
                        TableHelper.StickyTableRow(
                            TableHelper.LabelCell("Entry date to Canada:"),
                            TableHelper.ValueCell(EALInfo.EntryDateToCanada?.ToShortDateString()),
                            TableHelper.LabelCell("Entry date to CDN school:"),
                            TableHelper.ValueCell(EALInfo.EntryDateToCanadianSchool?.ToShortDateString())
                            )
                        )
                    );

                sectionParts.Add(ParagraphHelper.WhiteSpace());
            }

            return(sectionParts);
        }
        public static IEnumerable <OpenXmlElement> GetSection(CitizenshipInfo CitizenshipInfo)
        {
            List <OpenXmlElement> sectionParts = new List <OpenXmlElement>();

            if (CitizenshipInfo != null)
            {
                sectionParts.Add(ParagraphHelper.Paragraph("Citizenship", LSSDDocumentStyles.SectionTitle));

                sectionParts.Add(
                    TableHelper.StyledTable(
                        TableHelper.StickyTableRow(
                            TableHelper.LabelCell("Birth Country:"),
                            TableHelper.ValueCell(CitizenshipInfo.CountryOfBirth),
                            TableHelper.LabelCell("Citizenship:"),
                            TableHelper.ValueCell(CitizenshipInfo.Citizenship),
                            TableHelper.LabelCell("Residency Type:"),
                            TableHelper.ValueCell(CitizenshipInfo.ResidencyType)
                            ),
                        TableHelper.StickyTableRow(
                            TableHelper.LabelCell("Lang. at home:").WithWidth(16.6),
                            TableHelper.ValueCell(CitizenshipInfo.LanguageSpokenAtHome).WithColspan(2).WithWidth(33.3),
                            TableHelper.LabelCell("Previous Country:").WithWidth(16.6),
                            TableHelper.ValueCell(CitizenshipInfo.PreviousCountry).WithColspan(2).WithWidth(33.3)
                            )
                        )
                    );

                sectionParts.Add(ParagraphHelper.WhiteSpace());
            }


            return(sectionParts);
        }
Пример #3
0
 private static IEnumerable <OpenXmlElement> GetSection(BaseSubmittedForm Form, TimeZoneInfo timezone, string Title, string FormId)
 {
     return(new List <OpenXmlElement>()
     {
         ParagraphHelper.Paragraph(Title, LSSDDocumentStyles.PageTitle, JustificationValues.Center),
         ParagraphHelper.Paragraph($"Form id: {FormId}, submitted {TimeZoneInfo.ConvertTimeFromUtc(Form.DateReceivedUTC,timezone).ToShortDateString()}", LSSDDocumentStyles.Dim, JustificationValues.Center),
         ParagraphHelper.WhiteSpace()
     });
 }
        public static IEnumerable <OpenXmlElement> GetSection(FirstNationsInfo FNInfo)
        {
            List <OpenXmlElement> sectionParts = new List <OpenXmlElement>();

            sectionParts.Add(ParagraphHelper.Paragraph("Students of First Nations Ancestry", LSSDDocumentStyles.SectionTitle));

            if (FNInfo != null)
            {
                if (FNInfo.IsDeclaringFirstNationsInfo)
                {
                    sectionParts.Add(
                        TableHelper.StyledTable(
                            TableHelper.StickyTableRow(
                                TableHelper.LabelCell("Aboriginal group:"),
                                TableHelper.ValueCell(FNInfo.AboriginalStatus),
                                TableHelper.LabelCell("Status Number:"),
                                TableHelper.ValueCell(FNInfo.StatusNumber)
                                ),
                            TableHelper.StickyTableRow(
                                TableHelper.LabelCell("Resides On Reserve:"),
                                TableHelper.ValueCell(FNInfo.ResidesOnReserve),
                                TableHelper.LabelCell("Reserve of Residence:"),
                                TableHelper.ValueCell(FNInfo.ReserveName)
                                ),
                            TableHelper.StickyTableRow(
                                TableHelper.LabelCell("Band Name:"),
                                TableHelper.ValueCell(FNInfo.BandName),
                                TableHelper.LabelCell("Reserve House:"),
                                TableHelper.ValueCell(FNInfo.ReserveHouse)
                                )
                            )
                        );
                }
                else
                {
                    sectionParts.Add(ParagraphHelper.Paragraph("No First Nations information was declared.", LSSDDocumentStyles.NormalParagraph));
                }
            }
            else
            {
                sectionParts.Add(ParagraphHelper.Paragraph("No First Nations data was collected.", LSSDDocumentStyles.NormalParagraph));
            }

            sectionParts.Add(ParagraphHelper.WhiteSpace());

            return(sectionParts);
        }
        public static IEnumerable <OpenXmlElement> GetSection(StVitalExtraRequirements stVitalExtraRequirements)
        {
            List <OpenXmlElement> sectionParts = new List <OpenXmlElement>();

            if (stVitalExtraRequirements != null)
            {
                sectionParts.Add(ParagraphHelper.Paragraph("St. Vital Catholic School Admission Policy :", LSSDDocumentStyles.SectionTitle));

                sectionParts.Add(
                    TableHelper.StyledTable(
                        TableHelper.StickyTableRow(
                            TableHelper.LabelCell("Form submitter acknowledges that they understand policy:"),
                            TableHelper.ValueCell(stVitalExtraRequirements.AcknowledgesPolicy)
                            ),
                        TableHelper.StickyTableRow(
                            TableHelper.LabelCell("Child is already baptized in Catholic faith:"),
                            TableHelper.ValueCell(stVitalExtraRequirements.ChildIsCatholic)
                            ),
                        TableHelper.StickyTableRow(
                            TableHelper.LabelCell("Will commit to baptising within 1 year:"),
                            TableHelper.ValueCell(stVitalExtraRequirements.ChildIsCatholic ? "N/A" : (stVitalExtraRequirements.CommitToBaptize ? "Yes" : "No"))
                            ),
                        TableHelper.StickyTableRow(
                            TableHelper.LabelCell("Acknowledges failure to baptize means discontinuing enrolment at St Vital:"),
                            TableHelper.ValueCell(stVitalExtraRequirements.ChildIsCatholic ? "N/A" : (stVitalExtraRequirements.AcknowledgeFailureState ? "Yes" : "No"))
                            ),
                        TableHelper.StickyTableRow(
                            TableHelper.LabelCell("Understands that contact info will be shared with St. Vital Parish:"),
                            TableHelper.ValueCell(stVitalExtraRequirements.ShareInfoWithParish)
                            )
                        )
                    );

                sectionParts.Add(ParagraphHelper.WhiteSpace());
            }

            return(sectionParts);
        }
        public static IEnumerable <OpenXmlElement> GetSection(ContactsInfo Contacts)
        {
            List <OpenXmlElement> sectionParts = new List <OpenXmlElement>();

            if (Contacts?.Contacts.Count > 0)
            {
                sectionParts.Add(ParagraphHelper.Paragraph("Contacts", LSSDDocumentStyles.SectionTitle));

                foreach (Contact contact in Contacts.Contacts)
                {
                    sectionParts.Add(
                        TableHelper.StyledTableBordered(
                            TableHelper.StickyTableRow(
                                TableHelper.LabelCell("Name:"),
                                TableHelper.ValueCell(contact.GetDisplayName(), JustificationValues.Left).WithColspan(5)
                                ),
                            TableHelper.StickyTableRow(
                                TableHelper.LabelCell("Relation:", JustificationValues.Left).WithWidth(15),
                                TableHelper.ValueCell(contact.RelationshipToStudent),
                                TableHelper.LabelCell("Email:"),
                                TableHelper.ValueCell(contact.EmailAddress),
                                TableHelper.LabelCell("Lives With:"),
                                TableHelper.ValueCell(contact.LivesWithStudent)
                                ),
                            TableHelper.StickyTableRow(
                                TableHelper.LabelCell("Priority:"),
                                TableHelper.ValueCell(contact.ContactPriority.ToString()),
                                TableHelper.LabelCell("Employer:"),
                                TableHelper.ValueCell(contact.Employer),
                                TableHelper.LabelCell("Rcv. Mail:"),
                                TableHelper.ValueCell(contact.ShouldRecieveMailAboutStudent)
                                ),
                            TableHelper.StickyTableRow(
                                TableHelper.LabelCell("Notes:"),
                                TableHelper.ValueCell(contact.Note, JustificationValues.Left).WithColspan(5)
                                ),
                            TableHelper.StickyTableRow(
                                TableHelper.LabelCell("Contact:", JustificationValues.Left).WithColspan(2).WithWidth(33.3),
                                TableHelper.LabelCell("Primary Addr:", JustificationValues.Left).WithColspan(2).WithWidth(33.3),
                                TableHelper.LabelCell("Mailing Addr:", JustificationValues.Left).WithColspan(2).WithWidth(33.3)
                                ),
                            TableHelper.StickyTableRow(
                                TableHelper.ValueCell(phoneNumberBlob(contact.HomePhone, contact.WorkPhone, contact.CellPhone, contact.AlternateContactInfo)).WithColspan(2),
                                TableHelper.ValueCell(ParagraphHelper.ConvertMultiLineString(contact.PrimaryAddress.ToFormattedAddress()), JustificationValues.Left).WithColspan(2),
                                TableHelper.ValueCell(ParagraphHelper.ConvertMultiLineString(contact.MailingAddress.ToFormattedAddress()), JustificationValues.Left).WithColspan(2)
                                )
                            )
                        );

                    sectionParts.Add(
                        ParagraphHelper.WhiteSpace()
                        );
                }
            }
            else
            {
                sectionParts.Add(
                    ParagraphHelper.Paragraph("No contact information entered", LSSDDocumentStyles.FieldValue)
                    );
            }
            sectionParts.Add(ParagraphHelper.WhiteSpace());

            return(sectionParts);
        }
Пример #7
0
        public static IEnumerable <OpenXmlElement> GetSection(PreKInfo PreKInfo)
        {
            List <OpenXmlElement> sectionParts = new List <OpenXmlElement>();

            sectionParts.Add(
                TableHelper.StyledTable(
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Little opportunity to interact with other same age:").WithWidth(40),
                        TableHelper.ValueCell(PreKInfo.LittleOpportunityToInteractWithSameAge).WithWidth(5),
                        TableHelper.LabelCell("Low income family in financial need:").WithWidth(40),
                        TableHelper.ValueCell(PreKInfo.LowIncomeFamily).WithWidth(5)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Single parent or frequent parent absence:"),
                        TableHelper.ValueCell(PreKInfo.OnlyOneParentInHome),
                        TableHelper.LabelCell("Lack of family support system:"),
                        TableHelper.ValueCell(PreKInfo.NoFamilySupportSystem)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Primary caregiver less than high school education:"),
                        TableHelper.ValueCell(PreKInfo.PrimaryCaregiverLessThanHighSchoolEducation),
                        TableHelper.LabelCell("Speech difficulties:"),
                        TableHelper.ValueCell(PreKInfo.SpeechDifficulties)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Child in foster care:"),
                        TableHelper.ValueCell(PreKInfo.InFosterCare),
                        TableHelper.LabelCell("Language difficulties:"),
                        TableHelper.ValueCell(PreKInfo.LanguageDifficulties)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Can use bathroom by self:"),
                        TableHelper.ValueCell(PreKInfo.CanUseBathroomAlone),
                        TableHelper.LabelCell("Fine Motor difficulties:"),
                        TableHelper.ValueCell(PreKInfo.FineMotorDifficulties)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Bathroom training in progress:"),
                        TableHelper.ValueCell(PreKInfo.PottyTrainingInProgress),
                        TableHelper.LabelCell("Gross Motor difficulties:"),
                        TableHelper.ValueCell(PreKInfo.GrossMotorDifficulties)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Child lives with teen parent:"),
                        TableHelper.ValueCell(PreKInfo.TeenParent),
                        TableHelper.LabelCell(""),
                        TableHelper.ValueCell("")
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Other difficulties:").WithColspan(4)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.ValueCell(PreKInfo.OtherDifficulties).WithColspan(4)
                        )
                    )
                );

            sectionParts.Add(ParagraphHelper.WhiteSpace());
            sectionParts.Add(ParagraphHelper.Paragraph("Child receives supports from the following:", LSSDDocumentStyles.SectionTitle));

            sectionParts.Add(
                TableHelper.StyledTable(
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("KidsFirst").WithWidth(40),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromKidsFirst).WithWidth(5),
                        TableHelper.LabelCell("Early Childhood Intervention Program:").WithWidth(40),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromEarlyChildhoodIntervention).WithWidth(5)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Occupational/Physical Therapist:"),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromOccupationOrPhysicalTherapist),
                        TableHelper.LabelCell("Early Childhood Psychologist:"),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromChildhoodPsychologist)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Pre-School/Daycare/Family Day Home:"),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromPreSchoolOrDaycare),
                        TableHelper.LabelCell("Licensed Child Care:"),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromLicensedChildCare)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Autism Consultant or Resource Center:"),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromAutismConsultant),
                        TableHelper.LabelCell("Speech/Language Pathologist:"),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromSpeechLangagePathologist)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Social Services:"),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromSocialServices),
                        TableHelper.LabelCell("Kinsmen Child Development Center:"),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromKinsmenChildDevCenter)
                        ),
                    TableHelper.StickyTableRow(
                        TableHelper.LabelCell("Aboriginal HeadStart:"),
                        TableHelper.ValueCell(PreKInfo.AssistanceFromAboriginalHeadstart),
                        TableHelper.LabelCell("Consent to share information with these agencies:"),
                        TableHelper.ValueCell(PreKInfo.ConsentToShareFromAgencies)
                        )

                    )
                );

            sectionParts.Add(ParagraphHelper.PageBreak());

            sectionParts.Add(
                TableHelper.StyledTable(
                    TableHelper.FieldTableRow("Social, emotional, or behavior issues:", PreKInfo.SocialEmotionalOrBehaviourIssues, JustificationValues.Left, 33),
                    TableHelper.FieldTableRow("Traumatic experience within or impacting the family/child:", PreKInfo.TraumaticExperiences, JustificationValues.Left, 33),
                    TableHelper.FieldTableRow("Health care crisis impacting child or family:", PreKInfo.HealthcareCrisis, JustificationValues.Left, 33),
                    TableHelper.FieldTableRow("Referred by agency or agencies:", PreKInfo.ReferredByOtherAgency, JustificationValues.Left, 33),
                    TableHelper.FieldTableRow("Custody concerns:", PreKInfo.CustodyConcerns, JustificationValues.Left, 33),
                    TableHelper.FieldTableRow("Medical concerns:", PreKInfo.MedicalConcerns, JustificationValues.Left, 33),
                    TableHelper.FieldTableRow("Other concerns:", PreKInfo.OtherConcerns, JustificationValues.Left, 33)
                    )
                );

            sectionParts.Add(ParagraphHelper.WhiteSpace());

            return(sectionParts);
        }