예제 #1
0
        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);
        }
예제 #2
0
        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;
 }
예제 #5
0
 void ClearView()
 {
     ShownViewClaim = ViewClaim.Create();
 }
예제 #6
0
 public void AddToClaims(ViewClaim viewClaim)
 {
     base.AddObject("Claims", viewClaim);
 }