66 lines
2.7 KiB
Plaintext
66 lines
2.7 KiB
Plaintext
@model dccdc.Models.Sz_infectiousDisease_category
|
|
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
function success(data) {
|
|
if (data.State == "1") {
|
|
$.ligerDialog.alert(data.Message,
|
|
function () {
|
|
window.parent.init();
|
|
});
|
|
}
|
|
}
|
|
$(function () {
|
|
$("#infectiousDiseaseCate").ligerComboBox();
|
|
$("#state").ligerComboBox();
|
|
@if(Model != null)
|
|
{
|
|
@:liger.get("infectiousDiseaseCate").setValue("@Model.infectiousDiseaseCate");
|
|
@:liger.get("state").setValue("@Model.state");
|
|
}
|
|
});
|
|
</script>
|
|
}
|
|
|
|
<div id="edit">
|
|
@using (Ajax.BeginForm("EditInfectiousDiseaseCategory", 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'><select id="infectiousDiseaseCate" name="infectiousDiseaseCate">
|
|
<option value="1">甲类</option>
|
|
<option value="2">乙类</option>
|
|
<option value="3">丙类</option>
|
|
<option value="4">其它</option>
|
|
</select></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='ltd' width='100px'>疾病名称:</td>
|
|
<td class='rtd'>@Html.TextBoxFor(m => m.DiseaseName,new { @class = "l-text" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td class='ltd' width='100px'>状态:</td>
|
|
<td class='rtd'><select id="state" name="state">
|
|
<option value="1">正常</option>
|
|
<option value="0">禁用</option>
|
|
</select></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='ltd' width='100px'>排序:</td>
|
|
<td class='rtd'>@Html.TextBoxFor(m => m.px, new { @class = "l-text" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div align="center">
|
|
<input type="submit" id="submitid" class="l-button" value="保存" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
}
|
|
</div>
|