113 lines
3.6 KiB
Plaintext
113 lines
3.6 KiB
Plaintext
@using WX.CRM.WebHelper
|
||
|
||
@{
|
||
ViewBag.Title = "软件客户信息查询";
|
||
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
||
}
|
||
<div class="mvctool">
|
||
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
||
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
||
</div>
|
||
|
||
<div class="bas_datagrid">
|
||
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
||
<ul class="toolBar_ul">
|
||
<li>软件用户名:<input type="text" name="txt_SoftName" style="width: 150px" /> </li>
|
||
<li>客户ID:<input type="text" name="txt_ResID" style="width: 160px" /> </li>
|
||
|
||
<li>
|
||
注册时间:@Html.WdatePickerText("txt_ctime1", "")-@Html.WdatePickerText("txt_ctime2", "")
|
||
</li>
|
||
<li>
|
||
@Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.GroupList)
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
|
||
$(function () {
|
||
$('#tablist').tablegrid({
|
||
url: '/Soft/SoftUser/Index',
|
||
height: $(window).height() - 130,
|
||
loadNow: true,
|
||
isPage: true
|
||
});
|
||
function GetControlValue() {
|
||
//return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val() };
|
||
}
|
||
$("#btnQuery").click(function () {
|
||
$('#tablist').tablegrid("Search");
|
||
});
|
||
});
|
||
function ShowResDetial(url) {
|
||
window.parent.ChildAddTab("客户详细", url, "");
|
||
}
|
||
function frameReturnByClose() {
|
||
$("#modalwindow").window('close');
|
||
}
|
||
|
||
function frameReturnByReload(flag) {
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
|
||
function frameReturnByMes(mes) {
|
||
$.messageBox5s('提示', mes);
|
||
}
|
||
function GetIframeHtml(src) {
|
||
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
||
}
|
||
//获取datagrid头部及字段
|
||
function getDataGridHeader() {
|
||
var columns = $('#tablist').tablegrid("getHead");
|
||
return columns;
|
||
}
|
||
function Export_Click() {
|
||
$("#modalwindow").html(GetIframeHtml("/Control/ExcelExport?Query=" + encodeURIComponent("/Soft/SoftUser/Export?" + GetQueryStr())));
|
||
$("#modalwindow").window({ title: '导出', width: 480, height: 300, iconCls: 'icon-export' }).window('open');
|
||
}
|
||
|
||
|
||
function ResetPwd(userName, resid, obj) {
|
||
$(obj).attr('disabled', true);
|
||
$(obj).val(180);
|
||
//倒计时显示
|
||
var oInterval = setInterval(function CountDown(obj) {
|
||
if ($(obj).val() != "重置密码") {
|
||
var count = $(obj).val();
|
||
count--;
|
||
if (count != 0) {
|
||
$(obj).val(count);
|
||
} else {
|
||
clearInterval(oInterval);
|
||
$(obj).attr('disabled', false);
|
||
$(obj).val("重置密码");
|
||
};
|
||
}
|
||
|
||
}, 1000, obj);
|
||
|
||
$.r_ajax({
|
||
url: "/Soft/SoftUser/ResetPassword",
|
||
type: "Post",
|
||
data: { userName: userName, resid: resid },
|
||
dataType: "json",
|
||
loading: true,
|
||
success: function (data) {
|
||
if (data.type) {
|
||
alert("密码重置成功!");
|
||
// window.frameReturnByMes(data.message);
|
||
}
|
||
else {
|
||
alert(data.message);
|
||
// window.frameReturnByMes(data.message);
|
||
}
|
||
}
|
||
});
|
||
|
||
}
|
||
|
||
</script>
|