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

165 lines
6.2 KiB
Plaintext

@{
ViewBag.Title = "updatedate";
}
@model dccdc.Models.sqhb2Model
@section scripts{
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js?v=1.02")"></script>
<script type="text/javascript">
var openf2;
$(function () {
$("#table").val(getQueryString("table"));
$("#key").val(getQueryString("key"));
$("#search").click(function () {
window.location.replace("/sq2/updatedate?table=" + $("#table").val()+"&key=" + $("#key").val())
})
$("#sqsj2").ligerDateEditor();
$("#jbsj2").ligerDateEditor();
$("#jdsj2").ligerDateEditor();
$("#sptime12").ligerDateEditor();
$("#sptime22").ligerDateEditor();
$("#sptime32").ligerDateEditor();
})
function save() {
var sqsj = $("#sqsj2").val();
var jbsj = $("#jbsj2").val();
var jdsj = $("#jdsj2").val();
var sptime1 = $("#sptime12").val();
var sptime2 = $("#sptime22").val();
var sptime3 = $("#sptime32").val();
$.ajax({
url: "@Url.Action("saveupdatedate")", type: "post", dataType: "json", data: {
table: $("#table").val(), key: $("#key").val(), sqsj: sqsj, jbsj: jbsj, jdsj: jdsj, sptime1: sptime1, sptime2: sptime2, sptime3: sptime3
},
success: function (d) {
$.ligerDialog.closeWaitting();
if (d.State == "0") {
$.ligerDialog.error("操作失败!");
}
else {
$.ligerDialog.success("操作成功!");
//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>
<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">
<h3 style="text-align:center;margin:10px 0 10px 0">德城区疾控中心时间修改</h3>
<table class="t1" style="width:100%">
<tr>
<td class="ltd" style="width:120px">@Html.DropDownList("table", ViewData["tableD"] as SelectList, "----请选择----", new { @class = "l-text" })</td>
<td class="rtd" style="width:120px"><input id="key" class="l-text" placeholder="记录id" /></td>
<td class="rtd"><div id="search" class="l-button">查询</div></td>
</tr>
</table>
<table class="t2" style="width:100%" border="0">
<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">@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.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.sqdh)</td>
</tr>
</table>
<table class="t3" style="width:100%">
<tr>
<td class="ltd" width="200px">申请时间</td>
<td class="rtd">@Html.TextBoxFor(m => m.sqsj2, new { @class = "l-text" })</td>
</tr>
<tr>
<td class="ltd" width="200px">加班时间</td>
<td class="rtd">@Html.TextBoxFor(m => m.jbsj2, new { @class = "l-text" })</td>
</tr>
<tr>
<td class="ltd" width="200px">接待时间</td>
<td class="rtd">@Html.TextBoxFor(m => m.jdsj2, new { @class = "l-text" })</td>
</tr>
<tr>
<td class="ltd" width="200px">科室领导审批时间</td>
<td class="rtd">@Html.TextBoxFor(m => m.sptime12, new { @class = "l-text" })</td>
</tr>
<tr>
<td class="ltd" width="200px">分管领导审批时间</td>
<td class="rtd">@Html.TextBoxFor(m => m.sptime22, new { @class = "l-text" })</td>
</tr>
<tr>
<td class="ltd" width="200px">中心主任审批时间</td>
<td class="rtd">@Html.TextBoxFor(m => m.sptime32, new { @class = "l-text" })</td>
</tr>
</table>
<div style="text-align:center;margin-top:10px"><input type="@Request.QueryString["type"]" readonly="readonly" value="申请" class="l-button" onclick="save()" /></div>
</div>
<div style="display:none;"></div>