75 lines
3.4 KiB
Plaintext
75 lines
3.4 KiB
Plaintext
@using WX.CRM.WebHelper;
|
||
@{
|
||
ViewBag.Title = "bas_agent";
|
||
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_pici" /> </li>
|
||
<li>@Html.Action("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = ViewBag.saleDeptId, salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = "" })</li>
|
||
<li>分配时间:@Html.WdatePickerText("txt_sTime", DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"))-@Html.WdatePickerText("txt_eTime", DateTime.Now.ToString("yyyy-MM-dd"))</li>
|
||
<li>分类:@Html.DropDownList("slt_category",ViewBag.category as IEnumerable<SelectListItem>)</li>
|
||
<li>客户ID:<input type="text" name="txt_resid" /></li>
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.gridTable)
|
||
</div>
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
$('#tablist').tablegrid({
|
||
url: '/Res/Distribute/GetHtmlList',
|
||
height: $(window).height() - 110,
|
||
loadNow: false,
|
||
data: GetControlValue
|
||
});
|
||
$("#btnQuery").click(function () {//搜索按钮点击事件
|
||
$('#tablist').tablegrid("Search");
|
||
});
|
||
$(window).resize(function () {//自动适应大小
|
||
$('#tablist').tablegrid('resize', {
|
||
height: $(window).height() - 110
|
||
});
|
||
});
|
||
});
|
||
function frameReturnByReload(flag) {
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
function GetControlValue() {
|
||
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val() };
|
||
}
|
||
|
||
function onLoadSucced() {
|
||
$('#tablist').tablegrid("Search");
|
||
}
|
||
</script>
|
||
@*ToolBar事件处理*@
|
||
<script type="text/javascript">
|
||
function GetIframeHtml(src) {
|
||
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
||
}
|
||
function ResDetails_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
$("#modalwindow").html(GetIframeHtml("/Res/Distribute/DistributeDetail?id=" + row.map_PKID + "&Ieguid=" + GetGuid()));
|
||
$("#modalwindow").window({ title: '资源明细', width: 700, height: 430, iconCls: 'icon-details' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
function ExportDetails_Click() {
|
||
var qls = "&saleDeptId=" + $("#nb1_uc_org_depts").val() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val();
|
||
window.open("/Res/Distribute/ExportDistributeDetails?Ieguid=" + GetGuid() + qls + "&" + GetQueryStr());
|
||
}
|
||
@*function ExportPhone_Click() {
|
||
var row = $('#tablist').tablegrid('getSelected');
|
||
if (row != null) {
|
||
window.open("/Res/Distribute/ExportTxtMobile?DISTRIBUTEID=" + row.map_PKID + "&Ieguid=" + GetGuid());
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}*@
|
||
|
||
</script>
|