tijian_tieying/web/dccdc/Views/Dictionaries/EditGzHyWh.cshtml
2025-02-20 12:14:39 +08:00

62 lines
2.3 KiB
Plaintext

@model dccdc.Models.DictionariesViewModel.HyWhViewModel
<!DOCTYPE html>
<html>
<head>
@section scripts{
<script type="text/javascript">
$("#WorkTypeMaintainId").change(function() {
document.getElementById("WorkTypeName1").value = $("#WorkTypeMaintainId option:selected").text();
});
$("#TradeTypeMaintainId").change(function() {
document.getElementById("TradeName1").value = $("#TradeTypeMaintainId option:selected").text();
});
function success(data) {
if (data.State == "1") {
$.ligerDialog.alert(data.Message,
function() {
window.parent.init();
});
}
}
</script>
}
<meta name="viewport" content="width=device-width"/>
<title></title>
</head>
<body>
<div id="edit">
@using (Ajax.BeginForm("EditGzHyWh", new AjaxOptions {HttpMethod = "Post", OnSuccess = "success"}))
{
@Html.HiddenFor(m => m.Id, new {id = "Id"})
<table class="t1" style="width: 100%">
<tr>
<td class="ltd" width="100px">行业名称:</td>
<td class="rtd">@Html.HiddenFor(m => m.WorkTypeName, new {@id = "WorkTypeName1"}) @Html.DropDownListFor(m => m.WorkTypeMaintainId, ViewData["TradeList"] as SelectList, "----请选择----", new {@id = "WorkTypeMaintainId"})@Html.ValidationMessageFor(m => m.WorkTypeMaintainId) </td>
</tr>
<tr>
<td class="ltd" width="100px">工种名称:</td>
<td class="rtd">@Html.HiddenFor(m => m.TradeName, new {@id = "TradeName1"})@Html.DropDownListFor(m => m.TradeTypeMaintainId, ViewData["TypeList"] as SelectList, "----请选择----", new {@id = "TradeTypeMaintainId"})@Html.ValidationMessageFor(m => m.TradeName)</td>
</tr>
<tr>
<td class="ltd" width="100px">是否使用:</td>
<td class="rtd">@Html.DropDownListFor(m => m.Status, ViewData["Categories"] as SelectList)</td>
</tr>
<tr>
<td colspan="2">
<div align="center"><button type="submit" class="l-button">提交</button>
</div></td>
</tr>
</table>
}
</div>
</body>
</html>