Przeglądaj źródła

自动外呼通话记录

yuqian 8 lat temu
rodzic
commit
77d76debc3

+ 41 - 0
HyBaseCallCenter/BaseCallCenter.BLL/CallResult.cs

@@ -0,0 +1,41 @@
1
+using System.Collections.Generic;
2
+using System.Data;
3
+
4
+namespace HySoft.BaseCallCenter.BLL
5
+{
6
+    public class CallResult
7
+    {
8
+        private readonly HySoft.BaseCallCenter.DAL.CallRecords dal = new HySoft.BaseCallCenter.DAL.CallRecords();
9
+        public CallResult()
10
+        { }
11
+        #region  BasicMethod
12
+
13
+        /// <summary>
14
+        /// 获得数据列表
15
+        /// </summary>
16
+        public List<HySoft.BaseCallCenter.Model.CallResult> DataTableToList(DataTable dt)
17
+        {
18
+            List<HySoft.BaseCallCenter.Model.CallResult> modelList = new List<HySoft.BaseCallCenter.Model.CallResult>();
19
+            int rowsCount = dt.Rows.Count;
20
+            if (rowsCount > 0)
21
+            {
22
+                HySoft.BaseCallCenter.Model.CallResult model;
23
+                for (int n = 0; n < rowsCount; n++)
24
+                {
25
+                    model = dal.DataRowToModel(dt.Rows[n]);
26
+                    if (model != null)
27
+                    {
28
+                        modelList.Add(model);
29
+                    }
30
+                }
31
+            }
32
+            return modelList;
33
+        }
34
+
35
+
36
+        #endregion  BasicMethod
37
+        #region  ExtensionMethod
38
+
39
+        #endregion  ExtensionMethod
40
+    }
41
+}

+ 1 - 0
HyBaseCallCenter/BaseCallCenter.BLL/HySoft.BaseCallCenter.BLL.csproj

@@ -46,6 +46,7 @@
46 46
     <Reference Include="System.Xml" />
47 47
   </ItemGroup>
48 48
   <ItemGroup>
49
+    <Compile Include="CallResult.cs" />
49 50
     <Compile Include="LDWorkOrderCount.cs" />
50 51
     <Compile Include="PagerBLL.cs" />
51 52
     <Compile Include="Proc_Pagination.cs" />

+ 41 - 0
HyBaseCallCenter/BaseCallCenter.DAL/CallRecords.cs

@@ -0,0 +1,41 @@
1
+using HySoft.DBUtility;
2
+using System;
3
+using System.Collections.Generic;
4
+using System.Data;
5
+using System.Linq;
6
+using System.Text;
7
+
8
+namespace HySoft.BaseCallCenter.DAL
9
+{
10
+    public class CallRecords
11
+    {
12
+        public CallRecords()
13
+        { }
14
+        #region  BasicMethod
15
+        /// <summary>
16
+        /// 得到一个对象实体
17
+        /// </summary>
18
+        public HySoft.BaseCallCenter.Model.CallResult DataRowToModel(DataRow row)
19
+        {
20
+            HySoft.BaseCallCenter.Model.CallResult model = new HySoft.BaseCallCenter.Model.CallResult();
21
+            if (row != null)
22
+            {
23
+                model.Id = row["Id"] == DBNull.Value ? 0 : Convert.ToInt32(row["Id"]);
24
+                model.TaskId = row["itemid"] == DBNull.Value ? 0 : Convert.ToInt32(row["itemid"]);
25
+                model.CallNumber = row["Callee"] == DBNull.Value ? "" : row["Callee"].ToString();
26
+                model.AgentId = row["AgentId"] == DBNull.Value ? 0 : Convert.ToInt32(row["AgentId"]);
27
+                model.StartDate = row["StartDate"] == DBNull.Value ? (DateTime?)null : Convert.ToDateTime(row["StartDate"].ToString());
28
+                model.EndDate = row["EndDate"] == DBNull.Value ? (DateTime?)null : Convert.ToDateTime(row["EndDate"].ToString());
29
+                model.RecordPath = row["RecordPath"] == DBNull.Value ? "" : row["RecordPath"].ToString();
30
+                model.Username = row["Username"] == DBNull.Value ? "" : row["Username"].ToString();
31
+                model.State = row["State"] == DBNull.Value ? false : Convert.ToBoolean(row["State"]);
32
+            }
33
+            return model;
34
+        }
35
+
36
+        #endregion  BasicMethod
37
+        #region  ExtensionMethod
38
+
39
+        #endregion  ExtensionMethod
40
+    }
41
+}

+ 1 - 0
HyBaseCallCenter/BaseCallCenter.DAL/HySoft.BaseCallCenter.DAL.csproj

@@ -45,6 +45,7 @@
45 45
     <Reference Include="System.Xml" />
46 46
   </ItemGroup>
47 47
   <ItemGroup>
48
+    <Compile Include="CallRecords.cs" />
48 49
     <Compile Include="LDWorkOrderCount.cs" />
49 50
     <Compile Include="PagerDALcs.cs" />
50 51
     <Compile Include="Proc_Pagination.cs" />

+ 20 - 0
HyBaseCallCenter/BaseCallCenter.Model/CallResult.cs

@@ -0,0 +1,20 @@
1
+using System;
2
+
3
+namespace HySoft.BaseCallCenter.Model
4
+{
5
+    public class CallResult
6
+    {
7
+        public int Id { get; set; }
8
+        public int TaskId { get; set; }
9
+        public string CallNumber { get; set; }
10
+        public DateTime? StartDate { get; set; }
11
+        public DateTime? EndDate { get; set; }
12
+        public int AgentId { get; set; }
13
+        public string RecordPath { get; set; }
14
+        public string Usercode { get; set; }
15
+        public string Username { get; set; }
16
+        public bool State { get; set; }
17
+
18
+
19
+    }
20
+}

+ 1 - 0
HyBaseCallCenter/BaseCallCenter.Model/HySoft.BaseCallCenter.Model.csproj

@@ -46,6 +46,7 @@
46 46
     <Reference Include="System.Xml" />
47 47
   </ItemGroup>
48 48
   <ItemGroup>
49
+    <Compile Include="CallResult.cs" />
49 50
     <Compile Include="LDWorkOrderCount.cs" />
50 51
     <Compile Include="PageData.cs" />
51 52
     <Compile Include="Properties\AssemblyInfo.cs" />

+ 8 - 0
HyBaseCallCenter/BaseCallCenter.Web/HySoft.BaseCallCenter.Web.csproj

@@ -1302,6 +1302,7 @@
1302 1302
     <Content Include="scripts\ui\skins\Aqua\images\tree\tree.png" />
1303 1303
     <Content Include="sysmanage\usermodify.aspx" />
1304 1304
     <Content Include="sysmanage\userResetPasswod.aspx" />
1305
+    <Content Include="telmanage\autocallrecordlist.aspx" />
1305 1306
     <Content Include="telmanage\callblacklist.aspx" />
1306 1307
     <Content Include="telmanage\callblacklisteditor.aspx" />
1307 1308
     <Content Include="telmanage\callinopt.aspx" />
@@ -2128,6 +2129,13 @@
2128 2129
     <Compile Include="telmanage\ajax\workcalendarset.ashx.cs">
2129 2130
       <DependentUpon>workcalendarset.ashx</DependentUpon>
2130 2131
     </Compile>
2132
+    <Compile Include="telmanage\autocallrecordlist.aspx.cs">
2133
+      <DependentUpon>autocallrecordlist.aspx</DependentUpon>
2134
+      <SubType>ASPXCodeBehind</SubType>
2135
+    </Compile>
2136
+    <Compile Include="telmanage\autocallrecordlist.aspx.designer.cs">
2137
+      <DependentUpon>autocallrecordlist.aspx</DependentUpon>
2138
+    </Compile>
2131 2139
     <Compile Include="telmanage\recordhighsearch.aspx.cs">
2132 2140
       <DependentUpon>recordhighsearch.aspx</DependentUpon>
2133 2141
       <SubType>ASPXCodeBehind</SubType>

+ 120 - 0
HyBaseCallCenter/BaseCallCenter.Web/telmanage/ajax/telrecords.ashx.cs

@@ -71,6 +71,9 @@ namespace HySoft.BaseCallCenter.Web.telmanage.ajax
71 71
                     //外呼回访
72 72
                     context.Response.Write(callouthf(context));
