Exemple #1
0
 /// <summary>
 /// Function to fill Datagridview
 /// </summary>
 public void GridFill()
 {
     try
     {
         DataTable       dtblBonusDeduction = new DataTable();
         BonusDedutionSP spBonus            = new BonusDedutionSP();
         dtblBonusDeduction     = spBonus.BonusDeductionSearchForPopUp(txtEmployeeCode.Text, txtEmployeeName.Text);
         dgvEmployee.DataSource = dtblBonusDeduction;
     }
     catch (Exception ex)
     {
         MessageBox.Show("EMPP13:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
        /// <summary>
        /// Function to get all values based on the parameters for search
        /// </summary>
        /// <param name="strCode"></param>
        /// <param name="strName"></param>
        /// <returns></returns>
        public List <DataTable> BonusDeductionSearchForPopUp(String strCode, String strName)
        {
            List <DataTable> listobj = new List <DataTable>();

            try
            {
                listobj = SPBonusDedution.BonusDeductionSearchForPopUp(strCode, strName);
            }
            catch (Exception ex)
            {
                MessageBox.Show("BDBll12:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listobj);
        }