43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
@model dccdc.Models.DictionariesViewModel.BarCodeMaintain
|
|
|
|
@{ ViewBag.Title = "新建条码";}
|
|
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
|
|
function success(data) {
|
|
if (data.State == "1") {
|
|
$.ligerDialog.alert(data.Message,
|
|
function() {
|
|
window.parent.init();
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
}
|
|
|
|
<div id="edit">
|
|
@using (Ajax.BeginForm("EditBarCodeMaintain", 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.code_name) @Html.ValidationMessageFor(m => m.code_name) </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">使用状态:</td>
|
|
<td class="rtd">@Html.DropDownListFor(m => m.status, ViewData["Categories"] as SelectList, "----请选择----")@Html.ValidationMessageFor(m => m.status)</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div align="center">
|
|
<input type="submit" id="submitid" value="提交" class="l-button" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
}
|
|
</div>
|