Procházet zdrojové kódy

【功能调整】v1.0.0修正标签字体

hancw před 2 měsíci
rodič
revize
e71af4300a

+ 2 - 2
ChangePointSystem/Views/ChangeList/Index.cshtml

@@ -257,7 +257,7 @@
                         </td>
                          <td class="historyTable_padding" style="min-width: 65px">
                          <div class="tableDiv" style="display: flex;align-items: center;">
-                        <label class="control-label-small"> ${ item.EfuNo}</label>
+                        <label class="control-label-small" style="font-size:24px;text-align:center;font-weight:800;"> ${ item.EfuNo}</label>
                         </div>`
                     html += `</td>
                     <td class="historyTable_padding" style="min-width: 105px" rowspan="2">`
@@ -501,7 +501,7 @@
                         </td>
                         <td class="historyTable_padding" style="min-width: 65px;">
                         <div class="tableDiv" style="display: flex;align-items: center;">
-                        <label class="control-label-small"> ${ item.EfuNo }</label>
+                        <label class="control-label-small" style="font-size:24px;text-align:center;font-weight:800;"> ${ item.EfuNo }</label>
                         </div>`
                     html += `</td>
                     <td class="historyTable_padding" style="min-width: 105px;" rowspan="2">`

+ 2 - 2
ChangePointSystem/Views/TodayList/Index.cshtml

@@ -73,7 +73,7 @@
 
                                     <th class="padding_1px padding-top changeTypeWidth" style="line-height: 50px;width:65px">
                                         <div class="tableDiv display_flex">
-                                            <label class="lift-label" style="text-align: center;">
+                                            <label class="lift-label" style="text-align: center; font-size: 24px; text-align: center; font-weight: 800;">
                                                 @(string.IsNullOrEmpty(item.EfuNo)?"-":item.EfuNo)
                                             </label>
                                         </div>
@@ -200,7 +200,7 @@
                                                 </th>
                                                 <th class="padding_1px padding-top changeTypeWidth" style="line-height: 50px;width:65px">
                                                     <div class="tableDiv display_flex">
