/// <summary> /// Function to fill controls fpor update /// </summary> private void FillControls() { try { DesignationInfo infoDesignaion = new DesignationInfo(); DesignationSP spDesignation = new DesignationSP(); infoDesignaion = spDesignation.DesignationView(decDesignationId); txtDesignationName.Text = infoDesignaion.DesignationName; txtCLInMonth.Text = infoDesignaion.LeaveDays.ToString(); txtAdvanceAmount.Text = infoDesignaion.AdvanceAmount.ToString(); txtNarration.Text = infoDesignaion.Narration; btnSave.Text = "Update"; } catch (Exception ex) { formMDI.infoError.ErrorString = "D6:" + ex.Message; } }
/// <summary> /// Function to fill controls fpor update /// </summary> private void FillControls() { try { DesignationInfo infoDesignaion = new DesignationInfo(); DesignationSP spDesignation = new DesignationSP(); infoDesignaion = spDesignation.DesignationView(decDesignationId); txtDesignationName.Text = infoDesignaion.DesignationName; txtCLInMonth.Text = infoDesignaion.LeaveDays.ToString(); txtAdvanceAmount.Text = infoDesignaion.AdvanceAmount.ToString(); txtNarration.Text = infoDesignaion.Narration; btnSave.Text = "Update"; } catch (Exception ex) { MessageBox.Show("D6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill controls fpor update /// </summary> private void FillControls() { try { DesignationInfo infoDesignaion = new DesignationInfo(); DesignationSP spDesignation = new DesignationSP(); infoDesignaion = spDesignation.DesignationView(decDesignationId); txtDesignationName.Text = infoDesignaion.DesignationName; txtCLInMonth.Text = infoDesignaion.LeaveDays.ToString(); txtAdvanceAmount.Text = infoDesignaion.AdvanceAmount.ToString(); txtNarration.Text = infoDesignaion.Narration; btnSave.Text = "Update"; } catch (Exception ex) { MessageBox.Show("D6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }