| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="workSearch.aspx.cs" Inherits="JAnCallCenter.WorkSearch.workSearch" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>工单查询</title>
- <base target="_self" />
- <link href="../_common/styles/global.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/dialogs.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/select.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/form.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/controls.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/nav.css" rel="stylesheet" type="text/css" />
- <link href="../_grid/grid.css" rel="stylesheet" type="text/css" />
- <link href="../_grid/AppGrid.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/menu.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/tabs.css" rel="stylesheet" type="text/css" />
- <script src="../_common/scripts/Global.js" type="text/javascript"></script>
- <script src="../_common/scripts/windowinformation.js" type="text/javascript"></script>
- <script src="../_common/scripts/Util.js" type="text/javascript"></script>
- <script src="../_grid/action.js" type="text/javascript"></script>
- <script src="../_javascripts/globalctrl.js" type="text/javascript"></script>
- <script src="../_common/scripts/calendar.js" type="text/javascript"></script>
- <script src="../_javascripts/JS/search.js" type="text/javascript"></script>
- <style type="text/css">
- .wbox
- {
- width: 100%;
- height: 100%;
- border: 1px solid #849bba;
- background: #FFF;
- padding: 1px;
- }
- .lbox
- {
- width: 100%;
- height: 100%;
- padding-bottom: 4px;
- padding-left: 4px;
- padding-right: 4px;
- background: #c6d4e4;
- }
- .tbox
- {
- height: 25px;
- color: #15428b;
- font-size: 14px;
- cursor: move;
- margin: 0px;
- padding: 0px;
- padding-left: 5px;
- line-height: 25px; *overflow:hidden;}
- .tbox img
- {
- float: right;
- margin-right: 3px;
- margin-top: 5px; *top:-28px;*position:relative;}
- .nrbox
- {
- width: 100%;
- height: auto;
- border: 1px solid #849bba;
- background: #dfe8f6;
- margin: 0px auto;
- }
- </style>
- <script language="javascript">
- var divmark = "";
- divmark += "<div id=\"divLock\" style=\"z-index:1;background-color:#AAA;filter:alpha(opacity=50);position: absolute;width:expression(this.parentNode.scrollWidth);top:expression(this.parentNode.scrollTop); left:0; height:100%;right:0; bottom:0; display:none;\"></div>";
- divmark += "<div id=\"divMessageBox\" onmousedown=\"MM_dragLayer('divMessageBox','',0,0,0,0,true,false,-1,-1,-1,-1,false,false,0,'',false,'')\" style=\"display:none;position: absolute;top:expression(this.parentNode.scrollHeight/2-100);left:expression(this.parentNode.scrollWidth/2-100);z-index:2;\">";
- divmark += "<div class=\"wbox\"><div class=\"lbox\"><h1 class=\"tbox\"><span id=\"spanTitle\"></span><img src=\"../_images/dialogclose.gif\" style=\"cursor:hand;\" onclick=\"MessageBoxClose();\" /></h1>";
- divmark += "<div id=\"divContent\" class=\"nrbox\"></div></div></div></div>";
- document.write(divmark);
- </script>
- <script language="javascript" type="text/javascript">
- var pageIndex = "";
- var frmId = "";
- var win;
- var winmessage;
- var strWhere = "";
- function OpenMessage(strid, strtitle, strmessage, strwidth, btnstyle, _height) {
- var btnstr = "";
- switch (btnstyle) {
- case 0:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();'>确 定</button></div>";
- break;
- case 1:
- btnstr = "<br /><div style='padding-bottom:15px; text-align:center;'><img alt='加载数据中' style='width:180px;' src='../_imgs/inprogress.gif'></div><br />";
- break;
- case 2:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();pagination(1);'>确 定</button></div>";
- break;
- case 3:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();LoadingData();'>确 定</button></div>";
- break;
- case 4:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();DeleteOpt();'>确 定</button> <button style='width: 65px;' onclick='MessageBoxClose();'>取 消</button></div>";
- break;
- default:
- break;
- }
- if (_height != null) {
- strmessage = "<div style='padding:0px;'>" + strmessage + "</div>" + btnstr;
- document.getElementById("divMessageBox").style.height = _height;
- }
- else {
- strmessage = "<div style='padding:10px;'>" + strmessage + "</div>" + btnstr;
- document.getElementById("divMessageBox").style.height = 50;
- _height = 120;
- }
- document.getElementById("spanTitle").innerHTML = strtitle;
- document.getElementById("divContent").innerHTML = strmessage;
- document.getElementById("divMessageBox").style.width = strwidth;
- try {
- document.getElementById("divMessageBox").style.top = (document.body.clientHeight - _height) / 2;
- document.getElementById("divMessageBox").style.left = (document.body.clientWidth - strwidth) / 2;
- }
- catch (e)
- { }
- document.getElementById("divLock").style.display = "block";
- document.getElementById("divMessageBox").style.display = "block";
- }
- function OpenWindowPage(_title, _id, _width, _height, _url) {
- var html = "<iframe id='" + _id + "' src='" + _url + "' style='width:100%; height:" + _height + ";'></iframe>";
- OpenMessage(_id, _title, html, _width, -1, _height);
- }
- function MessageBoxClose() {
- document.getElementById("divLock").style.display = "none";
- document.getElementById("divMessageBox").style.display = "none";
- }
- function CloseWindowPage(type) {
- MessageBoxClose();
- }
- function Init() {
-
- frmId = top.stage.GetFramName();
- pagination('1');
- }
- function pagination(index) {
- pageIndex = index;
- LoadingData();
- }
- function GetWhere() {
- strWhere = "";
- if (document.getElementById("cuscode").value != "") {
- strWhere += " and cuscode like '%" + document.getElementById("cuscode").value + "%'";
- }
- if (document.getElementById("cusname").value != "") {
- strWhere += " and cusname like '%" + document.getElementById("cusname").value + "%'";
- }
- if (document.getElementById("salman").value != "") {
- strWhere += " and salman like '%" + document.getElementById("salman").value + "%'";
- }
- if (document.getElementById("drpWorkType").value != "-1") {
- strWhere += " and worktype=" + document.getElementById("drpWorkType").value;
- }
- if (document.getElementById("content").value != "") {
- strWhere += " and workid like '%" + document.getElementById("content").value + "%'";
- }
- if (document.getElementById("txtBgnTime").value != "") {
- strWhere += " and addtime >= to_date('" + document.getElementById('txtBgnTime').value + " 00:00:00', 'yyyy-mm-dd hh24:mi:ss')";
- }
- if (document.getElementById("txtEndTime").value != "") {
- strWhere += " and addtime <= to_date('" + document.getElementById('txtEndTime').value + " 23:59:59', 'yyyy-mm-dd hh24:mi:ss') ";
- }
- if (document.getElementById("drpControlUser").value != "0") {
- strWhere += " and zxbh=" + document.getElementById("drpControlUser").value;
- }
- if (document.getElementById("txtlink").value != "") {
- strWhere += " and linkname like '%" + document.getElementById("txtlink").value + "%'";
- }
- }
- function LoadingData() {
- try {
- OpenMessage('framemessage', '加载数据', '正在读取数据...', 220, 1);
- GetWhere();
- }
- catch (e) { }
- JAnCallCenter.WorkSearch.workSearch.LoadingData(pageIndex, strWhere, DataBand_callback);
- }
- function DataBand_callback(res) {
- document.getElementById("divDataItems").innerHTML = res.value;
- res = null;
- MessageBoxClose()
- }
- function GetStrValue(strid, sort) {
- document.getElementById("trList").style.height = "50%";
- document.getElementById("trShow").style.height = "50%";
- document.getElementById("ifShow").src = "workSearch_show.aspx?id=" + escape(strid); //获取工单编号
- }
- function CloseWindowPage() {
- MessageBoxClose();
- }
-
- </script>
- </head>
- <body onload="Init();">
- <form id="form1" runat="server">
- <table class="stdTable" cellspacing="0" cellpadding="0">
- <tbody>
- <tr height="100%">
- <td colspan="2">
- <table class="stdTable" style="background-color: #DBEBF8" cellspacing="0" cellpadding="0">
- <tbody>
- <tr>
- <td id="tdHeight" style="height: 20px;">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td style="width: 80%">
- 工单查询条件
- </td>
- <td align="left">
- <img src="../images/searchOpen.gif" border="0" id="imgShow" style="cursor: hand"
- alt="显示搜索条件" onclick=" disaspplays('imgShow','tbdShow');" />
- </td>
- </tr>
- <tbody id="tbdShow" style="display: none;">
- <tr>
- <td colspan="2">
- <table id="SearchPanelInt" cellspacing="0" cellpadding="1" width="100%">
- <tbody>
- <tr>
- <td style="width: 100px;" align="right">
- 客户代码 :
- </td>
- <td style="width: 100px;" align="left">
- <input type="text" id="cuscode" class="txt" />
- </td>
- <td style="width: 100px;" align="right">
- 客户名称 :
- </td>
- <td style="width: 100px;" align="left">
- <input type="text" id="cusname" class="txt" />
- </td>
- <td style="width: 100px;"align="right">
- 销售经理 :
- </td>
- <td align="left">
- <input type="text" id="salman" style="width: 100px;" class="txt" />
- </td>
- <td style="width: 100px;" align="right">
- 工单类型 :
- </td> <td>
- <asp:DropDownList ID="drpWorkType" runat="server" Width="100">
- <asp:ListItem Text="请选择类型" Value="-1"></asp:ListItem>
- <asp:ListItem Text="咨询工单" Value="0"></asp:ListItem>
- <asp:ListItem Text="投诉工单" Value="1"></asp:ListItem>
- <asp:ListItem Text="其他工单" Value="2"></asp:ListItem>
- </asp:DropDownList>
- </td>
- <td style="width: 200px;" align="center">
- 联系人:<input type="text" id="txtlink" style="width: 100px;" class="txt" />
- </td>
- </tr>
- <tr>
- <td style="width: 100px;" align="right">
- 工单编号 :
- </td>
- <td align="left">
- <input type="text" id="content" style="width: 100px;" class="txt" />
- </td>
- <td style="width: 100px;" align="right">
- 开始时间 :
- </td>
- <td style="width: 100px;">
- <input type="text" id="txtBgnTime" class="txt" onfocus="calendar();" />
- </td>
- <td style="width: 100px;" align="right">
- 结束时间 :
- </td>
- <td style="width: 100px;" align="left">
- <input type="text" id="txtEndTime" class="txt" onfocus="calendar();" />
- </td>
- <td style="width: 100px;" align="right">
- 受理坐席 :
- </td>
- <td align="left" style="width: 100px;">
- <asp:DropDownList ID="drpControlUser" runat="server" Width="100">
- </asp:DropDownList>
- </td>
- <td style="width: 200px;" align="center">
- <input title="重置" style="width: 60px;" type="reset" class="btn" />
- <button title="搜索" style="width: 60px;" onclick="pagination('1');" class="btn" tabindex="5">搜索</button>
- </td>
-
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <tr id="trList" height="100%">
- <td>
- <div id="divDataItems">
- </div>
- </td>
- </tr>
- <tr id="trShow" height="0px">
- <td>
- <iframe id="ifShow" name="ifShow" height="100%" width="100%" scrolling="auto" frameborder="0"
- src=""></iframe>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- </body>
- </html>
|