190 lines
6.9 KiB
Plaintext
190 lines
6.9 KiB
Plaintext
|
|
|
|||
|
|
@{
|
|||
|
|
ViewBag.Title = "肿瘤数据导入";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
<table>
|
|||
|
|
<tr>
|
|||
|
|
<td class="ltd">导入肿瘤数据:</td>
|
|||
|
|
<td class="ltd"><input id="oldfile" name="oldfile" type="file" /></td>
|
|||
|
|
<td class="rtd"><div id="upload">上传</div></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<td class="ltd">查询:</td>
|
|||
|
|
<td class="ltd"><input id="txt_name" name="txt_name" type="text" /></td>
|
|||
|
|
<td class="rtd"><div id="cx">查询</div></td>
|
|||
|
|
</tr>
|
|||
|
|
</table>
|
|||
|
|
|
|||
|
|
<div id="olddate"></div>
|
|||
|
|
|
|||
|
|
<script src="@Url.Content("~/Scripts/public.js")"></script>
|
|||
|
|
@section scripts{
|
|||
|
|
<script src="@Url.Content("~/Scripts/ajaxfileupload.js")"></script>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
var dia;
|
|||
|
|
|
|||
|
|
$(function () {
|
|||
|
|
|
|||
|
|
$("#txt_name").ligerTextBox();
|
|||
|
|
$("#olddate").ligerGrid(
|
|||
|
|
{
|
|||
|
|
title: "肿瘤数据",
|
|||
|
|
url: "@Url.Action("getZLSJ")",
|
|||
|
|
parms: { key: "" },
|
|||
|
|
columns: [{
|
|||
|
|
display: '编码',
|
|||
|
|
name: 'bm',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 80
|
|||
|
|
}, {
|
|||
|
|
display: '录入日期',
|
|||
|
|
name: 'sbrq',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 80
|
|||
|
|
}, {
|
|||
|
|
display: '门诊号',
|
|||
|
|
name: 'mzh',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 60
|
|||
|
|
}, {
|
|||
|
|
display: '住院号',
|
|||
|
|
name: 'zyh',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 60
|
|||
|
|
}
|
|||
|
|
, {
|
|||
|
|
display: '姓名',
|
|||
|
|
name: 'xm',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 40
|
|||
|
|
}, {
|
|||
|
|
display: '身份证号',
|
|||
|
|
name: 'sfzh',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 100
|
|||
|
|
}, {
|
|||
|
|
display: '性别',
|
|||
|
|
name: 'xb',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 40
|
|||
|
|
}, {
|
|||
|
|
display: '联系电话',
|
|||
|
|
name: 'lxdh',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 100
|
|||
|
|
}, {
|
|||
|
|
display: '民族',
|
|||
|
|
name: 'mz',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 40
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
display: "出生日期",
|
|||
|
|
name: "csrq",
|
|||
|
|
align: "left",
|
|||
|
|
width: 80
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
display: '年龄',
|
|||
|
|
name: 'nl',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 40
|
|||
|
|
}
|
|||
|
|
,
|
|||
|
|
{
|
|||
|
|
display: '户籍地址',
|
|||
|
|
name: 'hjd',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 100
|
|||
|
|
}
|
|||
|
|
,
|
|||
|
|
{
|
|||
|
|
display: '常住地址',
|
|||
|
|
name: 'czd',
|
|||
|
|
align: 'left',
|
|||
|
|
width: 100
|
|||
|
|
}
|
|||
|
|
, { display: "工作单位", name: "gzdw", align: "left", width: 80 }
|
|||
|
|
, { display: "诊断", name: "zd", align: "left", width: 80 }
|
|||
|
|
, { display: "病理", name: "bl", align: "left", width: 80 }
|
|||
|
|
, { display: "ICD10", name: "icd10", align: "left", width: 80 }
|
|||
|
|
, { display: "ICD10名称", name: "icd10name", align: "left", width: 80 }
|
|||
|
|
, { display: "报告单位", name: "bgdw", align: "left", width: 80 }
|
|||
|
|
, { display: "报告医生", name: "bgys", align: "left", width: 80 }
|
|||
|
|
,
|
|||
|
|
{
|
|||
|
|
display: "导入时间",
|
|||
|
|
name: "drsj",
|
|||
|
|
align: "left",
|
|||
|
|
width: 100
|
|||
|
|
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
display: "导入人",
|
|||
|
|
name: "drr",
|
|||
|
|
align: "left",
|
|||
|
|
width: 100
|
|||
|
|
},
|
|||
|
|
], height: '100%',
|
|||
|
|
rownumbers: true,
|
|||
|
|
usePager: true, pageSize:30
|
|||
|
|
}
|
|||
|
|
);
|
|||
|
|
$("#cx").ligerButton({
|
|||
|
|
click: function () {
|
|||
|
|
var g = liger.get("olddate");
|
|||
|
|
g.setParm("key", liger.get("txt_name").getValue());
|
|||
|
|
g.reload();
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
$("#download").ligerButton({
|
|||
|
|
click: function () {
|
|||
|
|
window.open("@Url.Content("~/report/脑卒中报告.xls")");
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
$("#upload").ligerButton({
|
|||
|
|
click: function () {
|
|||
|
|
if (!$("#oldfile").val()) {
|
|||
|
|
$.ligerDialog.warn("请选择要上传的肿瘤报告!");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
$.ligerDialog.waitting("正在上传肿瘤报告……");
|
|||
|
|
$.ajaxFileUpload({
|
|||
|
|
url: "@Url.Action("uploadZLHistory")",
|
|||
|
|
type: "post",
|
|||
|
|
secureuri: false, //一般设置为false
|
|||
|
|
fileElementId: "oldfile", // 上传文件的id、name属性名
|
|||
|
|
dataType: "json", //返回值类型,一般设置为json、application/json
|
|||
|
|
//elementIds: elementIds, //传递参数到服务器
|
|||
|
|
success: function (data, status) {
|
|||
|
|
$.ligerDialog.closeWaitting();
|
|||
|
|
if (data.State == 1) {
|
|||
|
|
$.ligerDialog.success(data.Message);
|
|||
|
|
}
|
|||
|
|
else {
|
|||
|
|
$.ligerDialog.warn(data.Message);
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
error: function (data, status, e) {
|
|||
|
|
$.ligerDialog.closeWaitting();
|
|||
|
|
$.ligerDialog.warn(data.responseText);
|
|||
|
|
},
|
|||
|
|
complete: function () {
|
|||
|
|
var g = liger.get("olddate");
|
|||
|
|
g.setParm("key", $("#txt_name").val());
|
|||
|
|
g.reload();
|
|||
|
|
},
|
|||
|
|
beforeSend: function () { $.ligerDialog.waitting("正在上传肿瘤报告……"); }
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
</script>
|
|||
|
|
}
|
|||
|
|
|