57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "kemuMessage";
|
|
}
|
|
|
|
@model dccdc.Models.kemu4Model
|
|
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
|
|
function success(data) {
|
|
if (data.State == "1") {
|
|
$.ligerDialog.alert(data.Message,
|
|
function() {
|
|
window.parent.init();
|
|
});
|
|
}
|
|
}
|
|
$(function () {
|
|
@if(Model!=null)
|
|
{
|
|
@:$("input[type='radio'][value='@Model.sort']").attr("checked", true);
|
|
}
|
|
});
|
|
</script>
|
|
}
|
|
|
|
<div id="edit">
|
|
@using (Ajax.BeginForm("kemu4Message", 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.TextBoxFor(m => m.title, new { @class = "l-text" }) @Html.ValidationMessageFor(m => m.title) </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">是否包含市内交通补助:</td>
|
|
<td class="rtd"><input name="sort" type="radio" value="1" />是<input name="sort" type="radio" value="0" />否 </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">状态:</td>
|
|
<td class="rtd">@Html.DropDownListFor(m => m.zt, ViewData["ztD"] as SelectList, "----请选择----")@Html.ValidationMessageFor(m => m.zt)</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div align="center">
|
|
<input type="submit" id="submitid" value="提交" class="l-button" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
}
|
|
</div>
|