131 lines
5.5 KiB
Plaintext
131 lines
5.5 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "szyd_zjsysqMessage";
|
|
}
|
|
|
|
@model dccdc.Models.szyd_zjsysqModel
|
|
@section scripts{
|
|
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#layout1").ligerLayout({ topHeight: 160 });
|
|
$("#sqsj").ligerDateEditor({ format: "yyyy/MM/dd hh:mm:ss", showTime: true });
|
|
//$("#sqsj").ligerGetDateEditorManager().setValue(fun_date(0));
|
|
$("#yjsysj").ligerDateEditor({ format: "yyyy/MM/dd hh:mm:ss", showTime: true });
|
|
//$("#yjsysj").ligerGetDateEditorManager().setValue(fun_date(0));
|
|
|
|
})
|
|
|
|
function save() {
|
|
var id = $("#id").val();
|
|
var je = $("#je").val();
|
|
var nr = $("#nr").val();
|
|
var zjxz = "";
|
|
var fyly1 = $("#fyly1:checked").val();
|
|
var fyly2 = $("#fyly2:checked").val();
|
|
var cgfs = $("#cgfs").val();
|
|
var yjsysj = $("#yjsysj").val();
|
|
if (!je || !cgfs) {
|
|
$.ligerDialog.error("请填写详细信息!")
|
|
return;
|
|
}
|
|
|
|
var del = GetQueryString("del");
|
|
$.ajax({
|
|
url: "@Url.Action("saveszydsq")", type: "post", dataType: "json", data: { id: id, je: je, nr: nr, zjxz: zjxz, fyly1: fyly1, fyly2: fyly2, cgfs: cgfs, yjsysj: yjsysj, del: del },
|
|
success: function (d) {
|
|
$.ligerDialog.closeWaitting();
|
|
if (d.State == "0") {
|
|
$.ligerDialog.error(d.Message);
|
|
}
|
|
else {
|
|
if (del) {
|
|
if (window.parent.selectedData) {
|
|
window.parent.selectedData("szyd", d.id);
|
|
}
|
|
}
|
|
else {
|
|
parent.init();
|
|
}
|
|
}
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在进行请稍后……");
|
|
}
|
|
});
|
|
}
|
|
|
|
//js对象深度克隆
|
|
var deepCopy = function (source) {
|
|
var result = {};
|
|
for (var key in source) {
|
|
result[key] = typeof source[key] === 'object' ? deepCopy(source[key]) : source[key];
|
|
}
|
|
return result;
|
|
}
|
|
|
|
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 position="top">
|
|
@Html.HiddenFor(m => m.id)
|
|
<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.TextBoxFor(m => m.sqdh, new { @class = "l-text", @readonly = "readonly" })</td>
|
|
<td class="ltd" width="70px">申请状态</td>
|
|
<td class="rtd" width="150px">@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.TextBoxFor(m => m.je, new { @class = "l-text l-text-field-number", @type = "number" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="70px">费用来源</td>
|
|
<td class="rtd" width="150px">@Html.CheckBoxFor(m => m.fyly1)自有资金 @Html.CheckBoxFor(m => m.fyly2)项目经费</td>
|
|
<td class="ltd" width="70px">结算方式</td>
|
|
<td class="rtd" width="150px">@Html.DropDownList("cgfs", ViewBag.cgfsD as SelectList, "----请选择----", new { @class = "l-text" })</td>
|
|
<td class="ltd" width="70px">使用时间</td>
|
|
<td class="rtd" width="150px">@Html.TextBoxFor(m => m.yjsysj, new { @class = "l-text" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ltd" width="70px">申请内容</td>
|
|
<td class="rtd" colspan="3">@Html.TextAreaFor(m => m.nr, 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()" /></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div style="display:none;"></div>
|
|
<div class="dispReport">
|
|
<object classid="clsid:F6A015E2-092A-4006-93DA-4CBDE3AFF4B8" id="window.top.Formium.external.Print" width="300" height="50"></object>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|