tijian_tieying/web/dccdc/Views/DoctorInquiry/DoctorInquiryInfo.cshtml
2025-02-20 12:14:39 +08:00

312 lines
17 KiB
Plaintext

@{
ViewBag.Title = "职业问诊";
}
<div id="OccupationHistoryModify" style="display:none">
<form id="OccupationHistoryForm">
<input id="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="PastHistoryModify" style="display:none">
<form id="PastHistoryForm">
<input id="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="float:left;width:83%;overflow-y:scroll;height:700px">
<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="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>
</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>
</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></td>
<td></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 () {
$("#OccupationHistoryList").ligerGrid({
url: "@Url.Action("getOccupationHistoryList")",
parms: { key: "" },
title: "【职业史】",
columns: [
{ 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:"100%",
usePager: false,
heightDiff: -20
});
$("#tPastHistoryList").ligerGrid({
url: "@Url.Action("getPastHistoryList")",
parms: { key: "" },
title: "【既往病史】",
columns: [
{ 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:"100%",
usePager: false,
heightDiff: -20
});
});
$.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);
}
});
var physical_num = "@Request.QueryString["physical_num"]";
$.ajax({
url: "@Url.Action("getDoctorInquiryByNum")", type: "post", dataType: "json", data: { "key": physical_num }
, 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 (data.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_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);
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 >';
}
var inquirys = data.doctorInquiry.inquiry.split("/");
for (var i = 0; i < inquirys.length; i++) {
$("#Sympotoms" + i).val(inquirys[i]);
}
},
error: function (err) {
$.ligerDialog.error(err.responseText);
}
});
</script>
}