コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
     }
 }
コード例 #3
0
ファイル: frmAccountGroup.cs プロジェクト: nwelsheimer/NBS
 /// <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;
     }
 }
コード例 #4
0
 /// <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);
     }
 }
コード例 #5
0
ファイル: frmAccountGroup.cs プロジェクト: nwelsheimer/NBS
 /// <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;
     }
 }
コード例 #6
0
 /// <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);
     }
 }