399 lines
17 KiB
Plaintext
399 lines
17 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "卫生许可证办理";
|
|
}
|
|
|
|
<div style="width:100%">
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td class="ltd" style="width:100px">单位名称:</td>
|
|
<td class="rtd" style="width:120px"><input id="s_dwmc" class="l-text" /></td>
|
|
<td class="ltd" style="width:100px">负责人:</td>
|
|
<td class="rtd" style="width:120px"><input id="s_fr" class="l-text" /></td>
|
|
<td class="ltd" style="width:100px">发证日期:</td>
|
|
<td class="rtd" style="width:120px">
|
|
<input type="text" id="s_fzrq1" class="Wdate" onclick="WdatePicker()" />
|
|
</td>
|
|
<td class="ltd" style="width:40px">至:</td>
|
|
<td class="rtd" style="width:120px">
|
|
<input type="text" id="s_fzrq2" class="Wdate" onclick="WdatePicker()" />
|
|
</td>
|
|
<td class="ltd" style="width:100px">经营范围:</td>
|
|
<td class="rtd" style="width:120px"><input id="s_jyfw" class="l-text" /></td>
|
|
<td class="rtd"><div id="search">查询</div></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="areaInfoList">
|
|
<!--
|
|
|
|
areaInfoList
|
|
|
|
areaInfoModify
|
|
|
|
-->
|
|
|
|
</div>
|
|
<div id="areaInfoModify">
|
|
<form id="editform">
|
|
<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" width="150px"><input id="d_fgks" class="l-text" name="d_fgks" /></td>
|
|
<td class="ltd" width="100px">管辖区域:</td>
|
|
<td class="rtd" width="150px"><input id="d_gxqy" class="l-text" name="d_gxqy" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">单位名称:</td>
|
|
<td class="rtd"><input id="dwmc" class="l-text" name="dwmc" /></td>
|
|
<td class="ltd" width="100px">单位地址:</td>
|
|
<td class="rtd"><input id="dwdz" class="l-text" name="dwdz" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">联系电话:</td>
|
|
<td class="rtd"><input id="lxdh" class="l-text" name="lxdh" /></td>
|
|
<td class="ltd" width="100px">经营性质:</td>
|
|
<td class="rtd"><input id="d_jyxz" class="l-text" name="d_jyxz" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">经营范围:</td>
|
|
<td class="rtd"><input id="d_jyfw" class="l-text" name="d_jyfw" /></td>
|
|
<td class="ltd" width="100px">许可项目:</td>
|
|
<td class="rtd"><input id="xkxm" class="l-text" name="xkxm" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">法人:</td>
|
|
<td class="rtd"><input id="fr" class="l-text" name="fr" /></td>
|
|
<td class="ltd" width="100px">经营面积:</td>
|
|
<td class="rtd"><input id="jymj" class="l-text" name="jymj" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">身份证号:</td>
|
|
<td class="rtd"><input id="sfzh" class="l-text" name="sfzh" /></td>
|
|
<td class="ltd" width="100px">统一信用代码:</td>
|
|
<td class="rtd"><input id="xydm" class="l-text" name="xydm" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">申请日期:</td>
|
|
<td class="rtd"><input id="sqsj" name="sqsj" class="Wdate" onclick="WdatePicker()" /></td>
|
|
<td class="ltd" width="100px">发证日期:</td>
|
|
<td class="rtd"><input id="fzsj" class="Wdate" onclick="WdatePicker()" name="fzsj" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">卫生许可证编号:</td>
|
|
<td class="rtd">鲁德卫监字[<input id="bh1" name="bh1" type="text" value="@DateTime.Now.Year" style="width:60px"/>]</td>
|
|
<td class="rtd" colspan="2">第<input id="bh2" name="bh2" class="l-text" />号</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="100px">有效期:</td>
|
|
<td class="rtd"><input id="yxq1" name="yxq1" class="Wdate" onclick="WdatePicker()" /></td>
|
|
<td class="ltd" width="100px">至:</td>
|
|
<td class="rtd"><input id="yxq2" class="Wdate" onclick="WdatePicker()" name="yxq2" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd">保存后直接打印:</td>
|
|
<td class="rtd" colspan="3">
|
|
<input type="checkbox" id="print" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<div class="dispReport">
|
|
<object classid="clsid:F6A015E2-092A-4006-93DA-4CBDE3AFF4B8" id="window.top.Formium.external.Print" width="300" height="50"></object>
|
|
@*f3ef9bfa-19d4-4903-a8c0-3ca283b64b6d F6A015E2-092A-4006-93DA-4CBDE3AFF4B8*@
|
|
</div>
|
|
@section scripts{
|
|
<script src="@Url.Content("~/Scripts/datetime/WdatePicker.js")"></script>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#s_jyfw").ligerComboBox({
|
|
url: "@Url.Action("getjddict")", valueField: "id", textField: "mc", parms: { lb: 4 }
|
|
});
|
|
$("#d_fgks").ligerComboBox({
|
|
url: "@Url.Action("getjddict")", valueField: "id", textField: "mc", parms: { lb: 1 }, valueFieldID: "fgksid"
|
|
}); $("#d_gxqy").ligerComboBox({
|
|
url: "@Url.Action("getjddict")", valueField: "id", textField: "mc", parms: { lb: 2 }, valueFieldID: "gxqyid"
|
|
}); $("#d_jyxz").ligerComboBox({
|
|
url: "@Url.Action("getjddict")", valueField: "id", textField: "mc", parms: { lb: 3 }, valueFieldID: "jyxzid"
|
|
}); $("#d_jyfw").ligerComboBox({
|
|
url: "@Url.Action("getjddict")", valueField: "id", textField: "mc", parms: { lb: 4 }, valueFieldID: "jyfwid"
|
|
});
|
|
|
|
$("#areaInfoModify").hide();
|
|
$("#search").ligerButton({
|
|
click: function () {
|
|
liger.get("areaInfoList").set("parms", { key: $("#s_dwmc").val(), fr: $("#s_fr").val(), s_fzrq1: $("#s_fzrq1").val(), s_fzrq2: $("#s_fzrq2").val(), s_jyfw: liger.get("s_jyfw").getValue() });
|
|
liger.get("areaInfoList").changePage("first");
|
|
liger.get("areaInfoList").reload();
|
|
}
|
|
});
|
|
$("#areaInfoList").ligerGrid({
|
|
url: "@Url.Action("getwsxkzpage")",
|
|
toolbar: {
|
|
items: [
|
|
{
|
|
text: '添加', click: itemclick, icon: 'add'
|
|
},
|
|
{ line: true },
|
|
{ text: '修改', click: itemclick, icon: "edit" },
|
|
{ line: true },
|
|
{ text: '打印正本', click: itemclick, icon: "print" },
|
|
{ line: true },
|
|
{ text: '打印副本', click: itemclick, icon: "print" }
|
|
@if (ViewBag.showdel == true) {
|
|
@: ,{ line: true },
|
|
@:{ text: '删除', click: itemclick, icon: "delete" }
|
|
}
|
|
]
|
|
},
|
|
title: "卫生许可证列表",
|
|
parms: { key: $("#s_dwmc").val(), fr: $("#s_fr").val(), s_fzrq1: $("#s_fzrq1").val(), s_fzrq2: $("#s_fzrq2").val(), s_jyfw: liger.get("s_jyfw").getValue() },
|
|
columns: [
|
|
{ name: "dwmc", display: "单位名称", width: 100, align: "left", },
|
|
{ name: "fr", display: "负责人", width: 100, align: "left" },
|
|
{ name: "dwdz", display: "单位地址", width: 180, align: "left" }
|
|
, { name: "jyfw", display: "经营范围", width: 100, align: "left" }
|
|
, { name: "fzsj", display: "发证日期", width: 100, align: "left" }
|
|
|
|
], width: "98%",
|
|
height: "100%",
|
|
rownumbers: true,
|
|
usePager: true,
|
|
heightDiff: -20
|
|
});
|
|
|
|
});
|
|
function itemclick(item) {
|
|
if (item.text == "添加") {
|
|
f_clear();
|
|
$("#mc").val("");
|
|
$("#id").val("0");
|
|
$.ligerDialog.open({
|
|
title: "登记卫生许可证信息", target: $("#areaInfoModify"), width: 818, height: 380, top: 20, left: 20, buttons: [{
|
|
text: "确定", onclick: function (item, dialg) {
|
|
f_save(dialg);
|
|
|
|
}
|
|
}, { text: "取消", onclick: function (item, dialg) { dialg.hidden(); } }]
|
|
});
|
|
}
|
|
else if (item.text == "修改") {
|
|
var r = liger.get("areaInfoList").getSelectedRow();
|
|
if (!r) {
|
|
$.ligerDialog.alert("请选择要修改的数据!");
|
|
return;
|
|
}
|
|
$("#id").val(r.id);
|
|
liger.get("d_fgks").setValue(r.fgksid);
|
|
liger.get("d_gxqy").setValue(r.gxqyid);
|
|
$("#dwmc").val(r.dwmc);
|
|
$("#dwdz").val(r.dwdz);
|
|
$("#lxdh").val(r.lxdh);
|
|
$("#xkxm").val(r.xkxm);
|
|
$("#fr").val(r.fr);
|
|
$("#jymj").val(r.jymj);
|
|
$("#sfzh").val(r.sfzh);
|
|
$("#xydm").val(r.xydm);
|
|
$("#sqsj").val(r.sqsj);
|
|
$("#fzsj").val(r.fzsj);
|
|
$("#bh2").val(r.bh2);
|
|
$("#bh1").val(r.bh1);
|
|
$("#yxq1").val(r.yxq1);
|
|
$("#yxq2").val(r.yxq2);
|
|
liger.get("d_jyxz").setValue(r.jyxzid);
|
|
liger.get("d_jyfw").setValue(r.jyfwid);
|
|
$.ligerDialog.open({
|
|
title: "修改卫生许可证信息", target: $("#areaInfoModify"), width: 818, height: 380, top: 20, left: 20, buttons: [{
|
|
text: "确定", onclick: function (item, dialg) {
|
|
f_save(dialg);
|
|
|
|
}
|
|
}, { text: "取消", onclick: function (item, dialg) { dialg.hidden(); } }]
|
|
});
|
|
}
|
|
else if (item.text == "打印正本") {
|
|
var r = liger.get("areaInfoList").getSelectedRow();
|
|
if (!r) {
|
|
$.ligerDialog.alert("请选择要打印的数据!");
|
|
return;
|
|
|
|
}
|
|
f_printzb(r.id);
|
|
}
|
|
else if (item.text == "打印副本") {
|
|
var r = liger.get("areaInfoList").getSelectedRow();
|
|
if (!r) {
|
|
$.ligerDialog.alert("请选择要打印的数据!");
|
|
return;
|
|
}
|
|
f_printfb(r.id);
|
|
}
|
|
else if(item.text=="删除")
|
|
{
|
|
var r = liger.get("areaInfoList").getSelectedRow();
|
|
if (!r) {
|
|
$.ligerDialog.alert("请选择要删除的数据!");
|
|
return;
|
|
}
|
|
$.ligerDialog.confirm("你确认要删除这条数据吗?", function (yes) {
|
|
if(yes)
|
|
{
|
|
|
|
$.ajax("@Url.Action("delwsxk")", {
|
|
type: "post", dataType: "json", data: { id: r.id },
|
|
success: function (data) {
|
|
$.ligerDialog.closeWaitting();
|
|
$.ligerDialog.alert(data.Message, function () {
|
|
if(data.State==1)
|
|
{
|
|
liger.get("areaInfoList").reload();
|
|
}
|
|
});
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在删除请稍后……");
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
}
|
|
}
|
|
function f_save(dialg) {
|
|
if (!$("#dwmc").val()) {
|
|
$.ligerDialog.alert("单位名称不能为空!");
|
|
return;
|
|
}
|
|
if (!$("#dwdz").val()) {
|
|
$.ligerDialog.alert("单位地址不能为空!");
|
|
return;
|
|
}
|
|
if (!$("#lxdh").val()) {
|
|
$.ligerDialog.alert("联系电话不能为空!");
|
|
return;
|
|
}
|
|
if (!$("#xkxm").val()) {
|
|
$.ligerDialog.alert("许可项目不能为空!");
|
|
return;
|
|
}
|
|
if (!$("#fr").val()) {
|
|
$.ligerDialog.alert("法人不能为空!");
|
|
return;
|
|
}
|
|
|
|
if (!$("#sqsj").val()) {
|
|
$.ligerDialog.alert("申请日期不能为空!");
|
|
return;
|
|
}
|
|
|
|
if (!$("#fzsj").val()) {
|
|
$.ligerDialog.alert("发证时间不能为空!");
|
|
return;
|
|
}
|
|
if (!$("#bh2").val()) {
|
|
$.ligerDialog.alert("许可证编号不能为空!");
|
|
return;
|
|
}
|
|
if (!$("#yxq1").val()) {
|
|
$.ligerDialog.alert("有效期不能为空!");
|
|
return;
|
|
}
|
|
if (!$("#yxq2").val()) {
|
|
$.ligerDialog.alert("有效期不能为空!");
|
|
return;
|
|
}
|
|
var data = $("#editform").serializeArray();
|
|
data.push({ name: "fgks", value: liger.get("d_fgks").getText() });
|
|
data.push({ name: "gxqy", value: liger.get("d_gxqy").getText() });
|
|
data.push({ name: "jyxz", value: liger.get("d_jyxz").getText() });
|
|
data.push({ name: "jyfw", value: liger.get("d_jyfw").getText() });
|
|
$.ajax(
|
|
{
|
|
url: "@Url.Action("savewsxk")", type: "post", dataType: "json", data: data,
|
|
success: function (d) {
|
|
$.ligerDialog.closeWaitting();
|
|
$.ligerDialog.alert(d.Message, function () {
|
|
if (d.State == 1) {
|
|
if ($("#print").prop("checked")) {
|
|
f_print(d.tag);
|
|
}
|
|
dialg.hidden();
|
|
liger.get("areaInfoList").reload();
|
|
|
|
}
|
|
});
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在保存请稍后……");
|
|
}
|
|
});
|
|
}
|
|
function f_print(id) {
|
|
|
|
try {
|
|
var url = "@(Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/"))";
|
|
if (window.top.Formium.external.Print.finit( "wsxk_1.frx")) {
|
|
window.top.Formium.external.Print.PrintWSXKZ(id, "");
|
|
}
|
|
url = "@(Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/"))";
|
|
if (window.top.Formium.external.Print.finit( "wsxk_2.frx")) {
|
|
window.top.Formium.external.Print.PrintWSXKZ1(id, "");
|
|
}
|
|
}
|
|
catch (ex) {
|
|
$.ligerDialog.alert(ex);
|
|
}
|
|
}
|
|
function f_printfb(id) {
|
|
try {
|
|
|
|
var url = "@(Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/"))";
|
|
if (window.top.Formium.external.Print.finit( "wsxk_2.frx")) {
|
|
window.top.Formium.external.Print.PrintWSXKZ1(id, "");
|
|
}
|
|
}
|
|
catch (ex) {
|
|
$.ligerDialog.alert(ex);
|
|
}
|
|
}
|
|
function f_printzb(id) {
|
|
try {
|
|
var url = "@(Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/"))";
|
|
if (window.top.Formium.external.Print.finit( "wsxk_1.frx")) {
|
|
window.top.Formium.external.Print.PrintWSXKZ(id, "");
|
|
//window.top.Formium.external.Print.PrintWSXKZ({ id: "1230" });
|
|
}
|
|
|
|
}
|
|
catch (ex) {
|
|
$.ligerDialog.alert(ex);
|
|
}
|
|
}
|
|
function f_clear() {
|
|
$("#id").val("0");
|
|
liger.get("d_fgks").setValue("");
|
|
liger.get("d_gxqy").setValue("");
|
|
$("#dwmc").val("");
|
|
$("#dwdz").val("");
|
|
$("#lxdh").val("");
|
|
$("#xkxm").val("");
|
|
$("#fr").val("");
|
|
$("#jymj").val("");
|
|
$("#sfzh").val("");
|
|
$("#xydm").val("");
|
|
$("#sqsj").val("");
|
|
$("#fzsj").val("");
|
|
$("#bh2").val("");
|
|
$("#yxq1").val("");
|
|
$("#yxq2").val("");
|
|
liger.get("d_jyxz").setValue("");
|
|
liger.get("d_jyfw").setValue("");
|
|
$("#bh1").val("@DateTime.Now.Year");
|
|
}
|
|
</script>
|
|
}
|
|
|
|
|