857 lines
42 KiB
Plaintext
857 lines
42 KiB
Plaintext
|
||
@{
|
||
ViewBag.Title = "职业问诊";
|
||
}
|
||
<div id="OccupationHistoryModify" style="display:none">
|
||
<form id="OccupationHistoryForm">
|
||
<input id="occupation_id" type="hidden" name="id" value="0" />
|
||
<table class="t1" style="width:100%">
|
||
<tr>
|
||
<td class="ltd" width="100px">起始时间:</td>
|
||
<td class="rtd"><input id="start_date" class="l-text" name="start_date" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">结束时间:</td>
|
||
<td class="rtd"><input id="end_date" class="l-text" name="end_date" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">工作单位:</td>
|
||
<td class="rtd"><input id="util" class="l-text" name="util" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">车间部门:</td>
|
||
<td class="rtd"><input id="workshop" class="l-text" name="workshop" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">工种:</td>
|
||
<td class="rtd"><input id="work_type" class="l-text" name="work_type" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">有害因素:</td>
|
||
<td class="rtd"><input id="factory" class="l-text" name="factory" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">防护措施:</td>
|
||
<td class="rtd"><input id="protect_method" class="l-text" name="protect_method" /></td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
</div>
|
||
<div id="notice" style="display:none">
|
||
<table class="t1" style="width:100%">
|
||
<tr>
|
||
<td class="rtd" width="100px">体检编号:</td>
|
||
<td class="rtd"><input id="code" readonly="true" class="l-text" name="code"/></td>
|
||
<td class="rtd" width="100px">姓名:</td>
|
||
<td class="rtd"><input id="name" readonly="true" class="l-text" name="name" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="rtd" colspan="4" id="noticeText"></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
|
||
<div id="PastHistoryModify" style="display:none">
|
||
<form id="PastHistoryForm">
|
||
<input id="history_id" type="hidden" name="id" value="0" />
|
||
<table class="t1" style="width:100%">
|
||
<tr>
|
||
<td class="ltd" width="100px">疾病名称:</td>
|
||
<td class="rtd"><input id="disease" class="l-text" name="disease" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">诊断日期:</td>
|
||
<td class="rtd"><input id="diagnose_date" class="l-text" name="diagnose_date" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">诊断单位:</td>
|
||
<td class="rtd"><input id="putil" class="l-text" name="util" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">治疗经过:</td>
|
||
<td class="rtd"><input id="treatment" class="l-text" name="treatment" /></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" width="100px">转归:</td>
|
||
<td class="rtd"><input id="outcome" class="l-text" name="outcome" /></td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
</div>
|
||
|
||
<div style="width:100%">
|
||
<table class="t1" style="width:100%">
|
||
<tr>
|
||
<td class="rtd">
|
||
<div id="search" style="float:left;margin-left:20px">查询</div>
|
||
<div style="float:left;margin-left:20px" id="save">保存</div>
|
||
<div style="float:left;margin-left:20px" id="submit">提交</div>
|
||
<div style="float:left;margin-left:20px" id="warning">提醒</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div style="width:100%">
|
||
<table class="t1" style="width:100%">
|
||
<tr>
|
||
<td class="ltd" style="width:100px">体检编号:</td>
|
||
<td class="rtd" style="width:120px"><input id="tjbh" class="l-text" onkeydown="searchdjxx(event,this)" /></td>
|
||
<td class="ltd" style="width:100px">登记日期:</td>
|
||
<td class="rtd" style="width:120px"><input id="djrq" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px">结束日期:</td>
|
||
<td class="rtd" style="width:120px"><input id="jsrq" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px">区域:</td>
|
||
<td class="rtd" style="width:120px"><select id="qy" class="l-text"><option value="">-请选择-</option></select></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" style="width:100px">姓名:</td>
|
||
<td class="rtd" style="width:120px"><input id="xm" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px">体检日期:</td>
|
||
<td class="rtd" style="width:120px"><input id="tjrq" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px">结束日期:</td>
|
||
<td class="rtd" style="width:120px"><input id="tjjsrq" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px">人员类别:</td>
|
||
<td class="rtd" style="width:120px"><select id="rylb" class="l-text"><option value="">-请选择-</option></select></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" style="width:100px">企业:</td>
|
||
<td class="rtd" style="width:120px"><input id="qiye" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px">已问诊:</td>
|
||
<td class="rtd" style="width:120px"><input id="ywz" type="checkbox" class="l-text" /></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div id="ProfessionalExamRegisterList" style="float:left;width:240px;height: 496px;">
|
||
|
||
</div>
|
||
<div id="rightMain" style="float: left; width: 83%; overflow-y: scroll;">
|
||
<table class="t1" style="width:100%">
|
||
@*重点病史*@
|
||
<tbody id="important"></tbody>
|
||
</table>
|
||
<table class="t1" style="width:100%">
|
||
@*重点询问*@
|
||
<tbody id="symptom"></tbody>
|
||
</table>
|
||
@*职业史*@
|
||
<div id="OccupationHistoryList" style="width:100%"></div>
|
||
@*既往病史*@
|
||
<div id="tPastHistoryList" style="width:100%"></div>
|
||
<table class="t1" style="width:100%">
|
||
<tr>
|
||
<td class="ltd" style="text-align:left" colspan="8"><b>【急慢性职业病史】</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" style="width:100px;text-align:left">病名:</td>
|
||
<td class="rtd" style="width:120px"><input id="speedOrSlow_history_name" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px;text-align:left">诊断日期:</td>
|
||
<td class="rtd" style="width:120px"><input id="speedOrSlow_history_date" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px;text-align:left">诊断单位:</td>
|
||
<td class="rtd" style="width:120px"><input id="speedOrSlow_history_util" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px;text-align:left">是否痊愈:</td>
|
||
<td class="rtd" style="width:120px"><input id="speedOrSlow_isOK" class="l-text" /></td>
|
||
</tr>
|
||
</table>
|
||
<table class="t1" style="width:100%">
|
||
@*增加家族史、婚姻史*@
|
||
<tr>
|
||
<td class="ltd" style="width:100%;text-align:left" colspan="10"><b>【家族史】</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="rtd" style="width:100%;text-align:left" colspan="10"><textarea style="min-width:100%;width:100%;resize: none;" rows="3" id="family_history"></textarea></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" style="width:100%;text-align:left" colspan="10"><b>【婚姻史】</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" style="width:100px;text-align:left">婚姻情况:</td>
|
||
<td class="rtd" style="width:120px">
|
||
<select id="marry_history" class="l-text">
|
||
<option value="未婚">未婚</option>
|
||
<option value="已婚">已婚</option>
|
||
<option value="离异">离异</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" style="text-align:left" colspan="10"><b>【个人生活史】</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" style="width:100px;text-align:left">吸烟情况:</td>
|
||
<td class="rtd" style="width:120px">
|
||
<select id="smoke_status" class="l-text">
|
||
@*<option value=""></option>
|
||
<option value="从不吸烟">从不吸烟</option>
|
||
<option value="偶尔吸烟">偶尔吸烟</option>
|
||
<option value="已经戒烟">已经戒烟</option>
|
||
<option value="经常吸烟">经常吸烟</option>*@
|
||
<option value="不吸烟">不吸烟</option>
|
||
<option value="偶吸烟">偶吸烟</option>
|
||
<option value="经常吸烟">经常吸烟</option>
|
||
</select>
|
||
</td>
|
||
<td class="ltd" style="width:100px;text-align:left">吸烟量:</td>
|
||
<td class="rtd" style="width:120px"><input id="smoke_per_day" class="l-text" />包/天</td>
|
||
<td class="ltd" style="width:100px;text-align:left">烟龄:</td>
|
||
<td class="rtd" style="width:120px"><input id="smoke_years" class="l-text" />年</td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" style="width:100px;text-align:left">饮酒情况:</td>
|
||
<td class="rtd" style="width:120px">
|
||
<select id="drink_status" class="l-text">
|
||
@* <option value=""></option>
|
||
<option value="从不饮酒">从不饮酒</option>
|
||
<option value="偶尔饮酒">偶尔饮酒</option>
|
||
<option value="已经戒酒">已经戒酒</option>
|
||
<option value="经常饮酒">经常饮酒</option>*@
|
||
<option value="不饮酒">不饮酒</option>
|
||
<option value="偶饮酒">偶饮酒</option>
|
||
<option value="经常饮酒">经常饮酒</option>
|
||
</select>
|
||
</td>
|
||
<td class="ltd" style="width:100px;text-align:left">饮酒量:</td>
|
||
<td class="rtd" style="width:120px"><input id="drink_per_day" class="l-text" /> ml/天</td>
|
||
<td class="ltd" style="width:100px;text-align:left">酒龄:</td>
|
||
<td class="rtd" style="width:120px"><input id="drink_years" class="l-text" />年</td>
|
||
<td class="ltd" style="width:100px;text-align:left">经常饮酒类别:</td>
|
||
<td>
|
||
<select id="drink_type" class="l-text">
|
||
<option value=""></option>
|
||
<option value="白酒">白酒</option>
|
||
<option value="红酒或黄酒">红酒或黄酒</option>
|
||
<option value="啤酒">啤酒</option>
|
||
</select>
|
||
</td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
<tr id="menarche" style="display:none">
|
||
<td class="ltd" style="width:100px;text-align:left">初潮年龄:</td>
|
||
<td class="rtd" style="width:120px"><input id="menarche_age" class="l-text" />岁</td>
|
||
<td class="ltd" style="width:100px;text-align:left">经期:</td>
|
||
<td class="rtd" style="width:120px"><input id="menarche_time" class="l-text" />天</td>
|
||
<td class="ltd" style="width:100px;text-align:left">周期:</td>
|
||
<td class="rtd" style="width:120px"><input id="menarche_per_week" class="l-text" />天</td>
|
||
<td class="ltd" style="width:100px;text-align:left">停经年龄:</td>
|
||
<td class="rtd" style="width:120px"><input id="menarche_stop_age" class="l-text" />岁</td>
|
||
<td class="ltd" style="width:100px;text-align:left">是否经期:</td>
|
||
<td class="rtd" style="width:120px"><select id="is_menarche" class="l-text"><option value=""></option><option value="是">是</option><option value="否">否</option></select></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="ltd" style="width:100px;text-align:left">现有子女:</td>
|
||
<td class="rtd" style="width:120px"><input id="children" class="l-text" />人</td>
|
||
<td class="ltd" style="width:100px;text-align:left">流产胎次:</td>
|
||
<td class="rtd" style="width:120px"><input id="abortion_times" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px;text-align:left">早产胎次:</td>
|
||
<td class="rtd" style="width:120px"><input id="abortion_early_times" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px;text-align:left">死产胎次:</td>
|
||
<td class="rtd" style="width:120px"><input id="abortion_death_times" class="l-text" /></td>
|
||
<td class="ltd" style="width:100px;text-align:left">异常胎次:</td>
|
||
<td class="rtd" style="width:120px"><input id="abortion_except_times" class="l-text" /></td>
|
||
</tr>
|
||
</table>
|
||
<table class="t1" style="width:100%">
|
||
<tr>
|
||
<td class="ltd" style="width:100%;text-align:left"><b>【其他】</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="rtd" style="width:100%;text-align:left"><textarea style="min-width:100%;width:100%;resize: none;" rows="3" id="discript"></textarea></td>
|
||
</tr>
|
||
</table>
|
||
<table class="t1" style="width:100%" id="SymptomsList">
|
||
<tr>
|
||
<td class="ltd" colspan="6" style="width:100%;text-align:left"><b>【症状】</b></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div style="clear:both"></div>
|
||
|
||
@section scripts
|
||
{
|
||
|
||
<script type="text/javascript">
|
||
var i_id;
|
||
$(function () {
|
||
|
||
$("#start_date").ligerDateEditor({
|
||
});
|
||
|
||
$("#end_date").ligerDateEditor({
|
||
});
|
||
|
||
$("#speedOrSlow_history_date").ligerDateEditor({
|
||
});
|
||
|
||
$("#diagnose_date").ligerDateEditor({
|
||
});
|
||
|
||
$("#djrq").ligerDateEditor({
|
||
});
|
||
|
||
$("#jsrq").ligerDateEditor({
|
||
});
|
||
|
||
$("#tjrq").ligerDateEditor({
|
||
});
|
||
|
||
$("#tjjsrq").ligerDateEditor({
|
||
});
|
||
|
||
$("#search").ligerButton({
|
||
click: function () {
|
||
var param = {
|
||
tjbh: $("#tjbh").val(),
|
||
djrq: $("#djrq").val(),
|
||
jsrq: $("#jsrq").val(),
|
||
qy: $("#qy").val(),
|
||
xm: $("#xm").val(),
|
||
tjrq: $("#tjrq").val(),
|
||
tjjsrq: $("#tjjsrq").val(),
|
||
rylb: $("#rylb").val(),
|
||
qiye: $("#qiye").val(),
|
||
ywz: $("#ywz")[0].checked ? '是' : ''
|
||
};
|
||
liger.get("ProfessionalExamRegisterList").set("parms", param);
|
||
liger.get("ProfessionalExamRegisterList").reload();
|
||
}
|
||
});
|
||
|
||
$("#save").ligerButton({
|
||
click: function () {
|
||
d_save();
|
||
}
|
||
});
|
||
|
||
$("#searchMiss").ligerButton({
|
||
click: function () {
|
||
liger.get("ProfessionalExamRegisterList").set("parms", { key: $("#s_method_name").val() });
|
||
liger.get("ProfessionalExamRegisterList").reload();
|
||
}
|
||
});
|
||
|
||
// 点击提交按钮,保存数据,修改登记记录 状态
|
||
$("#submit").ligerButton({
|
||
click: function () {
|
||
d_save();
|
||
$.ajax(
|
||
{
|
||
url: "@Url.Action("saveExam")", type: "post", dataType: "json", data: { key: liger.get("ProfessionalExamRegisterList").getSelectedRow().id, type: "complete" },
|
||
success: function (d) {
|
||
$.ligerDialog.closeWaitting();
|
||
$.ligerDialog.alert(d.Message, function () {
|
||
});
|
||
},
|
||
beforeSend: function () {
|
||
$.ligerDialog.waitting("正在提交请稍后……");
|
||
}
|
||
});
|
||
}
|
||
});
|
||
|
||
$("#warning").ligerButton({
|
||
click: function () {
|
||
$.ligerDialog.open({
|
||
title: "业务提醒", target: $("#notice"), width: 600, height: 300, buttons: [
|
||
{ text: "取消", onclick: function (item, dialg) { dialg.hidden(); } }]
|
||
});
|
||
}
|
||
});
|
||
|
||
//人员列表加载
|
||
$("#ProfessionalExamRegisterList").ligerGrid({
|
||
url: "@Url.Action("getProfessionalExamRegisterList")",
|
||
parms: { tjbh: "", djrq: "", jsrq: "", qy: "", xm: "", tjrq: "", tjjsrq: "", rylb: "", qiye: "", ywz: "" },
|
||
columns: [
|
||
{ name: "physical_num", display: "编码", width: 150, align: "left", },
|
||
{ name: "person_name", display: "姓名", width: 80, align: "left" },
|
||
],
|
||
//点击人员表记录,初始化人员的问诊信息;
|
||
onSelectRow: function (rowdata, rowid, rowobj) {
|
||
var physical_num = rowdata.physical_num;
|
||
//问诊
|
||
$.ajax({
|
||
url: "@Url.Action("getDoctorInquiry")", type: "post", dataType: "json", data: rowdata
|
||
, success: function (data) {
|
||
if (data.doctorInquiry == null) {
|
||
return;
|
||
}
|
||
//职业史
|
||
liger.get("OccupationHistoryList").set("parms", { key: data.doctorInquiry.id });
|
||
//既往病史
|
||
liger.get("tPastHistoryList").set("parms", { key: data.doctorInquiry.id });
|
||
liger.get("tPastHistoryList").reload();
|
||
|
||
liger.get("OccupationHistoryList").reload();
|
||
|
||
i_id = data.doctorInquiry.id;
|
||
if (rowdata.sex == "女") {
|
||
document.getElementById("menarche").style.display = "table-row";
|
||
} else {
|
||
document.getElementById("menarche").style.display = "none";
|
||
}
|
||
$("#menarche_age").val(data.doctorInquiry.menarche_age);
|
||
$("#menarche_time").val(data.doctorInquiry.menarche_time);
|
||
$("#menarche_per_week").val(data.doctorInquiry.menarche_per_week);
|
||
$("#menarche_stop_age").val(data.doctorInquiry.menarche_stop_age);
|
||
$("#is_menarche").val(data.doctorInquiry.is_menarche);
|
||
|
||
$("#speedOrSlow_history_name").val(data.doctorInquiry.speedOrSlow_history_name);
|
||
$("#speedOrSlow_history_date").val(data.doctorInquiry.speedOrSlow_history_date);
|
||
$("#speedOrSlow_history_util").val(data.doctorInquiry.speedOrSlow_history_util);
|
||
$("#speedOrSlow_isOK").val(data.doctorInquiry.speedOrSlow_isOK);
|
||
$("#smoke_status").val(data.doctorInquiry.smoke_status);
|
||
$("#smoke_per_day").val(data.doctorInquiry.smoke_per_day);
|
||
$("#smoke_years").val(data.doctorInquiry.smoke_years);
|
||
$("#drink_status").val(data.doctorInquiry.drink_status);
|
||
$("#drink_type").val(data.doctorInquiry.personal);
|
||
$("#drink_per_day").val(data.doctorInquiry.drink_per_day);
|
||
$("#drink_years").val(data.doctorInquiry.drink_years);
|
||
$("#children").val(data.doctorInquiry.children);
|
||
$("#abortion_times").val(data.doctorInquiry.abortion_times);
|
||
$("#abortion_early_times").val(data.doctorInquiry.abortion_early_times);
|
||
$("#abortion_death_times").val(data.doctorInquiry.abortion_death_times);
|
||
$("#abortion_except_times").val(data.doctorInquiry.abortion_except_times);
|
||
$("#discript").val(data.doctorInquiry.discript);
|
||
$("#code").val(rowdata.physical_num);
|
||
$("#name").val(rowdata.person_name);
|
||
$("#family_history").val(data.doctorInquiry.family_history);
|
||
$("#marry_history").val(data.doctorInquiry.marry_history);
|
||
//症状
|
||
var inquirys = data.doctorInquiry.inquiry.split("/");
|
||
for (var i = 0; i < inquirys.length; i++) {
|
||
$("#Sympotoms" + i).val(inquirys[i]);
|
||
}
|
||
|
||
//重点询问
|
||
var symptomTable = document.getElementById("symptom");
|
||
symptomTable.innerHTML = '<tr><td class="ltd" style= "width:100%;text-align:left" > <b>【重点询问】</b></td ></tr >';
|
||
for (var i = 0; i < data.factorSymtom.length; i++) {
|
||
symptomTable.innerHTML = symptomTable.innerHTML +
|
||
'<tr>' +
|
||
'<td class="rtd" style= "width:100%;text-align:left" > ' +
|
||
data.factorSymtom[i].symptom_name
|
||
+ '</td >' +
|
||
'</tr >';
|
||
}
|
||
//重点病史
|
||
var importantTable = document.getElementById("important");
|
||
importantTable.innerHTML = '<tr><td class="ltd" style= "width:100%;text-align:left" > <b>【重点病史】</b></td ></tr >';
|
||
for (var i = 0; i < data.factorImport.length; i++) {
|
||
importantTable.innerHTML = importantTable.innerHTML +
|
||
'<tr>' +
|
||
'<td class="rtd" style= "width:100%;text-align:left" > ' +
|
||
data.factorImport[i].history_name
|
||
+ '</td >' +
|
||
'</tr >';
|
||
}
|
||
//提醒
|
||
document.getElementById("noticeText").innerHTML = "";
|
||
for (var i = 0; i < data.notice.length; i++) {
|
||
document.getElementById("noticeText").innerHTML = document.getElementById("noticeText").innerHTML + data.notice[i].bussiness_notice + ";";
|
||
}
|
||
},
|
||
error: function (err) {
|
||
$.ligerDialog.error(err.responseText);
|
||
}
|
||
});
|
||
},
|
||
width: "15%",
|
||
height: "100%",
|
||
usePager: false,
|
||
fixedCellHeight: false,
|
||
heightDiff: -20,
|
||
onLoaded: function (grid) {
|
||
setTimeout(" document.getElementById('rightMain').style.height = document.getElementById('ProfessionalExamRegisterList').scrollHeight+'px'", 1000);
|
||
grid.toggleLoading(false);
|
||
}
|
||
});
|
||
|
||
//职业史 表格初始化
|
||
$("#OccupationHistoryList").ligerGrid({
|
||
url: "@Url.Action("getOccupationHistoryList")",
|
||
parms: { key: "" },
|
||
toolbar: {
|
||
items: [
|
||
{
|
||
text: '添加', click: occupationAdd, icon: 'add'
|
||
},
|
||
{ line: true },
|
||
{ text: '修改', click: occupationAdd, icon: "edit" },
|
||
{ line: true },
|
||
{ text: '删除', click: occupationAdd, icon: "delete" },
|
||
]
|
||
},
|
||
title: "【职业史】",
|
||
columns: [
|
||
{ name: "id", display: "编号", width: 50, align: "left",id:"occupation_id" },
|
||
{ name: "start_date", display: "起始日期", width: 150, align: "left", },
|
||
{ name: "end_date", display: "结束日期", width: 150, align: "left", },
|
||
{ name: "util", display: "工作单位", width: 80, align: "left" },
|
||
{ name: "workshop", display: "车间部门", width: 150, align: "left", },
|
||
{ name: "work_type", display: "工种", width: 150, align: "left", },
|
||
{ name: "factory", display: "有害因素", width: 150, align: "left", },
|
||
{ name: "protect_method", display: "防护措施", width: 150, align: "left", },
|
||
],
|
||
width: "98%",
|
||
usePager: false,
|
||
fixedCellHeight: false,
|
||
heightDiff: -20
|
||
});
|
||
|
||
//既往病史 表格初始化
|
||
$("#tPastHistoryList").ligerGrid({
|
||
url: "@Url.Action("getPastHistoryList")",
|
||
parms: { key: "" },
|
||
toolbar: {
|
||
items: [
|
||
{
|
||
text: '添加', click: pitemclick, icon: 'add'
|
||
},
|
||
{ line: true },
|
||
{ text: '修改', click: pitemclick, icon: "edit" },
|
||
{ line: true },
|
||
{ text: '删除', click: pitemclick, icon: "delete" },
|
||
|
||
]
|
||
},
|
||
title: "【既往病史】",
|
||
columns: [
|
||
{ name: "id", display: "编号", width: 50, align: "left", id: "history_id" },
|
||
{ name: "disease", display: "疾病名称", width: 150, align: "left", },
|
||
{ name: "diagnose_date", display: "诊断日期", width: 80, align: "left" },
|
||
{ name: "util", display: "诊断单位", width: 150, align: "left", },
|
||
{ name: "treatment", display: "治疗经过", width: 150, align: "left", },
|
||
{ name: "outcome", display: "转归", width: 150, align: "left", },
|
||
],
|
||
width: "98%",
|
||
usePager: false,
|
||
fixedCellHeight: false,
|
||
heightDiff: -20
|
||
});
|
||
});
|
||
|
||
//职业史 添加/修改 按钮事件
|
||
function occupationAdd(item) {
|
||
if (item.text == "添加") {
|
||
$("#start_date").val("");
|
||
$("#end_date").val("");
|
||
$("#util").val("");
|
||
$("#workshop").val("");
|
||
$("#work_type").val("");
|
||
$("#factory").val("");
|
||
$("#protect_method").val("");
|
||
$("#occupation_id").val("0");
|
||
$.ligerDialog.open({
|
||
title: "添加职业史", target: $("#OccupationHistoryModify"), width: 418, height: 300, buttons: [{
|
||
text: "确定", onclick: function (item, dialg) {
|
||
o_save(dialg);
|
||
}
|
||
}, { text: "取消", onclick: function (item, dialg) { dialg.hidden(); } }]
|
||
});
|
||
}
|
||
else if (item.text == "修改") {
|
||
var r = liger.get("OccupationHistoryList").getSelectedRow();
|
||
if (!r) {
|
||
$.ligerDialog.alert("请选择要修改的数据!");
|
||
return;
|
||
}
|
||
$("#start_date").val(r.start_date);
|
||
$("#end_date").val(r.end_date);
|
||
$("#util").val(r.util);
|
||
$("#workshop").val(r.workshop);
|
||
$("#work_type").val(r.work_type);
|
||
$("#factory").val(r.factory);
|
||
$("#protect_method").val(r.protect_method);
|
||
$("#occupation_id").val(r.id);
|
||
$.ligerDialog.open({
|
||
title: "修改职业史", target: $("#OccupationHistoryModify"), width: 418, height: 300, buttons: [{
|
||
text: "确定", onclick: function (item, dialg) {
|
||
o_save(dialg);
|
||
|
||
}
|
||
}, { text: "取消", onclick: function (item, dialg) { dialg.hidden(); } }]
|
||
});
|
||
}
|
||
else {
|
||
var r = liger.get("OccupationHistoryList").getSelectedRow();
|
||
if (!r) {
|
||
$.ligerDialog.alert("请选择要修改的数据!");
|
||
return;
|
||
}
|
||
$.ajax(
|
||
{
|
||
url: "@Url.Action("deleteOccupationHistory")", type: "post", dataType: "json", data: { id: r.id },
|
||
success: function (d) {
|
||
$.ligerDialog.closeWaitting();
|
||
$.ligerDialog.alert(d.Message, function () {
|
||
//重新加载职业史记录数据
|
||
liger.get("OccupationHistoryList").reload();
|
||
});
|
||
},
|
||
});
|
||
|
||
}
|
||
};
|
||
|
||
//职业史 保存(添加或修改),然后reload
|
||
function o_save(dialg) {
|
||
var data = $("#OccupationHistoryForm").serializeArray();
|
||
data.push({ "name": "inquiry_id", value: i_id });
|
||
$.ajax(
|
||
{
|
||
url: "@Url.Action("saveOccupationHistory")", type: "post", dataType: "json", data: data,
|
||
success: function (d) {
|
||
$.ligerDialog.closeWaitting();
|
||
$.ligerDialog.alert(d.Message, function () {
|
||
if (d.State == 1) {
|
||
dialg.hidden();
|
||
//重新加载职业史记录数据
|
||
liger.get("OccupationHistoryList").reload();
|
||
}
|
||
});
|
||
},
|
||
beforeSend: function () {
|
||
$.ligerDialog.waitting("正在保存请稍后……");
|
||
}
|
||
});
|
||
}
|
||
|
||
//既往病史 保存(添加或修改),然后reload
|
||
function pitemclick(item) {
|
||
if (item.text == "添加") {
|
||
$("#disease").val("");
|
||
$("#diagnose_date").val("");
|
||
$("#putil").val("");
|
||
$("#treatment").val("");
|
||
$("#outcome").val("");
|
||
$("#history_id").val("0");
|
||
$.ligerDialog.open({
|
||
title: "添加既往病史", target: $("#PastHistoryModify"), width: 418, height: 300, buttons: [{
|
||
text: "确定", onclick: function (item, dialg) {
|
||
p_save(dialg);
|
||
}
|
||
}, { text: "取消", onclick: function (item, dialg) { dialg.hidden(); } }]
|
||
});
|
||
}
|
||
else if (item.text == "修改") {
|
||
var r = liger.get("tPastHistoryList").getSelectedRow();
|
||
if (!r) {
|
||
$.ligerDialog.alert("请选择要修改的数据!");
|
||
return;
|
||
}
|
||
$("#disease").val(r.disease);
|
||
$("#diagnose_date").val(r.diagnose_date);
|
||
$("#putil").val(r.util);
|
||
$("#treatment").val(r.treatment);
|
||
$("#outcome").val(r.outcome);
|
||
$("#history_id").val(r.id);
|
||
$.ligerDialog.open({
|
||
title: "修改既往病史", target: $("#PastHistoryModify"), width: 418, height: 300, buttons: [{
|
||
text: "确定", onclick: function (item, dialg) {
|
||
p_save(dialg);
|
||
}
|
||
}, { text: "取消", onclick: function (item, dialg) { dialg.hidden(); } }]
|
||
});
|
||
}
|
||
else {
|
||
var r = liger.get("tPastHistoryList").getSelectedRow();
|
||
if (!r) {
|
||
$.ligerDialog.alert("请选择要修改的数据!");
|
||
return;
|
||
}
|
||
$.ajax(
|
||
{
|
||
url: "@Url.Action("deletePastHistory")", type: "post", dataType: "json", data: { id: r.id },
|
||
success: function (d) {
|
||
$.ligerDialog.closeWaitting();
|
||
$.ligerDialog.alert(d.Message, function () {
|
||
//重新加载职业史记录数据
|
||
liger.get("tPastHistoryList").reload();
|
||
});
|
||
},
|
||
});
|
||
|
||
}
|
||
}
|
||
|
||
//既往病史保存
|
||
function p_save(dialg) {
|
||
var data = $("#PastHistoryForm").serializeArray();
|
||
data.push({ "name": "inquiry_id", value: i_id });
|
||
$.ajax(
|
||
{
|
||
url: "@Url.Action("savePastHistory")", type: "post", dataType: "json", data: data,
|
||
success: function (d) {
|
||
$.ligerDialog.closeWaitting();
|
||
$.ligerDialog.alert(d.Message, function () {
|
||
if (d.State == 1) {
|
||
dialg.hidden();
|
||
liger.get("tPastHistoryList").reload();
|
||
}
|
||
});
|
||
},
|
||
beforeSend: function () {
|
||
$.ligerDialog.waitting("正在保存请稍后……");
|
||
}
|
||
});
|
||
}
|
||
|
||
//症状 组件 动态生成
|
||
$.ajax({
|
||
url: "@Url.Action("getSymptomsList")", type: "post", dataType: "json", data: {}
|
||
, success: function (data) {
|
||
var SymptomsList = data.SymptomsList;
|
||
var table = document.getElementById("SymptomsList");
|
||
var tr = "<tr>";
|
||
for (var i = 0; i < SymptomsList.length; i++) {
|
||
if ((i != 0 && (i + 1) % 3 == 0) || i == SymptomsList.length - 1) {
|
||
tr = tr + '<td class="ltd" style="width:100px;text-align:left">' + SymptomsList[i].symptoms_name + '</td>'
|
||
+ '<td class="rtd" style="width:120px"><input class="l-text" name="sympotoms" id="Sympotoms' + i + '" value="_"/></td>'
|
||
tr = tr + "</tr>"
|
||
table.innerHTML = table.innerHTML + tr;
|
||
tr = "<tr>";
|
||
} else {
|
||
tr = tr + '<td class="ltd" style="width:100px;text-align:left">' + SymptomsList[i].symptoms_name + '</td>'
|
||
+ '<td class="rtd" style="width:120px"><input name="sympotoms" id="Sympotoms' + i + '" class="l-text" value="_"/></td>'
|
||
}
|
||
}
|
||
},
|
||
error: function (err) {
|
||
$.ligerDialog.error(err.responseText);
|
||
}
|
||
});
|
||
|
||
//初始化
|
||
$.ajax({
|
||
url: "@Url.Action("initPage")", type: "post", dataType: "json", data: {}
|
||
, success: function (data) {
|
||
var areas = data.Area;
|
||
var types = data.Type;
|
||
var selectArea = document.getElementById("qy");
|
||
//人员类别,来自表person_type_maintain的数据
|
||
var selectType = document.getElementById("rylb");
|
||
for (var i = 0; i < areas.length; i++) {
|
||
selectArea.innerHTML = selectArea.innerHTML + '<option value="' + areas[i].area_name + '">' + areas[i].area_name + '</option>';
|
||
}
|
||
for (var i = 0; i < types.length; i++) {
|
||
selectType.innerHTML = selectType.innerHTML + '<option value="' + types[i].type_name + '">' + types[i].type_name + '</option>';
|
||
}
|
||
},
|
||
error: function (err) {
|
||
$.ligerDialog.error(err.responseText);
|
||
}
|
||
});
|
||
|
||
//其他动态生成组件的信息保存
|
||
function d_save() {
|
||
var data = {};
|
||
data.doctorInquiry = [];
|
||
data.doctorInquiry.push({ "name": "id", value: i_id });
|
||
data.doctorInquiry.push({ "name": "menarche_time", value: $("#menarche_time").val() });
|
||
data.doctorInquiry.push({ "name": "menarche_age", value: $("#menarche_age").val() });
|
||
data.doctorInquiry.push({ "name": "menarche_per_week", value: $("#menarche_per_week").val() });
|
||
data.doctorInquiry.push({ "name": "menarche_stop_age", value: $("#menarche_stop_age").val() });
|
||
data.doctorInquiry.push({ "name": "is_menarche", value: $("#is_menarche").val() });
|
||
data.doctorInquiry.push({ "name": "physical_num", value: liger.get("ProfessionalExamRegisterList").getSelectedRow().physical_num });
|
||
data.doctorInquiry.push({ "name": "speedOrSlow_history_name", value: $("#speedOrSlow_history_name").val() });
|
||
data.doctorInquiry.push({ "name": "speedOrSlow_history_date", value: $("#speedOrSlow_history_date").val() });
|
||
data.doctorInquiry.push({ "name": "speedOrSlow_history_util", value: $("#speedOrSlow_history_util").val() });
|
||
data.doctorInquiry.push({ "name": "speedOrSlow_isOK", value: $("#speedOrSlow_isOK").val() });
|
||
data.doctorInquiry.push({ "name": "smoke_status", value: $("#smoke_status").val() });
|
||
data.doctorInquiry.push({ "name": "smoke_per_day", value: $("#smoke_per_day").val() });
|
||
data.doctorInquiry.push({ "name": "smoke_years", value: $("#smoke_years").val() });
|
||
data.doctorInquiry.push({ "name": "drink_status", value: $("#drink_status").val() });
|
||
data.doctorInquiry.push({ "name": "personal", value: $("#drink_type").val() });
|
||
data.doctorInquiry.push({ "name": "drink_per_day", value: $("#drink_per_day").val() });
|
||
data.doctorInquiry.push({ "name": "drink_years", value: $("#drink_years").val() });
|
||
data.doctorInquiry.push({ "name": "children", value: $("#children").val() });
|
||
data.doctorInquiry.push({ "name": "abortion_times", value: $("#abortion_times").val() });
|
||
data.doctorInquiry.push({ "name": "abortion_early_times", value: $("#abortion_early_times").val() });
|
||
data.doctorInquiry.push({ "name": "abortion_death_times", value: $("#abortion_death_times").val() });
|
||
data.doctorInquiry.push({ "name": "abortion_except_times", value: $("#abortion_except_times").val() });
|
||
data.doctorInquiry.push({ "name": "discript", value: $("#discript").val() });
|
||
data.doctorInquiry.push({ "name": "family_history", value: $("#family_history").val() });
|
||
data.doctorInquiry.push({ "name": "marry_history", value: $("#marry_history").val() });
|
||
//症状
|
||
var inquirys = document.getElementsByName("sympotoms");
|
||
var inquiry = "";
|
||
for (var i = 0; i < inquirys.length; i++) {
|
||
inquiry = inquiry == "" ? inquirys[i].value : inquiry + "/" + inquirys[i].value;
|
||
}
|
||
data.doctorInquiry.push({ "name": "inquiry", value: inquiry });
|
||
$.ajax(
|
||
{
|
||
//保持问诊记录数据
|
||
url: "@Url.Action("saveDoctorInquiry")", type: "post", dataType: "json", data: data.doctorInquiry,
|
||
success: function (d) {
|
||
//修改登记表 状态 为 “已完成“、 问诊”已录“
|
||
$.ajax(
|
||
{
|
||
|
||
url: "@Url.Action("saveExam")", type: "post", dataType: "json", data: { key: liger.get("ProfessionalExamRegisterList").getSelectedRow().id, pNum: liger.get("ProfessionalExamRegisterList").getSelectedRow().physical_num, type: "save" },
|
||
success: function (d) {
|
||
$.ligerDialog.closeWaitting();
|
||
$.ligerDialog.alert(d.Message, function () {
|
||
liger.get("ProfessionalExamRegisterList").reload();
|
||
});
|
||
},
|
||
});
|
||
},
|
||
beforeSend: function () {
|
||
$.ligerDialog.waitting("正在保存请稍后……");
|
||
}
|
||
});
|
||
}
|
||
|
||
//【体检编码】 文本框 回车事件
|
||
function searchdjxx(e, o) {
|
||
var keynum
|
||
var keychar
|
||
var numcheck
|
||
|
||
debugger;
|
||
|
||
if (window.event) // IE
|
||
{
|
||
keynum = e.keyCode
|
||
}
|
||
else if (e.which) // Netscape/Firefox/Opera
|
||
{
|
||
keynum = e.which
|
||
}
|
||
if (keynum == 13) {
|
||
////debugger
|
||
var num = $(o).val();
|
||
//根据体检号查询授权项目列表,num:体检编号即physical_num
|
||
var param = {
|
||
tjbh: $("#tjbh").val(),
|
||
djrq: $("#djrq").val(),
|
||
jsrq: $("#jsrq").val(),
|
||
qy: $("#qy").val(),
|
||
xm: $("#xm").val(),
|
||
tjrq: $("#tjrq").val(),
|
||
tjjsrq: $("#tjjsrq").val(),
|
||
rylb: $("#rylb").val(),
|
||
qiye: $("#qiye").val(),
|
||
ywz: $("#ywz")[0].checked ? '是' : ''
|
||
};
|
||
liger.get("ProfessionalExamRegisterList").set("parms", param);
|
||
liger.get("ProfessionalExamRegisterList").reload();
|
||
/*
|
||
tmtm = num;
|
||
var rowdata = liger.get("sqxmList").getSelectedRow();
|
||
getproject(rowdata, num);
|
||
getproject1(num);
|
||
*/
|
||
}
|
||
}
|
||
|
||
</script>
|
||
|
||
}
|
||
|