85 lines
3.2 KiB
Plaintext
85 lines
3.2 KiB
Plaintext
|
|
|
|||
|
|
@{
|
|||
|
|
ViewBag.Title = "新增预约";
|
|||
|
|
}
|
|||
|
|
@section scripts{
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
$("#submitid").click(function () {
|
|||
|
|
if ($("#order_date").val().trim() == "") {
|
|||
|
|
$.ligerDialog.alert("请输入预约时间!");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
if ($("#test_org").val().trim() == "") {
|
|||
|
|
$.ligerDialog.alert("请输入预约地点!");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
if ($("#ident").val().trim() == "") {
|
|||
|
|
$.ligerDialog.alert("请输入身份证!");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
if ($("#test_org").val().trim() == "0") {
|
|||
|
|
$.ligerDialog.alert("请选择预约地点!");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
$.ajax({
|
|||
|
|
url: '@Url.Action("PhysicalExaminationAddSave")',
|
|||
|
|
data: {
|
|||
|
|
name: $("#name").val().trim(),
|
|||
|
|
order_date: $("#order_date").val().trim(),
|
|||
|
|
test_org: $("#test_org").val().trim(),
|
|||
|
|
ident: $("#ident").val().trim()
|
|||
|
|
},
|
|||
|
|
type: 'post',
|
|||
|
|
cache: false,
|
|||
|
|
dataType: 'json',
|
|||
|
|
success: function (data) {
|
|||
|
|
if (data.State == '1') {
|
|||
|
|
$.ligerDialog.alert(data.Message, function () { window.parent.init(); });;
|
|||
|
|
} else if (data.State == '0') {
|
|||
|
|
$.ligerDialog.alert(data.Message);
|
|||
|
|
} else {
|
|||
|
|
$.ligerDialog.alert(data);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
$(function () {
|
|||
|
|
$("#order_date").val('@(Model==null?"":Model.order_date ?? DateTime.Now.ToString("yyyy-MM-dd"))');
|
|||
|
|
$("#order_date").ligerDateEditor({ showTime: false });
|
|||
|
|
|
|||
|
|
})
|
|||
|
|
</script>
|
|||
|
|
}
|
|||
|
|
@model dccdc.Models.InfectionTestModel
|
|||
|
|
<div id="add">
|
|||
|
|
<table class="t1" style="width: 100%">
|
|||
|
|
<tr>
|
|||
|
|
<td class="ltd" width="100px">姓名:</td>
|
|||
|
|
<td class="rtd"><input type="text" id="name" name="name" value="@ViewBag.name" readonly class="l-text" /></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<td class="ltd" width="100px">预约时间:</td>
|
|||
|
|
<td class="rtd">@Html.TextBoxFor(m => m.order_date)</td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<td class="ltd" width="100px">预约地点:</td>
|
|||
|
|
<td class="rtd">
|
|||
|
|
@Html.DropDownList("JGList", ViewBag.JGList as IEnumerable<SelectListItem>, new { id = "test_org", style = "width:130px" })
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<td class="ltd" width="100px">身份证号码:</td>
|
|||
|
|
<td class="rtd"><input type="text" id="ident" name="ident" value="@ViewBag.ident" readonly class="l-text" /></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<td colspan="2">
|
|||
|
|
<div align="center">
|
|||
|
|
<input type="submit" id="submitid" value="提交" class="l-button" />
|
|||
|
|
</div>
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
</table>
|
|||
|
|
</div>
|