updates
parent
085c1a5ae7
commit
9f173d1693
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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; } = "";
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
<script src="~/assets/vendor/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||
<script src="~/assets/vendor/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
|
||||
<script src="~/assets/vendor/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"></script>
|
||||
<script src="~/assets/javascript/pages/dataTables.bootstrap.js"></script>
|
||||
<script src="~/assets/javascript/custom/projectlist.js" asp-append-version="true"></script>
|
||||
}
|
||||
|
||||
<!-- .page-inner -->
|
||||
<div class="page-inner">
|
||||
<!-- .page-title-bar -->
|
||||
<header class="page-title-bar">
|
||||
<!-- .breadcrumb -->
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="#"><i class="breadcrumb-icon fa fa-angle-left mr-2"></i>專案清單</a>
|
||||
</li>
|
||||
</ol>
|
||||
</nav><!-- /.breadcrumb -->
|
||||
<!-- title -->
|
||||
<h1 class="page-title"> 專案清單 </h1>
|
||||
<p class="text-muted"> </p><!-- /title -->
|
||||
</header><!-- /.page-title-bar -->
|
||||
<!-- .page-section -->
|
||||
<div class="page-section">
|
||||
<button type="button" id="kolNewModal" class="btn btn-primary btn-floated position-absolute" title="Add new client"><i class="fa fa-plus"></i></button>
|
||||
<!-- .card -->
|
||||
<div class="card card-fluid">
|
||||
<!-- .card-body -->
|
||||
<div class="card-body">
|
||||
<!-- .table -->
|
||||
<table id="dt-responsive" class="table dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> 年度 </th>
|
||||
<th> 案號 </th>
|
||||
<th> 專案名稱 </th>
|
||||
<th> 狀態 </th>
|
||||
<th> 合作對象 </th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
</table><!-- /.table -->
|
||||
</div><!-- /.card-body -->
|
||||
</div><!-- /.card -->
|
||||
</div><!-- /.page-section -->
|
||||
</div><!-- /.page-inner -->
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
});
|
||||
Loading…
Reference in New Issue