ExaminationBLL/TbTestPaperManager.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExaminationModels;
using ExaminationDAL;
using System.Data;

namespace ExaminationBLL
{
    public class TbTestPaperManager
    {
        static TbTestPaperService paperService = new TbTestPaperService();

        /// <summary>
        /// 添加一张试卷,返回当前试卷ID
        /// </summary>
        /// <param name="paper"></param>
        /// <returns></returns>
        public static int AddPaper(TbTestPaper paper)
        {
            return paperService.AddPaper(paper);
        }

        /// <summary>
        /// 查询试卷列表
        /// </summary>
        /// <param name="len">每次查询的条数</param>
        /// <param name="page">当前页数</param>
        /// <returns></returns>
        public static DataTable GetAllTestpaperByPage(int len, int page)
        {
            return paperService.GetAllTestpaperByPage(len, page);
        }
        public static DataTable GetAllTestpaperByPages(int len, int page, string sjName)
        {
            return paperService.GetAllTestpaperByPage(len, page,sjName);
        }
        public static DataTable GetAllTestpaperByPages(int len, int page, string sjName,int OK)
        {
            return paperService.GetAllTestpaperByPage(len, page, sjName,OK);
        }

        /// <summary>
        /// 根据ID删除试卷信息
        /// </summary>
        /// <param name="sjid">试卷ID</param>
        /// <returns></returns>
        public static int DeleteTestpaperBySjid(int sjid)
        {
            return paperService.DeleteTestpaperBySjid(sjid);
        }
        /// <summary>
        /// 查询试卷信息的总条数
        /// </summary>
        /// <returns></returns>
        public static int GetAllTestpaperCount()
        {
            return paperService.GetAllTestpaperCount();
后面还有 97 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。