Beispiel #1
0
        } //--------------------------------

        //this procedure shows the loan remittance information
        private void ShowLoanRemittanceInfo(Boolean show)
        {
            gbxRemittance.Enabled = show;

            if (show)
            {
                CommonExchange.LoanInformation loanInfo = _loanManager.GetDetailsLoanRemittance(_loanSysId);

                lblReferenceNo.Text       = loanInfo.ReferenceNo;
                lblLoanType.Text          = loanInfo.Description;
                lblReleaseDate.Text       = loanInfo.ReleaseDate;
                lblMaturityDate.Text      = loanInfo.MaturityDate;
                lblPrincipalInterest.Text = loanInfo.PrincipalInterest.ToString("N");

                Decimal totalPaid = _loanManager.GetTotalPaidLoanRemittance(_loanSysId);

                lblAmountPaid.Text = totalPaid.ToString("N");
                lblBalance.Text    = ((Decimal)(loanInfo.PrincipalInterest - totalPaid)).ToString("N");

                dgvRemittance.DataSource = _loanManager.GetEmployeeRemittanceTable(_loanSysId);
            }
            else
            {
                lblReferenceNo.Text       = "--";
                lblLoanType.Text          = "--";
                lblReleaseDate.Text       = "--";
                lblMaturityDate.Text      = "--";
                lblPrincipalInterest.Text = "--";
                lblAmountPaid.Text        = "--";
                lblBalance.Text           = "--";
            }
        } //----------------------------------
        //###########################################CLASS DeductionUpdate EVENTS###########################################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            _loanInfo = new CommonExchange.LoanInformation();
            _loanTemp = new CommonExchange.LoanInformation();

            this.InitializeControls();
        } //-----------------------------------
        } //-------------------------------

        //##############################################END BUTTON btnUpdate EVENTS#############################################################

        #endregion

        #region Programmer-Defined Void Procedures

        //this procedure initializes the controls
        private void InitializeControls()
        {
            _loanInfo = _loanManager.GetLoanTypeInformationDetails(_loanId);
            _loanTemp = (CommonExchange.LoanInformation)_loanInfo.Clone();

            lblId.Text          = _loanInfo.LoanSysId;
            txtDescription.Text = _loanInfo.Description;
        }
        public EmployeeRemittanceCreate(CommonExchange.SysAccess userInfo, CommonExchange.Employee empInfo,
                                        CommonExchange.LoanInformation loanInfo, LoanRemittanceLogic loanManager)
        {
            this.InitializeComponent();

            _userInfo    = userInfo;
            _empInfo     = empInfo;
            _loanInfo    = loanInfo;
            _loanManager = loanManager;

            this.Load            += new EventHandler(ClassLoad);
            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
            this.btnCreate.Click += new EventHandler(btnCreateClick);
        }
Beispiel #5
0
        public EmployeeRemittance()
        {
            InitializeComponent();

            _userInfo = new CommonExchange.SysAccess();
            _empInfo  = new CommonExchange.Employee();
            _loanInfo = new CommonExchange.LoanInformation();
            _remInfo  = new CommonExchange.EmployeeLoanRemittance();

            _errProvider = new ErrorProvider();

            this.lnkChangeDate.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkChangeDateLinkClicked);
            this.txtAmountPaid.KeyPress    += new KeyPressEventHandler(txtAmountPaidKeyPress);
            this.txtAmountPaid.KeyUp       += new KeyEventHandler(txtAmountPaidKeyUp);
            this.txtAmountPaid.Validating  += new System.ComponentModel.CancelEventHandler(txtAmountPaidValidating);
        }
        public LoanInformation()
        {
            InitializeComponent();

            _userInfo = new CommonExchange.SysAccess();
            _empInfo  = new CommonExchange.Employee();
            _loanInfo = new CommonExchange.LoanInformation();

            _errProvider = new ErrorProvider();

            this.txtReferenceNo.Validated           += new EventHandler(txtReferenceNoValidated);
            this.txtPrincipal.KeyPress              += new KeyPressEventHandler(txtPrincipalKeyPress);
            this.txtPrincipal.Validating            += new System.ComponentModel.CancelEventHandler(txtPrincipalValidating);
            this.txtPrincipal.Validated             += new EventHandler(txtPrincipalValidated);
            this.txtMonthlyAmmortization.KeyPress   += new KeyPressEventHandler(txtMonthlyAmmortizationKeyPress);
            this.txtMonthlyAmmortization.Validating += new System.ComponentModel.CancelEventHandler(txtMonthlyAmmortizationValidating);
            this.txtMonthlyAmmortization.Validated  += new EventHandler(txtMonthlyAmmortizationValidated);
            this.lnkReleaseDate.LinkClicked         += new LinkLabelLinkClickedEventHandler(lnkReleaseDateLinkClicked);
            this.lnkMaturityDate.LinkClicked        += new LinkLabelLinkClickedEventHandler(lnkMaturityDateLinkClicked);
            this.cboLoanType.SelectedIndexChanged   += new EventHandler(cboLoanTypeSelectedIndexChanged);
        }
Beispiel #7
0
 //########################################CLASS DeductionCreate EVENTS##############################################
 //event is raised when the class is loaded
 private void ClassLoad(object sender, EventArgs e)
 {
     _loanInfo = new CommonExchange.LoanInformation();
 } //--------------------------------------