예제 #1
0
        public TypeEntity GetTypesByTypeID(string typeID)
        {
            DataTable  ds    = HelpCenterDAL.BaseProvider.GetTypesByTypeID(typeID);
            TypeEntity model = new TypeEntity();

            foreach (DataRow dr in ds.Rows)
            {
                model.FillData(dr);
            }
            return(model);
        }
예제 #2
0
        public List <TypeEntity> GetTypes()
        {
            List <TypeEntity> list = new List <TypeEntity>();
            DataSet           ds   = HelpCenterDAL.BaseProvider.GetTypeList();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                TypeEntity model = new TypeEntity();
                model.FillData(dr);
                list.Add(model);
            }
            return(list);
        }
예제 #3
0
        public List <TypeEntity> GetTypes(int types, string keyWords, string beginTime, string endTime, string orderBy, int pageSize, int pageIndex, ref int totalCount, ref int pageCount)
        {
            List <TypeEntity> list = new List <TypeEntity>();
            DataSet           ds   = HelpCenterDAL.BaseProvider.GetTypes(types, keyWords, beginTime, endTime, orderBy, pageSize, pageIndex, ref totalCount, ref pageCount);

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                TypeEntity model = new TypeEntity();
                model.FillData(dr);
                list.Add(model);
            }
            return(list);
        }
예제 #4
0
        public List <TypeEntity> GetTypesByModuleType(ModuleTypeEnum moduleType)
        {
            List <TypeEntity> list = new List <TypeEntity>();
            DataTable         dt   = HelpCenterDAL.BaseProvider.GetTypesByModuleType((int)moduleType);

            foreach (DataRow dr in dt.Rows)
            {
                TypeEntity model = new TypeEntity();
                model.FillData(dr);
                list.Add(model);
            }

            return(list);
        }