public LoanRemittanceSummary(CommonExchange.SysAccess userInfo, CommonExchange.Employee empInfo, LoanRemittanceLogic loanManager) { this.InitializeComponent(); _userInfo = userInfo; _empInfo = empInfo; _loanManager = loanManager; this.Load += new EventHandler(ClassLoad); this.dgvLoan.MouseDown += new MouseEventHandler(dgvLoanMouseDown); this.dgvLoan.DoubleClick += new EventHandler(dgvLoanDoubleClick); this.dgvLoan.KeyPress += new KeyPressEventHandler(dgvLoanKeyPress); this.dgvLoan.KeyDown += new KeyEventHandler(dgvLoanKeyDown); this.dgvLoan.DataSourceChanged += new EventHandler(dgvLoanDataSourceChanged); this.dgvLoan.SelectionChanged += new EventHandler(dgvLoanSelectionChanged); this.dgvRemittance.MouseDown += new MouseEventHandler(dgvRemittanceMouseDown); this.dgvRemittance.DoubleClick += new EventHandler(dgvRemittanceDoubleClick); this.dgvRemittance.KeyPress += new KeyPressEventHandler(dgvRemittanceKeyPress); this.dgvRemittance.KeyDown += new KeyEventHandler(dgvRemittanceKeyDown); this.dgvRemittance.DataSourceChanged += new EventHandler(dgvRemittanceDataSourceChanged); this.dgvRemittance.SelectionChanged += new EventHandler(dgvRemittanceSelectionChanged); this.btnApply.Click += new EventHandler(btnApplyClick); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnCreate.Click += new EventHandler(btnCreateClick); this.btnPrint.Click += new EventHandler(btnPrintClick); }
public LoanInformationCreate(CommonExchange.SysAccess userInfo, CommonExchange.Employee empInfo, LoanRemittanceLogic loanManager) { this.InitializeComponent(); _userInfo = userInfo; _empInfo = empInfo; _loanManager = loanManager; this.Load += new EventHandler(ClassLoad); this.FormClosing += new FormClosingEventHandler(ClassClosing); this.btnCancel.Click += new EventHandler(btnCancelClick); this.btnApply.Click += new EventHandler(btnApplyClick); }
public LoanTypeCreate(CommonExchange.SysAccess userInfo, LoanRemittanceLogic loanManager) { this.InitializeComponent(); _userInfo = userInfo; _loanManager = loanManager; this.Load += new EventHandler(ClassLoad); this.FormClosing += new FormClosingEventHandler(ClassClosing); this.txtDescription.KeyPress += new KeyPressEventHandler(txtDescriptionKeyPress); this.btnCancel.Click += new EventHandler(btnCancelClick); this.btnCreate.Click += new EventHandler(btnCreateClick); }
public LoanInformationUpdate(CommonExchange.SysAccess userInfo, CommonExchange.Employee empInfo, CommonExchange.LoanInformation loanInfo, LoanRemittanceLogic loanManager) { this.InitializeComponent(); _userInfo = userInfo; _empInfo = empInfo; _loanManager = loanManager; _loanInfo = loanInfo; _loanInfoTemp = (CommonExchange.LoanInformation)loanInfo.Clone(); this.Load += new EventHandler(ClassLoad); this.FormClosing += new FormClosingEventHandler(ClassClosing); this.btnUpdate.Click += new EventHandler(btnUpdateClick); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnDelete.Click += new EventHandler(btnDeleteClick); }
//###########################################CLASS EarningManager EVENTS##################################################### //event is raised when the class is loaded private void ClassLoad(object sender, EventArgs e) { try { _loanManager = new LoanRemittanceLogic(_userInfo); _frmLoanTypeSearch = new LoanTypeSearchList(); _frmLoanTypeSearch.OnDoubleClickEnter += new SearchListLoanDataGridDoubleClickEnter(_frmLoanTypeSearchOnDoubleClickEnter); _frmLoanTypeSearch.OnCreate += new LoanTypeSearchListLinkCreateClick(_frmLoanTypeSearchOnCreate); _frmLoanTypeSearch.LocationPoint = new Point(50, 300); _frmLoanTypeSearch.AdoptGridSize = true; _frmLoanTypeSearch.MdiParent = this; _frmEmpSearch = new LoanRemittanceEmployeeSearchList(); _frmEmpSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmEmpSearchOnDoubleClickEnter); _frmEmpSearch.LocationPoint = new Point(50, 300); _frmEmpSearch.AdoptGridSize = true; _frmEmpSearch.MdiParent = this; lblRecordDate.Text = "Record Date: " + DateTime.Parse(_loanManager.ServerDateTime).ToString(); _forLoanType = true; if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessPayrollMaster(_userInfo))) { throw new Exception("You are not authorized to access this module."); } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating"); this.Close(); } }