Example #1
0
        public void LoadRegularEmployee(ComboBox cbo)
        {
            Employee  e  = new Employee();
            DataTable dt = new DataTable();

            dt = e.SELECT_REGULAR();
            if (dt != null)
            {
                foreach (DataRow r in dt.Rows)
                {
                    cbo.Items.Add(r["lname"] + ", " + r["fname"] + " " + r["mname"] + "-" + r["empid"]);
                }
            }
        }    //end Load Regular Employees
Example #2
0
        public void LoadRegularEmployee(ComboBox cbo)
        {
            Employee e = new Employee();
                DataTable dt = new DataTable();

                dt = e.SELECT_REGULAR();
                if (dt != null)
                {
                    foreach (DataRow r in dt.Rows)
                    {
                        cbo.Items.Add(r["lname"] + ", " + r["fname"] + " " + r["mname"] + "-" + r["empid"]);
                    }
                }
        }