73 73
                     break;
74
+                case "getautolist":
75
+                    context.Response.Write(LoadAutoList(context));
76
+                    break;
74 77
             }
75 78
         }
76 79
 
@@ -674,6 +677,123 @@ namespace HySoft.BaseCallCenter.Web.telmanage.ajax
674 677
             }
675 678
             return res;
676 679
         }
680
+
681
+        private string LoadAutoList(HttpContext context)
682
+        {
683
+            string res = "";
684
+            DataTable dt = new DataTable();
685
+            try
686
+            {
687
+                string strpageindex = context.Request.Params["page"];
688
+                int pageindex = 1;
689
+                string strpagesize = context.Request.Params["pagesize"];
690
+                int pagesize = 10;
691
+                string sql = "";
692
+                string phone = HttpUtility.UrlDecode(CommonRequest.GetQueryString("phone"));
693
+                string callstate = HttpUtility.UrlDecode(CommonRequest.GetQueryString("callstate"));
694
+                string usercode = HttpUtility.UrlDecode(CommonRequest.GetQueryString("usercode"));
695
+                string starttime = HttpUtility.UrlDecode(CommonRequest.GetQueryString("starttime"));
696
+                string endtime = HttpUtility.UrlDecode(CommonRequest.GetQueryString("endtime"));
697
+                int userId = CommonRequest.GetInt("userid", 0);
698
+                if (phone.Trim() != "")
699
+                {
700
+                    sql += " and Callee like '%" + phone + "%'";
701
+                }
702
+                if (callstate.Trim() != "")
703
+                {
704
+                    sql += " and F_YJState=" + callstate;
705
+                }
706
+
707
+                var user = new BLL.T_Sys_UserAccount().GetModel(userId);
708
+                if (user != null)
709
+                {
710
+                    if (user.F_RoleId != 17)
711
+                    {
712
+                        if (usercode.Trim() != "")
713
+                        {
714
+                            sql += " and AgentId='" + usercode + "'";
715
+                        }
716
+                        else
717
+                        {
718
+                            sql += string.Format(" and (AgentId='{0}') ", user.F_UserCode);
719
+                        }
720
+                    }
721
+                    else
722
+                    {
723
+                        if (usercode.Trim() != "")
724
+                        {
725
+                            sql += " and AgentId='" + usercode + "'";
726
+                        }
727
+                    }
728
+                }
729
+
730
+
731
+
732
+                //if (calltype.Trim() != "")
733
+                //{
734
+                //    sql += " and CallType='" + calltype + "'";
735
+                //}
736
+                //if (starttime.Trim() != "")
737
+                //{
738
+                //    sql += " and datediff(day,BeginTime,'" + starttime + "')<=0 ";
739
+                //}
740
+                //if (endtime.Trim() != "")
741
+                //{
742
+                //    sql += " and datediff(day,BeginTime,'" + endtime + "')>=0 ";
743
+                //}
744
+                if (strpageindex.Trim() != "")
745
+                {
746
+                    try
747
+                    {
748
+                        pageindex = Convert.ToInt32(strpageindex);
749
+                    }
750
+                    catch
751
+                    { }
752
+                }
753
+                if (strpagesize.Trim() != "")
754
+                {
755
+                    try
756
+                    {
757
+                        pagesize = Convert.ToInt32(strpagesize);
758
+                    }
759
+                    catch
760
+                    { }
761
+                }
762
+
763
+                int recordCount = 0;
764
+                Model.PageData<Model.CallResult> pageModel = new Model.PageData<Model.CallResult>();
765
+                dt = BLL.PagerBLL.GetListPager(
766
+                    "CallResult cr left join T_Sys_UserAccount ua on cr.agentId=ua.f_usercode left join T_Call_TaskTelNum t ON t.F_Id=cr.Id ",
767
+                    "cr.Id",
768
+                    " cr.Id,cr.ItemId,cr.Callee,cr.StartDate,cr.EndDate,cr.AgentId,ua.f_username as Username ,cr.RecordPath,t.F_YJState as state ",
769
+                    sql,
770
+                    "ORDER BY cr.Id desc",
771
+                    pagesize,
772
+                    pageindex,
773
+                    true,
774
+                    out recordCount);
775
+                System.Collections.Generic.List<Model.CallResult> modelList = new BLL.CallResult().DataTableToList(dt);
776
+                pageModel.Rows = modelList;
777
+                pageModel.Total = recordCount;
778
+                System.Runtime.Serialization.Json.DataContractJsonSerializer serializer = new System.Runtime.Serialization.Json.DataContractJsonSerializer(typeof(Model.PageData<Model.CallResult>));
779
+                using (System.IO.MemoryStream stream = new System.IO.MemoryStream())
780
+                {
781
+                    //JSON序列化
782
+                    serializer.WriteObject(stream, pageModel);
783
+                    res = System.Text.Encoding.UTF8.GetString(stream.ToArray());
784
+                }
785
+            }
786
+            catch (Exception err)
787
+            {
788
+                //res = err.ToString(); 
789
+            }
790
+            finally
791
+            {
792
+                dt.Clear();
793
+                dt.Dispose();
794
+            }
795
+            return res;
796
+        }
677 797
         #endregion
