85 lines
4.1 KiB
Plaintext
85 lines
4.1 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "工单综合查询";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
@{string roleStr = ViewBag.roleCodes.ToString();}
|
|
|
|
<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_memoId" /></li>
|
|
<li>开始时间:@Html.WdatePickerText("txt_stime", DateTime.Now.ToString("yyyy-MM-dd 00:00:00"), true, "style='width:180px;'") </li>
|
|
<li>结束时间:@Html.WdatePickerText("txt_etime", DateTime.Now.ToString("yyyy-MM-dd 23:59:59"), true, "style='width:180px;'") </li>
|
|
@*<li>
|
|
@Html.Action("UserComBoxByRole", "Control", new { onLoadSucced = "onLoadSucced()", type = "0", controlName = "nb1", roleCodes = ViewBag.roleCodes, saledeptid = ViewBag.saleDeptId, salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid })
|
|
</li>*@
|
|
<li>@Html.Action("UserSSOComBox", "Control", new { currentRight = WX.CRM.WebHelper.InitRights.CONST_工单查询 })</li>
|
|
@if (roleStr.Contains("[ZJ]") || roleStr.Contains("[ZJZL]") || roleStr.Contains("[GLY]"))
|
|
{
|
|
<li>工号:<input type="text" name="txt_eid" style="width: 50px;" /></li>
|
|
}
|
|
<li>@Html.Action("QueryMemoTypeUC", "Control")</li>
|
|
@*<li><input type="checkbox" id="bangwx" name="bangwx" />去除已经绑定微信</li>*@
|
|
<li>
|
|
@*@Html.ToolButtonPlain("btnQuery" , "icon-search", "查询", false, "")*@
|
|
@Html.ToolButtonPlain("btnMore", "", "更多↓", false, "nstatus='hidden'")
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Ord/MemoQuery/GetMemoQueryHtml',
|
|
height: $(window).height() - 110,
|
|
loadNow: false,
|
|
//data: GetControlValue
|
|
});
|
|
function GetControlValue() {
|
|
return { saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val(), bangwx: $("#bangwx").prop('checked') };
|
|
}
|
|
$("#btnQuery").click(function () {//搜索按钮点击事件
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
});
|
|
function onLoadSucced() {
|
|
$('#tablist').tablegrid("Search");
|
|
}
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0' src='" + src + "'></iframe>";
|
|
}
|
|
function mmore(extmemoid) {
|
|
$("#modalwindow").html(GetIframeHtml('/Ord/MemoQuery/ServiceMemoExt?extmemoid=' + extmemoid));
|
|
$("#modalwindow").window({ title: '标签工单', width: 690, height: 500, iconCls: 'icon-add' }).window('open');
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
function export_click() {
|
|
var url = "/Ord/MemoQuery/ResourceIDExport?" + GetQueryStr() + "&saleDeptId=" + $("#nb1_uc_org_depts").val() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val() + "&bangwx=" + $("#bangwx").prop('checked') + "&Fireguid=" + GetGuid();
|
|
this.window.open(url);
|
|
}
|
|
function exportAll_click() {
|
|
var url = "/Ord/MemoQuery/AllResourceIDExport?" + GetQueryStr() + "&saleDeptId=" + $("#nb1_uc_org_depts").val() + "&groupId=" + $("#nb1_uc_org_groups").val() + "&userId=" + $("#nb1_uc_org_ids").val() + "&bangwx=" + $("#bangwx").prop('checked') + "&Fireguid=" + GetGuid();
|
|
this.window.open(url);
|
|
}
|
|
</script>
|