tijian_tieying/web/dccdc/Views/jingfei/xmjfsrMessageNew.cshtml
2025-02-20 12:14:39 +08:00

160 lines
5.9 KiB
Plaintext

@{
ViewBag.Title = "xmjfsrMessageNew";
}
@model dccdc.Models.xmjfsrModel
@section scripts{
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
<script type="text/javascript">
$(function () {
$("#layout1").ligerLayout({ leftWidth: 300, topHeight: 220 });
$("#dzsj2").ligerDateEditor();
$("#ksmcs").bind("click", function () {
dia = $.ligerDialog.open({
title: "选择科室",
url: "@Url.Action("selectDepts", "OA")?selected=" + $("#ksids").val(),
width: 660,
height: 360,
isHidden: false
});
});
});
var dia;
function selectbm(ids, names) {
$("#ksids").val(ids)
$("#ksmcs").val(names)
dia.close();
}
function save() {
var id = $("#id").val();
var jfid = $("#jfid").val();
var jfmc = $("#jfid option:checked").text();
var nf = $("#nf").val();
var srly = $("#srly").val();
var srje = $("#srje").val();
var yj = $("#yj").val();
var dzsj = $("#dzsj2").val();
var ksids = $("#ksids").val();
var ksmcs = $("#ksmcs").val();
var zt = $("#zt").val();
if (!jfid || !nf || !srly || !srje || !yj || !dzsj || !ksids || !zt) {
$.ligerDialog.error("项目经费、年份、收入来源、收入金额、依据、到账时间、使用科室、状态必填!")
return;
}
if (filecount == 0) {
$.ligerDialog.error("附件必填!")
return;
}
$.ajax({
url: "@Url.Action("savexmjfsr")", type: "post", dataType: "json", data: { id: id, jfid: jfid, nf: nf, srly: srly, srje: srje, yj: yj, dzsj: dzsj, ksids: ksids, ksmcs: ksmcs, zt: zt },
success: function (d) {
$.ligerDialog.closeWaitting();
if (d.State == "0") {
$.ligerDialog.error(d.Message);
}
else {
parent.init();
//window.opener.init();
//window.opener = null;
//window.close();
}
},
beforeSend: function () {
$.ligerDialog.waitting("正在进行请稍后……");
}
});
}
//附件
function sqfile(show) {
var openf3 = $.ligerDialog.open({
url: "@Url.Action("sqfile","sq2")?show=" + show + "&type=" + encodeURIComponent("经费收入") + "&sqid=" + @Model.id,
title: "附件管理",
width: 700,
height: 300,
allowClose: false
});
}
//附件反馈 (必填)
var filecount = @ViewBag.filecount;
</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 id="layout1">
<div style="width:700px; margin:0 auto">
@Html.HiddenFor(m => m.id)
<h3 style="text-align:center;margin:10px 0 10px 0">德城区疾控中心经费收入登记</h3>
<table class="t3" style="width:100%">
<tr>
<td class="ltd" width="200px">项目经费</td>
<td class="rtd">@Html.DropDownListFor(m => m.jfid, ViewData["xmjfList"] as SelectList, "----请选择----", new { @class = "l-text" })*</td>
</tr>
<tr>
<td class="ltd">年份:</td>
<td class="rtd">@Html.TextBoxFor(m => m.nf, new { @class = "l-text" })*</td>
</tr>
<tr>
<td class="ltd">收入金额:</td>
<td class="rtd">@Html.TextBoxFor(m => m.srje, new { @class = "l-text l-text-field-number", @type = "number" })*</td>
</tr>
<tr>
<td class="ltd">收入来源:</td>
<td class="rtd">@Html.TextAreaFor(m => m.srly, new { @rows = "3", @style = "width:400px" })*</td>
</tr>
<tr>
<td class="ltd">依据:</td>
<td class="rtd">@Html.TextAreaFor(m => m.yj, new { @rows = "3", @style = "width:400px" })*</td>
</tr>
<tr>
<td class="ltd">到账时间</td>
<td class="rtd">@Html.TextBoxFor(m => m.dzsj2, new { @class = "l-text" })</td>
</tr>
<tr>
<td class="ltd">使用科室</td>
<td class="rtd">
@Html.HiddenFor(m => m.ksids)
@Html.TextBoxFor(m => m.ksmcs, new { @class = "l-text", @style = "width:400px", @readonly = "readonly" })
</td>
</tr>
<tr>
<td class="ltd">使用状态</td>
<td class="rtd">@Html.DropDownListFor(m => m.zt, ViewData["ztlist"] as SelectList, "----请选择----")*</td>
</tr>
</table>
<div style="text-align:center;margin-top:10px">
<a href="~/Content/fjsm.jpg" target="_blank">附件说明</a>
<input type="@Request.QueryString["type"]" readonly="readonly" value="附件管理*" class="l-button" onclick="sqfile('')" />
<input type="@Request.QueryString["type"]" readonly="readonly" value="申请" class="l-button" onclick="save()" />
</div>
</div>
</div>
<div style="display:none;"></div>