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

81 lines
3.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@{
ViewBag.Title = "project_factor_maintainMessage";
}
@section scripts{
<script type="text/javascript">
function success(data) {
if (data.State == "1") {
$.ligerDialog.alert(data.Message, function () { window.parent.init(1); });
}
else {
$.ligerDialog.alert(data.Message);
}
}
$("#exam_project_maintain_id").change(function () {
document.getElementById("project_name").value = $("#exam_project_maintain_id option:checked").text();
$.get("@Url.Action("getproject_id")", { id: $("#exam_project_maintain_id option:checked").val() }, function (data) {
document.getElementById("project_code").value = data.split("|")[0];
document.getElementById("project_name").value = data.split("|")[1];
document.getElementById("exam_group_maintain_id").value = data.split("|")[2];
//document.getElementById("factor_code").value = data.split("|")[2];
document.getElementById("exam_group").value = data.split("|")[3];
});
});
</script>
}
@model dccdc.Models.project_factor_maintainModel
<div id="edit">
@using (Ajax.BeginForm("project_factor_maintainMessage", new AjaxOptions { HttpMethod = "Post", OnSuccess = "success" }))
{
@Html.HiddenFor(m => m.id)
@Html.HiddenFor(m => m.jobs_state_maintain_id)
@Html.HiddenFor(m => m.harmful_factors_type_maintain_id)
@Html.HiddenFor(m => m.is_goal)
<table class="t1" style="width: 100%">
<tr>
<td class="ltd" width="100px">体检项目:</td>
<td class="rtd">
@Html.DropDownListFor(m => m.exam_project_maintain_id, ViewData["tjxm"] as SelectList, "----请选择----") @Html.ValidationMessageFor(m => m.exam_project_maintain_id)
</td>
</tr>
<tr>
<td class="ltd" width="100px">是否必检:</td>
<td class="rtd">
@Html.DropDownListFor(m => m.is_check, ViewData["ischeck"] as SelectList)
</td>
</tr>
<tr>
<td class="ltd" width="100px">项目名称:</td>
<td class="rtd">@Html.TextBoxFor(m => m.project_name, new { @readonly = "readonly" }) </td>
</tr>
<tr>
<td class="ltd" width="100px">项目编码:</td>
<td class="rtd">@Html.TextBoxFor(m => m.project_code, new { @readonly = "readonly" }) </td>
</tr>
<tr>
<td class="ltd" width="100px">小组名称:</td>
<td class="rtd">@Html.TextBoxFor(m => m.exam_group, new { @readonly = "readonly" }) </td>
</tr>
<tr>
<td class="ltd" width="100px">小组id</td>
<td class="rtd">
@Html.HiddenFor(m => m.factor_code)
@Html.TextBoxFor(m => m.exam_group_maintain_id, new { @readonly = "readonly" }) </td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" id="submitid" value="提交" class="l-button" />
</div>
</td>
</tr>
</table>
}
</div>