300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 笙默考试管理系统——管理员桌面 桌面方法

笙默考试管理系统——管理员桌面 桌面方法

时间:2024-06-18 05:06:16

相关推荐

笙默考试管理系统——管理员桌面 桌面方法

#region 管理员桌面

public ActionResult Welcome()

{

Dictionary<string, CountTypeByEnumModel> dicCTBEM = new Dictionary<string, CountTypeByEnumModel>();

dicCTBEM.Add("总数", GetCount(CountTypeByEnum.总数));

dicCTBEM.Add("今日", GetCount(CountTypeByEnum.今日));

dicCTBEM.Add("本周", GetCount(CountTypeByEnum.本周));

dicCTBEM.Add("本月", GetCount(CountTypeByEnum.本月));

dicCTBEM.Add("本年", GetCount(CountTypeByEnum.本年));

ViewData["CTEMList"] = dicCTBEM;

return View();

}

#endregion

#region 桌面方法

private CountTypeByEnumModel GetCount(CountTypeByEnum type)

{

SqlParameter[] param = new SqlParameter[]{

new SqlParameter("@studentCount",SqlDb

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。