372 lines
15 KiB
Plaintext
372 lines
15 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "sqccbxshMessage";
|
|
}
|
|
|
|
@model dccdc.Models.sqccbxModel
|
|
@section scripts{
|
|
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#sqsj").ligerDateEditor({ format: "yyyy/MM/dd hh:mm:ss", showTime: true });
|
|
//$("#sqsj").ligerGetDateEditorManager().setValue(fun_date(0));
|
|
|
|
$("#dydh").focus(function () {
|
|
openf2 = $.ligerDialog.open({
|
|
title: "选择申请单(单击选中确定)",
|
|
url: "@Url.Action("choosccsqView")?type=ccbx&dydh=" + $("#dydh").val(),
|
|
width: 700,
|
|
height: 400
|
|
});
|
|
})
|
|
|
|
$("#btSelect").click(function () {
|
|
liger.get("grid1").set("parms", { key: $("#jfmc").val(), key1: $("#jflb").val() });
|
|
liger.get("grid1").reload();
|
|
})
|
|
$("#jfmc").keydown(function (e) {
|
|
var curKey = e.which;
|
|
if (curKey == 13) {
|
|
liger.get("grid1").set("parms", { key: $("#jfmc").val(), key1: $("#jflb").val() });
|
|
liger.get("grid1").reload();
|
|
return false;
|
|
}
|
|
});
|
|
|
|
$("#grid2").ligerGrid({
|
|
height: "260px",
|
|
columns: [
|
|
{ display: "开始时间", name: "begint", align: "left", width: 86, type: 'date', format: 'yyyy-MM-dd', editor: { type: 'date' } },
|
|
{ display: "结束时间", name: "endt", align: "left", width: 86, type: 'date', format: 'yyyy-MM-dd', editor: { type: 'date' } },
|
|
{ display: "起点", name: "begind", align: "left", width: 80, type: 'string', editor: { type: 'string' } },
|
|
{ display: "终点", name: "endd", align: "left", width: 80, type: 'string', editor: { type: 'string' } },
|
|
{ display: "交通工具", name: "gongju", align: "left", width: 80, type: 'string', editor: { type: 'string' } },
|
|
{
|
|
display: "张数", name: "count", align: "right", width: 60, type: 'float', editor: { type: 'float' },
|
|
render: function (r, i, v) {
|
|
if (v == 0) {
|
|
return "";
|
|
}
|
|
else {
|
|
return v;
|
|
}
|
|
}
|
|
},
|
|
{
|
|
display: "金额", name: "je", align: "right", width: 60, type: 'float', editor: { type: 'float' },
|
|
render: function (r, i, v) {
|
|
if (v == 0) {
|
|
return "";
|
|
}
|
|
else {
|
|
return v;
|
|
}
|
|
}
|
|
},
|
|
{
|
|
display: "人数", name: "rs", align: "right", width: 60, type: 'float', editor: { type: 'float' },
|
|
render: function (r, i, v) {
|
|
if (v == 0) {
|
|
return "";
|
|
}
|
|
else {
|
|
return v;
|
|
}
|
|
}
|
|
},
|
|
{ display: "项目", name: "xiangmu", align: "left", width: 90, type: 'string', editor: { type: 'string' } },
|
|
{
|
|
display: "天数", name: "ts", align: "right", width: 60, type: 'float', editor: { type: 'float' },
|
|
render: function (r, i, v) {
|
|
if (v == 0) {
|
|
return "";
|
|
}
|
|
else {
|
|
return v;
|
|
}
|
|
}
|
|
},
|
|
{
|
|
display: "标准", name: "bz", align: "right", width: 60, type: 'float', editor: { type: 'float' },
|
|
render: function (r, i, v) {
|
|
if (v == 0) {
|
|
return "";
|
|
}
|
|
else {
|
|
return v;
|
|
}
|
|
}
|
|
},
|
|
{
|
|
display: "金额", name: "je2", align: "right", width: 60, type: 'float', editor: { type: 'float' },
|
|
render: function (r, i, v) {
|
|
if (v == 0) {
|
|
return "";
|
|
}
|
|
else {
|
|
return v;
|
|
}
|
|
}
|
|
},
|
|
{ display: "其他", name: "qt", align: "left", width: 80, type: 'string', editor: { type: 'string' } },
|
|
{
|
|
display: "金额", name: "je3", align: "right", width: 60, type: 'float', editor: { type: 'float' },
|
|
render: function (r, i, v) {
|
|
if (v == 0) {
|
|
return "";
|
|
}
|
|
else {
|
|
return v;
|
|
}
|
|
}
|
|
},
|
|
],
|
|
url: "@Url.Action("getsqccbxMx")?key=0000000&id=@Request.QueryString["id"]",
|
|
rownumber: true,
|
|
usePager: false
|
|
});
|
|
})
|
|
function message() {
|
|
var title = "";
|
|
var url = "";
|
|
if ($("#dydh").val() == "") {
|
|
$.ligerDialog.error("无单号!")
|
|
return;
|
|
}
|
|
title = "关联申请单明细";
|
|
url = "@Url.Action("chuchai_sqMessageNew", "sq2")?type=hidden&id=" + $("#dydh").val();
|
|
|
|
openf2 = $.ligerDialog.open({
|
|
title: title,
|
|
url: url,
|
|
width: 760,
|
|
height: 500
|
|
});
|
|
}
|
|
|
|
|
|
function save(ty) {
|
|
var id = $("#id").val();
|
|
switch ("@ViewBag.zw") {
|
|
case "科室领导": yj = $("#spnr1").val(); break;
|
|
case "分管领导": yj = $("#spnr2").val(); break;
|
|
case "财务": yj = $("#spnr3").val(); break;
|
|
case "中心主任": yj = $("#spnr4").val(); break;
|
|
}
|
|
if (!yj) {
|
|
$.ligerDialog.error("审批意见必填!")
|
|
return;
|
|
}
|
|
$.ajax({
|
|
url: "@Url.Action("savesqccbxsh")", type: "post", dataType: "json", data: { id: id, yj: yj, ty: ty },
|
|
success: function (d) {
|
|
$.ligerDialog.closeWaitting();
|
|
if (d.State == "0") {
|
|
$.ligerDialog.error("操作失败!");
|
|
}
|
|
else {
|
|
$.ligerDialog.success("操作成功!");
|
|
parent.init();
|
|
//window.opener.init();
|
|
//window.opener = null;
|
|
//window.close();
|
|
}
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在进行请稍后……");
|
|
}
|
|
});
|
|
}
|
|
|
|
//弹出框选中
|
|
function selectedCCSQ(rowdata) {
|
|
openf2.close();
|
|
}
|
|
|
|
//报销
|
|
function bx() {
|
|
openf2 = $.ligerDialog.open({
|
|
url: "@Url.Action("sqysbx")",
|
|
title: "项目经费分解",
|
|
width: 820,
|
|
height: 500
|
|
});
|
|
}
|
|
//报销查询
|
|
function bxck() {
|
|
var id = $("#id").val();
|
|
openf2 = $.ligerDialog.open({
|
|
url: "@Url.Action("sqysbxcxbybxdid")?type=" + encodeURIComponent("出差报销") + "&bxdid=" + id,
|
|
title: "项目经费分解",
|
|
width: 760,
|
|
height: 500
|
|
});
|
|
}
|
|
//弹出框选中
|
|
function selectedYSBX(items) {
|
|
var id = $("#id").val();
|
|
|
|
$.ajax({
|
|
url: "@Url.Action("savesqccbxbx")", type: "post", dataType: "json", data: { id: id, items: items },
|
|
success: function (d) {
|
|
$.ligerDialog.closeWaitting();
|
|
$.ligerDialog.alert(d.Message, function () {
|
|
if (d.State == 1) {
|
|
//当前页面刷新
|
|
location.reload()
|
|
return;
|
|
}
|
|
});
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在进行请稍后……");
|
|
}
|
|
});
|
|
}
|
|
|
|
//附件
|
|
function sqfile(show) {
|
|
var openf3 = $.ligerDialog.open({
|
|
url: "@Url.Action("sqfile")?show=" + show + "&type=" + encodeURIComponent("出差报销") + "&sqid=" + @Model.id,
|
|
title: "附件管理",
|
|
width: 700,
|
|
height: 300,
|
|
allowClose: false
|
|
});
|
|
}
|
|
|
|
function fun_date(days) {
|
|
var date1 = new Date(),
|
|
time1 = date1.getFullYear() + "-" + (date1.getMonth() + 1) + "-" + date1.getDate();//time1表示当前时间
|
|
var date2 = new Date(date1);
|
|
date2.setDate(date1.getDate() + days);
|
|
|
|
var y = date2.getFullYear();
|
|
var m = date2.getMonth() + 1;
|
|
m = m < 10 ? '0' + m : m;
|
|
var d = date2.getDate();
|
|
d = d < 10 ? ('0' + d) : d;
|
|
var time2 = y + "-" + m + "-" + d;
|
|
return time2;
|
|
}
|
|
|
|
</script>
|
|
<style type="text/css">
|
|
.ltd {
|
|
background-color: white;
|
|
}
|
|
|
|
.t3 .ltd {
|
|
text-align: center;
|
|
}
|
|
|
|
.t2 tr td {
|
|
padding: 5px 0px 5px 10px;
|
|
line-height: 22px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.t3 tr td {
|
|
border: 1px solid #bebeff;
|
|
padding: 5px 0px 5px 10px;
|
|
line-height: 22px;
|
|
word-break: break-all;
|
|
}
|
|
</style>
|
|
}
|
|
|
|
<div class="l-clear"></div>
|
|
<div style="width:700px; margin:0 auto">
|
|
@Html.HiddenFor(m => m.id)
|
|
@Html.HiddenFor(m => m.fydh)
|
|
@Html.HiddenFor(m => m.fydh2)
|
|
<h3 style="text-align:center;margin:10px 0 10px 0">德城区疾控中心出差报销申请单</h3>
|
|
<table class="t2" style="width:100%" border="0">
|
|
<tr style="display:none">
|
|
<td class="ltd" width="70px">申 请 人:</td>
|
|
<td class="rtd" width="150px">@Html.DisplayFor(m => m.sqr)</td>
|
|
<td class="ltd" width="70px">申请状态:</td>
|
|
<td class="rtd" width="150px">@Html.DropDownListFor(m => m.zt, ViewData["ztD"] as SelectList, "----请选择----", new { @class = "l-text", @disabled = "disabled" })</td>
|
|
<td class="ltd" width="70px">申请日期:</td>
|
|
<td class="rtd" width="150px">@Html.DisplayFor(m => m.sqsj)</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="70px">申 请 人:</td>
|
|
<td class="rtd" width="150px">@Html.DisplayFor(m => m.sqr)</td>
|
|
<td class="ltd" width="70px"></td>
|
|
<td class="rtd" width="150px"></td>
|
|
<td class="ltd" width="70px"></td>
|
|
<td class="rtd" width="150px"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="70px">申请科室:</td>
|
|
<td class="rtd" width="150px">@Html.DisplayFor(m => m.ksmc)</td>
|
|
<td class="ltd" width="70px">报销金额:</td>
|
|
<td class="rtd" width="150px">¥@Html.DisplayFor(m => m.je)元</td>
|
|
<td class="ltd" width="70px">出差申请单</td>
|
|
<td class="rtd" width="150px">@Html.DisplayFor(m => m.dydh) @Html.HiddenFor(m => m.dydh)</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="70px">报销内容:</td>
|
|
<td class="rtd" colspan="5">@Html.DisplayFor(m => m.bz)</td>
|
|
</tr>
|
|
</table>
|
|
<div id="grid2"></div>
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td colspan="3" align="center" style="padding: 15px 0 15px 0">
|
|
<h4>审批过程 <a id=fydhShow onclick='message()'>查看对应申请单:@Html.DisplayTextFor(m => m.dydh)</a></h4>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="77px">科室领导</td>
|
|
<td class="rtd" width="500px">
|
|
@Html.DisplayTextFor(m => m.spnr1)
|
|
</td>
|
|
<td class="rtd">
|
|
@Html.DisplayTextFor(m => m.spr1) <br /> @Html.DisplayTextFor(m => m.sptime1)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd">分管领导</td>
|
|
<td class="rtd">
|
|
@Html.DisplayTextFor(m => m.spnr2)
|
|
</td>
|
|
<td class="rtd">
|
|
@Html.DisplayTextFor(m => m.spr2) <br /> @Html.DisplayTextFor(m => m.sptime2)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd">财务</td>
|
|
<td class="rtd">
|
|
@Html.DisplayTextFor(m => m.spnr3)
|
|
@if (!string.IsNullOrEmpty(Model.fydh) && !string.IsNullOrEmpty(Model.bxr))
|
|
{
|
|
<p><b><a onclick="bxck()">【项目经费分解查看】</a></b></p>
|
|
}
|
|
</td>
|
|
<td class="rtd">
|
|
@Html.DisplayTextFor(m => m.spr3) <br /> @Html.DisplayTextFor(m => m.sptime3)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd">中心主任</td>
|
|
<td class="rtd">
|
|
@Html.DisplayTextFor(m => m.spnr4)
|
|
</td>
|
|
<td class="rtd">
|
|
@Html.DisplayTextFor(m => m.spr4) <br /> @Html.DisplayTextFor(m => m.sptime4)
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div style="text-align:center;margin-top:15px;margin-bottom:15px">
|
|
<a href="~/Content/fjsm.jpg" target="_blank">附件说明</a>
|
|
<input readonly="readonly" value="附件管理*" class="l-button" onclick="sqfile('none')" />
|
|
<input type="@Request.QueryString["type"]" value="通过" readonly class="l-button" onclick="save(1)" />
|
|
<input type="@Request.QueryString["type"]" value="驳回" readonly class="l-button" onclick="save(0)" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|