BLL/BLLPaperByManuaSelection.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Entity;
using DAL;
namespace BLL
{
public class BLLPaperByManuaSelection
{
private DBPaperByManualSelection db = new DBPaperByManualSelection();
public void CreatePaper(PaperByManualSelection paper)
{
db.Insert(paper);
}
public List<PaperByManualSelection> GetPaperList()
{
return db.SelectList();
}
public PageList<PaperByManualSelection> GetPaperList(int pageNum, int pageSize)
{
return new PageList<PaperByManualSelection>(GetPaperList(), pageNum, pageSize);
}
public List<PaperByManualSelection> GetPaperList(int deptID)
{
if (deptID <= 0)
return null;
return db.SelectList(deptID);
}
private void ChangeFillBlankSubject(List<SubjectOfFillBlank> fillBlankList)
{
if (fillBlankList != null)
{
int index = 0;
foreach (SubjectOfFillBlank subject in fillBlankList)
{
subject.Question = subject.Question.Replace("()", "<input type='text' id='txtFillBlankAnswer" + (++index) + "' name='txtFillBlankAnswer" + index + "' class='txt' size='20' runat='server' />");
}
}
}
/// <summary>
/// 不含分数
/// </summary>
public PaperByManualSelection GetPaper(int paperID)
{
PaperByManualSelection paper = db.SelectByID(paperID.ToString());
ChangeFillBlankSubject(paper.FillBlankList);
return paper;
}
/// <summary>
后面还有 28 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
