tijian_tieying/web/dccdc/Views/sq2/sqfyzchqMessage.cshtml

73 lines
2.5 KiB
Plaintext
Raw Normal View History

2025-02-20 12:14:39 +08:00

@{
ViewBag.Title = "sqfyzchqMessage";
}
@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: 160, centerBottomHeight: 60 });
$("#sqsj").ligerDateEditor({ format: "yyyy/MM/dd hh:mm:ss", showTime: true });
//$("#sqsj").ligerGetDateEditorManager().setValue(fun_date(0));
})
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("正在进行请稍后……");
}
});
}
</script>
}
<div class="l-clear"></div>
<div id="layout1">
<div position="center" title="明细">
@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 />
}
}
</div>
<div position="centerbottom">
@Html.HiddenFor(m => m.id)
<table class="t1" style="width:100%">
<tr>
<td class="ltd" width="50px">审批意见</td>
<td class="rtd" width="200px">@Html.TextArea("yj", new { @cols = "40", @rows = "2" })</td>
<td class="rtd" width="200px">
<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>