} //------------------------------- //#########################################END CONTROLEARNINGMANAGER ctlManager EVENTS######################################### //############################################CLASS EarningDeductionSearchList EVENTS############################################## //event is raised when the datagrid is double click or enter private void _frmIncDecSearchOnDoubleClickEnter(string id) { try { this.Cursor = Cursors.WaitCursor; using (ApplyEarning frmApply = new ApplyEarning(_userInfo, _incManager.GetDetailsEarningInformation(id), _incManager)) { _frmIncDecSearch.WindowState = FormWindowState.Minimized; frmApply.ShowDialog(this); _frmIncDecSearch.WindowState = FormWindowState.Normal; } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Apply Earning Module"); } finally { this.ctlManager.SetFocusOnSearchTextBox(); this.Cursor = Cursors.Arrow; } } //----------------------------
//#############################################CLASS ViewUpdateDeduction EVENTS############################################### //event is raised when the class is loaded private void ClassLoad(object sender, EventArgs e) { _incInfo = new CommonExchange.EarningInformation(); _incInfo = _incManager.GetDetailsEarningInformation(_earningId); _incInfo.EmployeeInfo.EmployeeSysId = _empInfo.EmployeeSysId; _incTemp = (CommonExchange.EarningInformation)_incInfo.Clone(); lblName.Text = RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(_empInfo.PersonInfo.LastName, _empInfo.PersonInfo.FirstName, _empInfo.PersonInfo.MiddleName); lblDate.Text = DateTime.Parse(_incInfo.EarningDate).ToLongDateString(); lblDescription.Text = _incInfo.Description; txtAmount.Text = _incInfo.Amount.ToString("N"); if (_empInfo.SalaryInfo.EmployeeStatusInfo.StatusId == (Byte)CommonExchange.EmploymentStatusNo.LayOff) { lnkChange.Visible = false; txtAmount.Enabled = false; btnUpdate.Visible = false; btnDelete.Visible = false; } } //---------------------------------