public void buildReport() { Root = new RootElement (""); var v = new UIView (); v.Frame = new RectangleF (10, 10, 600, 10); var dummy = new Section (v); Root.Add (dummy); var headerLabel = new UILabel (new RectangleF (10, 10, 800, 48)) { Font = UIFont.BoldSystemFontOfSize (18), BackgroundColor = ColorHelper.GetGPPurple (), TextAlignment = UITextAlignment.Center, TextColor = UIColor.White, Text = "Branch Matter Analysis" }; var view = new UIViewBordered (); view.Frame = new RectangleF (10, 20, 800, 48); view.Add (headerLabel); Root.Add (new Section (view)); // for (int i = 0; i < report.branches.Count; i++) { Branch branch = report.branches [i]; Section s = new Section (branch.name + " Branch Totals"); Root.Add (s); // if (branch.branchTotals.matterActivity != null) { var matterActivitySection = new Section (); var mTitle = new TitleElement ("Matter Activity"); matterActivitySection.Add (mTitle); matterActivitySection.Add (new NumberElement (branch.branchTotals.matterActivity.active, "Active Matters: ")); matterActivitySection.Add (new NumberElement ( branch.branchTotals.matterActivity.deactivated, "Deactivated Matters: " )); matterActivitySection.Add (new NumberElement (branch.branchTotals.matterActivity.newWork, "New Work: ")); matterActivitySection.Add (new NumberElement (branch.branchTotals.matterActivity.workedOn, "Worked On: ")); matterActivitySection.Add (new NumberElement (branch.branchTotals.matterActivity.noActivity, "No Activity: ")); matterActivitySection.Add (new StringElement ("No Activity Duration: " + branch.branchTotals.matterActivity.noActivityDuration)); Root.Add (matterActivitySection); } // if (branch.branchTotals.matterBalances != null) { var matterBalancesSection = new Section (); var mTitle = new TitleElement ("Matter Balances"); matterBalancesSection.Add (mTitle); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.business, S.GetText (S.BUSINESS) + ": ")); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.trust, S.GetText (S.TRUST_BALANCE) + ": ")); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.investment, S.GetText (S.INVESTMENTS) + ": ")); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.unbilled, "Unbilled: ")); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.pendingDisbursements, "Pending Disb.: ")); Root.Add (matterBalancesSection); } } for (var i = 0; i < 10; i++) { Root.Add (new Section (" ")); } }
public void buildReport() { Root = new RootElement (""); var v = new UIView (); v.Frame = new RectangleF (10, 10, 600, 10); var dummy = new Section (v); Root.Add (dummy); var headerLabel = new UILabel (new RectangleF (10, 10, 800, 48)) { Font = UIFont.BoldSystemFontOfSize (18), BackgroundColor = ColorHelper.GetGPPurple (), TextAlignment = UITextAlignment.Center, TextColor = UIColor.White, Text = "Owner Matter Analysis" }; var view = new UIViewBordered (); view.Frame = new RectangleF (10, 10, 800, 48); view.Add (headerLabel); Root.Add (new Section (view)); //NumberFormatInfo nfi = new CultureInfo ("en-US", false).NumberFormat; for (int i = 0; i < report.branches.Count; i++) { Branch branch = report.branches [i]; Section s = new Section (branch.name); Root.Add (s); for (int j = 0; j < branch.owners.Count; j++) { Owner o = branch.owners [j]; Section seco = new Section (o.name); var recMTD = new TitleElement ("Matter Activity"); seco.Add (recMTD); seco.Add (new NumberElement (o.matterActivity.active, "Active: ")); seco.Add (new NumberElement (o.matterActivity.deactivated, "Deactivated: ")); seco.Add (new NumberElement (o.matterActivity.newWork, "New Work: ")); seco.Add (new NumberElement (o.matterActivity.workedOn, "Worked On: ")); seco.Add (new NumberElement (o.matterActivity.noActivity, "No Activity: ")); seco.Add (new StringElement ("No Activity Duration: " + o.matterActivity.noActivityDuration)); // var recYTD = new TitleElement ("Matter Balances"); seco.Add (recYTD); seco.Add (getElement (o.matterBalances.business, S.GetText (S.BUSINESS) + ": ")); seco.Add (getElement (o.matterBalances.trust, S.GetText (S.TRUST) + ": ")); seco.Add (getElement (o.matterBalances.investment, S.GetText (S.INVESTMENTS) + ": ")); seco.Add (getElement (o.matterBalances.unbilled, "Unbilled: ")); seco.Add (getElement (o.matterBalances.pendingDisbursements, "Pending Disb: ")); Root.Add (seco); } } for (var i = 0; i < 10; i++) { Root.Add (new Section (" ")); } }
/* * "practiceTotals":{"invoicedMTDTotal":0.0, "matterActivity":{"active":581,"workedOn":529,"newWork":581,"deactivated":0,"noActivity":0,"noActivityDuration":"6 Months"}, "matterBalances":{"unbilled":107253.15,"pendingDisbursements":500.0,"investment":-1000.0,"trust":-5852921.0,"business":704265.82}}}} */ public void buildFeeTargetReport() { //NumberFormatInfo nfi = new CultureInfo ("en-US", false).NumberFormat; Root = new RootElement (""); var v = new UIView (); v.Frame = new RectangleF (10, 10, 600, 10); var dummy = new Section (v); Root.Add (dummy); var headerLabel = new UILabel (new RectangleF (10, 10, 800, 48)) { Font = UIFont.BoldSystemFontOfSize (18), BackgroundColor = ColorHelper.GetGPPurple (), TextAlignment = UITextAlignment.Center, TextColor = UIColor.White, Text = "Practice Matter Analysis" }; var view = new UIViewBordered (); view.Frame = new RectangleF (10, 10, 800, 48); view.Add (headerLabel); Root.Add (new Section (view)); PracticeTotals totals = this.report.practiceTotals; var totSection = new Section ("Practice Totals"); Root.Add (totSection); if (totals.matterActivity != null) { var matterActivitySection = new Section (); var mTitle = new TitleElement ("Matter Activity"); matterActivitySection.Add (mTitle); matterActivitySection.Add (new NumberElement (totals.matterActivity.active, "Active: ")); matterActivitySection.Add (new NumberElement (totals.matterActivity.deactivated, "Deactivated: ")); matterActivitySection.Add (new NumberElement (totals.matterActivity.newWork, "New Work: ")); matterActivitySection.Add (new NumberElement (totals.matterActivity.workedOn, "Worked On: ")); matterActivitySection.Add (new NumberElement (totals.matterActivity.noActivity, "No Activity: ")); matterActivitySection.Add (new StringElement ("No Activity Duration: " + totals.matterActivity.noActivityDuration)); Root.Add (matterActivitySection); } // if (totals.matterBalances != null) { var matterBalancesSection = new Section (); var mTitle = new TitleElement ("Matter Balances"); matterBalancesSection.Add (mTitle); matterBalancesSection.Add (getElement (totals.matterBalances.business, S.GetText (S.BUSINESS) + ": ")); matterBalancesSection.Add (getElement (totals.matterBalances.trust, S.GetText (S.TRUST_BALANCE) + ": ")); matterBalancesSection.Add (getElement (totals.matterBalances.investment, S.GetText (S.INVESTMENTS) + ": ")); matterBalancesSection.Add (getElement (totals.matterBalances.unbilled, "Unbilled: ")); matterBalancesSection.Add (getElement (totals.matterBalances.pendingDisbursements, "Pending Disb.: ")); Root.Add (matterBalancesSection); } for (var i = 0; i < 10; i++) { Root.Add (new Section (" ")); } }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as GroupComponent; if (dest != null) { base.CopyTo(dest); if (LinkIdElement != null) { dest.LinkIdElement = (Hl7.Fhir.Model.FhirString)LinkIdElement.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (TextElement != null) { dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy(); } if (Subject != null) { dest.Subject = (Hl7.Fhir.Model.ResourceReference)Subject.DeepCopy(); } if (Group != null) { dest.Group = new List <Hl7.Fhir.Model.QuestionnaireResponse.GroupComponent>(Group.DeepCopy()); } if (Question != null) { dest.Question = new List <Hl7.Fhir.Model.QuestionnaireResponse.QuestionComponent>(Question.DeepCopy()); } return(dest); } else { throw new ArgumentException("Can only copy to an object of the same type", "other"); } }
public override ErrorList Validate() { var result = new ErrorList(); result.AddRange(base.Validate()); if (ContentTypeElement != null) { result.AddRange(ContentTypeElement.Validate()); } if (LanguageElement != null) { result.AddRange(LanguageElement.Validate()); } if (DataElement != null) { result.AddRange(DataElement.Validate()); } if (UrlElement != null) { result.AddRange(UrlElement.Validate()); } if (SizeElement != null) { result.AddRange(SizeElement.Validate()); } if (HashElement != null) { result.AddRange(HashElement.Validate()); } if (TitleElement != null) { result.AddRange(TitleElement.Validate()); } return(result); }
public void buildReport() { Root = new RootElement (""); var v = new UIView (); v.Frame = new RectangleF (10, 10, 600, 10); var dummy = new Section (v); Root.Add (dummy); var headerLabel = new UILabel (new RectangleF (10, 10, 800, 48)) { Font = UIFont.BoldSystemFontOfSize (18), BackgroundColor = ColorHelper.GetGPPurple (), TextAlignment = UITextAlignment.Center, TextColor = UIColor.White, Text = "Branch Financial Status" }; var view = new UIViewBordered (); view.Frame = new RectangleF (10, 20, 800, 48); view.Add (headerLabel); var topSection = new Section (view); Root.Add (topSection); //branch name view var branchLabel = new UILabel (new RectangleF (10, 10, 800, 24)) { Font = UIFont.BoldSystemFontOfSize (24), TextAlignment = UITextAlignment.Center, TextColor = ColorHelper.GetGPPurple (), Text = branch.name }; var bs = new Section (branch.name); Root.Add (bs); var business = new Section (); business.Add (getElement (branch.businessStatus.businessDebtors, S.GetText (S.BUSINESS_DEBTORS) + ": ")); business.Add (getElement (branch.businessStatus.businessCreditors, S.GetText (S.BUSINESS_CREDITORS) + ": ")); business.Add (getElement (branch.businessStatus.banksTotal, "Banks Total: ")); business.Add (getElement (branch.businessStatus.pendingDisbursements, S.GetText (S.PENDING_DISBURSEMENTS) + ": ")); business.Add (getElement (branch.businessStatus.unbilled, "Unbilled: ")); business.Add (getElement (branch.businessStatus.vat, S.GetText (S.VAT) + ": ")); business.Add (getElement (branch.businessStatus.availableForTransfer, "Available for Transfer: ")); for (var i = 0; i < branch.businessStatus.banks.Count; i++) { var bn = new TitleElement (branch.businessStatus.banks [i].name); business.Add (bn); Bank bank = branch.businessStatus.banks [i]; business.Add (getElement (bank.balance, "Balance: ")); business.Add (getElement (bank.receiptsForPeriod, "Receipts: ")); business.Add (new StringElement ("Date Reconciled: " + bank.dateReconciled)); business.Add (getElement (bank.reconciledAmount, "Reconciled Amount: ")); } Root.Add (business); // var trust = new Section (S.GetText (S.TRUST_STATUS)); trust.Add (getElement (branch.trustStatus.banksTotal, "Banks Total: ")); trust.Add (getElement (branch.trustStatus.trustCreditors, S.GetText (S.TRUST_CREDITORS) + ": ")); trust.Add (getElement (branch.trustStatus.investments, S.GetText (S.INVESTMENTS) + ": ")); for (var i = 0; i < branch.trustStatus.banks.Count; i++) { var bn = new TitleElement (branch.trustStatus.banks [i].name); trust.Add (bn); Bank bank = branch.trustStatus.banks [i]; trust.Add (getElement (bank.balance, "Balance: ")); trust.Add (getElement (bank.receiptsForPeriod, "Receipts: ")); trust.Add (new StringElement ("Date Reconciled: " + bank.dateReconciled)); trust.Add (getElement (bank.reconciledAmount, "Reconciled Amount: ")); } Root.Add (trust); for (var i = 0; i < 10; i++) { Root.Add (new Section (" ")); } }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as List; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (Code != null) { dest.Code = (Hl7.Fhir.Model.CodeableConcept)Code.DeepCopy(); } if (Subject != null) { dest.Subject = (Hl7.Fhir.Model.ResourceReference)Subject.DeepCopy(); } if (Source != null) { dest.Source = (Hl7.Fhir.Model.ResourceReference)Source.DeepCopy(); } if (Encounter != null) { dest.Encounter = (Hl7.Fhir.Model.ResourceReference)Encounter.DeepCopy(); } if (StatusElement != null) { dest.StatusElement = (Code <Hl7.Fhir.Model.List.ListStatus>)StatusElement.DeepCopy(); } if (DateElement != null) { dest.DateElement = (Hl7.Fhir.Model.FhirDateTime)DateElement.DeepCopy(); } if (OrderedBy != null) { dest.OrderedBy = (Hl7.Fhir.Model.CodeableConcept)OrderedBy.DeepCopy(); } if (ModeElement != null) { dest.ModeElement = (Code <Hl7.Fhir.Model.ListMode>)ModeElement.DeepCopy(); } if (NoteElement != null) { dest.NoteElement = (Hl7.Fhir.Model.FhirString)NoteElement.DeepCopy(); } if (Entry != null) { dest.Entry = new List <Hl7.Fhir.Model.List.EntryComponent>(Entry.DeepCopy()); } if (EmptyReason != null) { dest.EmptyReason = (Hl7.Fhir.Model.CodeableConcept)EmptyReason.DeepCopy(); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as EventDefinition; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (UrlElement != null) { dest.UrlElement = (Hl7.Fhir.Model.FhirUri)UrlElement.DeepCopy(); } if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (VersionElement != null) { dest.VersionElement = (Hl7.Fhir.Model.FhirString)VersionElement.DeepCopy(); } if (NameElement != null) { dest.NameElement = (Hl7.Fhir.Model.FhirString)NameElement.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (SubtitleElement != null) { dest.SubtitleElement = (Hl7.Fhir.Model.FhirString)SubtitleElement.DeepCopy(); } if (StatusElement != null) { dest.StatusElement = (Code <Hl7.Fhir.Model.PublicationStatus>)StatusElement.DeepCopy(); } if (ExperimentalElement != null) { dest.ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)ExperimentalElement.DeepCopy(); } if (Subject != null) { dest.Subject = (Hl7.Fhir.Model.DataType)Subject.DeepCopy(); } if (DateElement != null) { dest.DateElement = (Hl7.Fhir.Model.FhirDateTime)DateElement.DeepCopy(); } if (PublisherElement != null) { dest.PublisherElement = (Hl7.Fhir.Model.FhirString)PublisherElement.DeepCopy(); } if (Contact != null) { dest.Contact = new List <Hl7.Fhir.Model.ContactDetail>(Contact.DeepCopy()); } if (Description != null) { dest.Description = (Hl7.Fhir.Model.Markdown)Description.DeepCopy(); } if (UseContext != null) { dest.UseContext = new List <Hl7.Fhir.Model.UsageContext>(UseContext.DeepCopy()); } if (Jurisdiction != null) { dest.Jurisdiction = new List <Hl7.Fhir.Model.CodeableConcept>(Jurisdiction.DeepCopy()); } if (Purpose != null) { dest.Purpose = (Hl7.Fhir.Model.Markdown)Purpose.DeepCopy(); } if (UsageElement != null) { dest.UsageElement = (Hl7.Fhir.Model.FhirString)UsageElement.DeepCopy(); } if (Copyright != null) { dest.Copyright = (Hl7.Fhir.Model.Markdown)Copyright.DeepCopy(); } if (ApprovalDateElement != null) { dest.ApprovalDateElement = (Hl7.Fhir.Model.Date)ApprovalDateElement.DeepCopy(); } if (LastReviewDateElement != null) { dest.LastReviewDateElement = (Hl7.Fhir.Model.Date)LastReviewDateElement.DeepCopy(); } if (EffectivePeriod != null) { dest.EffectivePeriod = (Hl7.Fhir.Model.Period)EffectivePeriod.DeepCopy(); } if (Topic != null) { dest.Topic = new List <Hl7.Fhir.Model.CodeableConcept>(Topic.DeepCopy()); } if (Author != null) { dest.Author = new List <Hl7.Fhir.Model.ContactDetail>(Author.DeepCopy()); } if (Editor != null) { dest.Editor = new List <Hl7.Fhir.Model.ContactDetail>(Editor.DeepCopy()); } if (Reviewer != null) { dest.Reviewer = new List <Hl7.Fhir.Model.ContactDetail>(Reviewer.DeepCopy()); } if (Endorser != null) { dest.Endorser = new List <Hl7.Fhir.Model.ContactDetail>(Endorser.DeepCopy()); } if (RelatedArtifact != null) { dest.RelatedArtifact = new List <Hl7.Fhir.Model.RelatedArtifact>(RelatedArtifact.DeepCopy()); } if (Trigger != null) { dest.Trigger = new List <Hl7.Fhir.Model.TriggerDefinition>(Trigger.DeepCopy()); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as CompartmentDefinition; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (UrlElement != null) { dest.UrlElement = (Hl7.Fhir.Model.FhirUri)UrlElement.DeepCopy(); } if (NameElement != null) { dest.NameElement = (Hl7.Fhir.Model.FhirString)NameElement.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (StatusElement != null) { dest.StatusElement = (Code <Hl7.Fhir.Model.PublicationStatus>)StatusElement.DeepCopy(); } if (ExperimentalElement != null) { dest.ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)ExperimentalElement.DeepCopy(); } if (DateElement != null) { dest.DateElement = (Hl7.Fhir.Model.FhirDateTime)DateElement.DeepCopy(); } if (PublisherElement != null) { dest.PublisherElement = (Hl7.Fhir.Model.FhirString)PublisherElement.DeepCopy(); } if (Contact != null) { dest.Contact = new List <Hl7.Fhir.Model.ContactDetail>(Contact.DeepCopy()); } if (Description != null) { dest.Description = (Hl7.Fhir.Model.Markdown)Description.DeepCopy(); } if (Purpose != null) { dest.Purpose = (Hl7.Fhir.Model.Markdown)Purpose.DeepCopy(); } if (UseContext != null) { dest.UseContext = new List <Hl7.Fhir.Model.UsageContext>(UseContext.DeepCopy()); } if (Jurisdiction != null) { dest.Jurisdiction = new List <Hl7.Fhir.Model.CodeableConcept>(Jurisdiction.DeepCopy()); } if (CodeElement != null) { dest.CodeElement = (Code <Hl7.Fhir.Model.CompartmentType>)CodeElement.DeepCopy(); } if (SearchElement != null) { dest.SearchElement = (Hl7.Fhir.Model.FhirBoolean)SearchElement.DeepCopy(); } if (Resource != null) { dest.Resource = new List <Hl7.Fhir.Model.CompartmentDefinition.ResourceComponent>(Resource.DeepCopy()); } return(dest); }
private void BtnTitleColor_Click(object sender, RoutedEventArgs e) { TitleElement.SetBackground(pc, Brushes.Red); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as ResearchStudy; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (Protocol != null) { dest.Protocol = new List <Hl7.Fhir.Model.ResourceReference>(Protocol.DeepCopy()); } if (PartOf != null) { dest.PartOf = new List <Hl7.Fhir.Model.ResourceReference>(PartOf.DeepCopy()); } if (StatusElement != null) { dest.StatusElement = (Code <Hl7.Fhir.Model.ResearchStudy.ResearchStudyStatus>)StatusElement.DeepCopy(); } if (Category != null) { dest.Category = new List <Hl7.Fhir.Model.CodeableConcept>(Category.DeepCopy()); } if (Focus != null) { dest.Focus = new List <Hl7.Fhir.Model.CodeableConcept>(Focus.DeepCopy()); } if (Contact != null) { dest.Contact = new List <Hl7.Fhir.Model.ContactDetail>(Contact.DeepCopy()); } if (RelatedArtifact != null) { dest.RelatedArtifact = new List <Hl7.Fhir.Model.RelatedArtifact>(RelatedArtifact.DeepCopy()); } if (Keyword != null) { dest.Keyword = new List <Hl7.Fhir.Model.CodeableConcept>(Keyword.DeepCopy()); } if (Jurisdiction != null) { dest.Jurisdiction = new List <Hl7.Fhir.Model.CodeableConcept>(Jurisdiction.DeepCopy()); } if (Description != null) { dest.Description = (Hl7.Fhir.Model.Markdown)Description.DeepCopy(); } if (Enrollment != null) { dest.Enrollment = new List <Hl7.Fhir.Model.ResourceReference>(Enrollment.DeepCopy()); } if (Period != null) { dest.Period = (Hl7.Fhir.Model.Period)Period.DeepCopy(); } if (Sponsor != null) { dest.Sponsor = (Hl7.Fhir.Model.ResourceReference)Sponsor.DeepCopy(); } if (PrincipalInvestigator != null) { dest.PrincipalInvestigator = (Hl7.Fhir.Model.ResourceReference)PrincipalInvestigator.DeepCopy(); } if (Site != null) { dest.Site = new List <Hl7.Fhir.Model.ResourceReference>(Site.DeepCopy()); } if (ReasonStopped != null) { dest.ReasonStopped = (Hl7.Fhir.Model.CodeableConcept)ReasonStopped.DeepCopy(); } if (Note != null) { dest.Note = new List <Hl7.Fhir.Model.Annotation>(Note.DeepCopy()); } if (Arm != null) { dest.Arm = new List <Hl7.Fhir.Model.ResearchStudy.ArmComponent>(Arm.DeepCopy()); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as DataElement; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (UrlElement != null) { dest.UrlElement = (Hl7.Fhir.Model.FhirUri)UrlElement.DeepCopy(); } if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (VersionElement != null) { dest.VersionElement = (Hl7.Fhir.Model.FhirString)VersionElement.DeepCopy(); } if (StatusElement != null) { dest.StatusElement = (Code <Hl7.Fhir.Model.PublicationStatus>)StatusElement.DeepCopy(); } if (ExperimentalElement != null) { dest.ExperimentalElement = (Hl7.Fhir.Model.FhirBoolean)ExperimentalElement.DeepCopy(); } if (DateElement != null) { dest.DateElement = (Hl7.Fhir.Model.FhirDateTime)DateElement.DeepCopy(); } if (PublisherElement != null) { dest.PublisherElement = (Hl7.Fhir.Model.FhirString)PublisherElement.DeepCopy(); } if (NameElement != null) { dest.NameElement = (Hl7.Fhir.Model.FhirString)NameElement.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (Contact != null) { dest.Contact = new List <Hl7.Fhir.Model.ContactDetail>(Contact.DeepCopy()); } if (UseContext != null) { dest.UseContext = new List <Hl7.Fhir.Model.UsageContext>(UseContext.DeepCopy()); } if (Jurisdiction != null) { dest.Jurisdiction = new List <Hl7.Fhir.Model.CodeableConcept>(Jurisdiction.DeepCopy()); } if (Copyright != null) { dest.Copyright = (Hl7.Fhir.Model.Markdown)Copyright.DeepCopy(); } if (StringencyElement != null) { dest.StringencyElement = (Code <Hl7.Fhir.Model.DataElement.DataElementStringency>)StringencyElement.DeepCopy(); } if (Mapping != null) { dest.Mapping = new List <Hl7.Fhir.Model.DataElement.MappingComponent>(Mapping.DeepCopy()); } if (Element != null) { dest.Element = new List <Hl7.Fhir.Model.ElementDefinition>(Element.DeepCopy()); } return(dest); }
public static new Element FromObj(object instance) { if (instance == null) { return(null); } try{ string tagUrn = (string)GetProperty(instance, "tagUrn"); string tagName = (string)GetProperty(instance, "tagName"); if (tagUrn == null || tagUrn == "") { switch (tagName.ToLower()) { case "!": return(CommentElement.FromObj(instance)); case "a": return(AElement.FromObj(instance)); case "area": return(AreaElement.FromObj(instance)); case "base": return(BaseElement.FromObj(instance)); case "basefont": return(BaseFontElement.FromObj(instance)); case "bgsound": return(BgsoundElement.FromObj(instance)); case "address": case "pre": case "center": case "listing": case "xmp": case "plaintext": case "blockquote": return(BlockElement.FromObj(instance)); case "body": return(BodyElement.FromObj(instance)); case "br": return(BrElement.FromObj(instance)); case "button": return(ButtonElement.FromObj(instance)); case "dd": return(DdElement.FromObj(instance)); case "div": return(DivElement.FromObj(instance)); case "dl": return(DlElement.FromObj(instance)); case "dt": return(DtElement.FromObj(instance)); case "embed": return(EmbedElement.FromObj(instance)); case "fieldset": return(FieldsetElement.FromObj(instance)); case "font": return(FontElement.FromObj(instance)); case "form": return(FormElement.FromObj(instance)); case "frame": return(FrameElement.FromObj(instance)); case "frameset": return(FramesetElement.FromObj(instance)); case "head": return(HeadElement.FromObj(instance)); case "h1": case "h2": case "h3": case "h4": case "h5": case "h6": return(HnElement.FromObj(instance)); case "hr": return(HrElement.FromObj(instance)); case "html": return(HtmlElement.FromObj(instance)); case "iframe": return(IframeElement.FromObj(instance)); case "img": return(ImgElement.FromObj(instance)); case "input": return(InputElement.FromObj(instance)); case "isindex": return(IsindexElement.FromObj(instance)); case "legend": return(LegendElement.FromObj(instance)); case "label": return(LabelElement.FromObj(instance)); case "li": return(LiElement.FromObj(instance)); case "link": return(LinkElement.FromObj(instance)); case "map": return(MapElement.FromObj(instance)); case "marquee": return(MarqueeElement.FromObj(instance)); case "meta": return(MetaElement.FromObj(instance)); case "nextid": return(NextidElement.FromObj(instance)); case "noembed": case "noframes": case "nolayer": case "noscript": return(NoshowElement.FromObj(instance)); case "applet": case "object": return(ObjectElement.FromObj(instance)); case "ol": return(OlElement.FromObj(instance)); case "optgroup": case "option": return(OptionElement.FromObj(instance)); case "p": return(PElement.FromObj(instance)); case "param": return(ParamElement.FromObj(instance)); case "i": case "u": case "b": case "q": case "s": case "strong": case "del": case "strike": case "em": case "small": case "big": case "ruby": case "rp": case "sub": case "sup": case "acronym": case "bdo": case "cite": case "dfn": case "ins": case "code": case "kbd": case "samp": case "var": case "nobr": return(PhraseElement.FromObj(instance)); case "script": return(ScriptElement.FromObj(instance)); case "select": return(SelectElement.FromObj(instance)); case "span": return(SpanElement.FromObj(instance)); case "style": return(StyleElement.FromObj(instance)); case "caption": return(CaptionElement.FromObj(instance)); case "td": case "th": return(TableCellElement.FromObj(instance)); case "table": return(TableElement.FromObj(instance)); case "colgroup": case "col": return(ColElement.FromObj(instance)); case "tr": return(TrElement.FromObj(instance)); case "thead": case "tbody": case "tfoot": return(TableSectionElement.FromObj(instance)); case "textarea": return(TextAreaElement.FromObj(instance)); case "wbr": return(TextElement.FromObj(instance)); case "title": return(TitleElement.FromObj(instance)); case "dir": case "menu": case "ul": return(UlElement.FromObj(instance)); // optionbutton ? // spanflow ? // default: return UnknownElement.FromObj(instance); } } }catch { // IHTMLElement でない可能性 } return(new Element(instance)); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Attachment; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (ContentTypeElement != null) { dest.ContentTypeElement = (Hl7.Fhir.Model.Code)ContentTypeElement.DeepCopy(); } if (LanguageElement != null) { dest.LanguageElement = (Hl7.Fhir.Model.Code)LanguageElement.DeepCopy(); } if (DataElement != null) { dest.DataElement = (Hl7.Fhir.Model.Base64Binary)DataElement.DeepCopy(); } if (UrlElement != null) { dest.UrlElement = (Hl7.Fhir.Model.FhirUrl)UrlElement.DeepCopy(); } if (SizeElement != null) { dest.SizeElement = (Hl7.Fhir.Model.Integer64)SizeElement.DeepCopy(); } if (HashElement != null) { dest.HashElement = (Hl7.Fhir.Model.Base64Binary)HashElement.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (CreationElement != null) { dest.CreationElement = (Hl7.Fhir.Model.FhirDateTime)CreationElement.DeepCopy(); } if (HeightElement != null) { dest.HeightElement = (Hl7.Fhir.Model.PositiveInt)HeightElement.DeepCopy(); } if (WidthElement != null) { dest.WidthElement = (Hl7.Fhir.Model.PositiveInt)WidthElement.DeepCopy(); } if (FramesElement != null) { dest.FramesElement = (Hl7.Fhir.Model.PositiveInt)FramesElement.DeepCopy(); } if (DurationElement != null) { dest.DurationElement = (Hl7.Fhir.Model.FhirDecimal)DurationElement.DeepCopy(); } if (PagesElement != null) { dest.PagesElement = (Hl7.Fhir.Model.PositiveInt)PagesElement.DeepCopy(); } return(dest); }
public override ErrorList Validate() { var result = new ErrorList(); result.AddRange(base.Validate()); if (Identifier != null) { result.AddRange(Identifier.Validate()); } if (VersionIdentifier != null) { result.AddRange(VersionIdentifier.Validate()); } if (CreatedElement != null) { result.AddRange(CreatedElement.Validate()); } if (Type != null) { result.AddRange(Type.Validate()); } if (Subtype != null) { result.AddRange(Subtype.Validate()); } if (TitleElement != null) { result.AddRange(TitleElement.Validate()); } if (StatusElement != null) { result.AddRange(StatusElement.Validate()); } if (Confidentiality != null) { result.AddRange(Confidentiality.Validate()); } if (Subject != null) { result.AddRange(Subject.Validate()); } if (Author != null) { Author.ForEach(elem => result.AddRange(elem.Validate())); } if (Attester != null) { Attester.ForEach(elem => result.AddRange(elem.Validate())); } if (Custodian != null) { result.AddRange(Custodian.Validate()); } if (Event != null) { result.AddRange(Event.Validate()); } if (Encounter != null) { result.AddRange(Encounter.Validate()); } if (ReplacesElement != null) { result.AddRange(ReplacesElement.Validate()); } if (Provenance != null) { Provenance.ForEach(elem => result.AddRange(elem.Validate())); } if (Stylesheet != null) { result.AddRange(Stylesheet.Validate()); } if (Representation != null) { result.AddRange(Representation.Validate()); } if (Section != null) { Section.ForEach(elem => result.AddRange(elem.Validate())); } return(result); }
private void WriteTitleElement(TitleElement titleElement) { if (titleElement == null) { return; } var title = titleElement.Parts.FirstOrDefault(x => x.Key.ToLowerInvariant() == "title"); var author = titleElement.Parts.FirstOrDefault(x => x.Key.ToLowerInvariant() == "author"); var addy = titleElement.Parts.FirstOrDefault(x => x.Key.ToLowerInvariant() == "address"); if (title.Equals(default(KeyValuePair <string, string>))) { return; } MoveDownInches(_settings.PageTitleDistanceFromTop); _page.SetFont(_courierBold, _settings.FontSize); WriteCenteredLines(title.Value); _page.SetFont(_courier, _settings.FontSize); EmptyLine(); if (author.Equals(default(KeyValuePair <string, string>))) { MoveDown(4); } else { EmptyLine(); WriteCenteredLine("Written by"); EmptyLine(); WriteCenteredLines(author.Value); } if (!addy.Equals(default(KeyValuePair <string, string>))) { string[] split = addy.Value.Split(new char[] { '\n', '\r' }).Where(x => !string.IsNullOrEmpty(x)).ToArray(); float distFromBottom = PageSettings.InPoints(_settings.BottomMargin) + (split.Length * _settings.EffectiveCharHeight) + PageSettings.InPoints(_settings.AddressDistanceFromBottomMargin); float delta = distFromBottom - _posY; MoveDownPoints(delta); IndentInches(_settings.AddressIndent); foreach (string str in split) { WriteLine(str); } // Not necessary, since we're starting a new page after this. // ChangeIndent(-_settings.AddressIndentCharCount); } /* * var otherItems = titleElement.Parts.Where(x => x.Key.ToLowerInvariant() != "title" && x.Key.ToLowerInvariant() != "author"); * if (otherItems.Any()) { * MoveDownInches(_settings.AddressDistanceFromTitle); * IndentInches(_settings.AddressIndent); * foreach (var part in otherItems) { * foreach (string str in part.Value.Split(new char[] { '\n', '\r' })) { * if (string.IsNullOrEmpty(str)) * continue; * WriteLine(str); * } * } * } */ _pageNumber--; NewPage(); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Composition; if (dest != null) { base.CopyTo(dest); if (Identifier != null) { dest.Identifier = (Hl7.Fhir.Model.Identifier)Identifier.DeepCopy(); } if (DateElement != null) { dest.DateElement = (Hl7.Fhir.Model.FhirDateTime)DateElement.DeepCopy(); } if (Type != null) { dest.Type = (Hl7.Fhir.Model.CodeableConcept)Type.DeepCopy(); } if (Class != null) { dest.Class = (Hl7.Fhir.Model.CodeableConcept)Class.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (StatusElement != null) { dest.StatusElement = (Code <Hl7.Fhir.Model.Composition.CompositionStatus>)StatusElement.DeepCopy(); } if (Confidentiality != null) { dest.Confidentiality = (Hl7.Fhir.Model.Coding)Confidentiality.DeepCopy(); } if (Subject != null) { dest.Subject = (Hl7.Fhir.Model.ResourceReference)Subject.DeepCopy(); } if (Author != null) { dest.Author = new List <Hl7.Fhir.Model.ResourceReference>(Author.DeepCopy()); } if (Attester != null) { dest.Attester = new List <Hl7.Fhir.Model.Composition.CompositionAttesterComponent>(Attester.DeepCopy()); } if (Custodian != null) { dest.Custodian = (Hl7.Fhir.Model.ResourceReference)Custodian.DeepCopy(); } if (Event != null) { dest.Event = (Hl7.Fhir.Model.Composition.CompositionEventComponent)Event.DeepCopy(); } if (Encounter != null) { dest.Encounter = (Hl7.Fhir.Model.ResourceReference)Encounter.DeepCopy(); } if (Section != null) { dest.Section = new List <Hl7.Fhir.Model.Composition.SectionComponent>(Section.DeepCopy()); } return(dest); } else { throw new ArgumentException("Can only copy to an object of the same type", "other"); } }
private void WriteTitleElement(TitleElement titleElement) { if (titleElement == null) return; var title = titleElement.Parts.FirstOrDefault(x => x.Key.ToLowerInvariant() == "title"); var author = titleElement.Parts.FirstOrDefault(x => x.Key.ToLowerInvariant() == "author"); var addy = titleElement.Parts.FirstOrDefault(x => x.Key.ToLowerInvariant() == "address"); if (title.Equals(default(KeyValuePair<string, string>))) return; MoveDownInches(_settings.PageTitleDistanceFromTop); _page.SetFont(_courierBold, _settings.FontSize); WriteCenteredLines(title.Value); _page.SetFont(_courier, _settings.FontSize); EmptyLine(); if (author.Equals(default(KeyValuePair<string, string>))) { MoveDown(4); } else { EmptyLine(); WriteCenteredLine("Written by"); EmptyLine(); WriteCenteredLines(author.Value); } if (!addy.Equals(default(KeyValuePair<string, string>))) { string[] split = addy.Value.Split(new char[] { '\n', '\r' }).Where(x => !string.IsNullOrEmpty(x)).ToArray(); float distFromBottom = PageSettings.InPoints(_settings.BottomMargin) + (split.Length * _settings.EffectiveCharHeight) + PageSettings.InPoints(_settings.AddressDistanceFromBottomMargin); float delta = distFromBottom - _posY; MoveDownPoints(delta); IndentInches(_settings.AddressIndent); foreach (string str in split) { WriteLine(str); } // Not necessary, since we're starting a new page after this. // ChangeIndent(-_settings.AddressIndentCharCount); } /* var otherItems = titleElement.Parts.Where(x => x.Key.ToLowerInvariant() != "title" && x.Key.ToLowerInvariant() != "author"); if (otherItems.Any()) { MoveDownInches(_settings.AddressDistanceFromTitle); IndentInches(_settings.AddressIndent); foreach (var part in otherItems) { foreach (string str in part.Value.Split(new char[] { '\n', '\r' })) { if (string.IsNullOrEmpty(str)) continue; WriteLine(str); } } } */ _pageNumber--; NewPage(); }
private void BuildPostingFields() { //add amount and narration var narrSection = new Section ("Activity Code"); if (selectedTariff != null) { narration = new EntryElement ( "Narration", "Narration", narrationValue ); tariffName = new TitleElement (selectedTariff.name); narrSection.Add (tariffName); } else { narration = new EntryElement ("Narration", "Narration", null); } narration.EntryEnded += (object sender, EventArgs e) => { Console.WriteLine ("## Narration edit ended... to save data value: " + narration.Value); narrationValue = narration.Value; }; narrSection.Add (narration); Root.Add (narrSection); // var amtSection = new Section (""); if (amount == 0) { feeAmount = new EntryElement ("Fee Amount", "0.00", null); } else { feeAmount = new EntryElement ("Fee Amount", "0.00", amount.ToString ("N")); } feeAmount.KeyboardType = UIKeyboardType.NumbersAndPunctuation; amtSection.Add (feeAmount); Root.Add (amtSection); }
public void Transform(IEnumerable <Element> elements, Stream output) { string headerTemplate = ReadEmbeddedResource("PageOfBob.NFountain.Plugins.Templates.Script-Header.html"); string footer = ReadEmbeddedResource("PageOfBob.NFountain.Plugins.Templates.Script-Footer.html"); string title = "NFountain Script"; Element first = elements.FirstOrDefault(); if (first == null) { return; } if (first.Type == ElementType.Title) { TitleElement element = (TitleElement)first; var titleKVP = element.Parts.FirstOrDefault(x => x.Key.ToLowerInvariant() == "title"); if (!string.IsNullOrWhiteSpace(titleKVP.Value)) { title = titleKVP.Value.Trim(); } } TextWriter w = new StreamWriter(output); w.Write(headerTemplate.Replace("{{Script Name}}", title)); foreach (Element item in elements) { switch (item.Type) { case ElementType.None: break; case ElementType.Heading: w.Write("<div class\"heading\">"); w.Write(HtmlEncode(((HeadingElement)item).Value)); w.WriteLine("</div>"); break; case ElementType.DialogGroup: w.WriteLine("<div class=\"dialog-group\">"); DialogGroupElement grp = (DialogGroupElement)item; w.Write("<div class=\"dialog-character\">"); w.Write(HtmlEncode(grp.Character)); w.WriteLine("</div>"); if (!string.IsNullOrWhiteSpace(grp.Parenthetical)) { w.Write("<div class=\"dialog-character\">"); w.Write(HtmlEncode(grp.Character)); w.WriteLine("</div>"); } w.Write("<div class=\"dialog-text\">"); w.Write(HtmlEncode(grp.Dialog)); w.WriteLine("</div>"); w.WriteLine("</div>"); break; case ElementType.Action: w.Write("<div class\"action\">"); w.Write(HtmlEncode(((ActionElement)item).Content)); w.WriteLine("</div>"); break; case ElementType.Boneyard: w.Write("<!--"); w.Write(HtmlEncode(((BoneyardElement)item).Value)); w.WriteLine("-->"); break; case ElementType.Transition: w.Write("<div class\"transition\">"); w.Write(HtmlEncode(((TransitionElement)item).Value)); w.WriteLine("</div>"); break; case ElementType.CenteredText: w.Write("<div class\"centered\">"); w.Write(HtmlEncode(((CenteredTextElement)item).Content)); w.WriteLine("</div>"); break; case ElementType.LineBreak: w.WriteLine("<br class=\"line-break\" />"); break; case ElementType.NoteBlock: w.Write("<div class\"note\" style=\"display: none\">"); w.Write(HtmlEncode(((NoteBlockElement)item).Value)); w.WriteLine("</div>"); break; case ElementType.Section: w.Write("<div class\"section\">"); w.Write(HtmlEncode(((SectionElement)item).Value)); w.WriteLine("</div>"); break; case ElementType.Synopsis: w.Write("<div class\"synopsis\" style=\"display: none\">"); w.Write(HtmlEncode(((SynopsisElement)item).Value)); w.WriteLine("</div>"); break; case ElementType.Title: w.WriteLine("<div class=\"title-group\">"); foreach (var kvp in ((TitleElement)item).Parts) { w.Write("<div class=\"title-part\">"); w.Write(HtmlEncode(kvp.Value)); w.WriteLine("</div>"); } w.WriteLine("</div>"); break; default: throw new Exception("Invalid value for ElementType"); } } w.Write(footer); w.Flush(); }
private void BuildTimeBasedFields() { if (isTimeBased) { //add 2 btns and result string var durSection = new Section (S.GetText (S.DURATION)); var btnHours = new StyledStringElement ("Pick Hours"); var btnMin = new StyledStringElement ("Pick Minutes"); btnHours.Alignment = UITextAlignment.Center; btnMin.Alignment = UITextAlignment.Center; //btnHours.TextColor = ColorHelper.GetGPLightPurple (); //btnMin.TextColor = ColorHelper.GetGPLightPurple (); var dur = new TitleElement ("" + hours + " hours and " + minutes + " minutes"); var sb = new StringBuilder (); if (hours > 0) { if (hours == 1) { sb.Append ("" + hours + " hour "); } else { sb.Append ("" + hours + " hours "); } if (minutes > 0) { if (minutes == 1) { sb.Append (" and " + minutes + " minute"); } else { sb.Append ("" + minutes + " minutes"); } } } else { if (minutes > 0) { if (minutes == 1) { sb.Append ("" + minutes + " minute"); } else { sb.Append ("" + minutes + " minutes"); } } } dur = new TitleElement (sb.ToString ()); btnHours.Tapped += delegate { string[] btns = new string[24]; for (int i = 0; i < 24; i++) { if (i == 0) { btns [i] = "" + i; } else { if (i == 1) { btns [i] = "" + i + " hour"; } else { btns [i] = "" + i + " hours"; } } } var actionSheet = new UIActionSheet ( "Duration in Hours", null, "Cancel", null, btns ){ Style = UIActionSheetStyle.Default }; actionSheet.Clicked += delegate (object sender, UIButtonEventArgs args) { if (args.ButtonIndex == 24) { //ignore - Cancel } else { hours = args.ButtonIndex; Console.WriteLine ("" + hours + " hours and " + minutes + " minutes"); BuildInterface (); } }; actionSheet.ShowInView (View); }; btnMin.Tapped += delegate { string[] btns = new string[60]; for (int i = 0; i < 60; i++) { if (i == 0) { btns [i] = "" + i; } else { if (i == 1) { btns [i] = "" + i + " minute"; } else { btns [i] = "" + i + " minutes"; } } } var actionSheet = new UIActionSheet ( "Duration in Minutes", null, "Cancel", null, btns ){ Style = UIActionSheetStyle.Default }; actionSheet.Clicked += delegate (object sender, UIButtonEventArgs args) { if (args.ButtonIndex == 60) { //ignore - Cancel } else { minutes = args.ButtonIndex; Console.WriteLine ("" + hours + " hours and " + minutes + " minutes"); BuildInterface (); } }; actionSheet.ShowInView (View); }; durSection.Add (dur); durSection.Add (btnHours); durSection.Add (btnMin); Root.Add (durSection); } }
public void BuildInterface() { if (Root == null) { Root = new RootElement (""); } Root.Clear (); String name = ""; if (searchResult != null) { name = searchResult.matterName; } headerLabel = new UILabel (new RectangleF (40, 10, 620, 40)) { Font = UIFont.BoldSystemFontOfSize (20), BackgroundColor = ColorHelper.GetGPPurple (), TextAlignment = UITextAlignment.Center, TextColor = UIColor.White, Text = name }; var view = new UIViewBordered (); view.Frame = new RectangleF (40, 10, 620, 40); view.Add (headerLabel); var topSection = new Section (view); Root.Add (topSection); // var sec = new Section (""); matterName = new TitleElement ("Matter Details"); if (searchResult != null) { ownerName = new StringsElement ("Owner", searchResult.currentOwner); matterID = new NumberElement ( Convert.ToInt16 (searchResult.matterID), "Matter ID"); if (searchResult.matterLegacyAccount == null || searchResult.matterLegacyAccount.Trim () == "") { //ignore } else { legacy = new StringsElement ( "Legacy Account", searchResult.matterLegacyAccount ); } clientName = new StringsElement ("Client", "" + searchResult.clientName); } // var sec2 = new Section (""); if (matter == null) { busBal = new FinanceElement (S.GetText (S.BUSINESS_BALANCE) + ":", 0.00); currBal = new FinanceElement (S.GetText (S.CURRENT_BALANCE) + ":", 0.00); trustBal = new FinanceElement (S.GetText (S.TRUST_BALANCE) + ":", 0.00); reserveTrust = new FinanceElement (S.GetText (S.RESERVE_TRUST) + ":", 0.00); unbilled = new FinanceElement (S.GetText (S.UNBILLED_BALANCE) + ":", 0.00); pending = new FinanceElement (S.GetText (S.PENDING_DISBURSEMENTS) + ":", 0.00); investTrust = new FinanceElement (S.GetText (S.INVESTMENT_TRUST) + ":", 0.00); } else { busBal = new FinanceElement (S.GetText (S.BUSINESS_BALANCE) + ":", matter.businessBalance, deviceType); currBal = new FinanceElement (S.GetText (S.CURRENT_BALANCE) + ":", matter.currentBalance, deviceType); unbilled = new FinanceElement (S.GetText (S.UNBILLED_BALANCE) + ":", matter.unbilledBalance, deviceType); trustBal = new FinanceElement (S.GetText (S.TRUST_BALANCE) + ":", matter.trustBalance, deviceType); reserveTrust = new FinanceElement (S.GetText (S.RESERVE_TRUST) + ":", matter.reserveTrust, deviceType); pending = new FinanceElement (S.GetText (S.PENDING_DISBURSEMENTS) + ":", matter.pendingDisbursementBalance, deviceType); investTrust = new FinanceElement (S.GetText (S.INVESTMENT_TRUST) + ":", matter.investmentTrustBalance, deviceType ); } // sec.Add (matterName); sec.Add (clientName); sec.Add (ownerName); sec.Add (matterID); Root.Add (sec); // sec2.Add (busBal); sec2.Add (trustBal); sec2.Add (investTrust); sec2.Add (currBal); sec2.Add (reserveTrust); sec2.Add (unbilled); sec2.Add (pending); if (legacy != null) { sec2.Add (legacy); } Root.Add (sec2); }