コード例 #1
0
 /// <summary>
 /// Function to fill PackageName combobox
 /// </summary>
 public void PackageNameComboFill()
 {
     try
     {
         SalaryPackageSP spSalaryPackage = new SalaryPackageSP();
         DataTable       dtbl            = spSalaryPackage.SalaryPackageViewAll();
         DataRow         dr = dtbl.NewRow();
         dr[1] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbPackageName.DataSource    = dtbl;
         cmbPackageName.ValueMember   = "salaryPackageId";
         cmbPackageName.DisplayMember = "salaryPackageName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("SPD:1 " + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #2
0
 /// <summary>
 /// Function to fill PackageName combobox
 /// </summary>
 public void PackageNameComboFill()
 {
     try
     {
         SalaryPackageSP spSalaryPackage = new SalaryPackageSP();
         DataTable dtbl = spSalaryPackage.SalaryPackageViewAll();
         DataRow dr = dtbl.NewRow();
         dr[1] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbPackageName.DataSource = dtbl;
         cmbPackageName.ValueMember = "salaryPackageId";
         cmbPackageName.DisplayMember = "salaryPackageName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("SPD:1 " + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #3
0
 /// <summary>
 /// Function to fill PackageName combobox
 /// </summary>
 public void PackageNameComboFill()
 {
     try
     {
         SalaryPackageSP spSalaryPackage = new SalaryPackageSP();
         DataTable       dtbl            = spSalaryPackage.SalaryPackageViewAll();
         DataRow         dr = dtbl.NewRow();
         dr[1] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbPackageName.DataSource    = dtbl;
         cmbPackageName.ValueMember   = "salaryPackageId";
         cmbPackageName.DisplayMember = "salaryPackageName";
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "SPR:1 " + ex.Message;
     }
 }