diff --git a/AMESCoreStudio.Web/Controllers/REPController.cs b/AMESCoreStudio.Web/Controllers/REPController.cs index efd6de62..8b4180ec 100644 --- a/AMESCoreStudio.Web/Controllers/REPController.cs +++ b/AMESCoreStudio.Web/Controllers/REPController.cs @@ -160,35 +160,42 @@ namespace AMESCoreStudio.Web.Controllers if (result4.Count != 0) { model.ngRepair = result4[0]; - } - var result5 = await _repApi.GetNgRepairBlob(result4[0].RepairID); - if (result5.Count != 0) - { - model.ngRepairBlob = result5[0]; - if (result5[0].ImageName1 != "" && result5[0].ImageName1 != null) + var result5 = await _repApi.GetNgRepairBlob(result4[0].RepairID); + if (result5.Count != 0) { - ViewBag.Image1Url = $"\\REPImage\\" + result5[0].ImageName1; + model.ngRepairBlob = result5[0]; + + if (result5[0].ImageName1 != "" && result5[0].ImageName1 != null) + { + ViewBag.Image1Url = $"\\REPImage\\" + result5[0].ImageName1; + } + else + { + ViewBag.Image1Url = $"\\REPImage\\" + "noimage.jfif"; + } + if (result5[0].ImageName2 != "" && result5[0].ImageName2 != null) + { + ViewBag.Image2Url = $"\\REPImage\\" + result5[0].ImageName2; + } + else + { + ViewBag.Image2Url = $"\\REPImage\\" + "noimage.jfif"; + } + if (result5[0].ImageName3 != "" && result5[0].ImageName3 != null) + { + ViewBag.Image3Url = $"\\REPImage\\" + result5[0].ImageName3; + } + else + { + ViewBag.Image3Url = $"\\REPImage\\" + "noimage.jfif"; + } } else { ViewBag.Image1Url = $"\\REPImage\\" + "noimage.jfif"; - } - if (result5[0].ImageName2 != "" && result5[0].ImageName2 != null) - { - ViewBag.Image2Url = $"\\REPImage\\" + result5[0].ImageName2; - } - else - { ViewBag.Image2Url = $"\\REPImage\\" + "noimage.jfif"; - } - if (result5[0].ImageName3 != "" && result5[0].ImageName3 != null) - { - ViewBag.Image3Url = $"\\REPImage\\" + result5[0].ImageName3; - } - else - { ViewBag.Image3Url = $"\\REPImage\\" + "noimage.jfif"; } } @@ -477,5 +484,13 @@ namespace AMESCoreStudio.Web.Controllers } #endregion + + #region 後判維修輸入 + public IActionResult REP002() + { + return View(); + } + + #endregion } } diff --git a/AMESCoreStudio.Web/Controllers/SYSController.cs b/AMESCoreStudio.Web/Controllers/SYSController.cs index 0533880c..b78b856e 100644 --- a/AMESCoreStudio.Web/Controllers/SYSController.cs +++ b/AMESCoreStudio.Web/Controllers/SYSController.cs @@ -59,7 +59,7 @@ namespace AMESCoreStudio.Web.Controllers private async Task GetModuleList(int id) { - var result = await _sysApi.GetModuleInfoesBySystem(id); + var result = await _sysApi.GetModuleInfoesBySystem(id, 0, 10); var ModuleItems = new List(); for (int i = 0; i < result.Count; i++) @@ -88,7 +88,7 @@ namespace AMESCoreStudio.Web.Controllers var RoleItems = new List(); for (int i = 0; i < result.Count; i++) { - RoleItems.Add(new SelectListItem(result[i].RoleNo + result[i].RoleName, result[i].RoleID.ToString())); + RoleItems.Add(new SelectListItem(result[i].RoleName, result[i].RoleID.ToString())); } ViewBag.RoleList = RoleItems; } diff --git a/AMESCoreStudio.Web/Views/REP/REP001R.cshtml b/AMESCoreStudio.Web/Views/REP/REP001R.cshtml index 64ec9af1..a62a9af5 100644 --- a/AMESCoreStudio.Web/Views/REP/REP001R.cshtml +++ b/AMESCoreStudio.Web/Views/REP/REP001R.cshtml @@ -229,6 +229,26 @@ +
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
diff --git a/AMESCoreStudio.Web/Views/REP/REP002.cshtml b/AMESCoreStudio.Web/Views/REP/REP002.cshtml new file mode 100644 index 00000000..fd53e13b --- /dev/null +++ b/AMESCoreStudio.Web/Views/REP/REP002.cshtml @@ -0,0 +1,123 @@ +@model AMESCoreStudio.Web.ViewModels.REP001ViewModel + +@{ + ViewData["Title"] = "後判維修輸入"; + Layout = "~/Views/Shared/_AMESLayout.cshtml"; +} + + + + +
+
+
+
+
@ViewBag.Title
+
+ +
+ +
+
+
+ +
+
+
+
+
+
+
+
+ +@section Scripts{ + +} \ No newline at end of file diff --git a/AMESCoreStudio.Web/Views/REP/REP002V.cshtml b/AMESCoreStudio.Web/Views/REP/REP002V.cshtml new file mode 100644 index 00000000..8d237f07 --- /dev/null +++ b/AMESCoreStudio.Web/Views/REP/REP002V.cshtml @@ -0,0 +1,161 @@ +@model AMESCoreStudio.Web.ViewModels.REP001ViewModel + + +@{ ViewData["Title"] = "REP001V"; + Layout = "~/Views/Shared/_AMESLayout.cshtml"; } + + + +
+
+
+
+
+
+ +
+
+
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+
+
+
+
+
+
+ +@section Scripts { + + + +} +