public List <DataTable> SalaryPackageViewAll()
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = SalaryPackage.SalaryPackageViewAll();
            }
            catch (Exception ex)
            {
                MessageBox.Show("AL2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }
Beispiel #2
0
 /// <summary>
 /// Function to fill SalaryPackage combobox
 /// </summary>
 public void SalaryPackageComboFill()
 {
     try
     {
         SalaryPackageSP spSalaryPackage = new SalaryPackageSP();
         DataTable       dtbl            = spSalaryPackage.SalaryPackageViewAll();
         DataRow         dr = dtbl.NewRow();
         dr[1] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbSalaryPackage.DataSource    = dtbl;
         cmbSalaryPackage.ValueMember   = "salaryPackageId";
         cmbSalaryPackage.DisplayMember = "salaryPackageName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("SPDR:2" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }