업무일지 시간 요약화면에 휴일 데이터를 추가 함.

This commit is contained in:
chi
2021-06-25 14:18:23 +09:00
parent 139c48721f
commit acc368d065
24 changed files with 712 additions and 165 deletions

View File

@@ -0,0 +1,58 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Linq;
using System.Net.Http;
using System.Web.Http;
namespace WebServer
{
public class UserController : BaseController
{
[HttpGet]
public HttpResponseMessage Index()
{
var getParams = Request.GetQueryNameValuePairs();// GetParameters(data);
var db = new EEEntities();
var sb = new System.Text.StringBuilder();
sb.AppendLine("List");
sb.AppendLine("Gcode");
//System.Web.Http.Results.JsonResult<string>
//var json = JsonConvert.SerializeObject(liast);
return new HttpResponseMessage()
{
Content = new StringContent(
sb.ToString(),
System.Text.Encoding.UTF8,
"text/html")
};
}
[HttpGet]
public HttpResponseMessage List()
{
var getParams = Request.GetQueryNameValuePairs();// GetParameters(data);
using (var db = new EEEntities())
{
var vGcode = "EET1P";
var liast = db.vGroupUser.AsNoTracking().Where(t => t.gcode == vGcode).OrderBy(t => t.id).ToArray();
//System.Web.Http.Results.JsonResult<string>
var json = JsonConvert.SerializeObject(liast);
return new HttpResponseMessage()
{
Content = new StringContent(
json.ToString(),
System.Text.Encoding.UTF8,
"application/json")
};
}
}
}
}