-                                                        <label class="lift-label" style="text-align:center;">`+ efuNo +`</label>
+                                                        <label class="lift-label" style="text-align:center;font-size:24px;text-align:center;font-weight:800;">`+ efuNo +`</label>
                                                     </div>
                                                 </th>
                                                 <th rowspan="2" class="tableStyle padding-top padding_1px " style="width:105px">`

+ 255 - 0
ChangePointSystem/Views/TodayList/Index_bak.cshtml

@@ -0,0 +1,255 @@
+@model ChangePointSystem.Models.TodayListViewModel
+
+@{
+    PageData["headTitle"] = "本日の変化点";
+    Layout = "~/Views/Shared/_Layout.cshtml";
+}
+
+<main class="container-fluid body-content titleMarginTop" id="main" style="width:100%">
+
+    @using (Html.BeginForm("Index", "TodayList", FormMethod.Post, new { @class = "form-horizontal" }))
+    {
+        <div class="MainDiv flexDiv" style="margin-bottom:45px;width:100%">
+            @Html.AntiForgeryToken()
+            @Html.HiddenFor(model => model.ChangePointId)
+            <div style="height:20%">
+                <table border="0" align="center" width="100%" height="100%" cellpadding="20" cellspacing="0">
+                    <tr>
+                        <th colspan="4" class="positionTitle">
+                            @Html.DropDownListFor(
+                                    model => model.LineCode,
+                                    new SelectList(ViewBag.lineList, "Value", "Text"),
+                                    new { @class = "form-control chosen-select Bigselect_change" })
+                        </th>
+                    </tr>
+                    <tr id="titleHtml">
+                        <th colspan="4" class="positionTitle">
+                            @{List<ChangePointSystem.Models.TodayListViewModel> list = ViewData["list"] as List<ChangePointSystem.Models.TodayListViewModel>;
+                                int a = 0;
+                                foreach (var item in ViewData["list"] as List<ChangePointSystem.Models.TodayListViewModel>)
+                                {
+                                    if (Convert.ToInt32(item.DealStatus) >= 49)
+                                    {
+                                        a++;
+                                    }
+                                }
+                                <label class="titleColor">検査確認済 @a/@list.Count 件</label>
+                            }
+                        </th>
+                    </tr>
+                </table>
+            </div>
+
+            <div id="TodayList_table" style="width:100%">
+                @if (list.Count == 0)
+                {
+                    <h3 class="colCenter" style="border:none"> @Html.GlobalResource("message", "I001") </h3>
+                }
+                else
+                {
+                    <table border="0" align="center" width="100%" height="15%" cellpadding="20" cellspacing="0">
+                        @{ int i = 1;
+                            foreach (var item in ViewData["list"] as List<ChangePointSystem.Models.TodayListViewModel>)
+                            {
+                                <tr style="width:100%">
+                                    <th rowspan="2" class="padding_1px padding-top">
+                                        <div class="tableDiv" style="padding:10px 0px 10px 7px;width:100%">
+                                            <div style="width:100%;display:flex">
+                                                <label>@item.AccrualDate.ToString("yyyy/MM/dd")</label>
+                                                <label style="text-align:right">@item.UserName &emsp;</label>
+                                            </div>
+                                            <label>
+                                                <a class="lift-label fontColor" style="font-size:14px" href="/ChangePoint?id=@item.ChangePointId&path=TodayList">@item.ProcessCode</a>
+                                            </label>
+                                            <br>
+                                            <label class="lift-label" style="font-size:14px">@Html.DisplayFor(p => item.ItemContent)</label>
+                                            <br>
+                                            <label style="overflow:auto">@Html.DisplayFor(p => item.Comment)</label>
+                                            <br>
+                                            <br>
+                                            <label style="overflow:auto">教育結果確認:  @item.Training_dt </label>
+                                        </div>
+                                    </th>
+
+                                    <th class="padding_1px padding-top changeTypeWidth" style="line-height: 50px;width:65px">
+                                        <div class="tableDiv">
+                                            <label class="lift-label" style="font-size:24px;text-align:center;font-weight:800">
+                                                @item.EfuNo
+                                            </label>
+                                        </div>
+                                    </th>
+                                    <th rowspan="2" class="tableStyle padding-top padding_1px " style="width:105px">
+                                        @switch (item.DealStatus)
+                                        {
+                                            case "00":
+                                                <button class="tableButton status_color_00" onclick="nextAction('@item.ChangePointId');" type="submit" formaction=@Url.Action("NextAction", "TodayList") formmethod="post">未登録</button>
+                                                break;
+                                            case "10":
+                                                <button class="tableButton status_color_10" onclick="nextAction('@item.ChangePointId');" type="submit" formaction=@Url.Action("NextAction", "TodayList") formmethod="post">登録済</button>
+                                                break;
+                                            case "20":
+                                                <button class="tableButton status_color_20" onclick="nextAction('@item.ChangePointId');" type="submit" formaction=@Url.Action("NextAction", "TodayList") formmethod="post">教育<br><br>確認NG</button>
+                                                break;
+                                            case "29":
+                                                <button class="tableButton status_color_29" onclick="nextAction('@item.ChangePointId');" type="submit" formaction=@Url.Action("NextAction", "TodayList") formmethod="post">教育<br><br>確認済</button>
+                                                break;
+                                            case "30":
+                                                <button class="tableButton status_color_30" onclick="nextAction('@item.ChangePointId');" type="submit" formaction=@Url.Action("NextAction", "TodayList") formmethod="post">L長<br><br>確認待ち</button>
+                                                break;
+                                            case "40":
+                                                <button class="tableButton status_color_40" onclick="nextAction('@item.ChangePointId');" type="submit" formaction=@Url.Action("NextAction", "TodayList") formmethod="post">検査<br><br>確認NG</button>
+                                                break;
+                                            case "49":
+                                                <button class="tableButton status_color_49" onclick="nextAction('@item.ChangePointId');" type="submit" formaction=@Url.Action("NextAction", "TodayList") formmethod="post">検査<br><br>確認済</button>
+                                                break;
+                                            case "50":
+                                                <button class="tableButton status_color_50" onclick="nextAction('@item.ChangePointId');" type="submit" formaction=@Url.Action("NextAction", "TodayList") formmethod="post">最終<br><br>確認NG</button>
+                                                break;
+                                            case "59":
+                                                <button class="tableButton status_color_59" onclick="nextAction('@item.ChangePointId');" type="submit" formaction=@Url.Action("NextAction", "TodayList") formmethod="post" disabled>最終<br><br>確認済</button>
+                                                break;
+                                        }
+                                    </th>
+                                </tr>
+                                <tr>
+                                    <th class="padding_1px changeTypeWidth" style="line-height:50px;text-align:center;width:65px">
+                                        <div class="tableDiv display_flex">
+                                            <label class=" lift-label" style="text-align: center; ">@Html.DisplayFor(p => item.ChangeType)</label>
+                                        </div>
+                                    </th>
+                                </tr>
+                                i++;
+                            }
+                        }
+                    </table>
+                }
+            </div>
+        </div>
+        if (Model.FinalTimeCount > 0)
+        {
+            <div class="navbar navbar-inverse navbar-fixed-bottom" style="height:10px ">
+                <div class="navbar-inner">
+                    <div class="container-fluid" style="width: 100%;background-color:white">
+                        <div class="concent intelligence">
+                            <div style="text-align:center;line-height:300%">
+                                <a style="color: red;" href="/ChangeList?fromToday=true">翌日以降の変化点が登録されました。(@Model.FinalTimeCount 件)</a>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        }
+    }
+</main>
+
+<script type="text/javascript">
+    // ステータスボタン押下処理
+    function nextAction(changePointId) {
+        // 変化点情報ID
+        $("#ChangePointId").val(changePointId);
+        return true;
+    }
+
+    jQuery(function ($) {
+        $('#LineCode').on('change', function () {
+            var lineCode = $(this).val();
+            if (lineCode !== '') {
+                $.ajax({
+                    url: '@Url.Action("GetTodayListByLine", "TodayList")',
+                    type: "get",
+                    dataType: "Json",
+                    data: {
+                        "lineCode": lineCode
+                    } ,
+                    success: function (result) {
+                        if (result.status == 'OK') {
+                            var tableHTML = `<table border="0" align="center" width="100%" height="15%" cellpadding="20" cellspacing="0">`;
+                            var i = 0;
+                            var n = 0;
+                            var datas = result.data;
+                            for (var j = 0; j < datas.length; j++) {
+                                var item = datas[j];
+                                if (item.DealStatus >= 49) {
+                                    n++;
+                                }
+                                i++;
+                                tableHTML += `<tr>
+                                                <th rowspan="2" class="padding_1px padding-top">
+                                                    <div class="tableDiv" style="padding:10px 0px 10px 7px;width:100%">
+                                                        <label>
+                                                            <a class="lift-label fontColor" style="font-size:14px" href="/ChangePoint?id=${item.ChangePointId}&path=TodayList">${item.ProcessCode}</a>
+                                                        </label>
+                                                        <br>
+                                                        <label class="lift-label" style="font-size:14px">${item.ItemContent}</label>
+                                                        <br>
+                                                        <label style="overflow:auto">${item.Comment}</label>
+                                                    </div>
+                                                </th>
+                                                <th class="padding_1px padding-top changeTypeWidth" style="line-height: 50px;width:65px">
+                                                    <div class="tableDiv">
+                                                        <label class="lift-label" style="font-size:24px;text-align:center;font-weight:800">
+                                                            ${item.EfuNo}
+                                                        </label>
+                                                    </div>
+                                                </th>
+                                                <th rowspan="2" class="tableStyle padding-top padding_1px " style="width:105px">`
+                                               switch (item.DealStatus)
+                                               {
+                                                    case "00":
+                                                       tableHTML += `<button class="tableButton status_color_00" onclick="nextAction('${item.ChangePointId}');" formaction=@Url.Action("NextAction", "TodayList")>未登録</button>`
+                                                       break;
+                                                    case "10":
+                                                       tableHTML += `<button class="tableButton status_color_10" onclick="nextAction('${item.ChangePointId}');" formaction=@Url.Action("NextAction", "TodayList")>登録済</button>`
+                                                       break;
+                                                    case "20":
+                                                       tableHTML += `<button class="tableButton status_color_20" onclick="nextAction('${item.ChangePointId}');" formaction=@Url.Action("NextAction", "TodayList")>教育<br><br>確認NG</button>`
+                                                       break;
+                                                    case "29":
+                                                       tableHTML += `<button class="tableButton status_color_29" onclick="nextAction('${item.ChangePointId}');" formaction=@Url.Action("NextAction", "TodayList")>教育<br><br>確認済</button>`
+                                                       break;
+                                                    case "30":
+                                                       tableHTML += `<button class="tableButton status_color_30" onclick="nextAction('${item.ChangePointId}');" formaction=@Url.Action("NextAction", "TodayList")>L長<br><br>確認待ち</button>`
+                                                       break;
+                                                    case "40":
+                                                       tableHTML += `<button class="tableButton status_color_40" onclick="nextAction('${item.ChangePointId}');" formaction=@Url.Action("NextAction", "TodayList")>検査<br><br>確認NG</button>`
+                                                       break;
+                                                    case "49":
+                                                       tableHTML += `<button class="tableButton status_color_49" onclick="nextAction('${item.ChangePointId}');" formaction=@Url.Action("NextAction", "TodayList")>検査<br><br>確認済</button>`
+                                                       break;
+                                                    case "50":
+                                                       tableHTML += `<button class="tableButton status_color_50" onclick="nextAction('${item.ChangePointId}');" formaction=@Url.Action("NextAction", "TodayList")>最終<br><br>確認NG</button>`
+                                                       break;
+                                                    case "59":
+                                                       tableHTML += `<button class="tableButton status_color_59" onclick="nextAction('${item.ChangePointId}');" disabled formaction=@Url.Action("NextAction", "TodayList")>最終<br><br>確認済</button>`
+                                                       break;
+                                }
+
+                                    tableHTML += `</th>
+                                              </tr>
+                                              <tr>
+                                                <th class="padding_1px changeTypeWidth" style="line-height:50px;text-align:center;width:65px">
+                                                    <div class="tableDiv display_flex">
+                                                        <label class=" lift-label" style="text-align: center; ">${item.ChangeType}</label>
+                                                    </div>
+                                                </th>
+                                              </tr>`;
+                            }
+                            var titleHTML = `<th colspan="4" class="positionTitle"> <label class="titleColor">検査確認済 ${n}/${i} 件</label></th>`;
+                            $("#titleHtml").html(titleHTML);
+                            if (i == 0) {
+                                tableHTML = `<h3 class="colCenter" style = "border:none">@Html.GlobalResource("message", "I001")</h3>`
+                                $("#TodayList_table").html(tableHTML);
+                            } else {
+                                tableHTML += `</table>`
+                                $("#TodayList_table").html(tableHTML);
+                            }
+                        }
+                    },
+                    error: function () {
+                        alert("Failed to get data from the server.");
+                    }
+                });
+            }
+        });
+    });
+</script>