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

54 lines
1.6 KiB
Plaintext

@{
ViewBag.Title = "kcMessage";
}
@model dccdc.Models.kcModel
@section scripts{
<script type="text/javascript">
function success(data) {
$.ligerDialog.alert(data.Message);
if (data.State == "1") {
window.parent.init();
}
}
$("#wzid").change(function () {
document.getElementById("wzmc").value = $("#wzid option:checked").text();
});
</script>
}
<div id="edit">
@using (Ajax.BeginForm("savekc", new AjaxOptions { HttpMethod = "Post", OnSuccess = "success" }))
{
@Html.HiddenFor(m => m.id)
<table class="t1" style="width: 100%">
<tr>
<td class="ltd" width="100px">物资名称:@Html.HiddenFor(m => m.wzmc)</td>
<td class="rtd">@Html.DropDownListFor(m => m.wzid, ViewData["wzlist"] as SelectList, "----请选择----") @Html.ValidationMessageFor(m => m.wzid)</td>
</tr>
<tr>
<td class="ltd" width="100px">数量:</td>
<td class="rtd">@Html.TextBoxFor(m => m.sl, new { @class = "l-text" }) @Html.ValidationMessageFor(m => m.sl) </td>
</tr>
<tr>
<td class="ltd" width="100px">仓库:</td>
<td class="rtd">@Html.DropDownListFor(m=>m.sign, ViewBag.kD as SelectList, "----请选择----", new { @class = "l-text" }) @Html.ValidationMessageFor(m => m.sign)</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" id="submitid" value="提交" class="l-button" />
</div>
</td>
</tr>
</table>
}
</div>