678 798
 
679 799
         #region 获取数据

+ 271 - 0
HyBaseCallCenter/BaseCallCenter.Web/telmanage/autocallrecordlist.aspx

@@ -0,0 +1,271 @@
1
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="autocallrecordlist.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.telmanage.autocallrecordlist" %>
2
+
3
+
4
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+<html xmlns="http://www.w3.org/1999/xhtml">
6
+<head id="Head1" runat="server">
7
+    <title></title>
8
+    <script src="../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
9
+    <link href="../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
10
+    <script src="../scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
11
+    <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
12
+    <script src="../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
13
+    <link href="../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
14
+    <link href="../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
15
+    <script src="../scripts/ui/js/plugins/ligerGrid.js" type="text/javascript"></script>
16
+    <script src="../scripts/CustomersData.js" type="text/javascript"></script>
17
+    <link href="../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
18
+    <link href="../images/style.css" rel="stylesheet" type="text/css" />
19
+    <script type="text/javascript">
20
+        var strWhere = "";
21
+        function OpenWindowShow1(Url, Title, Width, Height) {
22
+            $.ligerDialog.open({
23
+                title: Title, isHidden: false, url: Url, height: Height, width: Width, isResize: true, modal: true, buttons: [
24
+                    { text: '关闭', onclick: function (item, dialog) { dialog.close(); } }
25
+                ], isResize: true
26
+            });
27
+        }
28
+        function Player(path) {
29
+            OpenWindowShow1('voiceplay.aspx?path=' + path, '录音播放与下载', 600, 300);
30
+            //voiceplay.aspx
31
+            //var height = screen.availHeight / 2;
32
+            //var width = screen.availWidth / 2 - 50;
33
+            //window.showModalDialog(path, "Player", "dialogWidth:310px;dialogHeight:100px;dialogLeft:" + width + "px;dialogTop:" + height + "px;center:yes;help:no;resizable:no;status:no;scrollbars:no;");
34
+        }
35
+
36
+        function itemclick(item) {
37
+            alert(item.text);
38
+        }
39
+        var gridlist;
40
+        $(function () {
41
+            LoadList();
42
+        });
43
+        function CallOut(phone) {
44
+            parent.PhoneCallOut(1, phone);
45
+        }
46
+        function LoadList() {
47
+            if (strWhere == "") {
48
+                var userId = document.getElementById("hiddenuserid").value;
49
+                if (userId != "") {
50
+                    strWhere += "&userid=" + userId + "";
51
+                }
52
+            }
53
+            gridlist = $("#divDataList").ligerGrid({
54
+                checkbox: true,
55
+                height: '100%',
56
+                columns: [
57
+                {
58
+                    display: '回拨', name: 'CallNumber', width: 40, frozen: true, render: function (rowdata, rowindex, value) {
59
+                        if (value == "") {
60
+                            return;
61
+                        }
62
+                        else {
63
+                            return "<img src=\"../images/phone3.png\" style=\"cursor:hand; width:24px;\" title=\"拨打" + value + "\" onclick=\"CallOut('" + encodeURI(value) + "');\" />";
64
+                        }
65
+                    }
66
+                },
67
+                { display: '电话号码', name: 'CallNumber', width: 100, frozen: true },
68
+                 {
69
+                     display: '录音', name: 'RecordPath', width: 40, frozen: true, render: function (rowdata, rowindex, value) {
70
+                         if (value == "") {
71
+                             return;
72
+                         }
73
+                         else {
74
+                             return "<img src=\"../images/notice.png\" style=\"cursor:hand;\" onclick=\"Player('" + encodeURI(value) + "');\" />";
75
+                         }
76
+                     }
77
+                 },
78
+                //{
79
+                //    display: '呼叫方向', name: '_calltype', width: 80, frozen: true, render: function (rowdata, rowindex, value) {
80
+                //        if (value == "0")
81
+                //            return "呼入";
82
+                //        else
83
+                //            return "呼出";
84
+                //    }
85
+                //},
86
+                //{
87
+                //    display: '是否回访', name: '_dealtype', width: 80, frozen: true, render: function (rowdata, rowindex, value) {
88
+                //        if (value == "7")
89
+                //            return "回访";
90
+                //        else
91
+                //            return "";
92
+                //    }
93
+                //},
94
+                {
95
+                    display: '呼叫状态', name: 'State', width: 80, frozen: true, render: function (rowdata, rowindex, value) {
96
+                        if (!value)
97
+                            return "未接通";
98
+                        else
99
+                            return "已接通";
100
+                    }
101
+                },
102
+                 //{
103
+                 //    display: '是否处理', name: '_isdeal', width: 80, render: function (rowdata, rowindex, value) {
104
+                 //        if (value == "0")
105
+                 //            return "未处理";
106
+                 //        else if (value == "1")
107
+                 //            return "已处理";
108
+                 //        else
109
+                 //            return "注销";
110
+                 //    }
111
+                 //},
112
+                 {
113
+                     display: '坐席工号', name: 'AgentId', width: 80, render: function (rowdata, rowindex, value) {
114
+                         if (value == 0)
115
+                             return "";
116
+                         return value;
117
+                     }
118
+                 },
119
+                { display: '坐席姓名', name: 'Username', width: 80 },
120
+                //{ display: 'IVR开始时间', name: '_ivrstarttime', width: 130, type: 'date', format: 'yyyy-MM-dd hh:mm:ss' },
121
+                //{ display: 'IVR结束时间', name: '_ivrendtime', width: 130, type: 'date', format: 'yyyy-MM-dd hh:mm:ss' },
122
+                { display: '通话开始时间', name: 'StartDate', width: 130, type: 'date', format: 'yyyy-MM-dd hh:mm:ss' },
123
+                { display: '通话结束时间', name: 'EndDate', width: 130, type: 'date', format: 'yyyy-MM-dd hh:mm:ss' },
124
+                {
125
+                    display: '通话时长(s)', name: 'StartDate', width: 80, render: function (rowdata, rowindex, value) {
126
+
127
+                    }
128
+                }],
129
+                url: 'ajax/telrecords.ashx?action=getautolist' + strWhere, pageSize: 20, pageSizeOptions: [10, 20, 50], rownumbers: true
130
+            });
131
+            gridlist.changePage('first');
132
+            $("#pageloading").hide();
133
+        }
134
+        function formatDateTime(value, rowData, rowIndex) {
135
+            if (value != null) {
136
+                var date = new Date(parseInt(value.replace("/Date(", "").replace(")/", ""), 10));
137
+                var result = date.getFullYear() + "-" + (date.getMonth() + 1 < 10 ? "0"
138
+                    + (date.getMonth() + 1) : date.getMonth() + 1) + "-"
139
+                    + (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " "
140
+                    + (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":"
141
+                    + (date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()) + ":"
142
+                    + (date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds());
143
+                return result;
144
+            }
145
+            return value;
146
+        }
147
+        function deleteRow() {
148
+            g.deleteSelectedRow();
149
+        }
150
+        function Delete() {
151
+            try {
152
+                //获取选择的行
153
+                var rows = gridlist.getSelectedRows();
154
+                if (rows.length > 0) {
155
+                    $.ligerDialog.confirm('确定要批量删除选择的记录吗?', function (yes) {
156
+                        if (yes) {
157
+                            try {
158
+                                var arr = new Array();
159
+                                var i = 0;
160
+                                for (var i = 0; i < rows.length; i++) {
161
+                                    arr[i] = rows[i]._callrecordsid;
162
+                                }
163
+                                $.post("ajax/telrecords.ashx?action=deletelist&arrid=" + arr.toString(), function (data) {
164
+                                    if (data == "success") {
165
+                                        $.ligerDialog.success('删除成功');
166
+                                        LoadList();
167
+                                    }
168
+                                    else {
169
+                                        $.ligerDialog.error('删除失败');
170
+                                    }
171
+                                });
172
+                            }
173
+                            catch (e) {
174
+                                alert(e.Message);
175
+                            }
176
+                        }
177
+                        else {
178
+                        }
179
+                    });
180
+                }
181
+                else {
182
+                    $.ligerDialog.error('没有选择要删除的行');
183
+                }
184
+            }
185
+            catch (e) {
186
+                $.ligerDialog.error(e.Message);
187
+            }
188
+        }
189
+        function cleartextbox() {
190
+            document.getElementById("txtTelphone").value = "";
191
+            document.getElementById("txtstate").value = "";
192
+            document.getElementById("txtzuowei").value = "";
193
+            document.getElementById("txtstarttime").value = "";
194
+            document.getElementById("txtendtime").value = "";
195
+        }
196
+        function getparams(params) {
197
+            strWhere = "";
198
+            if (params != "") {
199
+                strWhere += params;
200
+            }
201
+            LoadList();
202
+        }
203
+        function getsql() {
204
+            strWhere = "";
205
+            var phone = document.getElementById("txtTelphone").value;
206
+            var account = document.getElementById("ddlAccount").value;
207
+            var userId = document.getElementById("hiddenuserid").value;
208
+            var callstate = document.getElementById("drpCallState").value;
209
+            if (phone != "") {
210
+                strWhere += "&phone=" + phone + "";
211
+            }
212
+            if (account != "") {
213
+                strWhere += "&usercode=" + account + "";
214
+            }
215
+            if (userId != "") {
216
+                strWhere += "&userid=" + userId + "";
217
+            }
218
+            if (callstate != "-1") {
219
+                strWhere += "&callstate=" + callstate;
220
+            }
221
+            LoadList();
222
+        }
223
+        function HighSearch() {
224
+            $.ligerDialog.open({
225
+                url: 'recordhighsearch.aspx',
226
+                title: '高级搜索',
227
+                height: 300,
228
+                width: 600,
229
+                isResize: true
230
+            });
231
+        }
232
+        document.onkeydown = function (event) {
233
+            var e = event || window.event || arguments.callee.caller.arguments[0];
234
+            if (e && e.keyCode == 13) {
235
+                getsql();
236
+            }
237
+        };
238
+    </script>
239
+</head>
240
+<body style="margin: 0px; padding: 0px; overflow: hidden;">
241
+    <form id="form1" runat="server">
242
+        <div class="l-loading" style="display: block" id="pageloading">
243
+        </div>
244
+        <div class="tools_box">
245
+            <div class="tools_bar">
246
+                <a class="tools_btn" href="#" onclick="Delete();"><span>
247
+                    <b class="delete">批量删除</b></span> </a>
248
+                <div class="search_box">
249
+                    <asp:HiddenField runat="server" ID="hiddenuserid" />
250
+                    电话号码:<asp:TextBox ID="txtTelphone" runat="server" CssClass="txtInput" Width="80px"></asp:TextBox>&nbsp;&nbsp;
251
+                    坐席:
252
+                   
253
+                    <asp:DropDownList ID="ddlAccount" runat="server" CssClass="selectBox" Width="70px"></asp:DropDownList>&nbsp;&nbsp;
254
+                   呼叫状态
255
+                    <asp:DropDownList ID="drpCallState" runat="server" CssClass="selectBox"
256
+                        Width="120px">
257
+                        <asp:ListItem Value="-1">--全部--</asp:ListItem>
258
+                        <asp:ListItem Value="0">未接通</asp:ListItem>
259
+                        <asp:ListItem Value="1">已接通</asp:ListItem>
260
+                    </asp:DropDownList>
261
+                    <input id="btnSearch" type="button" value="搜 索" class="btnSearch" onclick="getsql();" />&nbsp;&nbsp;
262
+               
263
+                    <input id="btnHighSearch" type="button" value="高级搜索" class="btnSearch" onclick="HighSearch();" />
264
+                </div>
265
+            </div>
266
+        </div>
267
+        <div id="divDataList">
268
+        </div>
269
+    </form>
270
+</body>
271
+</html>

+ 35 - 0
HyBaseCallCenter/BaseCallCenter.Web/telmanage/autocallrecordlist.aspx.cs

@@ -0,0 +1,35 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Web;
5
+using System.Web.UI;
6
+using System.Web.UI.WebControls;
7
+using HySoft.BaseCallCenter.BLL;
8
+using HySoft.Common;
9
+namespace HySoft.BaseCallCenter.Web.telmanage
10
+{
11
+    public partial class autocallrecordlist : System.Web.UI.Page
12
+    {
13
+        protected void Page_Load(object sender, EventArgs e)
14
+        {
15
+            string sqlwhere = "F_SeatFlag=1";
16
+            BindAccount(ddlAccount, sqlwhere);
17
+            LoginUser p_LoginUser = new LoginUser(this.Context);
18
+            hiddenuserid.Value = p_LoginUser.UserID.ToString();
19
+        }
20
+        /// <summary>
21
+        ///绑定坐席列表
22
+        /// </summary>
23
+        /// <param name="ddl"></param>
24
+        /// <param name="p_Condition"></param>
25
+        private void BindAccount(DropDownList ddl, string strwhere)
26
+        {
27
+            T_Sys_UserAccount t = new T_Sys_UserAccount();
28
+            ddl.DataSource = t.GetList(strwhere);
29
+            ddl.DataValueField = "F_UserCode";
30
+            ddl.DataTextField = "F_UserName";
31
+            ddl.DataBind();
32
+            ddl.Items.Insert(0, new ListItem("--全部--", ""));
33
+        }
34
+    }
35
+}

+ 69 - 0
HyBaseCallCenter/BaseCallCenter.Web/telmanage/autocallrecordlist.aspx.designer.cs

@@ -0,0 +1,69 @@
1
+//------------------------------------------------------------------------------
2
+// <自动生成>
3
+//     此代码由工具生成。
4
+//
5
+//     对此文件的更改可能导致不正确的行为,如果
6
+//     重新生成代码,则所做更改将丢失。
7
+// </自动生成>
8
+//------------------------------------------------------------------------------
9
+
10
+namespace HySoft.BaseCallCenter.Web.telmanage {
11
+    
12
+    
13
+    public partial class autocallrecordlist {
14
+        
15
+        /// <summary>
16
+        /// Head1 控件。
17
+        /// </summary>
18
+        /// <remarks>
19
+        /// 自动生成的字段。
20
+        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
21
+        /// </remarks>
22
+        protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
23
+        
24
+        /// <summary>
25
+        /// form1 控件。
26
+        /// </summary>
27
+        /// <remarks>
28
+        /// 自动生成的字段。
29
+        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
30
+        /// </remarks>
31
+        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
32
+        
33
+        /// <summary>
34
+        /// hiddenuserid 控件。
35
+        /// </summary>
36
+        /// <remarks>
37
+        /// 自动生成的字段。
38
+        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
39
+        /// </remarks>
40
+        protected global::System.Web.UI.WebControls.HiddenField hiddenuserid;
41
+        
42
+        /// <summary>
43
+        /// txtTelphone 控件。
44
+        /// </summary>
45
+        /// <remarks>
46
+        /// 自动生成的字段。
47
+        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
48
+        /// </remarks>
49
+        protected global::System.Web.UI.WebControls.TextBox txtTelphone;
50
+        
51
+        /// <summary>
52
+        /// ddlAccount 控件。
53
+        /// </summary>
54
+        /// <remarks>
55
+        /// 自动生成的字段。
56
+        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
57
+        /// </remarks>
58
+        protected global::System.Web.UI.WebControls.DropDownList ddlAccount;
59
+        
60
+        /// <summary>
61
+        /// drpCallState 控件。
62
+        /// </summary>
63
+        /// <remarks>
64
+        /// 自动生成的字段。
65
+        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
66
+        /// </remarks>
67
+        protected global::System.Web.UI.WebControls.DropDownList drpCallState;
68
+    }
69
+}