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

68 lines
3.0 KiB
Plaintext

@model dccdc.Models.DictionariesViewModel.medical_scheme_project_maintainViewModel
<!DOCTYPE html>
<html>
<head>
@section scripts{
<script type="text/javascript">
$("#medical_scheme_maintain_id").change(function () {
document.getElementById("medical_scheme").value = $("#medical_scheme_maintain_id option:checked").text();
});
$("#exam_project_maintain_project_id").change(function () {
document.getElementById("project_name").value = $("#exam_project_maintain_project_id option:checked").text();
$.get("@Url.Action("getTeamName")", { project_id: $("#exam_project_maintain_project_id option:checked").val() }, function (data) {
document.getElementById("team_name").value = data;
});
});
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("TjfanganYuTjxiangmuMessage", 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.medical_scheme, new { id = "medical_scheme" })
@Html.DropDownListFor(m => m.medical_scheme_maintain_id, ViewData["scheme"] as SelectList, "----请选择----", new { id = "medical_scheme_maintain_id" })
@Html.ValidationMessageFor(m => m.medical_scheme_maintain_id) </td>
</tr>
<tr>
<td class="ltd" width="100px">体检项目名称:</td>
<td class="rtd">@Html.HiddenFor(m => m.project_name, new { id = "project_name" })
@Html.DropDownListFor(m => m.exam_project_maintain_project_id, ViewData["project"] as SelectList, "----请选择----", new { id = "exam_project_maintain_project_id" })
@Html.ValidationMessageFor(m => m.exam_project_maintain_project_id)</td>
</tr>
<tr>
<td class="ltd" width="100px">项目小组名称:</td>
<td class="rtd">@Html.TextBoxFor(m => m.team_name, new { id = "team_name" })</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" id="submitid" class="l-button" />
</div>
</td>
</tr>
</table>
}
</div>
</body>
</html>