} //------------------------------- //#########################################END CONTROLDEDUCTIONMANAGER 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 (ApplyDeduction frmApply = new ApplyDeduction(_userInfo, _decManager.GetDetailsDeductionInformation(id), _decManager)) { _frmIncDecSearch.WindowState = FormWindowState.Minimized; frmApply.ShowDialog(this); _frmIncDecSearch.WindowState = FormWindowState.Normal; } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Apply Deduction 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) { _decInfo = new CommonExchange.DeductionInformation(); _decInfo = _decManager.GetDetailsDeductionInformation(_deductionId); _decInfo.EmployeeInfo.EmployeeSysId = _empInfo.EmployeeSysId; _decTemp = (CommonExchange.DeductionInformation)_decInfo.Clone(); lblName.Text = _empInfo.PersonInfo.LastName + ", " + _empInfo.PersonInfo.FirstName + " " + _empInfo.PersonInfo.MiddleName; lblDate.Text = DateTime.Parse(_decInfo.DeductionDate).ToLongDateString(); lblDescription.Text = _decInfo.Description; txtAmount.Text = _decInfo.Amount.ToString("N"); if (_empInfo.SalaryInfo.EmployeeStatusInfo.StatusId == (Byte)CommonExchange.EmploymentStatusNo.LayOff) { lnkChange.Visible = false; txtAmount.Enabled = false; btnUpdate.Visible = false; btnDelete.Visible = false; } } //---------------------------------