<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="workorderDCLList.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.workordermanage.workorderset.workorderDCLList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>待处理工单</title>
    <link href="../../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <script src="../../scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../scripts/ui/json2.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/core/base.js" type="text/javascript"></script>
     <script type="text/javascript" src="../../scripts/function.js"></script>
    <script src="../../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
    <link href="../../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
    <link href="../../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
    <script src="../../scripts/ui/js/plugins/ligerGrid.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerLayout.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerTree.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerMenu.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerTab.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../../scripts/CustomersData.js" type="text/javascript"></script>
    <link href="../../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
    <link href="../../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
    <link href="../../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    <link href="../../images/style.css" rel="stylesheet" type="text/css" />
    <script src="../../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
        <script type="text/javascript">
            var gridlist;
            $(function () {
                InitList();
              
//                $("#tab1").ligerTab();



            });
           
            function InitList() {
                var sql = GetSql();
                try {
                    gridlist = $("#divDataList").ligerGrid({
                        height: '50%',
                        columns: [
                { display: 'Id', name: '_f_id', hide: 'Id' },
                { display: '工单编号', name: '_f_id', align: 'left', width: 70 },
                { display: '客户编号', name: '_f_name', width: 70 },
                { display: '客户姓名', name: '_f_name', minWidth: 60 },
                { display: '电话号码', name: '_f_name', width: 80 },
                { display: '来电时间', name: '_f_name', width: 100, type: 'date', format: 'yyyy-MM-dd hh:mm:ss' },
                { display: '来电内容', name: '_f_name', width: 200 },
                { display: '受理人', name: '_f_name', width: 80 },
                { display: '工单状态', name: '_f_name', width: 80 },
                 { display: '工单超时', name: '_f_name', width: 80 },
                { display: '操作', isSort: false, width: 100, render: function (rowdata, rowindex, value) {
                    var h = "";
                    if (!rowdata._editing) {
                        h += "<a href='javascript:onclick=geta(" + rowdata._f_id + ")'>处理</a> ";
//                        h += "<a href='javascript:deleteRow(" + rowindex + ")'>删除</a> ";
                    }
                    return h;
                }
                }
                ],

                        url: '../ajax/workflowmanageajax.ashx?action=getlist&whereSql=' + sql, pageSize: 10, rownumbers: true
                    });
                }
                catch (e) {
                    alert(e.Message);
                }
                gridlist.changePage('first');
                $("#pageloading").hide();
            }

            function geta(param) {
                //alert(param);
            }
            function GetSql() {
                var sql = "";
//                if (document.getElementById("txtF_OptName").value != "") {
//                    sql += " and F_ID='" + document.getElementById("txtF_OptName").value + "'";
//                }
                return sql;
            }
    

            function tabs(tabId) {
                for (var i = 0; i <= 1; i++) {
                    if (tabId == i) {
                        document.getElementById("tabli" + i).className = "selected";
                        document.getElementById("tab_" + i).style.display = "block";
                    }
                    else {
                        document.getElementById("tabli" + i).className = "";
                        document.getElementById("tab_" + i).style.display = "none";
                    }
                }
            }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="tools_box">
        <div class="tools_bar">
            <div class="search_box">
                关键字：<asp:TextBox ID="txtF_OptName" runat="server" CssClass="txtInput"></asp:TextBox>&nbsp;&nbsp;
                <input id="btnSearch" type="button" value="搜 索" class="btnSearch" onclick="InitList();" />&nbsp;&nbsp;
                <input id="btnSearchGaoJi" type="button" value="高级搜索" class="btnSearch" />
            </div>
        </div>
    </div>
    <div id="divDataList">
            </div>
        <ul class="tab_nav">
           <li id="tabli0" class="selected"><a onclick="tabs(0);" href="javascript:;">工单详细信息</a></li>
            <li id="tabli1"><a onclick="tabs(1);" href="javascript:;">处理记录</a></li>
        </ul>
         <div id="divfromlist" style="height:200px">
           <div  id ="tab_0"  style="height:200px;display:block;width:100%" >
              <iframe frameborder="0" name="workInfoManger" src="WorkOrderInfo.aspx" style="width:980px;height:200px;"></iframe>
            </div>
            <div  id ="tab_1" style="height:200px;display:none;width:100%">
              <iframe frameborder="0" name="workChuLi" src="workChuLiInfomarger.aspx" style="width:980px;height:200px;"></iframe>
            </div>
        <div style="display:none">
        
        </div>
            </div>
    </form>
</body>
</html>
