78 lines
2.3 KiB
C#
78 lines
2.3 KiB
C#
|
|
using CYQ.Data;
|
|||
|
|
using CYQ.Data.Table;
|
|||
|
|
using dccdc.BLL;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.IO;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Web.Mvc;
|
|||
|
|
|
|||
|
|
namespace dccdc.Controllers
|
|||
|
|
{
|
|||
|
|
public class HomeController : Controller
|
|||
|
|
{
|
|||
|
|
[AllowAnonymous]
|
|||
|
|
public void logout()
|
|||
|
|
{
|
|||
|
|
Session["loginUser"] = null;
|
|||
|
|
HttpCookie hc = new HttpCookie("loginUser");
|
|||
|
|
hc.Expires = DateTime.Now.AddDays(-8);
|
|||
|
|
hc.Value = "";
|
|||
|
|
Response.Cookies.Add(hc);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
public ActionResult Index()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/*
|
|||
|
|
StreamWriter sw = new StreamWriter(Server.MapPath("~/") + "bb.txt", true);
|
|||
|
|
sw.WriteLine(Session.SessionID);
|
|||
|
|
var hc = Request.Cookies["loginUser"];
|
|||
|
|
if (hc != null)
|
|||
|
|
sw.WriteLine(hc.Value);
|
|||
|
|
if (Session["loginUser"] != null)
|
|||
|
|
{
|
|||
|
|
Models.ERPUser user = Session["loginUser"] as Models.ERPUser;
|
|||
|
|
sw.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(user));
|
|||
|
|
}
|
|||
|
|
sw.Close();*/
|
|||
|
|
return View();
|
|||
|
|
}
|
|||
|
|
public ActionResult main()
|
|||
|
|
{
|
|||
|
|
return View();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public ActionResult About()
|
|||
|
|
{
|
|||
|
|
ViewBag.Message = "Your application description page.";
|
|||
|
|
|
|||
|
|
return View();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public ActionResult Contact()
|
|||
|
|
{
|
|||
|
|
ViewBag.Message = "Your contact page.";
|
|||
|
|
|
|||
|
|
return View();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public ActionResult PersonList_NoComplete()
|
|||
|
|
{
|
|||
|
|
ViewBag.GroupID = Request.QueryString["groupid"].ToString();
|
|||
|
|
return View();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string GetNoCompleteCountByGroup()
|
|||
|
|
{
|
|||
|
|
MProc proc = new MProc("select exam_group_maintain_id , group_name,count(1) as no_complete_count from examination_process where is_complete is null group by exam_group_maintain_id, group_name order by no_complete_count desc");
|
|||
|
|
return proc.ExeMDataTable().ToJsonForLayUI();
|
|||
|
|
}
|
|||
|
|
public string GetPersonList_NoCompleteByGroupID(string groupid, string page = "1", string limit = "30")
|
|||
|
|
{
|
|||
|
|
MDataTable dt = new Exam_ProcessBLL().GetPersonList_NoCompleteByGroupID(groupid,page , limit);
|
|||
|
|
return dt.ToJsonForLayUI();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|