Ejemplo n.º 1
0
        /// <summary>
        /// Function to fill Package combobox in Datagridview
        /// </summary>
        public void SalaryPackageComboFill()
        {
            try
            {
                DataTable       dtblSalaryPackage = new DataTable();
                SalaryPackageSP spSalaryPackage   = new SalaryPackageSP();
                dtblSalaryPackage = spSalaryPackage.SalaryPackageViewAllForMonthlySalarySettings();
                DataRow dr = dtblSalaryPackage.NewRow();
                dr[0] = "0";
                dr[1] = "--Select--";
                dtblSalaryPackage.Rows.InsertAt(dr, 0);

                dgvcmbPackage.DataSource    = dtblSalaryPackage;
                dgvcmbPackage.ValueMember   = "salaryPackageId";
                dgvcmbPackage.DisplayMember = "salaryPackageName";
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "MSS2:" + ex.Message;
            }
        }
        /// <summary>
        /// Function to fill Package combobox in Datagridview
        /// </summary>
        public void SalaryPackageComboFill()
        {
            try
            {
                DataTable       dtblSalaryPackage = new DataTable();
                SalaryPackageSP spSalaryPackage   = new SalaryPackageSP();
                dtblSalaryPackage = spSalaryPackage.SalaryPackageViewAllForMonthlySalarySettings();
                DataRow dr = dtblSalaryPackage.NewRow();
                dr[0] = "0";
                dr[1] = "--Select--";
                dtblSalaryPackage.Rows.InsertAt(dr, 0);

                dgvcmbPackage.DataSource    = dtblSalaryPackage;
                dgvcmbPackage.ValueMember   = "salaryPackageId";
                dgvcmbPackage.DisplayMember = "salaryPackageName";
            }
            catch (Exception ex)
            {
                MessageBox.Show("MSS2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
        /// <summary>
        /// Function to fill Package combobox in Datagridview
        /// </summary>
        public void SalaryPackageComboFill()
        {
            try
            {
                DataTable dtblSalaryPackage = new DataTable();
                SalaryPackageSP spSalaryPackage = new SalaryPackageSP();
                dtblSalaryPackage = spSalaryPackage.SalaryPackageViewAllForMonthlySalarySettings();
                DataRow dr = dtblSalaryPackage.NewRow();
                dr[0] = "0";
                dr[1] = "--Select--";
                dtblSalaryPackage.Rows.InsertAt(dr, 0);

                dgvcmbPackage.DataSource = dtblSalaryPackage;
                dgvcmbPackage.ValueMember = "salaryPackageId";
                dgvcmbPackage.DisplayMember = "salaryPackageName";

            }
            catch (Exception ex)
            {
                MessageBox.Show("MSS2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }