public ClientInformationAndAgeingBalances(AgeingBalances ageingBalances, ClientInformation clientInformation, TransactionSummary transacitonSummary)
        {
            ArgumentChecker.ThrowIfNull(ageingBalances, "ageingBalances");
            ArgumentChecker.ThrowIfNull(clientInformation, "clientInformation");
            ArgumentChecker.ThrowIfNull(transacitonSummary, "transacitonSummary");

            this.ageingBalances     = ageingBalances;
            this.clientInformation  = clientInformation;
            this.transacitonSummary = transacitonSummary;
        }
コード例 #2
0
        private readonly Date notifydate;               //MSarza [20150820]

        public CffCustomerInformation(CffCustomer customer, short stopCredit, decimal creditLimit, Date listDate, Date nextCall,
                                      short customerNoCalls, IDate lastPaid, decimal lastAmount, ClientCustomerTerm clientCustomerTerm, AgeingBalances ageingBalances)
        {
            this.customer           = customer;
            this.stopCredit         = stopCredit;
            this.creditLimit        = creditLimit;
            this.listDate           = listDate;
            NextCall                = nextCall;
            noCalls                 = customerNoCalls;
            this.lastPaid           = lastPaid;
            this.lastAmount         = lastAmount;
            this.clientCustomerTerm = clientCustomerTerm;
            this.ageingBalances     = ageingBalances;
        }
コード例 #3
0
        public StatementReport(ManagementDetails managementDetails, PurchaserDetails purchaserDetails, IList <StatementReportRecord> records, ICalendar calendar, Date dateAsAt, string title, string viewIDValue)
            : base(calendar, "Statement", purchaserDetails.ClientName)
        {
            ArgumentChecker.ThrowIfNull(managementDetails, "managementDetails");
            ArgumentChecker.ThrowIfNull(records, "records");

            this.managementDetails = managementDetails;
            this.purchaserDetails  = purchaserDetails;
            this.records           = records;
            this.dateAsAt          = dateAsAt;
            this.title             = title;
            this.viewID            = viewIDValue;

            ageingBalances = new AgeingBalances(records);
        }
 public CffCustomerInformation Build(CffCustomer customer, IDate lastPaid, decimal lastAmount, 
     ClientCustomerTerm clientCustomerTerm, AgeingBalances ageingBalances)
 {
     return new CffCustomerInformation(customer,
                                       reader.ToSmallInteger("StopCredit"),
                                       reader.ToDecimal("CreditLimit"),
                                       reader.ToDate("Created"),
                                       reader.ToDate("NextCall"),
                                       reader.ToSmallInteger("customerNoCalls"),
                                       lastPaid, lastAmount,
                                       clientCustomerTerm, ageingBalances,
                                       reader.ToString("Address1"),
                                       reader.ToString("Address2"),
                                       reader.ToString("Address3"),
                                       reader.ToString("Address4"),
                                       reader.ToString("EmailStatmentsAddr"),
                                       reader.ToDate("NotifyDate")
                                       );
 }
コード例 #5
0
        public void ShowReport(StatementReport report)
        {
            //ac = false;
            if (report != null)
            {
                ManagementDetails managementDetails = report.ManagementDetails;
                accountNameLiteral.Text   = managementDetails.Name;
                bankAndBranchLiteral.Text = managementDetails.BankDetails.NameAndBranch;
                accountNumberLiteral.Text = accountNumberLiteralTwo.Text = managementDetails.BankDetails.AccountNumber;

                PurchaserDetails purchaserDetails = report.PurchaserDetails;
                customerNameLiteral.Text         = purchaserDetails.Name;
                customerAddressOneLiteral.Text   = purchaserDetails.Address.AddressOne;
                customerAddressTwoLiteral.Text   = purchaserDetails.Address.AddressTwo;
                customerAddressThreeLiteral.Text = purchaserDetails.Address.AddressThree;
                customerAddressFourLiteral.Text  = purchaserDetails.Address.AddressFour;
                customerIdLiteral.Text           = purchaserDetails.Id.ToString();
                referenceLiteral.Text            = referenceLiteralTwo.Text = referenceLiteralThree.Text = purchaserDetails.Reference;

                configureGridColumns();
                cffGGV_StatementGridView.DataSource = report.Records;
                cffGGV_StatementGridView.DataBind();

                AgeingBalances ageingBalances = report.AgeingBalances;
                threeMonthsOrOverLiteral.Text = ageingBalances.ThreeMonthsAndOver.ToString("C");
                twoMonthsLiteral.Text         = ageingBalances.TwoMonthAgeing.ToString("C");
                oneMonthLiteral.Text          = ageingBalances.OneMonthAgeing.ToString("C");
                currentLiteral.Text           = ageingBalances.Current.ToString("C");
                balanceLiteral.Text           = ageingBalances.Balance.ToString("C");

                //Summary
                managementNameLiteral.Text         = managementDetails.Name;
                managementAddressOneLiteral.Text   = managementDetails.Address.AddressOne;
                managementAddressTwoLiteral.Text   = managementDetails.Address.AddressTwo;
                managementAddressThreeLiteral.Text = managementDetails.Address.AddressThree;
                managementAddressFourLiteral.Text  = managementDetails.Address.AddressFour;

                customerNameLiteral2.Text  = purchaserDetails.Name;
                customerNumberLiteral.Text = purchaserDetails.Number.ToString();
                monthEndingLiteral.Text    = report.MonthEnding.ToString();
                clientNameLiteral.Text     = purchaserDetails.ClientName;
            }
        }
コード例 #6
0
 public CffCustomerInformation(CffCustomer customer, short stopCredit, decimal creditLimit, Date listDate, Date nextCall,
                               short customerNoCalls, IDate lastPaid, decimal lastAmount, ClientCustomerTerm clientCustomerTerm, AgeingBalances ageingBalances,
                               string addr1, string addr2, string addr3, string addr4, string emailStatmentsAddr, Date notifydate)
 {
     this.customer           = customer;
     this.stopCredit         = stopCredit;
     this.creditLimit        = creditLimit;
     this.listDate           = listDate;
     NextCall                = nextCall;
     noCalls                 = customerNoCalls;
     this.lastPaid           = lastPaid;
     this.lastAmount         = lastAmount;
     this.clientCustomerTerm = clientCustomerTerm;
     this.ageingBalances     = ageingBalances;
     this.address1           = addr1;
     this.address2           = addr2;
     this.address3           = addr3;
     this.address4           = addr4;
     this.emailStatmentsAddr = emailStatmentsAddr;
     this.notifydate         = notifydate;               //MSarza [20150820]
 }