TG.WXCRM.V4/WEB/Views/TS/WebChatAssistant/SendToPhone.cshtml

121 lines
4.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using WX.CRM.WebHelper;
@using WX.CRM.Model
@using WX.CRM.WEB.Handler
@model WX.CRM.Model.MAP.WX_SendResToPhone
@{
ViewBag.Title = "提交推送";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<style>
.hiddenClass {
display: none;
}
.attention {
color: red;
padding: 5px;
}
</style>
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
var hllomsg = $("#HolloMsg").val();
if (hllomsg.length < 4) {
alert("字数不能少于4个字");
return;
}
$.r_ajax({
url: "/TS/WebChatAssistant/SendToPhoneSave",
type: "Post",
data: $("#CreateForm").serialize(),
dataType: "json",
loading: true,
success: function (data) {
if (data.type == 1) {
window.parent.frameReturnByMes('发送成功!');
window.parent.ClearCookie();
window.parent.frameReturnByReload(true);
window.parent.frameReturnByClose();
}
else {
window.parent.frameReturnByMes(data.message);
}
}
});
}
return false;
});
$("#timeType").change(function () {
var sltValue = $(this).val();
if (sltValue == "2") {
$("#hiddTime").removeClass("hiddenClass");
} else {
$("#hiddTime").addClass("hiddenClass");
}
});
});
</script>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
<div class="formContent">
@using (Html.BeginForm("Edit", "company", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable ">
<tbody>
<tr>
<td style="width:100px;">
工作微信号:
</td>
<td style="width:310px">
@Html.DropDownListFor(m => m.Alias, ViewBag.MyAlias as List<SelectListItem>)
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.Alias)
</td>
</tr>
<tr>
<td style="width:100px;">
打招呼信息:
</td>
<td style="width:310px">
@Html.TextAreaFor(m=>m.HolloMsg,new { rows = "3",cols = "30" })
@*<textarea rows="3" cols="30"></textarea>*@
限定30个字
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.HolloMsg)
</td>
</tr>
<tr>
<td style="width:100px;">
执行时间:
</td>
<td style="width:310px">
<select name="timeType" id="timeType">
<option value="1">2~3分钟左右执行</option>
<option value="2">自定义时间</option>
</select>
<span id="hiddTime" class="hiddenClass">
<input name="exe_date" type="text" style="width:100px;" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="@Html.Raw(DateTime.Now.ToString("yyyy-MM-dd"))" />
<input name="exe_time" type="text" style="width:60px;" class="Wdate" onclick="WdatePicker({dateFmt:'HH:mm'})" value="@Html.Raw(DateTime.Now.ToString("HH:mm"))" />
</span>
</td>
<td width="120px">
@*@Html.ValidationMessageFor(m => m.ExeTime)*@
</td>
</tr>
</tbody>
</table>
<p class="attention">注意事项:</p>
<p class="attention">1.自填资源每次不要超过10个每次间隔请大于20分钟</p>
<p class="attention">2.手机执行加人操作是,请不要在动手机</p>
<p class="attention">3.打招呼消息必填,请自己填写</p>
}
</div>