100 lines
3.8 KiB
Plaintext
100 lines
3.8 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@using WX.CRM.Common;
|
|
@model WX.CRM.WEB.ViewModel.TZGW.RoomCreateModel
|
|
@{
|
|
ViewBag.Title = "创建ROOM";
|
|
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
|
|
|
|
}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#btnSave").click(function () {
|
|
var $this = $(this);
|
|
$this.hide();
|
|
if ($("#CreateForm").valid()) {
|
|
$.r_ajax({
|
|
url: "/TZGW/RoomApplay/EditRoomApplay",
|
|
type: "Post",
|
|
data: $("#CreateForm").serialize(),
|
|
dataType: "json",
|
|
loading: true,
|
|
success: function (data) {
|
|
$this.show();
|
|
if (data.type == 1) {
|
|
window.parent.frameReturnByMes(data.message);
|
|
window.parent.frameReturnByReload(true);
|
|
window.parent.frameReturnByClose();
|
|
}
|
|
else {
|
|
window.parent.frameReturnByMes(data.message);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<div class="mvctool bgb">
|
|
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
|
|
</div>
|
|
<div class="formContent">
|
|
@using (Html.BeginForm("EditRoomApplay", "RoomApplay", null, FormMethod.Post, new { Id = "CreateForm" }))
|
|
{
|
|
@Html.ValidationSummary(true)
|
|
<table class="fromEditTable">
|
|
<tbody>
|
|
<tr>
|
|
<td style="width:65px;">
|
|
交易代码:
|
|
</td>
|
|
<td style="width:220px">
|
|
@Html.DisplayFor(m => m.tradecode)
|
|
@Html.HiddenFor(m => m.tradecode)
|
|
@Html.HiddenFor(m => m.pkid)
|
|
</td>
|
|
<td style="width:65px;">
|
|
软件用户名:
|
|
</td>
|
|
<td style="width:220px">
|
|
@*@Html.DisplayFor(m => m.username)*@
|
|
@Html.Raw(PhoneHelper.FormatPhoneUserName(Utility.DecryptUrlDecode(Model.username)))
|
|
@Html.HiddenFor(m => m.username)
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td style="width:65px;">
|
|
房间:
|
|
</td>
|
|
<td style="width:220px">
|
|
@Html.DropDownListFor(m => m.roomcode, ViewBag.RoomList as List<SelectListItem>)
|
|
</td>
|
|
<td style="width:65px;">
|
|
权限时间:
|
|
</td>
|
|
<td style="width:140px">
|
|
@Html.DisplayFor(m => m.timestart)~
|
|
@Html.DisplayFor(m => m.timeend)
|
|
@Html.HiddenFor(m => m.timestart)
|
|
@Html.HiddenFor(m => m.timeend)
|
|
@*@Html.TextBoxFor(m => m.timestart, new { @class = "Wdate", onclick = "WdatePicker({dateFmt:'yyyy-MM-dd'})", @style = "width:90px;" })~
|
|
@Html.TextBoxFor(m => m.timeend, new { @class = "Wdate", onclick = "WdatePicker({dateFmt:'yyyy-MM-dd'})", @style = "width:90px;" })*@
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td style="width:65px;">
|
|
备注:
|
|
</td>
|
|
<td style="width:140px">
|
|
@Html.TextAreaFor(m => m.applaymemo)
|
|
</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div> |