ComplianceServer/oldcode/WEB/Views/Res/SalesGroup/Guide.cshtml

56 lines
2.1 KiB
Plaintext

@using WX.CRM.WebHelper;
@{
ViewBag.Title = "资源类型";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<link href="~/Content/main.css" rel="stylesheet" />
<style>
.bodyDiv{height:100%}
</style>
<div style="margin: 0 auto; width:300px; padding-top:150px; font-size:25px;">
<div style="padding-bottom:20px;">
分配策略:<select id="AllocateType">
<option value=""></option>
<option value="PACK_RES_ALLOCATE.ManagerAllocate">按比例分配</option>
<option value="PACK_RES_ALLOCATE.AutoAllocate">按数量分配</option>
<option value="PACK_RES_ALLOCATE.WeekAllocate">周末分配</option>
</select>
</div>
<div style="padding-top:30px;">
<input type="button" class="btn btn-primary" style="width:220px; height:35px; font-size:20px;" id="hq" value="设置" />
</div>
</div>
<script type="text/javascript">
$(function () {
$("#hq").click(function () {
var allocateType = $("#AllocateType").val();
if (allocateType == "") {
alert("请选择一个分配策略!");
return;
}
if (allocateType == "PACK_RES_ALLOCATE.ManagerAllocate") {
window.location.href = "/Res/SalesGroup/SalesGroupDetails?id=" +@Request["id"]+"&strategy=" + allocateType;
}
else if (allocateType == "PACK_RES_ALLOCATE.AutoAllocate") {
window.location.href = "/Res/SalesGroup/set?id=" +@Request["id"]+"&strategy=" + allocateType;
}
else if (allocateType == "PACK_RES_ALLOCATE.WeekAllocate")
{
window.location.href = "/Res/SalesGroup/set?id=" +@Request["id"]+"&strategy=" + allocateType;
}
else {
alert("未能找到分配策略!");
}
});
});
function frameReturnByClose() {
$("#modalwindow").window('close');
}
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes) {
$.messageBox5s('提示', mes);
}
</script>