ViewClaim ReadStoreClaim(Claim claim) { List <ViewClaimDetail> details = new List <ViewClaimDetail>(); foreach (var detail in claim.ClaimDetails) { details.Add(new ViewClaimDetail ( detail.ClaimDetailId, detail.ClaimId, detail.Property.Type, detail.Property.PropertyNo, detail.Property.Location, (int)detail.Rent, (int)detail.Maintenance, (int)detail.Deposit, (int)detail.Others, (int)detail.Paid, (int)detail.OutstandingRentBalance, (int)detail.OutstandingMaintBalance ) ); } ViewClaim c = new ViewClaim(claim.ClaimId, claim.Sequence, claim.Customer.CustomerId, claim.Customer.Name, claim.ClaimYear, claim.LetterPartOne, claim.LetterPartTwo, details); return(c); }
public static ViewClaim CreateViewClaim(int ID) { ViewClaim viewClaim = new ViewClaim(); viewClaim.Id = ID; return(viewClaim); }
public void AddToClaims(ViewClaim viewClaim) { base.AddObject("Claims", viewClaim); }
public static ViewClaim CreateViewClaim(int ID) { ViewClaim viewClaim = new ViewClaim(); viewClaim.Id = ID; return viewClaim; }
void ClearView() { ShownViewClaim = ViewClaim.Create(); }