From 664aec6de1024772cb2b34edd09c416dc9279d39 Mon Sep 17 00:00:00 2001 From: Sai Date: Thu, 8 Jun 2023 17:07:23 +0800 Subject: [PATCH] =?UTF-8?q?1.=20RPT=E4=B8=8A=E5=82=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/RPTController.cs | 22 +-- AMESCoreStudio.Web/Views/RPT/RPT001.cshtml | 150 +++++++++++++++++- 2 files changed, 159 insertions(+), 13 deletions(-) diff --git a/AMESCoreStudio.Web/Controllers/RPTController.cs b/AMESCoreStudio.Web/Controllers/RPTController.cs index 754f9c64..54a24528 100644 --- a/AMESCoreStudio.Web/Controllers/RPTController.cs +++ b/AMESCoreStudio.Web/Controllers/RPTController.cs @@ -26,19 +26,21 @@ namespace AMESCoreStudio.Web.Controllers public async Task RPT001() { - string mimeType = ""; - int extension = 1; - var path = $"{this.environment.WebRootPath}\\Reports\\TEST02.rdlc"; - LocalReport localReport = new LocalReport(path); - Dictionary param = new Dictionary(); - //param.Add("rp1", "Hello RDLC Report!"); - var wip_station = await _pcsApi.GetWipStation(); + //string mimeType = ""; + //int extension = 1; + //var path = $"{this.environment.WebRootPath}\\Reports\\TEST02.rdlc"; + //LocalReport localReport = new LocalReport(path); + //Dictionary param = new Dictionary(); + ////param.Add("rp1", "Hello RDLC Report!"); + //var wip_station = await _pcsApi.GetWipStation(); - localReport.AddDataSource("WIP_STATION", wip_station); + //localReport.AddDataSource("WIP_STATION", wip_station); - var result = localReport.Execute(RenderType.Pdf, extension, param, mimeType); - return File(result.MainStream, "application/pdf"); + //var result = localReport.Execute(RenderType.Pdf, extension, param, mimeType); + //return File(result.MainStream, "application/pdf"); + + return View(); } } } diff --git a/AMESCoreStudio.Web/Views/RPT/RPT001.cshtml b/AMESCoreStudio.Web/Views/RPT/RPT001.cshtml index 5b1399d7..c5ef0ba4 100644 --- a/AMESCoreStudio.Web/Views/RPT/RPT001.cshtml +++ b/AMESCoreStudio.Web/Views/RPT/RPT001.cshtml @@ -1,8 +1,38 @@ @{ - ViewData["Title"] = "TEST RDLC"; + ViewData["Title"] = "生產即時看板"; Layout = "~/Views/Shared/_AMESLayout.cshtml"; } + +
@@ -11,8 +41,122 @@
- +
- +
+
+
生產即時看板
+
系統顯示時間:2022/12/30 13:30
+
+
+
+
+
+
+
生產指標
+
+
+
生產力
+
+ 71.20 +

%

+
+
+
+
生產效率
+
+ 93.88 +

%

+
+
+
+
+
+
+
+
生產品質
+
+
+
IPQC合格率
+
+ 99.8 +

%

+
+
+
+
測試直通率
+
+ 96.2 +

%

+
+
+
+
FQC合格率
+
+ 97.7 +

%

+
+
+
+
+
+
+
+
+
+
生產資源
+
+
+
出勤率
+
+ 91.2 +

%

+
+
+
+
加班工時
+
+ 324 +

H

+
+
+
+
無效工時
+
+ 109.4 +

H

+
+
+
+
+
+
+
+
線上資訊
+
+
+
未結工單數
+
+ 11 +

+
+
+
+
完工入庫數
+
+ 94 +

pcs

+
+
+
+
異常工時
+
+ 39.7 +

H

+
+
+
+
+
\ No newline at end of file