Example #1
0
        public IDeptMasterDA GetDeptMasterDA()
        {
            IDeptMasterDA iDeptMasterDA = null;

            if (this._dataBaseType == DataBaseType.Access)
            {
                iDeptMasterDA = new MD.DAL.AccessDAL.Master.DeptMasterDA();
            }
            if (this._dataBaseType == DataBaseType.SqlServer)
            {
                iDeptMasterDA = new DAL.SqlDAL.Master.DeptMasterDA();
            }

            return(iDeptMasterDA);
        }
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);
        }
Example #3
0
 public DeptMaster()
 {
     this._deptMasterDA = MasterDAFactory.Instance.GetDeptMasterDA();
 }
Example #4
0
 public DeptMaster()
 {
     this._deptMasterDA = MasterDAFactory.Instance.GetDeptMasterDA();
 }