305 lines
13 KiB
Plaintext
305 lines
13 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "体检状态查询";
|
|
}
|
|
@model dccdc.Models.ResultViewModels.Pro_Exam_Register
|
|
<div class="l-clear"></div>
|
|
<div id="maingrid">
|
|
<div id="layout" style="margin-left: 8px;text-align:center">
|
|
<div position="top">
|
|
<div id="chaxun" style="float:left;">查询</div>
|
|
<div id="tjxm" style="float:left;">体检项目</div>
|
|
<div id="shuaxin" style="float:left">刷新</div>
|
|
</div>
|
|
<div position="left" title="体检查询条件">
|
|
<table class="t1" style="width:300px">
|
|
<tr>
|
|
<td width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_name" name="cb_name"/>姓名:</td>
|
|
<td width="200" class="rtd"><input class="l-text" id="person_name" name="person_name" type="text" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_xb" name="cb_xb" />性别:</td>
|
|
<td width="200" class="rtd">@Html.DropDownListFor(m => m.sex, ViewData["xb_type_group"] as SelectList, "--------全部--------", new { id = "sex" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_tmh" name="cb_tmh" />条码号:</td>
|
|
<td width="200" class="rtd"><input class="l-text" name="physical_num" id="physical_num" type="text" maxlength="13" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_tjzt" name="cb_tjzt" />体检状态:</td>
|
|
<td width="200" class="rtd">@Html.DropDownListFor(m => m.procedure_status, ViewData["tjzt"] as SelectList, "--------请选择--------", new { id = "tjzt" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_lx" name="cb_lx" />类型:</td>
|
|
<td width="200" class="rtd">@Html.DropDownListFor(m => m.exam_type_id, ViewData["check_type_maintain_group"] as SelectList, "-----------请选择----------", new { exam_type_id = "check_type_maintain_id" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_sflr" name="cb_sflr" />是否录入:</td>
|
|
<td width="200" class="rtd"><input type="checkbox" id="is_complete" name="is_complete" value="已完成" />已录</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_djlx" name="cb_djlx" />登记类型:</td>
|
|
<td width="200" class="rtd">
|
|
@Html.RadioButtonFor(m => m.register_type, 0, new { @id = "register_type", @name = "register_type", @checked = true })<label id="all">所有</label>
|
|
@Html.RadioButtonFor(m => m.register_type, 1, new { @id = "register_type", @name = "register_type" })<label id="notFj">非复检</label>
|
|
@Html.RadioButtonFor(m => m.register_type, 2, new { @id = "register_type", @name = "register_type" })<label id="fj">复检</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2" width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_tjrq" name="cb_tjrq" />体检日期:</td>
|
|
<td width="200" class="rtd"><input type="text" id="tjrq_start" name="tjrq_start"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="200" class="rtd"><input type="text" id="tjrq_end" name="tjrq_end"></td>
|
|
</tr>
|
|
<tr>
|
|
<td rowspan="2" width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_dyrq" name="cb_dyrq" />打印日期:</td>
|
|
<td width="200" class="rtd"><input type="text" id="dyrq_start" name="dyrq_start"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="200" class="rtd"><input type="text" id="dyrq_end" name="dyrq_end"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="100" class="ltd" style="text-align:left"><input type="checkbox" id="cb_dwmc" name="cb_dwmc" />单位名称:</td>
|
|
<td width="200" class="rtd"><input id="qymc" class="l-text" name="qymc" onfocus="selectdw()" /><input id="qyid" name="qyid" type="hidden" /><a class="l-button l-btn2" href="javascript:qcqy()">清除</a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div position="center">
|
|
<div id="GroupList"></div>
|
|
</div>
|
|
<div position="right" style="height:100%">
|
|
<div id="perList"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@section scripts{
|
|
<script type="text/javascript" language="javascript">
|
|
var tiaomahao;
|
|
|
|
//数据初始化
|
|
function init() {
|
|
|
|
$("#tjrq_start").ligerDateEditor({
|
|
format: "yyyy-MM-dd"
|
|
});
|
|
$("#tjrq_end").ligerDateEditor({
|
|
format: "yyyy-MM-dd"
|
|
});
|
|
$("#dyrq_start").ligerDateEditor();
|
|
$("#dyrq_end").ligerDateEditor();
|
|
|
|
$("#tjrq_start").ligerGetDateEditorManager().setValue("@DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd")");
|
|
$("#tjrq_end").ligerGetDateEditorManager().setValue("@DateTime.Now.ToString("yyyy-MM-dd")");
|
|
|
|
$("#dyrq_start").ligerGetDateEditorManager().setValue("@DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd")");
|
|
$("#dyrq_end").ligerGetDateEditorManager().setValue("@DateTime.Now.ToString("yyyy-MM-dd")");
|
|
|
|
}
|
|
|
|
//页面布局
|
|
function Layout() {
|
|
$("#layout").ligerLayout({ leftWidth: 300, topHeight: 30, centerWidth: 250, rightWidth: 950 });
|
|
}
|
|
|
|
//头部所有按钮
|
|
function buttionList() {
|
|
//查询
|
|
$("#chaxun").ligerButton({
|
|
click: function () {
|
|
getGroupList();
|
|
}
|
|
});
|
|
|
|
//体检项目
|
|
$("#tjxm").ligerButton({
|
|
click: function () {
|
|
if (tiaomahao == null || tiaomahao == "") {
|
|
alert("请选择一个客户信息!");
|
|
} else {
|
|
openf = $.ligerDialog.open({
|
|
url: "@Url.Action("Tjxm")?id=" + tiaomahao,
|
|
width: 1000,
|
|
title:"体检项目",
|
|
height: 600
|
|
});
|
|
}
|
|
}
|
|
});
|
|
|
|
//刷新
|
|
$("#shuaxin").ligerButton({
|
|
click: function () {
|
|
window.location.href = window.location.href;
|
|
}
|
|
});
|
|
}
|
|
$(function () {
|
|
//页面布局
|
|
Layout();
|
|
//控件初始化
|
|
init();
|
|
//头部所有按钮
|
|
buttionList();
|
|
|
|
//体检状态分组
|
|
$("#GroupList").ligerGrid({
|
|
isScroll: true,
|
|
inWindow: false,
|
|
selectRowButtonOnly: true,
|
|
alternatingRow: false,
|
|
whenRClickToSelect: true,
|
|
columns: [
|
|
{ display: '体检状态', name: 'ztmc',width:150 },
|
|
{ display: '人数', name: 'rs', width: 100 },
|
|
{ display: '条码号集合', name: 'nums',hide:true }
|
|
], onClickRow: function (rowdata, rowid, rowobj) {
|
|
getPerList(rowdata.nums);
|
|
},
|
|
rownumbers: false,
|
|
usePager: false
|
|
});
|
|
|
|
//体检人员列表
|
|
$("#perList").ligerGrid({
|
|
isScroll: true,
|
|
inWindow: false,
|
|
selectRowButtonOnly: true,
|
|
alternatingRow: false,
|
|
whenRClickToSelect: true,
|
|
columns: [
|
|
{ display: 'ID', name: 'id', hide: true },
|
|
{ display: '体检编码', name: 'physical_num', width: 100 },
|
|
{ display: '姓名', name: 'person_name', width: 80 },
|
|
{ display: '性别', name: 'sex', width: 50 },
|
|
{ display: '工种', name: 'work_category', width: 70 },
|
|
{ display: '登记', name: 'register_date', width: 100 },
|
|
{ display: '年龄', name: 'person_age', width: 50 },
|
|
{ display: '单位', name: 'util_name', width: 80},
|
|
{ display: '身份证号', name: 'card_number', width: 100},
|
|
{ display: '联系电话', name: 'phone', width: 80},
|
|
{ display: '体检类别', name: 'exam_type', width: 80},
|
|
{ display: '上岗状态', name: 'status', width: 80},
|
|
{ display: '有害因素', name: 'hazards', width: 80}
|
|
], onClickRow: function (rowdata, rowid, rowobj) {
|
|
tiaomahao = rowdata.id;
|
|
},
|
|
rownumbers: false,
|
|
usePager: false,
|
|
height: "100%",
|
|
heightDiff:-20
|
|
});
|
|
});
|
|
|
|
function getGroupList() {
|
|
var tj = {};
|
|
debugger
|
|
|
|
if ($('#cb_tjzt').is(':checked')) {
|
|
//体检状态
|
|
tj.procedure_status = $("#tjzt").val();
|
|
}
|
|
if ($("#cb_tmh").is(":checked")) {
|
|
//条码号
|
|
tj.tmh = $("#physical_num").val();
|
|
}
|
|
if ($('#cb_name').is(':checked')) {
|
|
//姓名
|
|
tj.person_name = $("#person_name").val();
|
|
}
|
|
if ($('#cb_tjrq').is(':checked')) {
|
|
//登记时间段
|
|
tj.register_date_start = $("#tjrq_start").val();
|
|
tj.register_date_end = $("#tjrq_end").val();
|
|
}
|
|
if ($('#cb_dyrq').is(':checked')) {
|
|
//打印时间段
|
|
tj.printtimes_start = $("#dyrq_start").val();
|
|
tj.printtimes_end = $("#dyrq_end").val();
|
|
}
|
|
if ($('#cb_dwmc').is(':checked')) {
|
|
//单位名称
|
|
tj.util_name = $("#qymc").val();
|
|
}
|
|
if ($('#cb_xb').is(':checked')) {
|
|
//性别
|
|
tj.sex = $("#sex").val();
|
|
}
|
|
if ($('#cb_lx').is(':checked')) {
|
|
//类型ID
|
|
tj.exam_type_id = $("#exam_type_id").val();
|
|
}
|
|
if ($('#cb_sflr').is(':checked')) {
|
|
//已录
|
|
tj.is_complete = $('#is_complete:checked').val();
|
|
}
|
|
if ($('#cb_djlx').is(':checked')) {
|
|
//所有、非复检、复检
|
|
tj.register_type = $('#register_type:checked').val();
|
|
}
|
|
tj.wz = "tjztcx";
|
|
$.ajax({
|
|
url: "@Url.Action("geGroupList")", type: "post", dataType: "json",
|
|
data:tj, success: function (data) {
|
|
|
|
//$("#t_person_count").html("<span style='text-align:left'>" + data.Rows.length + "</span>");
|
|
liger.get("GroupList").options.data = data;
|
|
liger.get("GroupList").reload();
|
|
getPerList("-1");
|
|
},
|
|
error: function (err) {
|
|
$.ligerDialog.error(err.responseText);
|
|
}
|
|
});
|
|
}
|
|
|
|
function getPerList(nums)
|
|
{
|
|
$.ajax({
|
|
url: "@Url.Action("getPerList")", type: "post", dataType: "json",
|
|
data: { nums: nums }
|
|
, success: function (data) {
|
|
liger.get("perList").options.data = data;
|
|
liger.get("perList").reload();
|
|
},
|
|
error: function (err) {
|
|
$.ligerDialog.error(err.responseText);
|
|
}
|
|
});
|
|
}
|
|
|
|
var dia;
|
|
function selectdw() {
|
|
dia = $.ligerDialog.open({ title: "选择企业", url: "@Url.Action("SelectCompany","Common")?lx=职业", width: 811, height: 422 });
|
|
}
|
|
function selectedQY(data) {
|
|
$("#qymc").val(data.enterprise_name);
|
|
$("#qyid").val(data.id);
|
|
$("#tjfa").empty();
|
|
$("#tjfa").append($("<option>").val("").text("---请选择---"));
|
|
$.ajax({
|
|
url: "@Url.Action("getQYFABySiteId")",
|
|
type: "post", dataType: "json", data: { id: data.id },
|
|
success: function (tjfas) {
|
|
//alert(tjfas);
|
|
for (var i = 0; i < tjfas.length; i++) {
|
|
$("#tjfa").append($("<option>").val(tjfas[i].id).text(tjfas[i].scheme_name));
|
|
}
|
|
}
|
|
});
|
|
dia.close();
|
|
}
|
|
|
|
function qcqy() {
|
|
$("#qyid").val("");
|
|
$("#qymc").val("");
|
|
$("#tjfa").empty();
|
|
$("#tjfa").append($("<option>").val("").text("---请选择---"));
|
|
}
|
|
|
|
$(function () {
|
|
var op = $("<option value='1.4'>卡车司机</option>");
|
|
op.appendTo($("#exam_type_id"));
|
|
});
|
|
</script>
|
|
} |