Example #1
0
        public List <int> GetAllIDs()
        {
            List <int> _tmp = new List <int>();

            auditHelperDataSet.tbl_OutsideEmployeeDataTable _tbl = null;

            _tbl = _adapter.GetAllIDs();
            foreach (auditHelperDataSet.tbl_OutsideEmployeeRow rw in _tbl)
            {
                _tmp.Add(rw.employee_ID);
            }

            return(_tmp);
        }
Example #2
0
        public OutsideEmp GetByID(int aId)
        {
            OutsideEmp tmp = null;

            auditHelperDataSet.tbl_OutsideEmployeeDataTable _tbl = null;

            _tbl = _adapter.GetDataByID(aId);
            if (_tbl.Rows.Count == 1)
            {
                tmp = new OutsideEmp(_tbl[0].org_id, _tbl[0].vch_post, _tbl[0].vch_last_name,
                                     _tbl[0].vch_first_name, (_tbl[0].Isvch_middle_nameNull() ? "" : _tbl[0].vch_middle_name), _tbl[0].employee_ID);
            }

            return(tmp);
        }