diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index f74e3a0..45dd89c 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -28,6 +28,18 @@ namespace Journeys_WantHome.Controllers kolDetial kolD = new kolDetial(myKol); } + public IActionResult ProjectList() + { + if (checkToken() == false) + { + HttpContext.Response.Cookies.Delete("token_key"); + return Redirect("~/Root/Login"); + } + + + return View(); + } + public IActionResult KolList() { if (checkToken() == false) diff --git a/Models/DbTableClass.cs b/Models/DbTableClass.cs index 87e43c1..8bdf348 100644 --- a/Models/DbTableClass.cs +++ b/Models/DbTableClass.cs @@ -8,6 +8,37 @@ using Newtonsoft.Json.Linq; public class DbTableClass { + [Table("project")] + public class project + { + [JsonIgnore] + [Key] + public int project_sn { get; set; } + + public string project_uid { get; set; } = ""; + + public string project_isPrm { get; set; } = "N"; + + public string project_prmSerial { get; set; } = ""; + + public string project_name { get; set; } = ""; + + public int project_year { get; set; } = 1900; + + public int project_month { get; set; } = 1; + + public string project_isExec { get; set; } = "N"; + + public DateTime project_createdate { get; set; } = DateTime.Now; + + public DateTime project_modifydate { get; set; }= DateTime.Now; + + public string project_create_id { get; set; } = ""; + + public string project_modify_id { get; set; } = ""; + + } + [Table("kol")] public class kol { @@ -65,6 +96,8 @@ public class DbTableClass public string kol_uid { get; set; } = ""; + public string project_uid { get; set; } = ""; + public string option_uid { get; set; } = ""; public string optionItem_uid { get; set; } = ""; diff --git a/Views/Home/ProjectList.cshtml b/Views/Home/ProjectList.cshtml new file mode 100644 index 0000000..e74baa2 --- /dev/null +++ b/Views/Home/ProjectList.cshtml @@ -0,0 +1,55 @@ +@* + For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 +*@ +@{ + Layout = "_LooperLayout"; +} +@section Script { + + + + + +} + + +
+ +
+ + + +

專案清單

+

+
+ +
+ + +
+ +
+ + + + + + + + + + + + + +
年度 案號 專案名稱 狀態 合作對象
+
+
+
+
\ No newline at end of file diff --git a/wwwroot/assets/javascript/custom/projectlist.js b/wwwroot/assets/javascript/custom/projectlist.js new file mode 100644 index 0000000..0497358 --- /dev/null +++ b/wwwroot/assets/javascript/custom/projectlist.js @@ -0,0 +1,5 @@ + + +$(document).ready(function () { + +}); \ No newline at end of file