Example #1
0
        public DeptMasterInfo[] GetRecords()
        {
            DeptMasterInfo[]      infos = null;
            List <DeptMasterInfo> deptMasterInfoList = null;

            try
            {
                deptMasterInfoList = _deptMasterDA.GetAllRecord();
            }
            catch (Exception Ex)
            {
                throw Ex;
            }

            if (deptMasterInfoList != null)
            {
                infos = deptMasterInfoList.ToArray();
            }

            return(infos);
        }
Example #2
0
        /// <summary>
        /// 获得部门数据数组
        /// </summary>
        /// <returns></returns>
        public DeptMasterInfo[] GetDeptMasterDatas()
        {
            DeptMasterInfo[]      deptMasterInfos    = null;
            List <DeptMasterInfo> deptMasterInfoList = null;
            IDeptMasterDA         iDeptMasterDA      = MasterDAFactory.Instance.GetDeptMasterDA();

            try
            {
                deptMasterInfoList = iDeptMasterDA.GetAllRecord();
            }
            catch (Exception Ex)
            {
                throw Ex;
            }

            if (deptMasterInfoList != null)
            {
                deptMasterInfos = deptMasterInfoList.ToArray();
            }

            return(deptMasterInfos);
        }