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

409 lines
17 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@{
ViewBag.Title = "Add";
}
@model dccdc.Models.occupation_reportModel
@section scripts{
<script type="text/javascript">
var openf;
$(function () {
$("#navtab1").ligerTab();
$("#grid1").ligerGrid({
height: '100%',
columns: [
{ display: '状态', name: 'procedure_status', align: 'left', width: 130 },
{ display: '体检编码', name: 'physical_num', align: 'left', width: 130 },
{ display: '姓名', name: 'person_name', align: 'left', width: 100 },
{ display: '有害因素', name: 'hazards', align: 'left', width: 150 },
{ display: '主检结论', name: 'main_review', align: 'left', width: 180 },
{ display: '主检结果', name: 'main_result', align: 'left', width: 180 }
],
url: "@Url.Action("getRegister3")",
pageSize: 10,
rownumbers: true,
fixedCellHeight: false,
usePager: true
});
//2023-12-08 xulu 注释掉,目前无用且查询时间长
$("#grid2").ligerGrid({
height: '100%',
columns: [
{ display: '归属小组', name: 'team_name', align: 'left', width: 150 },
{ display: '项目名称', name: 'project_name', align: 'left', width: 180 },
{ display: '参考值', name: 'reference_value', align: 'left', width: 200 },
{ display: '计量单位', name: 'project_unit', align: 'left', width: 100 }
],
url: "@Url.Action("getRegesitePR")",
pageSize: 30,
rownumbers: true,
fixedCellHeight: false,
usePager: false
});
//有bug ,字段不对
$("#grid3").ligerGrid({
height: '100%',
columns: [
{ display: '有害因素', name: 'harmful_factor_name', align: 'left', width: 150 },
{ display: '在岗状态', name: 'jobs_state', align: 'left', width: 100 },//bug
{ display: '职业危害', name: 'disease_name', align: 'left', width: 200 }
],
url: "@Url.Action("getHazard1")",
pageSize: 30,
rownumbers: true,
fixedCellHeight: false,
usePager: false
});
//有bug ,字段不对,结构的查询实现也不对
$("#grid4").ligerGrid({
height: '100%',
columns: [
{ display: '有害因素', name: 'harmful_factor_name', align: 'left', width: 150 },
{ display: '在岗状态', name: 'jobs_state', align: 'left', width: 100 },
{ display: '职业禁忌证', name: 'contraindicat_name', align: 'left', width: 200 }
],
url: "@Url.Action("getHazard2")",
pageSize: 30,
rownumbers: true,
fixedCellHeight: false,
usePager: false
});
$("#subject_company").focus(function () {
openf = $.ligerDialog.open({
url: "@Url.Action("register")",
title: "选择公司",
width: 800,
height: 530
})
})
//单项分析:即单危害因素生成分析
$("#bt3").click(function () {
if ($("#person_ids").val() == "") {
$.ligerDialog.error("没有人员");
return;
}
@*openf = $.ligerDialog.open({
url: "@Url.Action("getFx")?personids=" + $("#person_ids").val() + "&hazards=" + hazards,
title: "单项分析",
width: 800,
height: 530
})*@
//获取统计
$.ajax(
{
url: "@Url.Action("getFx2")", type: "post", dataType: "json", data: { personids: $("#person_ids").val(), hazards: hazards },
success: function (d) {
openf = $.ligerDialog.open({
url: "@Url.Action("getFx")",
title: "单项分析",
width: 800,
height: 530
})
}
});
})
$("#evaluation_basic").dblclick(function () {
openf = $.ligerDialog.open({
url: "@Url.Action("getYj")",
title: "选择依据",
width: 500,
height: 400
})
})
$("#treatment_opinion").dblclick(function () {
openf = $.ligerDialog.open({
url: "@Url.Action("getJy")",
title: "选择建议",
width: 500,
height: 400
})
});
//修改显示其他
//2023-12-08 xulu 注释掉,点击修改时,内容按照数据库存储的数据展示,
//showOther(1);
liger.get("grid1").set("parms", { personids: $("#person_ids").val() });
liger.get("grid1").reload();
});
var hazards = ""; //危害因素
function showOther(type) {
if ($("#person_ids").val() == "")
return;
@*
liger.get("grid1").set("parms", { personids: $("#person_ids").val() });
liger.get("grid1").reload();
liger.get("grid2").set("parms", { personids: $("#person_ids").val() });
liger.get("grid2").reload();
*@
liger.get("grid1").set("parms", { personids: $("#person_ids").val() });
liger.get("grid1").reload();
liger.get("grid2").set("parms", { personids: $("#person_ids").val() });
liger.get("grid2").reload();
liger.get("grid3").set("parms", { personids: $("#person_ids").val() });
liger.get("grid3").reload();
liger.get("grid4").set("parms", { personids: $("#person_ids").val() });
liger.get("grid4").reload();
var iType = "1";
if ($("#status").val() === "----请选择----") {
iType = "2";
}
//获取统计
$.ajax(
{
url: "@Url.Action("getCount")", type: "post", dataType: "json", data: { personids: $("#person_ids").val(), iType: iType },
success: function (d) {
$.ligerDialog.closeWaitting();
//备注:
//2023-12-11 xulu 无用,暂时隐藏
//$("#descript").val(d.zj1);
//体检结果总结
$("#result_description").val(d.zj2);
//接害总体情况描述
//2023-12-11 xulu 无用,暂时隐藏
//$("#tbHazard").val(d.zj3);
//接害因素, 逗号隔开的危害因素 名称
//2023-12-11 xulu 无用,暂时隐藏
//hazards = d.hazards;
//2023-10-31 xulu 获取有害因素、体检项目
//type==0时重新根据汇总结果填充
if (type == 0) {
$("#hazards_text").val(d.hazards_text);
$("#check_items").val(d.check_items)
}
},
beforeSend: function () {
$.ligerDialog.waitting("正在分析请稍后……");
}
});
}
function success(data) {
if (data.State == "1") {
$.ligerDialog.alert(data.Message,
function () {
window.parent.select(); //要在关闭之前
window.parent.openf.close();
});
}
else
$.ligerDialog.error(data.Message);
}
//弹窗选择受检单位及人员后,执行
function getRegister(status, personids, company, start, end) {
$("#status").val(status);
$("#person_ids").val(personids);
$("#subject_company").val(company);
$("#entrust_company").val(company);
$("#check_start_time").val(start);
$("#check_end_time").val(end);
openf.close();
//添加后显示其他
showOther(0);
//2023-11-06 xulu 只在选择受检人员时填充以下内容
$("#evaluation_basic").val("《中华人民共和国职业病防治法》\r\n《职业健康监护技术规范》GBZ188-2014");
$("#diagnostic_standard").val("1GBZ XX-20XX 职业性XX诊断标准\r\n2GBZ XX-20XX职业性XX诊断标准");
}
function getYj(content) {
$("#evaluation_basic").val(content);
openf.close();
}
function getJy(content) {
$("#treatment_opinion").val(content);
openf.close();
}
function getFx(content) {
if (content != "")
$("#per_factory_analysis").val(content);
openf.close();
}
</script>
}
<div class="l-clear"></div>
@using (Ajax.BeginForm("Add", new AjaxOptions { HttpMethod = "Post", OnSuccess = "success" }))
{
<table class="t1" style="width: 100%">
@Html.HiddenFor(m => m.id, new { @id = "id" })
@Html.HiddenFor(m => m.status, new { @id = "status" })
@Html.HiddenFor(m => m.person_ids, new { @id = "person_ids" })
@Html.HiddenFor(m => m.report_status, new { @id = "report_status" })
<tr>
<td class="ltd" width="100px">总结编号:</td>
<td class="rtd">
@Html.TextBoxFor(m => m.report_num, new { @id = "report_num", @class = "l-text", @readonly = "readonly", style = "width:250px" })
</td>
<td class="ltd" width="100px">日期范围:</td>
<td class="rtd">
@Html.TextBoxFor(m => m.check_start_time, new { @id = "check_start_time", @class = "l-text", @readonly = "readonly", style = "" })-@Html.TextBoxFor(m => m.check_end_time, new { @id = "check_end_time", @class = "l-text", @readonly = "readonly", style = "width:120px" })
</td>
</tr>
<tr>
<td class="ltd" width="100px">受检单位:</td>
<td class="rtd" colspan="2">
@Html.TextBoxFor(m => m.subject_company, new { @id = "subject_company", @class = "l-text", style = "width:100%" }) @Html.ValidationMessageFor(m => m.subject_company)
</td>
<td class="rtd" rowspan="3" style="text-align:center">
<input type="submit" id="btSelect" value="保存" class="l-button" style="width:80px; height:80px" />
</td>
</tr>
<tr>
<td class="ltd" width="100px">委托单位:</td>
<td class="rtd" colspan="2">
@Html.TextBoxFor(m => m.entrust_company, new { @id = "entrust_company", @class = "l-text", @readonly = "readonly", style = "width:100%" })
</td>
</tr>
<tr>
<td class="ltd" width="100px">统计单位:</td>
<td class="rtd" colspan="2">
@Html.TextBoxFor(m => m.count_unit, new { @id = "count_unit", @class = "l-text", style = "width:100%" })
</td>
</tr>
<tr>
<td class="ltd" width="100px">报告日期:</td>
<td class="rtd" colspan="2">
@Html.TextBoxFor(m => m.report_date, new { @id = "report_date", @class = "l-text", style = "width:40%" })
</td>
</tr>
<tr>
<td class="ltd" width="100px" colspan="2" style="text-align:center">检查及评价依据(双击选择)</td>
<td class="ltd" width="100px" colspan="2" style="text-align:center">职业病诊断标准:</td>
</tr>
<tr>
<td class="rtd" colspan="2" style="text-align:center">
@Html.TextAreaFor(m => m.evaluation_basic, new { @id = "evaluation_basic", style = "width:100%;height:100px" })
</td>
<td class="rtd" colspan="2" style="text-align:center">
@Html.TextAreaFor(m => m.diagnostic_standard, new { @id = "diagnostic_standard", style = "width:100%;height:100px" })
</td>
</tr>
@*2023-10-31 xulu 内容较乱暂时隐藏*@
@* <tr>
<td class="rtd" colspan="4" style="text-align:center">
@Html.TextArea("tbHazard", "", new { style = "width:100%;height:100px" })
</td>
</tr>
<tr>
<td class="rtd" colspan="4" style="text-align:center">
@Html.TextAreaFor(m => m.descript, new { @id = "descript", style = "width:100%;height:100px" })
</td>
</tr>*@
<tr>
<td class="ltd" colspan="2" style="text-align:center">
职业病危害因素:
</td>
<td class="ltd" colspan="2" style="text-align:center"></td>
</tr>
<tr>
<td class="rtd" colspan="4" style="text-align:center">
@Html.TextAreaFor(m => m.hazards_text, new { @id = "hazards_text", style = "width:100%;height:100px" })
</td>
</tr>
<tr>
<tr>
<td class="ltd" colspan="2" style="text-align:center">
查体项目:
</td>
<td class="ltd" colspan="2" style="text-align:center"></td>
</tr>
<tr>
<td class="rtd" colspan="4" style="text-align:center">
@Html.TextAreaFor(m => m.check_items, new { @id = "check_items", style = "width:100%;height:100px" })
</td>
</tr>
<tr>
<tr>
<td class="ltd" colspan="2" style="text-align:center">
目标疾病:
</td>
<td class="ltd" colspan="2" style="text-align:center"></td>
</tr>
<tr>
<td class="rtd" colspan="4" style="text-align:center">
@Html.TextAreaFor(m => m.target_disease, new { @id = "target_disease", style = "width:100%;height:100px" })
</td>
</tr>
<tr>
<td class="ltd" colspan="2" style="text-align:center">
<!--按钮没用到暂时隐藏20230815-->
体检结果总结:<input type="button" id="bt2" value="生成分析数据" style="display:none" class="l-button" style="width:110px" />
</td>
<td class="ltd" colspan="2" style="text-align:center">
重点关注:@Html.TextBoxFor(m => m.expersion_disease, new { @id = "expersion_disease", @class = "l-text", style = "width:60px" }) 其他疾病:@Html.TextBoxFor(m => m.other_disease, new { @id = "other_disease", @class = "l-text", style = "width:60px" })
</td>
</tr>
<tr>
<td class="rtd" colspan="4" style="text-align:center">
@Html.TextAreaFor(m => m.result_description, new { @id = "result_description", style = "width:100%;height:100px" })
</td>
</tr>
<!--2023-10-31 xulu 没用到,暂时隐藏-->
@* <tr>
<td class="ltd" colspan="2" style="text-align:center">
单危害因素体检结果分析:
<input type="button" id="bt3" value="生成分析数据" class="l-button" style="width:110px" />
<input type="button" id="bt3" value="体检结果异常率" class="l-button" style="width:110px" />
</td>
<td class="ltd" colspan="2" style="text-align:center"></td>
</tr>
<tr>
<td class="rtd" colspan="4" style="text-align:center">
@Html.TextAreaFor(m => m.per_factory_analysis, new { @id = "per_factory_analysis", style = "width:100%;height:100px" })
</td>
</tr> *@
<tr>
<td class="ltd" colspan="2" style="text-align:center">
处理意见及建议(双击选择)
</td>
<td class="ltd" colspan="2" style="text-align:center"></td>
</tr>
<tr>
<td class="rtd" colspan="4" style="text-align:center">
@Html.TextAreaFor(m => m.treatment_opinion, new { @id = "treatment_opinion", style = "width:100%;height:100px" })
</td>
</tr>
</table>
}
<div id="navtab1" style="width: 100%; overflow:auto; border:1px solid #A3C0E8; ">
<div tabid="home" title="体检结果一览表" lselected="true" >
<div id="grid1" ></div>
</div>
<div title="实验室检查的参考正常值">
<div id="grid2"></div>
</div>
<div title="职业病危害因素的职业危害">
<div id="grid3"></div>
</div>
<div title="职业病危害因素的职业禁忌证名称">
<div id="grid4"></div>
</div>
</div>
<div style="display:none;"></div>