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

            auditHelperDataSet.tbl_OutsideOrgDataTable _tbl = null;

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

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

            auditHelperDataSet.tbl_OutsideOrgDataTable _tbl = null;

            _tbl = _adapter.GetDataByID(aId);
            if (_tbl.Rows.Count == 1)
            {
                tmp = new OutsideOrg(_tbl[0].vch_full_name, _tbl[0].vch_short_name, _tbl[0].org_id);
            }

            return(tmp);
        }