A_02_19 model(元来)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_02_19ViewModel
{
/// <summary>
/// ユーザー情報リスト
/// </summary>
//public UserInfo[] UserList { get; set; }
public IList<UserInfo> UserList { get;set; }
/// <summary>
/// ユーザー情報
/// </summary>
public class UserInfo
{
/// <summary>
/// 社員番号
/// </summary>
public string EmployeeNum { get; set; }
/// <summary>
/// 姓
/// </summary>
public string Name1 { get; set; }
/// <summary>
/// 名
/// </summary>
public string Name2 { get; set; }
/// <summary>
/// 照査
/// </summary>
public bool IsCheck { get; set; }
/// <summary>
/// 承認
/// </summary>
public bool IsApprove { get; set; }
}
//データ行
public void InitUserData()
{
var test1 = new UserInfo
{
EmployeeNum = "00112722",
Name1 = "藤川",
Name2 = "愼二",
IsCheck = false,
IsApprove = false
};
var test2 = new UserInfo
{
EmployeeNum = "00113307",
Name1 = "袴田",
Name2 = "到",
IsCheck = false,
IsApprove = false
};
var test3 = new UserInfo
{
EmployeeNum = "03530083",
Name1 = "丸山",
Name2 = "智由",
IsCheck = false,
IsApprove = false
};
var test4 = new UserInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsCheck = false,
IsApprove = false
};
UserList = new UserInfo[4];
UserList[0] = test1;
UserList[1] = test2;
UserList[2] = test3;
UserList[3] = test4;
}
}
}
A_02_19 view(元来)
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model YDMS.WebApp.Models.A_02_19ViewModel
<div id="pnl-user-select">
<h7 class="font-weight-bold"><strong>@Disp["select.user.title"]</strong></h7>
<ul class="font-small mb-1">
<li>@Disp["select.user.message02"]</li>
<li>@Disp["select.user.message03"]</li>
</ul>
<hr class="mb-2">
<table class="border-0 table w-100 mb-2">
<thead>
<tr>
<th class="text-center text-white w-40">@Disp["limit.name.user"]</th>
<th class="border-0 bg-white text-left">
<input type="text" name="limitTxt" size="25" value="*" onkeyup="" onblur="" class="text-monospace ml-3">
<input type="button" id="limitBtn" name="limitBtn" value=@Disp["btn.search"] class="ml-3 btn font-small">
</th>
</tr>
</thead>
</table>
<form method="post" action="../../sample/A_02_19_1">
<div class="d-flex justify-content-center mt-2">
<table class="table table-striped w-500-fix">
<thead>
<tr class="text-left">
<!-- NO. -->
<th>@Disp["table.no"]</th>
<!-- 社員番号 -->
<th>@Disp["table.employeeNumber"]</th>
<!-- 姓 -->
<th>@Disp["table.familyName"]</th>
<!-- 名 -->
<th>@Disp["table.firstName"]</th>
<!-- 照査者 -->
<th>@Disp["table.checker"]</th>
<!-- 承認者 -->
<th>@Disp["table.approver"]</th>
</tr>
</thead>
<tbody>
@{ var i = 0;
foreach (var item in Model.UserList)
{
<tr>
<td>@(i+1)</td>
<td>@item.EmployeeNum @Html.HiddenFor(m => m.UserList[i].EmployeeNum)</td>
<td class="text-nowrap">@item.Name1 @Html.HiddenFor(m => m.UserList[i].Name1)</td>
<td class="text-nowrap">@item.Name2 @Html.HiddenFor(m => m.UserList[i].Name2)</td>
<td class="text-center">
@Html.RadioButtonFor(m => m.UserList[0].IsCheck, item.IsCheck, new { @id = "Checker" + (i + 1) })
</td>
<td class="text-center">
@Html.RadioButtonFor(m => m.UserList[0].IsApprove, item.IsApprove, new { @id = "Approver" + (i + 1) })
</td>
</tr>
i++;
}
}
</tbody>
</table>
</div>
<div class="h-50-fix text-center">
<!-- ボタン -->
<input type="button" id="okBtn" name="okBtn" value=@Disp["btn.ok"] class="btn font-small" onclick="location.href=''">
<input type="button" id="cancelBtn" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small" onclick="location.href='/F_02_03/A_02_17'">
</div>
</form>
</div>
<tr colspan="6" rowspan="6">
<select class="h-235-fix mt-2" name="SELECTDATA" size="10">
@{
foreach (var item in Model.UserList)
{
<option class="text-nowrap" value="">@item.EmployeeNum : @item.Name1 : @item.Name2 : @item.IsCheck : IsApprove</option>
}
}
</select>
</tr>
A_02_06 Model(元来)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_02_06ViewModel
{
/// <summary>
/// 登録者情報リスト
/// </summary>
public IList<RegisterInfo> RegisterList { get; set; }
/// <summary>
/// 登録者情報
/// </summary>
public class RegisterInfo
{
/// <summary>
/// 社員番号
/// </summary>
public string EmployeeNum { get; set; }
/// <summary>
/// 姓
/// </summary>
public string Name1 { get; set; }
/// <summary>
/// 名
/// </summary>
public string Name2 { get; set; }
/// <summary>
/// 登録者
/// </summary>
public bool IsRegister { get; set; }
}
///////////////////////////////////////////////////////////////////
// データ行 //
///////////////////////////////////////////////////////////////////
public void InitRegisterData()
{
var test1 = new RegisterInfo
{
EmployeeNum = "00112722",
Name1 = "藤川",
Name2 = "愼二",
IsRegister = false
};
var test2 = new RegisterInfo
{
EmployeeNum = "00113307",
Name1 = "袴田",
Name2 = "到",
IsRegister = false
};
var test3 = new RegisterInfo
{
EmployeeNum = "03530083",
Name1 = "丸山",
Name2 = "智由",
IsRegister = false
};
var test4 = new RegisterInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsRegister = false
};
RegisterList = new RegisterInfo[4];
RegisterList[0] = test1;
RegisterList[1] = test2;
RegisterList[2] = test3;
RegisterList[3] = test4;
}
}
}
A_02_06 View(元来)
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model YDMS.WebApp.Models.A_02_06ViewModel
<div id="pnl-register-select">
<h6 class="font-weight-bold"><strong>@Disp["select.register.title"]</strong></h6>
<ul class="font-small mb-1">
<li>@Disp["select.register.message01"]</li>
</ul>
<hr />
<form method="post" action="../../F_02_02/A_02_05">
<div class="d-flex justify-content-center mt-2">
<table class="table table-striped w-400-fix">
<thead class="text-nowrap">
<tr class="text-left">
<!-- NO. -->
<th>@Disp["table.no"]</th>
<!-- 社員番号 -->
<th>@Disp["table.employeeNumber"]</th>
<!-- 姓 -->
<th>@Disp["table.familyName"]</th>
<!-- 名 -->
<th>@Disp["table.firstName"]</th>
<!-- 登録者 -->
<th>@Disp["table.register"]</th>
</tr>
</thead>
<tbody>
@{ var i = 0;
foreach (var item in Model.RegisterList)
{
<tr>
<td>@(i + 1)</td>
<td>@item.EmployeeNum @Html.HiddenFor(m => m.RegisterList[i].EmployeeNum)</td>
<td class="text-nowrap">@Html.Raw(item.Name1) @Html.HiddenFor(m => m.RegisterList[i].Name1)</td>
<td class="text-nowrap">@Html.Raw(item.Name2) @Html.HiddenFor(m => m.RegisterList[i].Name2)</td>
<td class="text-center">
@Html.RadioButtonFor(m => m.RegisterList[0].IsRegister, item.IsRegister, new { @id = "Register" + (i + 1) })
</td>
</tr>
i++;
}
}
</tbody>
</table>
</div>
<div class="text-center">
<!-- ボタン -->
<input type="submit" value="@Disp["btn.ok"]" name="@Disp["btn.ok"]" class="btn">
<input type="button" value="@Disp["btn.cancel"]" name="@Disp["btn.cancel"]" class="btn ml-3">
</div>
</form>
</div>
天に逆らう自由の翼
2022年1月31日月曜日
臨時代码复制粘贴
画面開発詳細メモ
注意,创建新的controller的时候,
一定要加上一句:
using YDMS.WebApp.Models;
否则就会报错。
NSS森田裕 さんが YANG CICONG さんに新しい課題を登録しました
https://nss01.backlog.com/view/YDMS-47
------------------------------------------
画面作成:A_02_25 購買先情報:製造者形名同一形名
------------------------------------------
基本設計書のレイアウトに沿って、以下の画面を作成してください。
A_02_25 購買先情報:製造者形名同一形名
------------------------------------------
キー:YDMS-47
種別:タスク
登録者:NSS森田裕
担当者:YANG CICONG
開始日:-
期限日:-
優先度:中
マイルストーン:-
カテゴリー :-
発生バージョン:-
予定時間:-
実績時間:-
機能ID : F_05_04
お知らせした人:YANG CICONG
------------------------------------------
NSS森田裕 さんが YANG CICONG さんに新しい課題を登録しました
https://nss01.backlog.com/view/YDMS-48
------------------------------------------
画面作成:A_02_26 購買先情報:製造者名選択
------------------------------------------
基本設計書のレイアウトに沿って、以下の画面を作成してください。
A_02_26 購買先情報:製造者名選択
------------------------------------------
キー:YDMS-48
種別:タスク
登録者:NSS森田裕
担当者:YANG CICONG
開始日:-
期限日:-
優先度:中
マイルストーン:-
カテゴリー :-
発生バージョン:-
予定時間:-
実績時間:-
機能ID : F_05_05
お知らせした人:YANG CICONG
------------------------------------------
NSS森田裕 さんが YANG CICONG さんに新しい課題を登録しました
https://nss01.backlog.com/view/YDMS-49
------------------------------------------
画面作成:A_02_27 購買先情報:購買先例選択
------------------------------------------
基本設計書のレイアウトに沿って、以下の画面を作成してください。
A_02_27 購買先情報:購買先例選択
------------------------------------------
キー:YDMS-49
種別:タスク
登録者:NSS森田裕
担当者:YANG CICONG
開始日:-
期限日:-
優先度:中
マイルストーン:-
カテゴリー :-
発生バージョン:-
予定時間:-
実績時間:-
機能ID : F_05_06
お知らせした人:YANG CICONG
------------------------------------------
Federate 認証画面アカウント:
ID: 93000002
pw: なし
1、先在Model文件夾下,建一個新的Model文件,
在這個Model文件裏面,用<partial name="~/Views/Shared/A_02_25.cshtml" />,把這個Model文件和自己的畫面A_02_25連接起來。
2、然後在SampleController裏面,按照剛才您發給我的那段partialViewModel的代碼樣本,替換成我自己的畫面ID A_02_25,寫一段新的代碼,
呼叫我剛才新建的那個Model文件。
<tr>
<!-- No. -->
<th>123</th>
<!-- 部品番号 -->
<th>123</th>
<!-- SC -->
<th>123</th>
<!-- ST -->
<th>123</th>
<!-- SF -->
<th>123</th>
<!-- EX -->
<th>123</th>
<!-- EMC -->
<th>123</th>
<!-- PED -->
<th>123</th>
<!-- 規格適合製品以外への使用可否 -->
<th>可</th>
</tr>
public string No. { get; set; } = "123";
public string 部品番号 { get; set; } = "123";
public string SC { get; set; } = "123";
public string ST { get; set; } = "123";
public string SF { get; set; } = "123";
public string EX { get; set; } = "123";
public string EMC { get; set; } = "123";
public string PED { get; set; } = "123";
@foreach (var item in YDMS.WebApp.Models)
{
<tr class="text-nowrap">
<td> @Model.No. </td>
<td> @Model.部品番号 </td>
<td> @Model.SC </td>
<td> @Model.ST </td>
<td> @Model.SF </td>
<td> @Model.EX </td>
<td> @Model.EMC </td>
<td> @Model.PED </td>
</tr>
}
item.nonCorrespondenceParts=規格適合製品以外への使用可否
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
<partial name="~/Views/Shared/A_02_26.cshtml" />
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@using YDMS.WebApp.Models
@{
var particalViewModel = new A_02_25ViewModel();
}
<partial name="~/Views/Shared/A_02_25.cshtml" model="particalViewModel" />
<input type="button" id="okBtn" name="okBtn" value=@Disp["btn.ok"] class="btn font-small">
<input type="button" id="closeBtn" name="closeBtn" value=@Disp["btn.close"] class="btn font-small">
<input type="button" id="cancelBtn" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small">
A_02_27 old source
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@using YDMS.WebApp.Models
@model A_02_27ViewModel
<!-- 画面名称 -->
<div class="p-3">
<b class="font-weight-bold">@Disp["select.agency.title"]</b>
<!-- ガイドライン -->
<ul class="font-small mb-1">
<li>@Disp["select.agency.message01"]</li>
<li>@Disp["select.agency.message02"]</li>
</ul>
<hr class="mb-2">
<table class="border-0 table w-100 mb-2">
<thead>
<tr>
<th class="text-center text-white w-100-fix center">@Disp["table.agencySelect"]</th>
<th class="text-center text-white w-100-fix center">@Disp["table.value"]</th>
</tr>
<tr>
<th class="border-0 bg-white text-left">
<input type="text" name="limitTxt" size="25" value="*" onkeyup="" onblur="" class="text-monospace ml-3">
</th>
<th class="border-0 bg-white text-left">
<input type="text" name="limitTxt" size="25" value="*" onkeyup="" onblur="" class="text-monospace ml-3">
</th>
</tr>
</thead>
</table>
<div class="d-flex justify-content-center">
<input type="button" id="limitBtn" name="limitBtn" value=@Disp["btn.search"] class="ml-3 btn font-small">
</div>
<!-- 内容 -->
<form method="post" action="../../sample/A_02_27_1">
<div class="text-center">
<select class="h-235-fix mt-2 w-100" name="SELECTDATA" size="10">
@{
foreach (var item in Model.SpecList)
{
<option class="text-nowrap" value="@item.SpecCode">@item.SpecCode : @item.SpecName</option>
}
}
</select>
</div>
<div class="text-center mt-2">
<!-- ボタン -->
<input type="submit" value="@Disp["btn.ok"]" name="@Disp["btn.ok"]" class="btn">
<input type="button" value="@Disp["btn.cancel"]" name="@Disp["btn.cancel"]" class="btn ml-3" onclick="window.close()">
</div>
</form>
</div>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_03_06ViewModel
{
/// <summary>
/// 製造者形名
/// </summary>
public string creatname { get; set; } = "製造者出雲";
/// <summary>
/// 部品番号
/// </summary>
public string PartsNumber { get; set; } = "US00-00001";
/// <summary>
/// SC
/// </summary>
public string SC { get; set; } = "10";
/// <summary>
/// ST
/// </summary>
public string ST { get; set; } = "8K";
/// <summary>
/// SF
/// </summary>
public string SF { get; set; } = "N";
/// <summary>
/// EX
/// </summary>
public string EX { get; set; } = "N";
/// <summary>
/// EMC
/// </summary>
public string EMC { get; set; } = "N";
/// <summary>
/// PED
/// </summary>
public string PED { get; set; } = "N";
/// <summary>
/// 規格適合製品以外への使用可否
/// </summary>
public string NonCorrespondenceParts { get; set; } = "Y";
}
}
添加颜色的方法:
@section Scripts{
<script type="text/javascript">
$("#B-1").addClass("back-color1");
$("#B-2").addClass("back-color2");
</script>
}
去掉已经有的颜色的方法:
@section Scripts{
<script type="text/javascript">
$("#B-1").removeClass("back-color1");
$("#B-2").removeClass("back-color2");
</script>
}
解决竞合的方法:
1、把branch切换到master
2、点击pull,更新master
3、然后再回到自己作业用的branch
4、在branch栏那里,点击右键,在弹出来的菜单框中有master选项;然后右键点击master,在弹出来的选项中,选择current branchにマージ。
5、弹出来的对话框,问你是否把master的东西marge到你作业用的branch里面去,选择“是”。
6、弹出的红色对比source框里面,调查左右两边哪个是该选择的source,把该选择的打上钩,被打钩的source框会变成绿色,然后选择commit。
7、在commit栏里面,写上“競合解消マージ”,然后点击commit。
汎用部品申請書の取り消しの確認 A-02-15
汎用部品申請書の取り消しの結果 A-02-16
汎用部品申請書の照査却下の確認 A-02-31
汎用部品申請書の照査却下の結果 A-02-32
注意:当把普通的model改成partialmodel的时候,
在controller里面要追加一句model.InitSpecData();
例:
public IActionResult A_03_02()
{
var model = new A_03_02PartialViewModel();
model.InitSpecData();
return View(model);
}
A_02_31 Controller追加
/// A_02_31
public IActionResult A_02_31()
{
// 初期表示用データ作成
var model01 = new A_02_31ViewModel();
var model02 = new A_02_31ViewModel();
var model03 = new A_02_31ViewModel();
model01.InitGenPurposPartsAppForm01();
model02.InitGenPurposPartsAppForm02();
model03.InitGenPurposPartsAppForm03();
var models = new List<A_02_31ViewModel> { model01, model02, model03 };
return View(models);
}
A_02_31 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model List<A_02_31ViewModel>
@{using (Html.BeginForm("A_02_31", "F_02_04", FormMethod.Post))}
<div class="pt-3">
<!-- 画面名称 -->
<b class="font-weight-bold">@Disp["check.checkRejectConfirm.genParts.title"]</b>
<!-- ガイドライン -->
<ul class="font-small mb-1">
<li>@Disp["check.checkRejectConfirm.genParts.message01"]</li>
<li>@Disp["check.checkRejectConfirm.genParts.message02"]</li>
</ul>
<hr class="mb-2">
<!-- ボタン -->
<input type="button" id="okBtn1" name="okBtn" value=@Disp["btn.ok"] class="btn font-small" onclick="location.href='/F_02_04/A_02_32'">
<input type="button" id="cancelBtn1" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small" onclick="location.href='/F_02_04/A_02_28'">
<table class="table table-sm table-striped table-bordered mt-2">
<!-- #################################################################### -->
<!-- ヘッダ -->
<!-- #################################################################### -->
<thead>
<tr class="text-nowrap text-left text-white">
<!-- No. -->
<th>@Disp["item.no"]</th>
<!-- 汎用部品申請書 -->
<th>@Disp["table.partApplication"]</th>
<!-- 申請書REV -->
<th>@Disp["item.partApplicationREV"]</th>
<!-- 部品番号 -->
<th>@Disp["item.partsNum"]</th>
<!-- ステータス -->
<th>@Disp["item.status"]</th>
<!-- 判定結果 -->
<th>@Disp["btn.judge"]</th>
<!-- ST -->
<th>@Disp["item.st"]</th>
<!-- 製造者型名 -->
<th>@Disp["item.typeName"]</th>
<!-- 製造者名 -->
<th>@Disp["search.accept.purCompName"]</th>
<!-- 実装タイプ -->
<th>@Disp["item.mountingType"]</th>
<!-- 4桁分類 -->
<th>@Disp["mail.data.class1"]</th>
<!-- グループ -->
<th>@Disp["item.group"]</th>
<!-- 代表形名 -->
<th>@Disp["item.typicalFormName"]</th>
<!-- 承認者コード -->
<th>@Disp["item.approveCode"]</th>
<!-- 照査者コード -->
<th>@Disp["item.checkCode"]</th>
<!-- 登録者コード -->
<th>@Disp["item.registCode"]</th>
<!-- 登録日 -->
<th>@Disp["item.registDate"]</th>
</tr>
</thead>
<!-- #################################################################### -->
<!-- データ行 -->
<!-- #################################################################### -->
<tbody>
@{
int n = 0;
@foreach (var item in Model)
{
<tr class="text-nowrap">
<td> @(n += 1) </td>
<td> @item.PartApplicationname </td>
<td> @item.PartApplicationREV </td>
<td> @item.PartsNumber </td>
<td> @item.Status </td>
<td> @item.JudgeResult </td>
<td> @item.ST </td>
<td> @item.MakerType </td>
<td> @item.MakerCode </td>
<td> @item.DipType </td>
<td> @item.ClassFourCode </td>
<td> @item.Group </td>
<td> @item.RepresentModel </td>
<td> @item.ApproveCode </td>
<td> @item.CheckerCode </td>
<td> @item.RegistCode </td>
<td> @item.RegistDate </td>
</tr>
}
}
</tbody>
</table>
<!-- ボタン -->
<input type="button" id="okBtn2" name="okBtn" value=@Disp["btn.ok"] class="btn font-small" onclick="location.href='/F_02_04/A_02_32'">
<input type="button" id="cancelBtn2" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small" onclick="location.href='/F_02_04/A_02_28'">
</div>
A_02_31 Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_02_31ViewModel
{
/// 汎用部品申請モデル
/// <summary>
/// 汎用部品申請書名
/// </summary>
public string PartApplicationname { get; set; }
/// <summary>
/// 申請書REV
/// </summary>
public int PartApplicationREV { get; set; }
/// <summary>
/// 部品番号
/// </summary>
public string PartsNumber { get; set; }
/// <summary>
/// ステータス
/// </summary>
public string Status { get; set; }
/// <summary>
/// 判定
/// </summary>
public string JudgeResult { get; set; }
/// <summary>
/// ST
/// </summary>
public string ST { get; set; }
/// <summary>
/// 製造者形名
/// </summary>
public string MakerType { get; set; }
/// <summary>
/// 製造者名
/// </summary>
public string MakerCode { get; set; }
/// <summary>
/// 実装タイプ
/// </summary>
public string DipType { get; set; }
/// <summary>
/// 4桁分類コード
/// </summary>
public string ClassFourCode { get; set; }
/// <summary>
/// グループ名
/// </summary>
public string Group { get; set; }
/// <summary>
/// 代表形名
/// </summary>
public string RepresentModel { get; set; }
/// <summary>
/// 承認者コード
/// </summary>
public string ApproveCode { get; set; }
/// <summary>
/// 照査者コード
/// </summary>
public string CheckerCode { get; set; }
/// <summary>
/// 登録者コード
/// </summary>
public string RegistCode { get; set; }
/// <summary>
/// 登録日
/// </summary>
public string RegistDate { get; set; }
/// <summary>
/// デバッグ用 テストデータ作成(汎用部品申請書)
/// </summary>
public void InitGenPurposPartsAppForm01()
{
PartApplicationname = "US00-00017";
PartApplicationREV = 0;
PartsNumber = "US00-00017";
Status = "作成中";
JudgeResult = "合格";
ST = "K0";
MakerType = "11";
MakerCode = "旭化成エレクトロ";
DipType = "DIP";
ClassFourCode = "US00";
Group = "groupA";
RepresentModel = "A-GENERAL";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
RegistCode = "00113307 [袴田 到]";
RegistDate = "2021/11/01";
}
public void InitGenPurposPartsAppForm02()
{
PartApplicationname = "US00-00027";
PartApplicationREV = 0;
PartsNumber = "US00-00027";
Status = "作成中";
JudgeResult = "不合格";
ST = "K1";
MakerType = "12";
MakerCode = "化成旭エレクトロ";
DipType = "DIP";
ClassFourCode = "US01";
Group = "groupB";
RepresentModel = "B-GENERAL";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
RegistCode = "00113307 [袴田 到]";
RegistDate = "2021/11/02";
}
public void InitGenPurposPartsAppForm03()
{
PartApplicationname = "US00-00029";
PartApplicationREV = 0;
PartsNumber = "US00-00029";
Status = "作成中";
JudgeResult = "合格";
ST = "K2";
MakerType = "15";
MakerCode = "成化旭エレクトロ";
DipType = "DIP";
ClassFourCode = "US02";
Group = "groupC";
RepresentModel = "C-GENERAL";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼三]";
RegistCode = "00113307 [袴田 倒]";
RegistDate = "2021/11/03";
}
}
}
A_02_32 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model List<A_02_32ViewModel>
@{using (Html.BeginForm("A_02_32", "F_02_04", FormMethod.Post))}
<div class="pt-3">
<!-- 画面名称 -->
<b class="font-weight-bold">@Disp["check.checkRejectResult.genParts.title"]</b>
<!-- ガイドライン -->
<ul class="font-small mb-1">
<li>@Disp["check.checkRejectResult.genParts.message01"]</li>
<li>@Disp["check.checkRejectResult.genParts.message02"]</li>
</ul>
<hr class="mb-2">
<!-- ボタン -->
<input type="button" id="backToListBtn1" name="backToListBtn" value=@Disp["btn.backToList"] class="btn font-small" onclick="location.href='/F_02_04/A_02_28'">
<table class="table table-sm table-striped table-bordered mt-2">
<!-- #################################################################### -->
<!-- ヘッダ -->
<!-- #################################################################### -->
<thead>
<tr class="text-nowrap text-left text-white">
<!-- No. -->
<th>@Disp["item.no"]</th>
<!-- 汎用部品申請書 -->
<th>@Disp["table.partApplication"]</th>
<!-- 申請書REV -->
<th>@Disp["item.partApplicationREV"]</th>
<!-- 部品番号 -->
<th>@Disp["item.partsNum"]</th>
<!-- ステータス -->
<th>@Disp["item.status"]</th>
<!-- 判定結果 -->
<th>@Disp["btn.judge"]</th>
<!-- ST -->
<th>@Disp["item.st"]</th>
<!-- 製造者型名 -->
<th>@Disp["item.typeName"]</th>
<!-- 製造者名 -->
<th>@Disp["search.accept.purCompName"]</th>
<!-- 実装タイプ -->
<th>@Disp["item.mountingType"]</th>
<!-- 4桁分類 -->
<th>@Disp["mail.data.class1"]</th>
<!-- グループ -->
<th>@Disp["item.group"]</th>
<!-- 代表形名 -->
<th>@Disp["item.typicalFormName"]</th>
<!-- 承認者コード -->
<th>@Disp["item.approveCode"]</th>
<!-- 照査者コード -->
<th>@Disp["item.checkCode"]</th>
<!-- 登録者コード -->
<th>@Disp["item.registCode"]</th>
<!-- 登録日 -->
<th>@Disp["item.registDate"]</th>
</tr>
</thead>
<!-- #################################################################### -->
<!-- データ行 -->
<!-- #################################################################### -->
<tbody>
@{
int n = 0;
@foreach (var item in Model)
{
<tr class="text-nowrap">
<td> @(n += 1) </td>
<td> @item.PartApplicationname </td>
<td> @item.PartApplicationREV </td>
<td> @item.PartsNumber </td>
<td> @item.Status </td>
<td> @item.JudgeResult </td>
<td> @item.ST </td>
<td> @item.MakerType </td>
<td> @item.MakerCode </td>
<td> @item.DipType </td>
<td> @item.ClassFourCode </td>
<td> @item.Group </td>
<td> @item.RepresentModel </td>
<td> @item.ApproveCode </td>
<td> @item.CheckerCode </td>
<td> @item.RegistCode </td>
<td> @item.RegistDate </td>
</tr>
}
}
</tbody>
</table>
<!-- ボタン -->
<input type="button" id="backToListBtn2" name="backToListBtn" value=@Disp["btn.backToList"] class="btn font-small" onclick="location.href='/F_02_04/A_02_28'">
</div>
A_02_32 Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_02_32ViewModel
{
/// 汎用部品申請モデル
/// <summary>
/// 汎用部品申請書名
/// </summary>
public string PartApplicationname { get; set; }
/// <summary>
/// 申請書REV
/// </summary>
public int PartApplicationREV { get; set; }
/// <summary>
/// 部品番号
/// </summary>
public string PartsNumber { get; set; }
/// <summary>
/// ステータス
/// </summary>
public string Status { get; set; }
/// <summary>
/// 判定
/// </summary>
public string JudgeResult { get; set; }
/// <summary>
/// ST
/// </summary>
public string ST { get; set; }
/// <summary>
/// 製造者形名
/// </summary>
public string MakerType { get; set; }
/// <summary>
/// 製造者名
/// </summary>
public string MakerCode { get; set; }
/// <summary>
/// 実装タイプ
/// </summary>
public string DipType { get; set; }
/// <summary>
/// 4桁分類コード
/// </summary>
public string ClassFourCode { get; set; }
/// <summary>
/// グループ名
/// </summary>
public string Group { get; set; }
/// <summary>
/// 代表形名
/// </summary>
public string RepresentModel { get; set; }
/// <summary>
/// 承認者コード
/// </summary>
public string ApproveCode { get; set; }
/// <summary>
/// 照査者コード
/// </summary>
public string CheckerCode { get; set; }
/// <summary>
/// 登録者コード
/// </summary>
public string RegistCode { get; set; }
/// <summary>
/// 登録日
/// </summary>
public string RegistDate { get; set; }
/// <summary>
/// デバッグ用 テストデータ作成(汎用部品申請書)
/// </summary>
public void InitGenPurposPartsAppForm01()
{
PartApplicationname = "US00-00017";
PartApplicationREV = 0;
PartsNumber = "US00-00017";
Status = "作成中";
JudgeResult = "合格";
ST = "K0";
MakerType = "11";
MakerCode = "旭化成エレクトロ";
DipType = "DIP";
ClassFourCode = "US00";
Group = "groupA";
RepresentModel = "A-GENERAL";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
RegistCode = "00113307 [袴田 到]";
RegistDate = "2021/11/01";
}
public void InitGenPurposPartsAppForm02()
{
PartApplicationname = "US00-00027";
PartApplicationREV = 0;
PartsNumber = "US00-00027";
Status = "作成中";
JudgeResult = "不合格";
ST = "K1";
MakerType = "12";
MakerCode = "化成旭エレクトロ";
DipType = "DIP";
ClassFourCode = "US01";
Group = "groupB";
RepresentModel = "B-GENERAL";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
RegistCode = "00113307 [袴田 到]";
RegistDate = "2021/11/02";
}
public void InitGenPurposPartsAppForm03()
{
PartApplicationname = "US00-00029";
PartApplicationREV = 0;
PartsNumber = "US00-00029";
Status = "作成中";
JudgeResult = "合格";
ST = "K2";
MakerType = "15";
MakerCode = "成化旭エレクトロ";
DipType = "DIP";
ClassFourCode = "US02";
Group = "groupC";
RepresentModel = "C-GENERAL";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼三]";
RegistCode = "00113307 [袴田 倒]";
RegistDate = "2021/11/03";
}
}
}
A_03_18 Controller
//A_03_18
public IActionResult A_03_18()
{
// 初期表示用データ作成
var model = new A_03_18ViewModel();
model.ListInfo();
model.InitGenPurposPartsAppForm();
return View(model);
}
A_03_18 Model
using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_03_18ViewModel
{
/// <summary>
/// グループ名(list)
/// </summary>
public SelectListItem[] GroupList { get; set; }
/// <summary>
/// 代表形名
/// </summary>
public string RepresentModel { get; set; }
/// <summary>
/// 7桁部品番号 + 製造仕様コード(N1)(list)
/// </summary>
public SelectListItem[] PartnumberSpecificationCode { get; set; }
public void ListInfo()
{
GroupList = new SelectListItem[]{
new SelectListItem{Text="groupA",Value="GA" },
new SelectListItem{Text="groupB",Value="GB" },
new SelectListItem{Text="groupC",Value="GC" },
new SelectListItem{Text="groupD",Value="GD" },
};
PartnumberSpecificationCode = new SelectListItem[]{
new SelectListItem{Text="11K+100-",Value="A1" },
new SelectListItem{Text="11K+200-",Value="B2" },
};
}
/// <summary>
/// デバッグ用 テストデータ作成
/// </summary>
public void InitGenPurposPartsAppForm()
{
RepresentModel = "A-GENERAL";
}
}
}
A_03_18 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model YDMS.WebApp.Models.A_03_18ViewModel
@{using (Html.BeginForm("A_03_18", "F_03_05", FormMethod.Post))}
<div class="pt-3">
<h7 class="font-weight-bold"><strong>@Disp["entry.input.moduleCode.title"]</strong></h7>
<ul class="font-small mb-1 text-nowrap">
<li>@Disp["entry.input.moduleCode.message01"]</li>
<li>@Disp["entry.input.moduleCode.message02"]</li>
<li>@Disp["entry.input.moduleCode.message03"]</li>
</ul>
<hr class="mb-2">
<input type="button" id="getBtnU" name="getBtn" value=@Disp["btn.get"] class="btn ml-1 font-small" onclick="location.href=''">
<input type="button" id="clearBtnU" name="clearBtn" value=@Disp["btn.clear"] class="btn ml-3 font-small" onclick="location.href=''">
<div>
<table class="table table-sm table-bordered mb-3 mt-2" id="AutoNumber1">
<thead>
<tr class="text-white">
<th class="w-125-fix">@Disp["table.colum"]</th>
<th>@Disp["table.value"]</th>
</tr>
</thead>
<tr>
<!-- グループ -->
<td>@Disp["item.group"]@Disp["item.must"]</td>
<td class="text-left">
@Html.DropDownListFor(model => model.GroupList, (IEnumerable<SelectListItem>)Model.GroupList, Disp["select.demand2"].Value, new { })
@Html.HiddenFor(model => model.GroupList)
</td>
</tr>
<tr>
<!-- 代表形名 -->
<td>@Disp["item.typicalFormName"]@Disp["item.must"]</td>
<td class="text-left text-nowrap">
<input type="text" name="representativeNameTxt" size="15" placeholder="@Disp["item.optional"]" class="text-monospace">
<input type="button" id="selectBtn" name="selectBtn" value=@Disp["btn.select"] class="ml-1 mr-5 btn font-small">
</td>
</tr>
</table>
</div>
<div>
<table class="table table-bordered mb-3 mt-2" id="AutoNumber1">
<thead>
<tr class="text-white text-nowrap">
<th>@Disp["item.Modulecode"]@Disp["item.must"]</th>
</tr>
</thead>
<tr>
<td>
<select class="h-235-fix w-300-fix mt-2" name="SELECTDATA" size="10">
@{
foreach (var item in Model.PartnumberSpecificationCode)
{
<option class="text-nowrap" value="@item.Text">@item.Text@item.Value</option>
}
}
</select>
</td>
</tr>
</table>
</div>
<input type="button" id="getBtnS" name="getBtn" value=@Disp["btn.get"] class="btn ml-1 font-small" onclick="location.href=''">
<input type="button" id="clearBtnS" name="clearBtn" value=@Disp["btn.clear"] class="btn ml-3 font-small" onclick="location.href=''">
</div>
A_03_11 Controller
//A_03_11
public IActionResult A_03_11()
{
// 初期表示用データ作成
var model = new A_03_11ViewModel();
model.ListInfo();
model.InitGenPurposPartsAppForm();
return View(model);
}
A_03_11 Model
using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_03_11ViewModel
{
/// <summary>
/// グループ名(list)
/// </summary>
public SelectListItem[] GroupList { get; set; }
/// <summary>
/// 代表形名
/// </summary>
public string RepresentModel { get; set; }
/// <summary>
/// 7桁部品番号 + 製造仕様コード(N1)(list)
/// </summary>
public SelectListItem[] PartnumberSpecificationCode { get; set; }
public void ListInfo()
{
GroupList = new SelectListItem[]{
new SelectListItem{Text="groupA",Value="GA" },
new SelectListItem{Text="groupB",Value="GB" },
new SelectListItem{Text="groupC",Value="GC" },
new SelectListItem{Text="groupD",Value="GD" },
};
PartnumberSpecificationCode = new SelectListItem[]{
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
new SelectListItem{Text="W9970AA+1",Value="W9970AA1" },
};
}
/// <summary>
/// デバッグ用 テストデータ作成
/// </summary>
public void InitGenPurposPartsAppForm()
{
RepresentModel = "A-GENERAL";
}
}
}
A_03_11 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model YDMS.WebApp.Models.A_03_11ViewModel
@{using (Html.BeginForm("A_03_11", "F_03_03", FormMethod.Post))}
<div class="pt-3">
<h7 class="font-weight-bold"><strong>@Disp["entry.input.ExtendPart.title"]</strong></h7>
<ul class="font-small mb-1 text-nowrap">
<li>@Disp["approve.approveConfirm.select.representative.model.forgroup"]</li>
<li>@Disp["approve.select.number.ExtendPart.message01"]</li>
<li>@Disp["approve.select.number.ExtendPart.message02"]</li>
</ul>
<hr class="mb-2">
<input type="button" id="getBtnU" name="getBtn" value=@Disp["btn.get"] class="btn ml-1 font-small" onclick="location.href=''">
<input type="button" id="clearBtnU" name="clearBtn" value=@Disp["btn.clear"] class="btn ml-3 font-small" onclick="location.href=''">
<div>
<table class="table table-sm table-bordered mb-3 mt-2" id="AutoNumber1">
<thead>
<tr class="text-white">
<th class="w-125-fix" >@Disp["table.colum"]</th>
<th>@Disp["table.value"]</th>
</tr>
</thead>
<tr>
<!-- グループ -->
<td>@Disp["item.group"]@Disp["item.must"]</td>
<td class="text-left">
@Html.DropDownListFor(model => model.GroupList, (IEnumerable<SelectListItem>)Model.GroupList, Disp["select.demand2"].Value, new { })
@Html.HiddenFor(model => model.GroupList)
</td>
</tr>
<tr>
<!-- 代表形名 -->
<td>@Disp["item.typicalFormName"]@Disp["item.must"]</td>
<td class="text-left text-nowrap">
<input type="text" name="representativeNameTxt" size="15" value=@Disp["item.optionSetInput"] class="text-monospace">
<input type="button" id="selectBtn" name="selectBtn" value=@Disp["btn.select"] class="ml-1 mr-5 btn font-small">
</td>
</tr>
</table>
</div>
<div>
<table class="table table-bordered mb-3 mt-2" id="AutoNumber1">
<thead>
<tr class="text-white text-nowrap">
<th>@Disp["table.7-digit.partnumber.manufacturing.specification.code.N1"]@Disp["item.must"]</th>
</tr>
</thead>
<tr>
<td>
<select class="h-235-fix w-300-fix mt-2" name="SELECTDATA" size="10">
@{
foreach (var item in Model.PartnumberSpecificationCode)
{
<option class="text-nowrap" value="@item.Text">@item.Text</option>
}
}
</select>
</td>
</tr>
</table>
</div>
<input type="button" id="getBtnS" name="getBtn" value=@Disp["btn.get"] class="btn ml-1 font-small" onclick="location.href=''">
<input type="button" id="clearBtnS" name="clearBtn" value=@Disp["btn.clear"] class="btn ml-3 font-small" onclick="location.href=''">
</div>
A_03_19 Controller
//A_03_19
public IActionResult A_03_19()
{
// 初期表示用データ作成
var model01 = new A_03_19ViewModel();
var model02 = new A_03_19ViewModel();
model01.InitGenPurposPartsAppForm01();
model02.InitGenPurposPartsAppForm02();
var models = new List<A_03_19ViewModel> { model01, model02, };
return View(models);
}
A_03_19 Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_03_19ViewModel
{
/// モジュールコード取得モデル
/// <summary>
/// モジュールコード
/// </summary>
public string Modulecode { get; set; }
/// <summary>
/// 大分類
/// </summary>
public string LargeKindSpec { get; set; }
/// <summary>
/// 4桁分類
/// </summary>
public string FourKind { get; set; }
/// <summary>
/// グループ
/// </summary>
public string Group { get; set; }
/// <summary>
/// 代表形名
/// </summary>
public string RepresentativeName { get; set; }
/// <summary>
/// デバッグ用 テストデータ作成(モジュールコード取得)
/// </summary>
public void InitGenPurposPartsAppForm01()
{
Modulecode = "11K+100-A1";
LargeKindSpec = "モジュールコード";
FourKind = "A000 [A0:差圧・圧力伝送器 00:ユニット/複合機能]";
Group = "groupD";
RepresentativeName = "TTEST";
}
public void InitGenPurposPartsAppForm02()
{
Modulecode = "11K+100-A1";
LargeKindSpec = "モジュールコード";
FourKind = "A000 [A0:差圧・圧力伝送器 00:ユニット/複合機能]";
Group = "groupD";
RepresentativeName = "TTEST";
}
}
}
A_03_19 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model List<A_03_19ViewModel>
@{using (Html.BeginForm("A_03_19", "F_03_05", FormMethod.Post))}
<div class="pt-3">
<!-- 画面名称 -->
<b class="font-weight-bold">@Disp["entry.confirm.moduleCode.title"]</b>
<!-- ガイドライン -->
<ul class="font-small mb-1">
<li>@Disp["entry.confirm.moduleCode.message01"]</li>
</ul>
<hr class="mb-2">
<!-- ボタン -->
<input type="button" id="okBtn1" name="okBtn" value=@Disp["btn.ok"] class="btn font-small" onclick="location.href='/F_03_05/A_03_20'">
<input type="button" id="cancelBtn1" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small" onclick="location.href='/F_03_05/A_03_18'">
<table class="table table-sm table-striped table-bordered mt-2">
<!-- #################################################################### -->
<!-- ヘッダ -->
<!-- #################################################################### -->
<thead>
<tr class="text-nowrap text-left text-white">
<!-- No. -->
<th>@Disp["item.no"]</th>
<!-- モジュールコード(*) -->
<th>@Disp["item.Modulecode"]@Disp["item.must"]</th>
<!-- 大分類(*) -->
<th>@Disp["item.largeKindSpec"]@Disp["item.must"]</th>
<!-- 4桁分類(*) -->
<th>@Disp["item.fourKind"]@Disp["item.must"]</th>
<!-- グループ(*) -->
<th>@Disp["item.group"]@Disp["item.must"]</th>
<!-- 代表形名(*) -->
<th>@Disp["item.representativeName"]@Disp["item.must"]</th>
</tr>
</thead>
<!-- #################################################################### -->
<!-- データ行 -->
<!-- #################################################################### -->
<tbody>
@{
int n = 0;
@foreach (var item in Model)
{
<tr class="text-nowrap">
<td> @(n += 1) </td>
<td> @item.Modulecode </td>
<td> @item.LargeKindSpec </td>
<td> @item.FourKind </td>
<td> @item.Group </td>
<td> @item.RepresentativeName </td>
</tr>
}
}
</tbody>
</table>
<!-- ボタン -->
<input type="button" id="okBtn2" name="okBtn" value=@Disp["btn.ok"] class="btn font-small" onclick="location.href='/F_03_05/A_03_18'">
<input type="button" id="cancelBtn2" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small" onclick="location.href='/F_02_05/A_03_20'">
</div>
A_03_28 Controller
//A_03_28
public IActionResult A_03_28()
{
// 初期表示用データ作成
var model01 = new A_03_28ViewModel();
var model02 = new A_03_28ViewModel();
var model03 = new A_03_28ViewModel();
model01.InitGenPurposPartsAppForm01();
model02.InitGenPurposPartsAppForm02();
model03.InitGenPurposPartsAppForm03();
var models = new List<A_03_28ViewModel> { model01, model02, model03 };
return View(models);
}
A_03_28 Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_03_28ViewModel
{
/// 汎用部品申請モデル
/// <summary>
/// 部品番号
/// </summary>
public string PartsNumber { get; set; }
/// <summary>
/// REV
/// </summary>
public int REV { get; set; }
/// <summary>
/// ステータス
/// </summary>
public string Status { get; set; }
/// <summary>
/// グループ名
/// </summary>
public string Group { get; set; }
/// <summary>
/// 代表形名
/// </summary>
public string RepresentModel { get; set; }
/// <summary>
/// 発行日
/// </summary>
public string IssueDate { get; set; }
/// <summary>
/// 承認者コード
/// </summary>
public string ApproveCode { get; set; }
/// <summary>
/// 照査者コード
/// </summary>
public string CheckerCode { get; set; }
/// <summary>
/// 作成者コード
/// </summary>
public string MakeCode { get; set; }
/// <summary>
/// 作成日
/// </summary>
public string MakeDate { get; set; }
/// <summary>
/// デバッグ用 テストデータ作成(汎用部品申請書)
/// </summary>
public void InitGenPurposPartsAppForm01()
{
PartsNumber = "US00-00017";
REV = 0;
Status = "照査中";
Group = "groupA";
RepresentModel = "A-GENERAL";
IssueDate = "2021/11/11";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
MakeCode = "00113307 [袴田 到]";
MakeDate = "2021/11/01";
}
public void InitGenPurposPartsAppForm02()
{
PartsNumber = "US00-00027";
REV = 0;
Status = "照査中";
Group = "groupB";
RepresentModel = "B-GENERAL";
IssueDate = "2021/11/12";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
MakeCode = "00113307 [袴田 到]";
MakeDate = "2021/11/02";
}
public void InitGenPurposPartsAppForm03()
{
PartsNumber = "US00-00029";
REV = 0;
Status = "承認中";
Group = "groupC";
RepresentModel = "C-GENERAL";
IssueDate = "2021/11/13";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼三]";
MakeCode = "00113307 [袴田 倒]";
MakeDate = "2021/11/03";
}
}
}
A_03_28 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@using Models;
@model List<A_03_28ViewModel>
@{using (Html.BeginForm("A_03_28", "F_04_02", FormMethod.Post))}
<div class="pt-3">
<!-- 画面名称 -->
<b class="font-weight-bold">@Disp["edit.cancelConfirm.pms.title"]</b>
<!-- ガイドライン -->
<ul class="ml-1 font-small mb-1">
<li>@Disp["edit.cancelConfirm.pms.message01"]</li>
</ul>
<hr class="mb-2">
<input type="button" id="okBtn" name="okBtn" value=@Disp["btn.ok"] class="btn ml-1 font-small" onclick="location.href='/F_04_02/A_03_27'">
<input type="button" id="cancelBtn" name="cancelBtn" value=@Disp["btn.cancel"] class="btn ml-3 font-small" onclick="location.href='/F_04_02/A_03_25'">
<table class="table table-sm table-striped table-bordered ml-1 mt-2">
<!-- #################################################################### -->
<!-- ヘッダ -->
<!-- #################################################################### -->
<thead>
<tr class="text-nowrap text-left text-white">
<!-- No. -->
<th>@Disp["item.no"]</th>
<!-- 部品番号 -->
<th>@Disp["item.partsNum"]</th>
<!-- REV -->
<th>@Disp["item.rev"]</th>
<!-- ステータス -->
<th>@Disp["item.status"]</th>
<!-- グループ -->
<th>@Disp["item.group"]</th>
<!-- 代表形名 -->
<th>@Disp["item.typicalFormName"]</th>
<!-- 発行日 -->
<th>@Disp["item.issueDate"]</th>
<!-- 承認者コード -->
<th>@Disp["item.approveCode"]</th>
<!-- 照査者コード -->
<th>@Disp["item.checkCode"]</th>
<!-- 作成者コード -->
<th>@Disp["item.makeCode"]</th>
<!-- 作成日 -->
<th>@Disp["item.makeDate"]</th>
</tr>
</thead>
<!-- #################################################################### -->
<!-- データ行 -->
<!-- #################################################################### -->
<tbody>
@{
int n = 0;
@foreach (var item in Model)
{
<tr class="text-nowrap">
<td> @(n += 1) </td>
<td> @item.PartsNumber </td>
<td> @item.REV </td>
<td> @item.Status </td>
<td> @item.Group </td>
<td> @item.RepresentModel </td>
<td> @item.IssueDate </td>
<td> @item.ApproveCode </td>
<td> @item.CheckerCode </td>
<td> @item.MakeCode </td>
<td> @item.MakeDate </td>
</tr>
}
}
</tbody>
</table>
<!-- ボタン -->
<input type="button" id="okBtn" name="okBtn" value=@Disp["btn.ok"] class="btn ml-1 font-small" onclick="location.href='/F_04_02/A_03_27'">
<input type="button" id="cancelBtn" name="cancelBtn" value=@Disp["btn.cancel"] class="btn ml-3 font-small" onclick="location.href='/F_04_02/A_03_25'">
</div>
A_03_33 Controller
//A_03_33
public IActionResult A_03_33()
{
// 初期表示用データ作成
var model01 = new A_03_33ViewModel();
var model02 = new A_03_33ViewModel();
var model03 = new A_03_33ViewModel();
model01.InitGenPurposPartsAppForm01();
model02.InitGenPurposPartsAppForm02();
model03.InitGenPurposPartsAppForm03();
var models = new List<A_03_33ViewModel> { model01, model02, model03 };
return View(models);
}
A_03_33 Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_03_33ViewModel
{
/// 汎用部品申請モデル
/// <summary>
/// 部品番号
/// </summary>
public string PartsNumber { get; set; }
/// <summary>
/// REV
/// </summary>
public int REV { get; set; }
/// <summary>
/// ステータス
/// </summary>
public string Status { get; set; }
/// <summary>
/// グループ名
/// </summary>
public string Group { get; set; }
/// <summary>
/// 代表形名
/// </summary>
public string RepresentModel { get; set; }
/// <summary>
/// 発行日
/// </summary>
public string IssueDate { get; set; }
/// <summary>
/// 承認者コード
/// </summary>
public string ApproveCode { get; set; }
/// <summary>
/// 照査者コード
/// </summary>
public string CheckerCode { get; set; }
/// <summary>
/// 作成者コード
/// </summary>
public string MakeCode { get; set; }
/// <summary>
/// 作成日
/// </summary>
public string MakeDate { get; set; }
/// <summary>
/// デバッグ用 テストデータ作成(汎用部品申請書)
/// </summary>
public void InitGenPurposPartsAppForm01()
{
PartsNumber = "US00-00017";
REV = 0;
Status = "照査中";
Group = "groupA";
RepresentModel = "A-GENERAL";
IssueDate = "2021/11/11";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
MakeCode = "00113307 [袴田 到]";
MakeDate = "2021/11/01";
}
public void InitGenPurposPartsAppForm02()
{
PartsNumber = "US00-00027";
REV = 0;
Status = "照査中";
Group = "groupB";
RepresentModel = "B-GENERAL";
IssueDate = "2021/11/12";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
MakeCode = "00113307 [袴田 到]";
MakeDate = "2021/11/02";
}
public void InitGenPurposPartsAppForm03()
{
PartsNumber = "US00-00029";
REV = 0;
Status = "承認中";
Group = "groupC";
RepresentModel = "C-GENERAL";
IssueDate = "2021/11/13";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼三]";
MakeCode = "00113307 [袴田 倒]";
MakeDate = "2021/11/03";
}
}
}
A_03_33 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@using Models;
@model List<A_03_33ViewModel>
@{using (Html.BeginForm("A_03_33", "F_04_03", FormMethod.Post))}
<div class="pt-3">
<!-- 画面名称 -->
<b class="font-weight-bold">@Disp["check.checkResult.pms.title"]</b>
<!-- ガイドライン -->
<ul class=" font-small mb-1">
<li>@Disp["check.checkRejectConfirm.pms.message01"]</li>
<li>@Disp["check.checkRejectConfirm.pms.message02"]</li>
</ul>
<hr class="mb-2">
<!-- ボタン -->
<div class="link-button-block">
<input type="button" id="okBtn2" name="okBtn" value=@Disp["btn.ok"] class="btn font-small" onclick="location.href='/F_04_03/A_03_34'">
<input type="button" id="cancelBtn2" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small" onclick="location.href='/F_04_03/A_03_30'">
</div>
<table class="table table-sm table-striped table-bordered mt-2">
<!-- #################################################################### -->
<!-- ヘッダ -->
<!-- #################################################################### -->
<thead>
<tr class="text-nowrap text-left text-white">
<!-- No. -->
<th>@Disp["item.no"]</th>
<!-- 部品番号 -->
<th>@Disp["item.partsNum"]</th>
<!-- REV -->
<th>@Disp["item.rev"]</th>
<!-- ステータス -->
<th>@Disp["item.status"]</th>
<!-- グループ -->
<th>@Disp["item.group"]</th>
<!-- 代表形名 -->
<th>@Disp["item.typicalFormName"]</th>
<!-- 発行日 -->
<th>@Disp["item.issueDate"]</th>
<!-- 承認者コード -->
<th>@Disp["item.approveCode"]</th>
<!-- 照査者コード -->
<th>@Disp["item.checkCode"]</th>
<!-- 作成者コード -->
<th>@Disp["item.makeCode"]</th>
<!-- 作成日 -->
<th>@Disp["item.makeDate"]</th>
</tr>
</thead>
<!-- #################################################################### -->
<!-- データ行 -->
<!-- #################################################################### -->
<tbody>
@{
int n = 0;
@foreach (var item in Model)
{
<tr class="text-nowrap">
<td> @(n += 1) </td>
<td> <a href="#">@item.PartsNumber</a> </td>
<td> @item.REV </td>
<td> @item.Status </td>
<td> @item.Group </td>
<td> @item.RepresentModel </td>
<td> @item.IssueDate </td>
<td> @item.ApproveCode </td>
<td> @item.CheckerCode </td>
<td> @item.MakeCode </td>
<td> @item.MakeDate </td>
</tr>
}
}
</tbody>
</table>
<!-- ボタン -->
<div class="link-button-block">
<input type="button" id="okBtn2" name="okBtn" value=@Disp["btn.ok"] class="btn font-small" onclick="location.href='/F_04_03/A_03_34'">
<input type="button" id="cancelBtn2" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small" onclick="location.href='/F_04_03/A_03_30'">
</div>
</div>
A_02_19 Controller
[HttpGet]
public IActionResult babasaki(string id)
{
var model = new A_02_19ViewModel();
model.InitUserData();
return View(model);
}
public IActionResult A_02_19()
{
var model = new A_02_19ViewModel();
model.InitUserData();
return View(model);
}
//ポストデータ確認用
[HttpPost]
public IActionResult A_02_19_1(A_02_19ViewModel m)
{
var model = new A_02_19ViewModel();
return View();
}
A_02_19 Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_02_19ViewModel
{
/// <summary>
/// 仕様情報リスト
/// </summary>
public IList<UserInfo> UserList { get; set; }
/// <summary>
/// ユーザー情報
/// </summary>
public class UserInfo
{
/// <summary>
/// 社員番号
/// </summary>
public string EmployeeNum { get; set; }
/// <summary>
/// 姓
/// </summary>
public string Name1 { get; set; }
/// <summary>
/// 名
/// </summary>
public string Name2 { get; set; }
/// <summary>
/// 照査
/// </summary>
public bool IsCheck { get; set; }
/// <summary>
/// 承認
/// </summary>
public bool IsApprove { get; set; }
}
//データ行
public void InitUserData()
{
var test1 = new UserInfo
{
EmployeeNum = "未選択",
Name1 = "",
Name2 = "",
IsCheck = false,
IsApprove = false
};
var test2 = new UserInfo
{
EmployeeNum = "00112722",
Name1 = "藤川",
Name2 = "愼二",
IsCheck = false,
IsApprove = false
};
var test3 = new UserInfo
{
EmployeeNum = "00113307",
Name1 = "袴田",
Name2 = "到",
IsCheck = false,
IsApprove = false
};
var test4 = new UserInfo
{
EmployeeNum = "03530083",
Name1 = "丸山",
Name2 = "智由",
IsCheck = false,
IsApprove = false
};
var test5 = new UserInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsCheck = false,
IsApprove = false
};
var test6 = new UserInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsCheck = false,
IsApprove = false
};
var test7 = new UserInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsCheck = false,
IsApprove = false
};
var test8 = new UserInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsCheck = false,
IsApprove = false
};
UserList = new UserInfo[8];
UserList[0] = test1;
UserList[1] = test2;
UserList[2] = test3;
UserList[3] = test4;
UserList[4] = test5;
UserList[5] = test6;
UserList[6] = test7;
UserList[7] = test8;
}
}
}
A_02_19 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model YDMS.WebApp.Models.A_02_19ViewModel
<div id="pnl-user-select">
<h7 class="font-weight-bold"><strong>@Disp["select.user.title"]</strong></h7>
<ul class="font-small mb-1">
<li>@Disp["select.user.message02"]</li>
<li>@Disp["select.user.message03"]</li>
</ul>
<hr class="mb-2">
<table class="border-0 table w-100 mb-2">
<thead>
<tr>
<th class="text-center text-white w-40">@Disp["limit.name.user"]</th>
<th class="border-0 bg-white text-left">
<input type="text" name="limitTxt" size="25" value="*" onkeyup="" onblur="" class="text-monospace ml-3">
<input type="button" id="limitBtn" name="limitBtn" value=@Disp["btn.search"] class="ml-3 btn font-small">
</th>
</tr>
</thead>
</table>
<form method="post" action="../../sample/A_02_19_1">
<div class="d-flex justify-content-center mt-2 h-235-fix" style="overflow-y:auto">
<table class="table table-striped">
<thead>
<tr class="text-left">
<!-- NO. -->
<th>@Disp["table.no"]</th>
<!-- 社員番号 -->
<th>@Disp["table.employeeNumber"]</th>
<!-- 姓 -->
<th>@Disp["table.familyName"]</th>
<!-- 名 -->
<th>@Disp["table.firstName"]</th>
<!-- 照査者 -->
<th>@Disp["table.checker"]</th>
<!-- 承認者 -->
<th>@Disp["table.approver"]</th>
</tr>
</thead>
<tbody>
@{ var i = 0;
foreach (var item in Model.UserList)
{
<tr>
<td>@(i+1)</td>
<td>@item.EmployeeNum @Html.HiddenFor(m => m.UserList[i].EmployeeNum)</td>
<td class="text-nowrap">@item.Name1 @Html.HiddenFor(m => m.UserList[i].Name1)</td>
<td class="text-nowrap">@item.Name2 @Html.HiddenFor(m => m.UserList[i].Name2)</td>
<td class="text-center">
@Html.RadioButtonFor(m => m.UserList[0].IsCheck, item.IsCheck, new { @id = "Checker" + (i + 1) })
</td>
<td class="text-center">
@Html.RadioButtonFor(m => m.UserList[0].IsApprove, item.IsApprove, new { @id = "Approver" + (i + 1) })
</td>
</tr>
i++;
}
}
</tbody>
</table>
</div>
</form>
</div>
<hr />
<!-- ボタン -->
<div class="h-50-fix text-center">
<input type="button" id="okBtn" name="okBtn" value=@Disp["btn.ok"] class="btn font-small" onclick="location.href=''">
<input type="button" id="cancelBtn" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small" onclick="location.href='/F_02_03/A_02_17'">
</div>
overflow-y
.overflow-y {
overflow-y:auto;
}
A_03_41 Controller
//A_03_41
public IActionResult A_03_41()
{
// 初期表示用データ作成
var model01 = new A_03_41ViewModel();
var model02 = new A_03_41ViewModel();
var model03 = new A_03_41ViewModel();
model01.InitGenPurposPartsAppForm01();
model02.InitGenPurposPartsAppForm02();
model03.InitGenPurposPartsAppForm03();
var models = new List<A_03_41ViewModel> { model01, model02, model03 };
return View(models);
}
A_03_41 Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_03_41ViewModel
{
/// 汎用部品申請モデル
/// <summary>
/// 部品番号
/// </summary>
public string PartsNumber { get; set; }
/// <summary>
/// REV
/// </summary>
public int REV { get; set; }
/// <summary>
/// ステータス
/// </summary>
public string Status { get; set; }
/// <summary>
/// グループ名
/// </summary>
public string Group { get; set; }
/// <summary>
/// 代表形名
/// </summary>
public string RepresentModel { get; set; }
/// <summary>
/// 発行日
/// </summary>
public string IssueDate { get; set; }
/// <summary>
/// 承認者コード
/// </summary>
public string ApproveCode { get; set; }
/// <summary>
/// 照査者コード
/// </summary>
public string CheckerCode { get; set; }
/// <summary>
/// 作成者コード
/// </summary>
public string MakeCode { get; set; }
/// <summary>
/// 作成日
/// </summary>
public string MakeDate { get; set; }
/// <summary>
/// デバッグ用 テストデータ作成(汎用部品申請書)
/// </summary>
public void InitGenPurposPartsAppForm01()
{
PartsNumber = "US00-00017";
REV = 0;
Status = "照査中";
Group = "groupA";
RepresentModel = "A-GENERAL";
IssueDate = "2021/11/11";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
MakeCode = "00113307 [袴田 到]";
MakeDate = "2021/11/01";
}
public void InitGenPurposPartsAppForm02()
{
PartsNumber = "US00-00027";
REV = 0;
Status = "照査中";
Group = "groupB";
RepresentModel = "B-GENERAL";
IssueDate = "2021/11/12";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼二]";
MakeCode = "00113307 [袴田 到]";
MakeDate = "2021/11/02";
}
public void InitGenPurposPartsAppForm03()
{
PartsNumber = "US00-00029";
REV = 0;
Status = "承認中";
Group = "groupC";
RepresentModel = "C-GENERAL";
IssueDate = "2021/11/13";
ApproveCode = "00104208 [えぬえすえす てすと] ";
CheckerCode = "00112722 [藤川 愼三]";
MakeCode = "00113307 [袴田 倒]";
MakeDate = "2021/11/05";
}
}
}
A_03_41 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@using Models;
@model List<A_03_41ViewModel>
@{using (Html.BeginForm("A_03_41", "F_04_04", FormMethod.Post))}
<div class="pt-3">
<!-- 画面名称 -->
<b class="font-weight-bold">@Disp["approve.approveRejectResult.pms.title"]</b>
<!-- ガイドライン -->
<ul class="ml-1 font-small mb-1">
<li>@Disp["approve.approveRejectResult.pms.message01"]</li>
<li>@Disp["approve.approveRejectResult.pms.message02"]</li>
</ul>
<hr class="mb-2">
<!-- 一覧に戻るボタン -->
<div class="link-button-block">
<a asp-controller="F_04_04" asp-action="A_03_37" class="btn text-dark link-btn btn-outline-dark font-small ml-1" id="backToListBtn" name="backToListBtn">@Disp["btn.backToList"]</a>
</div>
<table class="table table-sm table-striped table-bordered ml-1 mt-2">
<!-- #################################################################### -->
<!-- ヘッダ -->
<!-- #################################################################### -->
<thead>
<tr class="text-nowrap text-left text-white">
<!-- No. -->
<th>@Disp["item.no"]</th>
<!-- 部品番号 -->
<th>@Disp["item.partsNum"]</th>
<!-- REV -->
<th>@Disp["item.rev"]</th>
<!-- ステータス -->
<th>@Disp["item.status"]</th>
<!-- グループ -->
<th>@Disp["item.group"]</th>
<!-- 代表形名 -->
<th>@Disp["item.typicalFormName"]</th>
<!-- 発行日 -->
<th>@Disp["item.issueDate"]</th>
<!-- 承認者コード -->
<th>@Disp["item.approveCode"]</th>
<!-- 照査者コード -->
<th>@Disp["item.checkCode"]</th>
<!-- 作成者コード -->
<th>@Disp["item.makeCode"]</th>
<!-- 作成日 -->
<th>@Disp["item.makeDate"]</th>
</tr>
</thead>
<!-- #################################################################### -->
<!-- データ行 -->
<!-- #################################################################### -->
<tbody>
@{
int n = 0;
@foreach (var item in Model)
{
<tr class="text-nowrap">
<td> @(n += 1) </td>
<td> @item.PartsNumber </td>
<td> @item.REV </td>
<td> @item.Status </td>
<td> @item.Group </td>
<td> @item.RepresentModel </td>
<td> @item.IssueDate </td>
<td> @item.ApproveCode </td>
<td> @item.CheckerCode </td>
<td> @item.MakeCode </td>
<td> @item.MakeDate </td>
</tr>
}
}
</tbody>
</table>
<!-- ボタン -->
<!-- 一覧に戻るボタン -->
<div class="link-button-block">
<a asp-controller="F_04_04" asp-action="A_03_37" class="btn text-dark link-btn btn-outline-dark font-small ml-1" id="backToListBtn" name="backToListBtn">@Disp["btn.backToList"]</a>
</div>
</div>
A_02_06 Controller
public IActionResult A_02_06()
{
var model = new A_02_06ViewModel();
model.InitRegisterData();
return View(model);
}
A_02_06 Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_02_06ViewModel
{
/// <summary>
/// 仕様情報リスト
/// </summary>
public IList<RegisterInfo> RegisterList { get; set; }
/// <summary>
/// 登録者情報
/// </summary>
public class RegisterInfo
{
/// <summary>
/// 社員番号
/// </summary>
public string EmployeeNum { get; set; }
/// <summary>
/// 姓
/// </summary>
public string Name1 { get; set; }
/// <summary>
/// 名
/// </summary>
public string Name2 { get; set; }
/// <summary>
/// 登録者
/// </summary>
public bool IsRegister { get; set; }
}
//データ行
public void InitRegisterData()
{
var test1 = new RegisterInfo
{
EmployeeNum = "未選択",
Name1 = "",
Name2 = "",
IsRegister = false
};
var test2 = new RegisterInfo
{
EmployeeNum = "00112722",
Name1 = "藤川",
Name2 = "愼二",
IsRegister = false
};
var test3 = new RegisterInfo
{
EmployeeNum = "00113307",
Name1 = "袴田",
Name2 = "到",
IsRegister = false
};
var test4 = new RegisterInfo
{
EmployeeNum = "03530083",
Name1 = "丸山",
Name2 = "智由",
IsRegister = false
};
var test5 = new RegisterInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsRegister = false
};
var test6 = new RegisterInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsRegister = false
};
var test7 = new RegisterInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsRegister = false
};
var test8 = new RegisterInfo
{
EmployeeNum = "30005338",
Name1 = "金子",
Name2 = "佳弘",
IsRegister = false
};
RegisterList = new RegisterInfo[8];
RegisterList[0] = test1;
RegisterList[1] = test2;
RegisterList[2] = test3;
RegisterList[3] = test4;
RegisterList[4] = test5;
RegisterList[5] = test6;
RegisterList[6] = test7;
RegisterList[7] = test8;
}
}
}
A_02_06 View
@using Microsoft.AspNetCore.Mvc.Localization;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model YDMS.WebApp.Models.A_02_06ViewModel
<div id="pnl-user-select">
<h6 class="font-weight-bold"><strong>@Disp["select.register.title"]</strong></h6>
<ul class="font-small mb-1">
<li>@Disp["select.register.message01"]</li>
<li>@Disp["select.register.message02"]</li>
</ul>
<hr class="mb-2">
<table class="border-0 table w-100 mb-2">
<thead>
<tr>
<th class="text-center text-white w-40">@Disp["limit.name.register"]</th>
<th class="border-0 bg-white text-left">
<input type="text" name="limitTxt" size="25" value="*" onkeyup="" onblur="" class="text-monospace ml-3">
<input type="button" id="limitBtn" name="limitBtn" value=@Disp["btn.search"] class="ml-3 btn font-small">
</th>
</tr>
</thead>
</table>
<form method="post" action="../../sample/A_02_06_1">
<div class="d-flex justify-content-center mt-2 h-235-fix" style="overflow-y:auto">
<table class="table table-striped">
<thead>
<tr class="text-left">
<!-- NO. -->
<th>@Disp["table.no"]</th>
<!-- 社員番号 -->
<th>@Disp["table.employeeNumber"]</th>
<!-- 姓 -->
<th>@Disp["table.familyName"]</th>
<!-- 名 -->
<th>@Disp["table.firstName"]</th>
<!-- 登録者 -->
<th>@Disp["table.register"]</th>
</tr>
</thead>
<tbody>
@{ var i = 0;
foreach (var item in Model.RegisterList)
{
<tr>
<td>@(i+1)</td>
<td>@item.EmployeeNum @Html.HiddenFor(m => m.RegisterList[i].EmployeeNum)</td>
<td class="text-nowrap">@item.Name1 @Html.HiddenFor(m => m.RegisterList[i].Name1)</td>
<td class="text-nowrap">@item.Name2 @Html.HiddenFor(m => m.RegisterList[i].Name2)</td>
<td class="text-center">
@Html.RadioButtonFor(m => m.RegisterList[0].IsRegister, item.IsRegister, new { @id = "Register" + (i + 1) })
</td>
</tr>
i++;
}
}
</tbody>
</table>
</div>
</form>
</div>
<hr />
<!-- ボタン -->
<div class="h-50-fix text-center">
<input type="button" id="okBtn" name="okBtn" value=@Disp["btn.ok"] class="btn font-small" onclick="location.href=''">
<input type="button" id="cancelBtn" name="cancelBtn" value=@Disp["btn.cancel"] class="btn font-small" onclick="location.href='/F_02_03/A_02_17'">
</div>
overflow-y
.overflow-y {
overflow-y:auto;
}
A_03_52 Controller
//A_03_52
public IActionResult A_03_52()
{
var model = new A_03_52ViewModel();
model.InitGenPurposPartsAppForm();
model.InitPartManageInfo();
model.InitSupInfo();
model.InitAcceptInfo();
return View(model);
}
A_03_52 Model
using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YDMS.WebApp.Models
{
public class A_03_52ViewModel
{
/// 部品管理情報モデル
/// <summary>
/// 部品番号
/// </summary>
public string PartsNumber { get; set; }
/// <summary>
/// REV
/// </summary>
public int Rev { get; set; }
/// <summary>
/// 製造基準識別コード形式
/// </summary>
public string MfgCodeFormat { get; set; }
/// <summary>
/// 代表形名
/// </summary>
public string RepresentModel { get; set; }
/// <summary>
/// 大分類
/// </summary>
public SelectListItem[] MajorClass { get; set; }
/// <summary>
/// 4桁分類コード
/// </summary>
public string ClassFourCode { get; set; }
/// <summary>
/// グループ名
/// </summary>
public SelectListItem[] Group { get; set; }
/// <summary>
/// ステータス
/// </summary>
public string Status { get; set; }
/// <summary>
/// 改訂理由
/// </summary>
public string ReasonRev { get; set; }
/// <summary>
/// 発行日
/// </summary>
public string IssueDate { get; set; }
/// <summary>
/// 承認者コード
/// </summary>
public string ApproveCode { get; set; }
/// <summary>
/// 承認者部署名
/// </summary>
public string ApproveDept { get; set; }
/// <summary>
/// 承認日
/// </summary>
public string ApproveDate { get; set; }
/// <summary>
/// 照査者コード
/// </summary>
public string CheckerCode { get; set; }
/// <summary>
/// 照査者部署名
/// </summary>
public string CheckDept { get; set; }
/// <summary>
/// 照査日
/// </summary>
public string CheckDate { get; set; }
/// <summary>
/// 作成者コード
/// </summary>
public string MakeCode { get; set; }
/// <summary>
/// 作成者部署名
/// </summary>
public string MakeDept { get; set; }
/// <summary>
/// 作成日
/// </summary>
public string MakeDate { get; set; }
////////////////////////////////////////////////////////////////////////////////////////////
// 部品基本情報 //
////////////////////////////////////////////////////////////////////////////////////////////
/// <summary>
/// 部品名称
/// </summary>
public string PartName { get; set; }
/// <summary>
/// 記事
/// </summary>
public string Article { get; set; }
/// <summary>
/// 部品名称和文
/// </summary>
public string PartNameJapanese { get; set; }
/// <summary>
/// STコード
/// </summary>
public string STCode { get; set; }
/// <summary>
/// 手配区分
/// </summary>
public string Purchase { get; set; }
/// <summary>
/// 仕様区分
/// </summary>
public string SpecificationDivision { get; set; }
/// <summary>
/// 部品単位系
/// </summary>
public string PartUnitSystem { get; set; }
/// <summary>
/// 安全規格適合重要管理部品
/// </summary>
public string SafetyStandardAgreement { get; set; }
/// <summary>
/// 防爆規格適合重要管理部品s
/// </summary>
public string ExplosionProofStandardAgreement { get; set; }
/// <summary>
/// EMC規格適合重要管理部品
/// </summary>
public string Emc_StandardAgreement { get; set; }
/// <summary>
/// EU圧力指令適合重要管理部品
/// </summary>
public string Eu_PressureInstructionAgreement { get; set; }
/// <summary>
/// 無線規格適合重要管理部品
/// </summary>
public string Wireless_Standard { get; set; }
/// <summary>
/// 規格適合製品以外への使用可否
/// </summary>
public string NonCorrespondenceParts { get; set; }
/// <summary>
/// 適合規格種類
/// </summary>
public string StandardKind { get; set; }
/// <summary>
/// 備考
/// </summary>
public string Note { get; set; }
/// <summary>
/// 試作区分
/// </summary>
public string ExperimentalDivision { get; set; }
////////////////////////////////////////////////////////////////////////////////////////////
// 大分類仕様情報 //
////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////
// 4桁分類仕様情報 //
////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////
// 購買先情報 //
////////////////////////////////////////////////////////////////////////////////////////////
public SupplierInfo[] Supplierinfo { get; set; }
public class SupplierInfo
{
/// <summary>
/// SC
/// </summary>
public string SC { get; set; }
/// <summary>
/// 製造者形名
/// </summary>
public string TypeName { get; set; }
/// <summary>
/// 製造者名
/// </summary>
public string ManufacturerName { get; set; }
/// <summary>
/// 購買先例
/// </summary>
public string SupName { get; set; }
/// <summary>
/// 購買先TEL
/// </summary>
public string SupTel { get; set; }
/// <summary>
/// 抹消
/// </summary>
public SelectListItem[] Erase { get; set; }
}
////////////////////////////////////////////////////////////////////////////////////////////
// 受入れ検査 //
////////////////////////////////////////////////////////////////////////////////////////////
/// <summary>
/// マーキングの確認の要否
/// </summary>
public bool Fs1Check001 { get; set; }
/// <summary>
/// タグの確認の要否
/// </summary>
public bool Fs1Check002 { get; set; }
/// <summary>
/// タグの保管の要否(保管しない場合は現品添付)
/// </summary>
public bool Fs1Check003 { get; set; }
/// <summary>
/// 認定証及び適合宣言書の確認と保管の要否
/// </summary>
public bool Fs1Check004 { get; set; }
/// <summary>
/// 出荷検査成績書の確認と保管の要否
/// </summary>
public bool Fs1Check005 { get; set; }
/// <summary>
/// 材料証明書の確認と保管の要否
/// </summary>
public bool Fs1Check006 { get; set; }
/// <summary>
/// 耐圧試験成績書の確認と保管の要否
/// </summary>
public bool Fs1Check007 { get; set; }
/// <summary>
/// FS1構成データへの検査項目の記載の有無
/// </summary>
public bool Fs1Check009 { get; set; }
/// <summary>
/// マーキングの形状等
/// </summary>
public string Fs1Cmnt001 { get; set; }
/// <summary>
/// タグ確認方法等
/// </summary>
public string Fs1Cmnt002 { get; set; }
/// <summary>
/// タグ保管方法等
/// </summary>
public string Fs1Cmnt003 { get; set; }
/// <summary>
/// 認定証の確認方法及び適合宣言書を提出させる時機など
/// </summary>
public string Fs1Cmnt004 { get; set; }
/// <summary>
/// 成績書の確認方法等
/// </summary>
public string Fs1Cmnt005 { get; set; }
/// <summary>
/// 証明書の確認方法等
/// </summary>
public string Fs1Cmnt006 { get; set; }
/// <summary>
/// 成績書の確認方法等
/// </summary>
public string Fs1Cmnt007 { get; set; }
/// <summary>
/// その他の検査項目
/// </summary>
public string Fs1Cmnt008 { get; set; }
/// <summary>
/// 部品管理情報データ作成
/// </summary>
public void InitPartManageInfo()
{
// 部品管理情報(デバッグ用データ作成)
PartsNumber = "US00-00047";
Rev = 0;
MfgCodeFormat = "拡張形部品番号";
RepresentModel = "A-GENERAL";
MajorClass = new SelectListItem[]{
new SelectListItem{Text="実装電気部品汎用",Value="ELG" },
new SelectListItem{Text="その他電気製品汎用",Value="EOG" },
new SelectListItem{Text="機構部品汎用",Value="MEG" },
new SelectListItem{Text="素材・補助材汎用",Value="MTG" },
new SelectListItem{Text="アセンブリ汎用",Value="ASG" },
new SelectListItem{Text="ソフトウェア汎用",Value="SWG" },
new SelectListItem{Text="そのほか大分類汎用",Value="ETG" },
};
ClassFourCode = "US00";
Group = new SelectListItem[] {
new SelectListItem { Text = "グループA", Value = "GroupA" },
new SelectListItem { Text = "グループB", Value = "GroupB" },
new SelectListItem { Text = "グループC", Value = "GroupC" },
new SelectListItem { Text = "グループD", Value = "GroupD" },
new SelectListItem { Text = "グループE", Value = "GroupE" }
};
Status = "作成中";
ReasonRev = "任意";
IssueDate = "";
ApproveCode = "承認者コード";
ApproveDept = "";
ApproveDate = "";
CheckerCode = "照査者コード";
CheckDept = "";
CheckDate = "";
MakeCode = "00113307 [袴田 到]";
MakeDept = "YPHQ センシングセンター 開発統括部 共通技術部 インフラ開発課 [100010016275]";
MakeDate = "2021/8/26";
}
/// <summary>
/// 部品基本情報データ作成
/// </summary>
public void InitGenPurposPartsAppForm()
{
PartName = "";
Article = "";
PartNameJapanese = "";
STCode = "00";
Purchase = "外作";
SpecificationDivision = "標準";
PartUnitSystem = "指定なし";
SafetyStandardAgreement = "N";
ExplosionProofStandardAgreement = "N";
Emc_StandardAgreement = "N";
Eu_PressureInstructionAgreement = "N";
Wireless_Standard = "N";
NonCorrespondenceParts = "Y";
StandardKind = "";
Note = "";
ExperimentalDivision = "";
}
/// <summary>
/// 購買先情報データ作成
/// </summary>
public void InitSupInfo()
{
var susInfo = new SupplierInfo[] {
new SupplierInfo{
SC = "10",
TypeName = "製造者形名テスト1",
ManufacturerName = "製造者名テスト1",
SupName = "購買先例テスト1",
SupTel = "購買先電話テスト1",
Erase = new SelectListItem[]{
new SelectListItem{Text ="抹消リスト1",Value="Erase1" },
new SelectListItem{Text ="抹消リスト2",Value="Erase2" },
new SelectListItem{Text ="抹消リスト3",Value="Erase3" },
new SelectListItem{Text ="抹消リスト4",Value="Erase4" },
new SelectListItem{Text ="抹消リスト5",Value="Erase5" },
}
},
new SupplierInfo{
SC = "20",
TypeName = "製造者形名テスト2",
ManufacturerName = "製造者名テスト2",
SupName = "購買先例テスト2",
SupTel = "購買先電話テスト2",
Erase = new SelectListItem[]{
new SelectListItem{Text ="抹消リスト1",Value="Erase1" },
new SelectListItem{Text ="抹消リスト2",Value="Erase2" },
new SelectListItem{Text ="抹消リスト3",Value="Erase3" },
new SelectListItem{Text ="抹消リスト4",Value="Erase4" },
new SelectListItem{Text ="抹消リスト5",Value="Erase5" },
}
}
};
Supplierinfo = susInfo;
}
/// <summary>
/// 受入れ情報データ作成
/// </summary>
public void InitAcceptInfo()
{
Fs1Check001 = false;
Fs1Check002 = false;
Fs1Check003 = false;
Fs1Check004 = false;
Fs1Check005 = false;
Fs1Check006 = false;
Fs1Check007 = false;
Fs1Check009 = false;
Fs1Cmnt001 = "任意";
Fs1Cmnt002 = "任意";
Fs1Cmnt003 = "任意";
Fs1Cmnt004 = "任意";
Fs1Cmnt005 = "任意";
Fs1Cmnt006 = "任意";
Fs1Cmnt007 = "任意";
Fs1Cmnt008 = "任意";
}
}
}
A_03_52 View
@using Microsoft.AspNetCore.Mvc.Localization;
@using YDMS.WebApp.Models.Shared;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IHtmlLocalizer<Lang> Disp
@model YDMS.WebApp.Models.A_03_52ViewModel
@{using (Html.BeginForm("A_03_52", "F_04_02", FormMethod.Post))}
<div class="pt-3">
<!-- 画面名称 -->
<b class="font-weight-bold">@Disp["edit.inputParts.title"]</b>
<!-- ガイドライン -->
<ul class="ml-1 font-small mb-1">
<li>@Disp["edit.inputParts.message01"]</li>
<li>@Disp["edit.inputParts.message02"]</li>
</ul>
<!-- 一覧に戻るボタン -->
<div class="link-button-block">
<a asp-controller="F_04_02" asp-action="A_03_25" class="btn text-dark font-small link-btn w-100-fix ml-1 mb-2" id="backToListBtn" name="backToListBtn">@Disp["btn.backToList"]</a>
</div>
<hr class="mb-2">
<!-- 更新ボタン -->
<input type="button" id="updateGenPartsBtn" name="updateGenPartsBtn" value=@Disp["btn.update"] class="btn font-small ml-1" onclick="location.href='/F_04_02/A_03_45'">
<!-- 部品管理情報 -->
<table class="table table-sm table-bordered table-striped text-left ml-1 mt-2">
<thead class="text-nowrap text-left text-white">
<tr>
<th colspan="4">@Disp["table.partsManageInfo"] [@Model.PartsNumber]</th>
</tr>
<tr>
<th class="w-50-fix">@Disp["table.no"]</th>
<th class="w-200-fix">@Disp["table.colum"]</th>
<th class="w-500-fix">@Disp["table.value"]</th>
<th class="w-400-fix">@Disp["table.note"]</th>
</tr>
</thead>
<tr>
<!-- 部品番号 -->
<td>1</td>
<td>@Disp["item.partsNum"]</td>
<td class="text-left">
<a href="#">@Html.Raw(Model.PartsNumber)</a>
@Html.HiddenFor(model => model.PartsNumber)
</td>
<td></td>
</tr>
<tr>
<td>2</td>
<td>@Disp["item.rev"]</td>
<td class="text-left">
@Html.Raw(Model.Rev.ToString())
@Html.HiddenFor(model => model.Rev)
</td>
<td></td>
</tr>
<tr>
<!-- 製造基準識別コード形式 -->
<td>3</td>
<td>@Disp["item.codeType"]</td>
<td class="text-left">
@Html.Raw(Model.MfgCodeFormat)
@Html.HiddenFor(model => model.MfgCodeFormat)
</td>
<td></td>
</tr>
<tr>
<!-- 代表形名 -->
<td>4</td>
<td>@Disp["item.typicalFormName"] (*)</td>
<td>
<!-- TODO ボタン押下でテキスト変更できるようにする -->
<input type="text" class="text-monospace" name="TypicalFormName" placeholder="@Disp["item.optional"]" size="12">
<input type="button" class="btn" value="@Disp["btn.select"]" onclick="location.href='/F_04_02/A_03_51'" />
</td>
<td></td>
</tr>
<tr>
<!-- 大分類 -->
<td>5</td>
<td>@Disp["item.largeKindSpec"] (*)</td>
<td class="text-left">@Disp["item.class3Name.ETL"]</td>
<td></td>
</tr>
<tr>
<!-- 4桁分類コード -->
<td>6</td>
<td>@Disp["item.fourKindCode"] (*)</td>
<td class="text-left">
@Html.Raw(Model.ClassFourCode)
@Html.HiddenFor(model => model.ClassFourCode)
</td>
<td></td>
</tr>
<tr>
<!-- グループ -->
<td>7</td>
<td>@Disp["item.group"] (*)</td>
<td class="text-left">
@Html.DropDownListFor(model => model.Group, (IEnumerable<SelectListItem>)Model.Group, new { })
@Html.HiddenFor(model => model.Group)
</td>
<td></td>
</tr>
<tr>
<!-- ステータス -->
<td>8</td>
<td>@Disp["item.status"]</td>
<td class="text-left">
@Html.Raw(Model.Status)
@Html.HiddenFor(model => model.Status)
</td>
<td></td>
</tr>
<tr>
<!-- 改訂理由(*) -->
<td>9</td>
<td>@Disp["item.reason.rev"] (*)</td>
<td class="text-left w-200-fix">
<input type="text" class="text-monospace" name="TypicalFormName" placeholder="@Disp["item.optional"]" size="20">
</td>
<td>@Disp["comment.reason.rev"]</td>
</tr>
<tr>
<!-- 発行日 -->
<td>10</td>
<td>@Disp["item.issueDate"]</td>
<td class="text-left">
@Html.Raw(Model.IssueDate)
@Html.HiddenFor(model => model.IssueDate)
</td>
<td>@Disp["comment.issueDate"]</td>
</tr>
<tr>
<!-- 承認者コード -->
<td>11</td>
<td>@Disp["item.approveCode"] (*)</td>
<td>
<!-- TODO ボタン押下でテキスト変更できるようにする -->
<input type="text" class="text-monospace" name="TypicalFormName" placeholder="@Disp["item.optional"]" size="12">
<input type="button" class="btn" value="@Disp["btn.select"]" onclick="location.href='/F_04_02/A_03_51'"/>
</td>
<td></td>
</tr>
<tr>
<!-- 承認者部署名 -->
<td>12</td>
<td>@Disp["item.approveDept"]</td>
<td class="text-left">
@Html.Raw(Model.ApproveDept)
@Html.HiddenFor(model => model.ApproveDept)
</td>
<td>@Disp["comment.pmsEntryManageInfo.example5"]</td>
</tr>
<tr>
<!-- 承認日 -->
<td>13</td>
<td>@Disp["item.approveDate"]</td>
<td class="text-left">
@Html.Raw(Model.ApproveDate)
@Html.HiddenFor(model => model.ApproveDate)
</td>
<td></td>
</tr>
<tr>
<!-- 照査者コード -->
<td>14</td>
<td>@Disp["item.checkCode"] (*)</td>
<td>
<!-- TODO 選択ボタン押下時にテキスト変更 -->
<input type="text" class="text-monospace" name="TypicalFormName" placeholder="@Disp["item.optional"]" size="12">
<input type="button" id="Checker" class="btn" value="@Disp["btn.select"]" onclick="location.href='/F_04_02/A_03_51'">
</td>
<td>@Disp["comment.pmsEntryManageInfo.example6"]</td>
</tr>
<tr>
<!-- 照査者部署名 -->
<td>15</td>
<td>@Disp["item.checkDept"]</td>
<td class="text-left">
@Html.Raw(Model.CheckDept)
@Html.HiddenFor(model => model.CheckDept)
</td>
<td></td>
</tr>
<tr>
<!-- 照査日 -->
<td>16</td>
<td>@Disp["item.checkDate"]</td>
<td class="text-left">
@Html.Raw(Model.CheckDate)
@Html.HiddenFor(model => model.CheckDate)
</td>
<td></td>
</tr>
<tr>
<!-- 作成者コード -->
<td>17</td>
<td>@Disp["item.makeCode"]</td>
<td class="text-left">
@Html.Raw(Model.MakeCode)
@Html.HiddenFor(model => model.MakeCode)
</td>
<td></td>
</tr>
<tr>
<!-- 作成者部署名 -->
<td>17</td>
<td>@Disp["item.makeDept"]</td>
<td class="text-left">
@Html.Raw(Model.MakeDept)
@Html.HiddenFor(model => model.MakeDept)
</td>
<td></td>
</tr>
<tr>
<!-- 作成日 -->
<td>19</td>
<td>@Disp["item.makeDate"]</td>
<td class="text-left">
@Html.Raw(Model.MakeDate)
@Html.HiddenFor(model => model.MakeDate)
</td>
<td></td>
</tr>
</table>
<!-- 部品基本情報 -->
<table class="table table-sm table-bordered table-striped text-left ml-1 mt-2">
<thead class="text-nowrap text-left text-white">
<tr>
<th colspan="4">@Disp["table.partEssentialInfo"] [@Model.PartsNumber]</th>
</tr>
<tr>
<th>@Disp["table.no"]</th>
<th>@Disp["table.colum"]</th>
<th>@Disp["table.value"]</th>
<th>@Disp["table.note"]</th>
</tr>
</thead>
<tr>
<!-- 部品名称 -->
<td>1</td>
<td>@Disp["item.partName"] (*)</td>
<td>@Model.PartName</td>
<td>@Disp["comment.partName"]</td>
</tr>
<tr>
<!-- 記事-->
<td>2</td>
<td>@Disp["item.article"]</td>
<td>@Model.Article</td>
<td>@Disp["comment.partComment"]</td>
</tr>
<tr>
<!-- 部品名称和文 -->
<td>3</td>
<td>@Disp["item.partNameJapanese"]</td>
<td>@Model.PartNameJapanese</td>
<td></td>
</tr>
<tr>
<!-- STコード -->
<td>4</td>
<td>@Disp["item.stcode"] (*)</td>
<td>@Model.STCode</td>
<td>@Disp["comment.stCode"]</td>
</tr>
<tr>
<!-- 手配区分 -->
<td>5</td>
<td>@Disp["item.workOutsidePurchase"] (*)</td>
<td>@Model.Purchase</td>
<td></td>
</tr>
<tr>
<!-- 仕様区分 -->
<td>6</td>
<td>@Disp["item.specificationDivision"]</td>
<td>@Model.SpecificationDivision</td>
<td></td>
</tr>
<tr>
<!-- 部品単位系 -->
<td>7</td>
<td>@Disp["item.partUnitSystem"]</td>
<td>@Model.PartUnitSystem</td>
<td></td>
</tr>
<tr>
<!-- 安全規格適合重要管理部品 -->
<td>8</td>
<td>@Disp["item.safetyStandardAgreement"]</td>
<td>@Model.SafetyStandardAgreement</td>
<td></td>
</tr>
<tr>
<!-- 防爆規格適合重要管理部品 -->
<td>9</td>
<td>@Disp["item.explosion-proofStandardAgreement"]</td>
<td>@Model.ExplosionProofStandardAgreement</td>
<td></td>
</tr>
<tr>
<!-- EMC規格適合重要管理部品 -->
<td>10</td>
<td>@Disp["item.emc_StandardAgreement"]</td>
<td>@Model.Emc_StandardAgreement</td>
<td></td>
</tr>
<tr>
<!-- EU圧力指令適合重要管理部品 -->
<td>11</td>
<td>@Disp["item.eu_PressureInstructionAgreement"]</td>
<td>@Model.Eu_PressureInstructionAgreement</td>
<td></td>
</tr>
<tr>
<!-- 無線規格適合重要管理部品 -->
<td>12</td>
<td>@Disp["item.wireless_Standard"]</td>
<td>@Model.Wireless_Standard</td>
<td></td>
</tr>
<tr>
<!-- 規格適合製品以外への使用可否 -->
<td>13</td>
<td>@Disp["item.nonCorrespondenceParts"]</td>
<td>@Model.NonCorrespondenceParts</td>
<td></td>
</tr>
<tr>
<!-- 適合規格種類 -->
<td>14</td>
<td>@Disp["item.standardKind"]</td>
<td>@Model.StandardKind</td>
<td></td>
</tr>
<tr>
<!-- 備考 -->
<td>15</td>
<td>@Disp["item.note"]</td>
<td>@Model.Note</td>
<td></td>
</tr>
<tr>
<!-- 試作区分 -->
<td>16</td>
<td>@Disp["item.experimentalDivision"]</td>
<td>@Model.ExperimentalDivision</td>
<td></td>
</tr>
</table>
<!-- 更新ボタン -->
<input type="button" id="updateGenPartsBtn" name="updateGenPartsBtn" value=@Disp["btn.update"] class="btn font-small ml-1" onclick="location.href='/F_04_02/A_03_45'">
</div>
<hr mb-5 />
A_02_06 Controller(new)
public IActionResult A_02_06()
{
var model = new A_02_06ViewModel();
model.InitUserInfoData();
return View(model);
}
ボタン的另外一种写法:
<!-- 一覧に戻るボタン -->
<div class="link-button-block">
<a asp-controller="F_04_02" asp-action="A_03_25" class="btn text-dark font-small link-btn w-100-fix ml-1 mb-2" id="backToListBtn" name="backToListBtn">@Disp["btn.backToList"]</a>
</div>