private void FillEqDeductionGrid() { const string METHOD_NAME = "FillEqDeductionGrid"; try { List <ListEquityDeductionItem> stateList = BeetEquityDeduction.EquityDeductionGetAll(); grdEqDeduction.SelectedIndex = -1; grdEqDeduction.DataSource = stateList; grdEqDeduction.DataBind(); } catch (Exception ex) { Common.CException wex = new Common.CException(MOD_NAME + METHOD_NAME, ex); throw (wex); } }
private void FillEquityDeductionList() { const string METHOD_NAME = "FillEquityDeductionList"; try { ddlEquityDeductions.Items.Clear(); List <ListEquityDeductionItem> stateList = BeetEquityDeduction.EquityDeductionGetAll(); ddlEquityDeductions.Items.Add(new ListItem(" ", "0")); foreach (ListEquityDeductionItem state in stateList) { ddlEquityDeductions.Items.Add(new ListItem(state.DeductionNumber + " - " + state.DeductionDescription, state.EquityDeductionID.ToString())); } if (ddlEquityDeductions.Items.Count > 0) { ddlEquityDeductions.Items[0].Selected = true; } } catch (Exception ex) { Common.CException wex = new Common.CException(MOD_NAME + METHOD_NAME, ex); throw (wex); } }