/// <summary> /// Function to fill account group combo /// </summary> public void GroupUnderComboFill() { try { AccountGroupSP spAccountGroup = new AccountGroupSP(); DataTable dtblEmployeeCode = new DataTable(); dtblEmployeeCode = spAccountGroup.AccountGroupViewAllComboFill(); cmbGroupUnder.DataSource = dtblEmployeeCode; cmbGroupUnder.ValueMember = "accountGroupId"; cmbGroupUnder.DisplayMember = "accountGroupName"; } catch (Exception ex) { MessageBox.Show("AG2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill account group combo /// </summary> public void GroupUnderComboFill() { try { AccountGroupSP spAccountGroup = new AccountGroupSP(); DataTable dtblEmployeeCode = new DataTable(); dtblEmployeeCode = spAccountGroup.AccountGroupViewAllComboFill(); cmbGroupUnder.DataSource = dtblEmployeeCode; cmbGroupUnder.ValueMember = "accountGroupId"; cmbGroupUnder.DisplayMember = "accountGroupName"; } catch (Exception ex) { formMDI.infoError.ErrorString = "AG2:" + ex.Message; } }
/// <summary> /// Function to fill account group combo for Search /// </summary> public void GroupUnderSearchComboFill() { try { AccountGroupSP spAccountGroup = new AccountGroupSP(); DataTable dtblEmployeeCode = new DataTable(); dtblEmployeeCode = spAccountGroup.AccountGroupViewAllComboFill(); DataRow dr = dtblEmployeeCode.NewRow(); dr[1] = "All"; dtblEmployeeCode.Rows.InsertAt(dr, 0); cmbGroupUnderSearch.DataSource = dtblEmployeeCode; cmbGroupUnderSearch.ValueMember = "accountGroupId"; cmbGroupUnderSearch.DisplayMember = "accountGroupName"; } catch (Exception ex) { MessageBox.Show("AG3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill account group combo for Search /// </summary> public void GroupUnderSearchComboFill() { try { AccountGroupSP spAccountGroup = new AccountGroupSP(); DataTable dtblEmployeeCode = new DataTable(); dtblEmployeeCode = spAccountGroup.AccountGroupViewAllComboFill(); DataRow dr = dtblEmployeeCode.NewRow(); dr[1] = "All"; dtblEmployeeCode.Rows.InsertAt(dr, 0); cmbGroupUnderSearch.DataSource = dtblEmployeeCode; cmbGroupUnderSearch.ValueMember = "accountGroupId"; cmbGroupUnderSearch.DisplayMember = "accountGroupName"; } catch (Exception ex) { formMDI.infoError.ErrorString = "AG3:" + ex.Message; } }