| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkOrderDGDList.aspx.cs"
- Inherits="Business_WorkOrderDGDList" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" 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="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
- <script src="../_javascripts/JS/search.js" type="text/javascript"></script>
- <script src="../Scripts/RecPlayer.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;
- }
- .style1
- {
- height: 32px;
- }
- </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">
- 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();parent.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();
- }
- </script>
- <script type="text/javascript" language="javascript">
- var _searchitems; //查询条件:0当前页码,1每页数量2查询条件
- var pagesize = 20; //
- var strWhere;
- var pageIndex = 1;
- //初始化页面数据
- function Init() {
- pagination(1); //绑定数据
- }
- //重新绑定页码
- function pagination(index) {
- pageIndex = index;
- LoadingData();
- }
- //获取查询条件
- function GetSearchItems() {
- GetSql();
- _searchitems = new Array;
- _searchitems[0] = pageIndex;
- _searchitems[1] = pagesize;
- _searchitems[2] = strWhere;
- _searchitems[3] = document.getElementById("hfUserId").value;
- }
- //获取sql
- function GetSql() {
- strWhere = "";
- var cusPhone = document.getElementById("txtCusPhone").value.replace(/\s/g, "");
- var account = document.getElementById("ddlAccount").value.replace(/\s/g, "");
- var infoType = document.getElementById("ddlInfoType").value.replace(/\s/g, "");
- var cusName = document.getElementById("txtCusName").value.replace(/\s/g, "");
- var beginTime = document.getElementById("txtBeginTime").value.replace(/\s/g, "");
- var endTime = document.getElementById("txtEndTime").value.replace(/\s/g, "");
- var workOrderCode = document.getElementById("txtWorkOrderCode").value.replace(/\s/g, "");
- // var state = document.getElementById("ddlState").value.replace(/\s/g, "");
- if (account != "") {
- strWhere += " and UserId=" + account;
- }
- if (infoType != "") {
- strWhere += " and InfoType=" + infoType;
- }
- // if (state != "") {
- // strWhere += " and State=" + state;
- // }
- if (beginTime != "") {
- strWhere += " and DATEDIFF(d,AddTime,'" + beginTime + "')<=0";
- }
- if (endTime != "") {
- strWhere += " and DATEDIFF(d,AddTime,'" + endTime + "')>=0";
- }
- if (workOrderCode != "") {
- strWhere += " and WorkOrderCode like '%" + workOrderCode + "%'";
- }
- if (cusName != "") {
- strWhere += " and CusName like '%" + cusName + "%'";
- }
- if (cusPhone != "") {
- strWhere += " and CusConnPhone like '%" + cusPhone + "%'";
- }
- }
- //加载数据
- function LoadingData() {
- GetSearchItems();
- try {
- OpenMessage('framemessage', '加载数据', '正在读取数据...', 220, 1);
- Business_WorkOrderDGDList.LoadingData(_searchitems, DataBand_callback);
- }
- catch (e) { }
- }
- //加载数据
- function DataBand_callback(res) {
- document.getElementById("divDataItems").innerHTML = res.value;
- res = null;
- MessageBoxClose();
- document.getElementById("trList").style.height = "100%";
- document.getElementById("trShow").style.height = "0";
- }
- function GetStrValue(strid) {
- document.getElementById("trList").style.height = "50%";
- document.getElementById("trShow").style.height = "50%";
- document.getElementById("ifShow").src = "WorkOrderInfo.aspx?id=" + escape(strid); //获取工单编号
- }
- //分配、设置
- function Operate(type, id) {
- switch (type) {
- case 'gd':
- OpenWindowPage('工单归档', 'show', 680, 310, 'WorkOrderGDDeal.aspx?id=' + id);
- break;
- }
- }
- //播放录音
- function PlayRecord(appid) {
-
- Player(document.getElementById("hfPlayPath").value + appid);
- }
- </script>
- </head>
- <body onload="Init();">
- <form id="form1" runat="server">
- <asp:HiddenField ID="hfUserId" runat="server" />
- <asp:HiddenField ID="hfPlayPath" 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">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <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>
- <input type="text" id="txtWorkOrderCode" style="width: 120px;" class="txt" />
- </td>
- <td style="width: 100px;" align="right">
- 客户姓名 :
- </td>
- <td align="left">
- <input type="text" id="txtCusName" style="width: 120px;" class="txt" />
- </td>
- <td style="width: 100px;" align="right">
- 联系电话 :
- </td>
- <td style="width: 130px;" align="left">
- <input type="text" id="txtCusPhone" class="txt" />
- </td>
- <td style="width: 100px;" align="right">
- 业务类型 :
- </td>
- <td align="left" style="width: 130px;">
- <asp:DropDownList ID="ddlInfoType" runat="server" Width="120">
- </asp:DropDownList>
- </td>
- </tr>
- <tr>
- <td style="width: 100px;" align="right">
- 来电时间 :
- </td>
- <td colspan="3">
- <input type="text" id="txtBeginTime" class="txt Wdate" style="width: 120px" onclick="WdatePicker()" />
- -
- <input type="text" id="txtEndTime" class="txt Wdate" style="width: 120px" onclick="WdatePicker()" />
- </td>
- <td style="width: 100px;" align="right">
- 受理人:
- </td>
- <td style="width: 130px;">
- <asp:DropDownList ID="ddlAccount" name="drpControlUser" runat="server" CssClass="selectBox">
- </asp:DropDownList>
- </td>
- <td style="width: 100px;" align="right">
- <%-- 工单状态 :--%>
- </td>
- <td>
- <%-- <asp:DropDownList ID="ddlState" runat="server">
- </asp:DropDownList>--%>
- </td>
- <td align="left">
- <input title="搜索" style="width: 60px;" type="button" class="btn" onclick="pagination(1)"
- value="搜索" />
- <input title="重置" style="width: 60px;" type="reset" class="btn" />
- </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>
|