195 lines
7.8 KiB
Plaintext
195 lines
7.8 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "主任审批";
|
|
}
|
|
|
|
<table class="t1" style="width:1096px">
|
|
<tr>
|
|
<td class="ltd">
|
|
编码:
|
|
</td>
|
|
<td class="rtd"><input id="bm" class="l-text" style="width:100px" /></td>
|
|
<td class="ltd">姓名:</td>
|
|
<td class="rtd"><input id="xm" type="text" class="l-text" style="width:100px" /></td>
|
|
<td class="ltd">开始日期:</td>
|
|
<td class="rtd"><input id="ksrq" value="@DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd")" /></td>
|
|
<td class="ltd">结束日期:</td>
|
|
<td class="rtd"><input id="jsrq" value="@DateTime.Now.ToString("yyyy-MM-dd")" /></td>
|
|
<td class="ltd">申请状态:</td>
|
|
<td class="rtd">
|
|
<select id="zt">
|
|
<option value="" selected="selected">请选择</option>
|
|
<option value="1">通过</option>
|
|
<option value="2">未审批</option>
|
|
</select>
|
|
</td>
|
|
<td class="ltd">单位名称:</td>
|
|
<td class="rtd"><input id="dwmc" class="l-text" style="width:160px" /></td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td colspan="12" style="text-align:center">
|
|
|
|
<input type="button" onclick="cx()" class="l-button" style="width:60px;height:30px" value="查询" />
|
|
<input type="button" onclick="ksbz()" class="l-button" style="width:80px;height:30px" value="快速办证" />
|
|
<input type="button" onclick="printtjb()" class="l-button" style="width:80px;height:30px" value="打印" />
|
|
<input type="button" onclick="sc()" class="l-button" style="width:80px;height:30px" value="删除" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div id="ksbzList">
|
|
|
|
</div>
|
|
<div style="display:none">
|
|
<object classid="clsid:F6A015E2-092A-4006-93DA-4CBDE3AFF4B8" id="window.top.Formium.external.Print" width="300" height="50"></object>
|
|
</div>
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
|
|
function printtjb() {
|
|
|
|
var url = "@(Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/"))";
|
|
var ids = "";
|
|
|
|
var rows = liger.get("ksbzList").getSelectedRows();
|
|
if (rows.length == 0) {
|
|
$.ligerDialog.alert("请选择要打印的数据!");
|
|
}
|
|
|
|
for (var i = 0; i < rows.length; i++)
|
|
{
|
|
try
|
|
{
|
|
if (rows[i].physical_category == '公共场所')
|
|
{
|
|
//if (window.top.Formium.external.Print.finit("@Html.Raw("zzjtjzm_gg_")" + rows[i].jgid + ".frx"))
|
|
if (window.top.Formium.external.Print.finit("zzjtjzm_gg.frx"))
|
|
{
|
|
window.top.Formium.external.Print.PrintJKZM_GG(rows[i].id, "false");
|
|
}
|
|
}
|
|
else if (rows[i].physical_category == '食品从业')
|
|
{
|
|
//if (window.top.Formium.external.Print.finit("@Html.Raw("zzjtjzm_sp_")" + rows[i].jgid + ".frx"))
|
|
if (window.top.Formium.external.Print.finit("zzjtjzm_sp.frx"))
|
|
{
|
|
window.top.Formium.external.Print.PrintJKZM_SP(rows[i].id, "false");
|
|
}
|
|
}
|
|
else if (rows[i].physical_category == '药品从业')
|
|
{
|
|
if (window.top.Formium.external.Print.finit("zzjtjzm_yp.frx"))
|
|
{
|
|
window.top.Formium.external.Print.PrintJKZM_YP(rows[i].id, "false");
|
|
}
|
|
}
|
|
else
|
|
{
|
|
$.liger.ligerDialog.alert("体检类型错误!");
|
|
}
|
|
}
|
|
catch (e)
|
|
{
|
|
$.ligerDialog.error("打印健康证明出错:" + e.message);
|
|
}
|
|
}
|
|
}
|
|
|
|
function cx() {
|
|
liger.get("ksbzList").set("parms", {
|
|
bm: $("#bm").val(),
|
|
xm: $("#xm").val(),
|
|
ksrq: $("#ksrq").val(),
|
|
jsrq: $("#jsrq").val(),
|
|
zt: $("#zt").val(),
|
|
dwmc: $("#dwmc").val()
|
|
});
|
|
liger.get("ksbzList").reload();
|
|
}
|
|
|
|
//选择删除按钮
|
|
function sc()
|
|
{
|
|
|
|
var rows = liger.get("ksbzList").getSelectedRows();
|
|
if (rows.length == 0) {
|
|
$.ligerDialog.alert("请选择要删除的快速出证的信息!");
|
|
return;
|
|
}
|
|
var ids = "";
|
|
for (var i = 0; i < rows.length; i++) {
|
|
//if (rows[i].director_approval_status != "通过")
|
|
ids += rows[i].id + ",";
|
|
}
|
|
if (ids == "") {
|
|
$.ligerDialog.alert("请选择要删除的快速出证的信息!");
|
|
return;
|
|
}
|
|
$.ajax({
|
|
url: "@Url.Action("delksbz")", type: "post", dataType: "json", data: { ids: ids },
|
|
success: function (d) {
|
|
$.ligerDialog.closeWaitting();
|
|
$.ligerDialog.alert(d.Message, function () {
|
|
liger.get("ksbzList").reload();
|
|
});
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在处理请稍后……");
|
|
},
|
|
error: function (err) {
|
|
$.ligerDialog.error(err.responseText);
|
|
}
|
|
}
|
|
);
|
|
}
|
|
|
|
function ksbz() {
|
|
var rows = liger.get("ksbzList").getSelectedRows();
|
|
if (rows.length == 0) {
|
|
$.ligerDialog.alert("请选择要快速出证的信息!");
|
|
return;
|
|
}
|
|
var ids = "";
|
|
for (var i = 0; i < rows.length; i++) {
|
|
if (rows[i].director_approval_status != "通过")
|
|
ids += rows[i].id + ",";
|
|
}
|
|
if (ids == "")
|
|
{
|
|
$.ligerDialog.alert("你选择的数据都已快速出证!");
|
|
return;
|
|
}
|
|
$.ajax({
|
|
url: "@Url.Action("ksbz")", type: "post", dataType: "json", data: { ids: ids },
|
|
success: function (d) {
|
|
$.ligerDialog.closeWaitting();
|
|
$.ligerDialog.alert(d.Message, function () {
|
|
liger.get("ksbzList").reload();
|
|
});
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在处理请稍后……");
|
|
},
|
|
error: function (err) {
|
|
$.ligerDialog.error(err.responseText);
|
|
}
|
|
}
|
|
);
|
|
}
|
|
|
|
$(function () {
|
|
$("#ksrq").ligerDateEditor({ width: 100 });
|
|
$("#jsrq").ligerDateEditor({ width: 100 });
|
|
$("#ksbzList").ligerGrid({
|
|
url: "@Url.Action("getksbzList")",
|
|
columns: [
|
|
{ name: "physical_num", display: "体检编号 ", align: "center", width: 100 },
|
|
{ name: "person_name", display: "姓名 ", align: "center", width: 100 },
|
|
{ name: "area", display: "所属区域 ", align: "center", width: 100 },
|
|
{ name: "util_name", display: "单位名称 ", align: "left", width: 400 },
|
|
{ name: "register_date", display: "登记日期 ", align: "center", width: 100 },
|
|
], height: "100%", checkbox: true, fixedCellHeight: false, usePager: false
|
|
});
|
|
});
|
|
</script>
|
|
} |