199 lines
9.5 KiB
Plaintext
199 lines
9.5 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "sqfyzcshMessage";
|
|
}
|
|
|
|
@model dccdc.Models.sqfyzcModel
|
|
@section scripts{
|
|
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#layout1").ligerLayout({ topHeight: 130, centerBottomHeight: 60 });
|
|
$("#layout2").ligerLayout({ rightWidth: 400, centerBottomHeight: 230 });
|
|
$("#sqsj").ligerDateEditor({ format: "yyyy/MM/dd hh:mm:ss", showTime: true });
|
|
//$("#sqsj").ligerGetDateEditorManager().setValue(fun_date(0));
|
|
|
|
$("#grid2").ligerGrid({
|
|
height: "100%",
|
|
columns: [
|
|
//{ display: "经办人", name: "title", align: "left", width: 60, type: 'string', editor: { type: 'string' } },
|
|
{ display: "业务内容", name: "content", align: "left", width: 00, type: 'string', editor: { type: 'string' } },
|
|
//{ display: "科目", name: "kmmc", align: "left", width: 80, type: 'string' },
|
|
{ display: "金额", name: "je", align: "right", width: 60, type: 'float', editor: { type: 'float' } }
|
|
],
|
|
url: "@Url.Action("getsqfyzcmx")?key=0000000&id=@Request.QueryString["id"]",
|
|
rownumber: true,
|
|
usePager: false
|
|
});
|
|
});
|
|
|
|
function message(type) {
|
|
var title = "";
|
|
var url = "";
|
|
if (type == 1) {
|
|
if ($("#fydh").val() == "") {
|
|
$.ligerDialog.error("无单号!")
|
|
return;
|
|
}
|
|
title = "项目经费申请内容";
|
|
url = "@Url.Action("sqMessage", "sq2")?type=hidden&del=1&id=" + $("#fydh").val();
|
|
}
|
|
if (type == 2) {
|
|
if ($("#fydh2").val() == "") {
|
|
$.ligerDialog.error("无单号!")
|
|
return;
|
|
}
|
|
title = "三重一大申请内容";
|
|
url = "@Url.Action("szyd_zjsysqMessage", "sq2")?type=hidden&del=1&id=" + $("#fydh2").val();
|
|
}
|
|
|
|
openf2 = $.ligerDialog.open({
|
|
title: title,
|
|
url: url,
|
|
width: 720,
|
|
height: 400
|
|
});
|
|
}
|
|
|
|
function save(ty) {
|
|
var id = $("#id").val();
|
|
var yj = $("#yj").val();
|
|
if (!yj) {
|
|
$.ligerDialog.error("审批意见必填!")
|
|
return;
|
|
}
|
|
$.ajax({
|
|
url: "@Url.Action("savesqfyzcsh")", 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();
|
|
}
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在进行请稍后……");
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
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>
|
|
}
|
|
|
|
<div class="l-clear"></div>
|
|
<div id="layout1">
|
|
<div position="center" title="明细 <a onclick='message(1)'>查看项目经费:@Html.DisplayTextFor(m => m.fydh) </a> <a onclick='message(2)'>查看三重一大:@Html.DisplayTextFor(m => m.fydh2)</a>">
|
|
<div id="layout2">
|
|
<div position="center">
|
|
<div id="grid2"></div>
|
|
</div>
|
|
<div position="right" title="审批过程">
|
|
@if (!string.IsNullOrEmpty(Model.spr1))
|
|
{
|
|
<img src="@Url.Content("~/ligerUI/skins/icons/memeber.gif")" />
|
|
@Html.DisplayTextFor(m => m.spr1) <span> </span> @Html.DisplayTextFor(m => m.sptime1) <span> </span> @Html.DisplayTextFor(m => m.spnr1)<br />
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.spr2))
|
|
{
|
|
<img src="@Url.Content("~/ligerUI/skins/icons/memeber.gif")" />
|
|
@Html.DisplayTextFor(m => m.spr2) <span> </span> @Html.DisplayTextFor(m => m.sptime2) <span> </span> @Html.DisplayTextFor(m => m.spnr2)<br />
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.spr3))
|
|
{
|
|
<img src="@Url.Content("~/ligerUI/skins/icons/memeber.gif")" />
|
|
@Html.DisplayTextFor(m => m.spr3) <span> </span> @Html.DisplayTextFor(m => m.sptime3) <span> </span> @Html.DisplayTextFor(m => m.spnr3)<br />
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.mx))
|
|
{
|
|
foreach (string item in Model.mx.Split(new string[] { "<br/>" }, StringSplitOptions.RemoveEmptyEntries))
|
|
{
|
|
<img src="@Url.Content("~/ligerUI/skins/icons/memeber.gif")" />
|
|
@item <br />
|
|
}
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.spr5))
|
|
{
|
|
<img src="@Url.Content("~/ligerUI/skins/icons/memeber.gif")" />
|
|
@Html.DisplayTextFor(m => m.spr5) <span> </span> @Html.DisplayTextFor(m => m.sptime5) <span> </span> @Html.DisplayTextFor(m => m.spnr5)<br />
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.spr6))
|
|
{
|
|
<img src="@Url.Content("~/ligerUI/skins/icons/memeber.gif")" />
|
|
@Html.DisplayTextFor(m => m.spr6) <span> </span> @Html.DisplayTextFor(m => m.sptime6) <span> </span> @Html.DisplayTextFor(m => m.spnr6)<br />
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div position="top">
|
|
@Html.HiddenFor(m => m.id)
|
|
@Html.HiddenFor(m => m.fydh)
|
|
@Html.HiddenFor(m => m.fydh2)
|
|
@Html.HiddenFor(m => m.dydh)
|
|
@Html.HiddenFor(m => m.dydh2)
|
|
@Html.HiddenFor(m => m.dydh3)
|
|
@Html.HiddenFor(m => m.dydh4)
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td class="ltd" width="70px">申请科室</td>
|
|
<td class="rtd" width="150px">@Html.TextBoxFor(m => m.ksmc, new { @class = "l-text", @readonly = "readonly" })</td>
|
|
<td class="ltd" width="70px">申请人</td>
|
|
<td class="rtd" width="150px">@Html.TextBoxFor(m => m.sqr, new { @class = "l-text", @readonly = "readonly" })</td>
|
|
<td class="ltd" width="70px">申请日期</td>
|
|
<td class="rtd" width="150px">@Html.TextBoxFor(m => m.sqsj, new { @class = "l-text", @readonly = "readonly" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="70px">支出分类</td>
|
|
<td class="rtd" width="150px">@Html.DropDownListFor(m => m.sort, ViewBag.sortD as SelectList, "----请选择----", new { @class = "l-text", @disabled = "disabled" })</td>
|
|
<td class="ltd" width="70px">费用来源</td>
|
|
<td class="rtd" width="150px">
|
|
@Html.CheckBoxFor(m => m.fyly1, new { @disabled = "disabled" })自有资金 @Html.CheckBoxFor(m => m.fyly2, new { @disabled = "disabled" })项目经费
|
|
</td>
|
|
<td class="ltd" width="70px">申请金额</td>
|
|
<td class="rtd" width="150px">@Html.TextBoxFor(m => m.je, new { @class = "l-text l-text-field-number", @type = "number", @readonly = "readonly" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="70px">申请单号<br />申请状态</td>
|
|
<td class="rtd" width="150px">@Html.TextBoxFor(m => m.sqdh, new { @class = "l-text", @readonly = "readonly" })<br />@Html.DropDownListFor(m => m.zt, ViewBag.ztD as SelectList, "----请选择----", new { @class = "l-text", @disabled = "disabled" })</td>
|
|
<td class="ltd" width="70px">备注原因</td>
|
|
<td class="rtd" width="150px">@Html.TextAreaFor(m => m.bz, new { cols = "20", rows = "2", @readonly = "readonly" })</td>
|
|
<td class="ltd" width="70px"></td>
|
|
<td class="rtd" width="150px">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div position="centerbottom">
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td class="ltd" width="70px">审批意见</td>
|
|
<td class="rtd" width="370px">@Html.TextArea("yj", new { @cols = "60", @rows = "2" })</td>
|
|
<td class="ltd" width="70px"></td>
|
|
<td class="rtd" width="150px">
|
|
<input type="@Request.QueryString["type"]" value="通过" style="height:50px" class="l-button" onclick="save(1)" />
|
|
<input type="@Request.QueryString["type"]" value="驳回" style="height:50px" class="l-button" onclick="save(0)" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|