Просмотр исходного кода

1.添加预测外呼任务时需要选择线路
2.导入号码时去掉线路选择

yuqian лет назад: 8
Родитель
Сommit
7b87e0ed31

+ 15 - 7
HyBaseCallCenter/BaseCallCenter.DAL/T_CTI_Task.cs

@@ -40,9 +40,9 @@ namespace HySoft.BaseCallCenter.DAL
40 40
         {
41 41
             StringBuilder strSql = new StringBuilder();
42 42
             strSql.Append("insert into T_CTI_Task(");
43
-            strSql.Append("TaskName,TrunkGroupID,CallerNum,CallType,ExInfo,MaxTrunkCount,IntensityCoefficient,ItemTableName,State,AddTime,y_PSort,y_TkModelId,y_SXH,y_FPCount,y_YJCount,y_HCCount,y_HSCount,y_HTCount,y_HMCount,y_OkCount,y_RFCount,y_ConsCount,y_InvlCount,y_NoAnswerCount,y_ShutDownCount,TaskType)");
43
+            strSql.Append("TaskName,TrunkGroupID,CallerNum,CallType,ExInfo,MaxTrunkCount,IntensityCoefficient,ItemTableName,State,AddTime,y_PSort,y_TkModelId,y_SXH,y_FPCount,y_YJCount,y_HCCount,y_HSCount,y_HTCount,y_HMCount,y_OkCount,y_RFCount,y_ConsCount,y_InvlCount,y_NoAnswerCount,y_ShutDownCount,TaskType,Pre)");
44 44
             strSql.Append(" values (");
45
-            strSql.Append("@TaskName,@TrunkGroupID,@CallerNum,@CallType,@ExInfo,@MaxTrunkCount,@IntensityCoefficient,@ItemTableName,@State,@AddTime,@y_PSort,@y_TkModelId,@y_SXH,@y_FPCount,@y_YJCount,@y_HCCount,@y_HSCount,@y_HTCount,@y_HMCount,@y_OkCount,@y_RFCount,@y_ConsCount,@y_InvlCount,@y_NoAnswerCount,@y_ShutDownCount,@TaskType)");
45
+            strSql.Append("@TaskName,@TrunkGroupID,@CallerNum,@CallType,@ExInfo,@MaxTrunkCount,@IntensityCoefficient,@ItemTableName,@State,@AddTime,@y_PSort,@y_TkModelId,@y_SXH,@y_FPCount,@y_YJCount,@y_HCCount,@y_HSCount,@y_HTCount,@y_HMCount,@y_OkCount,@y_RFCount,@y_ConsCount,@y_InvlCount,@y_NoAnswerCount,@y_ShutDownCount,@TaskType,@Pre)");
46 46
             strSql.Append(";select @@IDENTITY");
47 47
             SqlParameter[] parameters = {
48 48
                     new SqlParameter("@TaskName", SqlDbType.VarChar,200),
@@ -70,7 +70,8 @@ namespace HySoft.BaseCallCenter.DAL
70 70
                     new SqlParameter("@y_InvlCount", SqlDbType.Int,4),
71 71
                     new SqlParameter("@y_NoAnswerCount", SqlDbType.Int,4),
72 72
                     new SqlParameter("@y_ShutDownCount", SqlDbType.Int,4),
73
-                    new SqlParameter("@TaskType", SqlDbType.Int,4)};
73
+                    new SqlParameter("@TaskType", SqlDbType.Int,4),
74
+                    new SqlParameter("@Pre", SqlDbType.VarChar,300)};
74 75
             parameters[0].Value = model.TaskName;
75 76
             parameters[1].Value = model.TrunkGroupID;
76 77
             parameters[2].Value = model.CallerNum;
@@ -97,6 +98,7 @@ namespace HySoft.BaseCallCenter.DAL
97 98
             parameters[23].Value = model.y_NoAnswerCount;
98 99
             parameters[24].Value = model.y_ShutDownCount;
99 100
             parameters[25].Value = model.TaskType;
101
+            parameters[26].Value = model.Pre;
100 102
             object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
101 103
             if (obj == null)
102 104
             {
@@ -139,7 +141,8 @@ namespace HySoft.BaseCallCenter.DAL
139 141
             strSql.Append("y_InvlCount=@y_InvlCount,");
140 142
             strSql.Append("y_NoAnswerCount=@y_NoAnswerCount,");
141 143
             strSql.Append("y_ShutDownCount=@y_ShutDownCount,");
142
-            strSql.Append("TaskType=@TaskType ");
144
+            strSql.Append("TaskType=@TaskType, ");
145
+            strSql.Append("Pre=@Pre ");
143 146
             strSql.Append(" where TaskID=@TaskID");
144 147
             SqlParameter[] parameters = {
145 148
                     new SqlParameter("@TaskName", SqlDbType.VarChar,200),
@@ -168,7 +171,8 @@ namespace HySoft.BaseCallCenter.DAL
168 171
                     new SqlParameter("@y_NoAnswerCount", SqlDbType.Int,4),
169 172
                     new SqlParameter("@y_ShutDownCount", SqlDbType.Int,4),
170 173
                     new SqlParameter("@TaskType", SqlDbType.Int,4),
171
-                    new SqlParameter("@TaskID",SqlDbType.BigInt)
174
+                    new SqlParameter("@TaskID",SqlDbType.BigInt),
175
+                    new SqlParameter("@Pre",SqlDbType.VarChar,300)
172 176
             };
173 177
             parameters[0].Value = model.TaskName;
174 178
             parameters[1].Value = model.TrunkGroupID;
@@ -197,7 +201,7 @@ namespace HySoft.BaseCallCenter.DAL
197 201
             parameters[24].Value = model.y_ShutDownCount;
198 202
             parameters[25].Value = model.TaskType;
199 203
             parameters[26].Value = model.TaskID;
200
-
204
+            parameters[27].Value = model.Pre;
201 205
             int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
202 206
             if (rows > 0)
203 207
             {
@@ -286,7 +290,7 @@ namespace HySoft.BaseCallCenter.DAL
286 290
         {
287 291
 
288 292
             StringBuilder strSql = new StringBuilder();
289
-            strSql.Append("select  top 1 TaskID,TaskName,TrunkGroupID,CallerNum,CallType,ExInfo,MaxTrunkCount,IntensityCoefficient,ItemTableName,State,AddTime,y_PSort,y_TkModelId,y_SXH,y_FPCount,y_YJCount,y_HCCount,y_HSCount,y_HTCount,y_HMCount,y_OkCount,y_RFCount,y_ConsCount,y_InvlCount,y_NoAnswerCount,y_ShutDownCount,TaskType from T_CTI_Task ");
293
+            strSql.Append("select  top 1 TaskID,TaskName,TrunkGroupID,CallerNum,CallType,ExInfo,MaxTrunkCount,IntensityCoefficient,ItemTableName,State,AddTime,y_PSort,y_TkModelId,y_SXH,y_FPCount,y_YJCount,y_HCCount,y_HSCount,y_HTCount,y_HMCount,y_OkCount,y_RFCount,y_ConsCount,y_InvlCount,y_NoAnswerCount,y_ShutDownCount,TaskType,Pre from T_CTI_Task ");
290 294
             strSql.Append(" where TaskID=@TaskID");
291 295
             SqlParameter[] parameters = {
292 296
                     new SqlParameter("@TaskID", SqlDbType.BigInt)
@@ -405,6 +409,10 @@ namespace HySoft.BaseCallCenter.DAL
405 409
                 {
406 410
                     model.TaskType = int.Parse(ds.Tables[0].Rows[0]["TaskType"].ToString());
407 411
                 }
412
+                if (ds.Tables[0].Rows[0]["Pre"] != null && ds.Tables[0].Rows[0]["Pre"].ToString() != "")
413
+                {
414
+                    model.Pre = ds.Tables[0].Rows[0]["Pre"].ToString();
415
+                }
408 416
                 return model;
409 417
             }
410 418
             else

+ 6 - 0
HyBaseCallCenter/BaseCallCenter.Model/T_CTI_Task.cs

@@ -41,6 +41,7 @@ namespace HySoft.BaseCallCenter.Model
41 41
         private int? _y_invlcount = 0;
42 42
         private int? _y_noanswercount = 0;
43 43
         private int? _y_shutdowncount = 0;
44
+        private string _pre = "";
44 45
         /// <summary>
45 46
         /// 
46 47
         /// </summary>
@@ -258,6 +259,11 @@ namespace HySoft.BaseCallCenter.Model
258 259
             set { _y_shutdowncount = value; }
259 260
             get { return _y_shutdowncount; }
260 261
         }
262
+        public string Pre
263
+        {
264
+            set { _pre = value; }
265
+            get { return _pre; }
266
+        }
261 267
         #endregion Model
262 268
 
263 269
     }

+ 4 - 2
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/ajax/calloutopt.ashx.cs

@@ -59,14 +59,16 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage.ajax
59 59
                 string pagerid = context.Request.Params["pagerid"];
60 60
                 string labels = context.Request["labels"];
61 61
                 string userid = context.Request.Params["userid"];
62
-                if (string.IsNullOrWhiteSpace(context.Request.Form["YHFK"]) || string.IsNullOrWhiteSpace(context.Request.Form["YHFKText"]))
62
+                if (string.IsNullOrWhiteSpace(context.Request.Form["YHFK"]))
63 63
                 {
64 64
                     return "{\"msg\":\"" + type + "\",\"info\":\"必须填写用户反馈\"}";
65 65
                 }
66 66
 
67
+                var arr = context.Request.Form["YHFK"].Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
68
+
67 69
                 string updatesql = "";
68 70
                 //保存用户反馈
69
-                updatesql += "  F_YHFKId='" + context.Request.Form["YHFK"] + "',F_YHFKName='" + context.Request.Form["YHFKText"] + "' ";
71
+                updatesql += "  F_YHFKId='" + arr[0] + "',F_YHFKName='" + arr[1] + "' ";
70 72
                 int r = DBUtility.DbHelperSQL.ExecuteSql("update [T_Call_TaskTelNum] set " + updatesql + " where [F_Id]=" + id);
71 73
                 if (r > 0)
72 74
                 {

+ 28 - 9
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/ajax/callplanintophone.ashx.cs

@@ -46,13 +46,32 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage.ajax
46 46
                 string filepath = context.Request.Form["txtFilePath"].ToString();
47 47
                 string columntofield = context.Request.Form["txtColumnToField"].ToString();
48 48
                 string taskid = context.Request.Params["taskid"];
49
-                string pre = context.Request.Params["pre"];
50 49
                 #region 将文件中的数据导入数据库
51 50
 
52 51
                 try
53 52
                 {
54 53
                     //************************将文件中的数据导入数据库*************************//
55 54
                     DataSet dt = ReadEcxel(filepath, 0);
55
+
56
+                    //var dtClone = dt.Clone();
57
+                    //foreach (DataRow row in dtClone.Tables[0].Rows)
58
+                    //{
59
+                    //    var rows = dt.Tables[0].Select("电话=" + row["电话"]);
60
+                    //    if (rows.Length > 0)
61
+                    //    {
62
+                    //        foreach (var item in rows)
63
+                    //        {
64
+
65
+                    //            dtClone.Tables[0].Rows.Remove(item);
66
+                    //        }
67
+                    //    }
68
+
69
+                    //}
70
+
71
+
72
+
73
+
74
+
56 75
                     int rcount = 0;
57 76
                     int ccount = 0;
58 77
                     try
@@ -75,14 +94,14 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage.ajax
75 94
                                         string field = fieldinfo.Split(':')[0];
76 95
                                         string column = fieldinfo.Split(':')[1];
77 96
                                         sqlfield += field + ",";
78
-                                        if (field == "F_Phone")
79
-                                        {
80
-                                            sqlvalue += "'" + pre + dr[column].ToString().Trim().Replace(",", "").Replace("'", "") + "',";
81
-                                        }
82
-                                        else
83
-                                        {
84
-                                            sqlvalue += "'" + dr[column].ToString().Trim().Replace(",", "").Replace("'", "") + "',";
85
-                                        }
97
+                                        //if (field == "F_Phone")
98
+                                        //{
99
+                                        //    sqlvalue += "'" + pre + dr[column].ToString().Trim().Replace(",", "").Replace("'", "") + "',";
100
+                                        //}
101
+                                        //else
102
+                                        //{
103
+                                        sqlvalue += "'" + dr[column].ToString().Trim().Replace(",", "").Replace("'", "") + "',";
104
+                                        //}
86 105
                                     }
87 106
                                 }
88 107
                                 sqlfield += "#@!";

+ 15 - 19
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/callout.aspx

@@ -45,11 +45,6 @@
45 45
                 height: 150,
46 46
                 width: w - 350
47 47
             });
48
-            $("#divFieldList").ligerPanel({
49
-                title: '客户资料',
50
-                height: 150,
51
-                width: w - 350
52
-            });
53 48
 
54 49
             //初始化选择
55 50
             //IVR业务流程
@@ -933,15 +928,13 @@
933 928
                 </table>
934 929
             </div>
935 930
             <div position="center" title="">
936
-                <div id="divFieldList" style="overflow: auto; width: 100%;" runat="server">
937
-                </div>
938 931
                 <div id="divYHFKForm" style="overflow: auto; width: 100%;">
939 932
                     <div id="YHFKdiv">
940
-                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK1" type="radio" name="YHFK" value="443" /><label for="YHFK1">&nbsp;&nbsp;已同意</label></div>
941
-                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK2" type="radio" name="YHFK" value="444" /><label for="YHFK2">&nbsp;&nbsp;不同意</label></div>
942
-                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK3" type="radio" name="YHFK" value="445" /><label for="YHFK3">&nbsp;&nbsp;下次沟通</label></div>
943
-                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK4" type="radio" name="YHFK" value="446" /><label for="YHFK4">&nbsp;&nbsp;直接挂断</label></div>
944
-                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK5" type="radio" name="YHFK" value="447" /><label for="YHFK5">&nbsp;&nbsp;强烈反感</label></div>
933
+                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK1" type="radio" name="YHFK" value="443,已同意" /><label for="YHFK1">&nbsp;&nbsp;已同意</label></div>
934
+                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK2" type="radio" name="YHFK" value="444,不同意" /><label for="YHFK2">&nbsp;&nbsp;不同意</label></div>
935
+                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK3" type="radio" name="YHFK" value="445,下次沟通" /><label for="YHFK3">&nbsp;&nbsp;下次沟通</label></div>
936
+                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK4" type="radio" name="YHFK" value="446,直接挂断" /><label for="YHFK4">&nbsp;&nbsp;直接挂断</label></div>
937
+                        <div style="float: left; width: 150px; height: 23px; padding: 3px;">&nbsp;&nbsp;&nbsp;<input id="YHFK5" type="radio" name="YHFK" value="447,强烈反感" /><label for="YHFK5">&nbsp;&nbsp;强烈反感</label></div>
945 938
 
946 939
 
947 940
                         <div style="width: 200px; height: 70px; margin: 0 20px;">
@@ -1008,24 +1001,27 @@
1008 1001
 
1009 1002
 
1010 1003
                 </div>
1011
-
1012 1004
                 <div style="width: 100%; text-align: center;">
1013 1005
                     <input id="btnSubmit" type="button" class="btnSubmit" onclick="SaveData();" value="提交保存" />
1014 1006
                 </div>
1015 1007
             </div>
1008
+        </div>
1016 1009
 
1017 1010
 
1018 1011
 
1019
-        </div>
1020 1012
 
1021 1013
     </form>
1022 1014
     <script>
1023
-        $(function () {
1024
-            $(":radio").click(function () {
1025
-                $('#YHFKText').val($(this).attr('title'));
1015
+        //$(function () {
1016
+        //    $(":radio").click(function () {
1017
+        //        $('#YHFKText').val($(this).attr('title'));
1026 1018
 
1027
-            });
1028
-        });
1019
+        //    });
1020
+        //    $(":radio").next("label").click(function () {
1021
+        //        $('#YHFKText').val($(this).text());
1022
+        //        alert($("#YHFKText").val());
1023
+        //    });
1024
+        //});
1029 1025
     </script>
1030 1026
 </body>
1031 1027
 </html>

+ 64 - 128
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/callout.aspx.cs

@@ -18,12 +18,12 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
18 18
     public partial class callout : System.Web.UI.Page
19 19
     {
20 20
         string phone = "";
21
-        string callid = "385215";
21
+        string callid = "";
22 22
         string zxflowid = "7";
23 23
         string bxflowid = "6";
24 24
         string tsflowid = "5";
25 25
         string assOpt = "";
26
-        int taskId = 76;
26
+        int taskId = 0;
27 27
         protected void Page_Load(object sender, EventArgs e)
28 28
         {
29 29
             SysLog.WriteLog(new Exception("teset"));
@@ -44,84 +44,82 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
44 44
 
45 45
                 #endregion
46 46
                 #region 参数获取
47
-                //if (!string.IsNullOrEmpty(Request.QueryString["phone"]))
48
-                //{
49
-                //phone = Request.QueryString["phone"].ToString().Trim();//外呼电话 
50
-                phone = "15226899005";
51
-                string oldphone = phone;
52
-                phone = DealPhone(phone);
53
-                txtWaiHuDian.InnerHtml = phone;
54
-                hfPhone.Value = oldphone;
47
+                if (!string.IsNullOrEmpty(Request.QueryString["phone"]))
48
+                {
49
+                    phone = Request.QueryString["phone"].ToString().Trim();//外呼电话 
55 50
 
56
-                //txtZxPhone.Text = phone;
57
-                //txtBxPhone.Text = phone;
58
-                //txtTsPhone.Text = phone;
51
+                    string oldphone = phone;
52
+                    phone = DealPhone(phone);
53
+                    txtWaiHuDian.InnerHtml = phone;
54
+                    hfPhone.Value = oldphone;
55
+
56
+                    //txtZxPhone.Text = phone;
57
+                    //txtBxPhone.Text = phone;
58
+                    //txtTsPhone.Text = phone;
59
+
60
+                    #region 来电归属地查询
61
+
62
+                    string location = "";
63
+                    //来电归属地查询
64
+                    if (phone.Trim().Length == 11 && phone.Substring(0, 1) != "0")
65
+                    {
66
+                        location = GetPhoneLocation(phone, true);
67
+                    }
68
+                    else
69
+                    {
70
+                        location = GetPhoneLocation(phone, false);
71
+                    }
72
+                    txtWaiHuDian.InnerText = phone + " " + location;
73
+
74
+                    #endregion
59 75
 
60
-                #region 来电归属地查询
76
+                    #region 根据电话获取客户信息
61 77
 
62
-                string location = "";
63
-                //来电归属地查询
64
-                if (phone.Trim().Length == 11 && phone.Substring(0, 1) != "0")
78
+                    getCustomerInfoByPhone(phone);
79
+
80
+                    #endregion
81
+                }
82
+                else
83
+                {
84
+                    SysLog.WriteLog(new Exception("没获取到phone"));
85
+                }
86
+                if (!string.IsNullOrEmpty(Request.QueryString["callid"]))
65 87
                 {
66
-                    location = GetPhoneLocation(phone, true);
88
+                    callid = Request.QueryString["callid"];//呼入Id 
89
+                    //callid = "1214";
90
+                    hfCallId.Value = callid;
91
+                    var task = new BLL.T_Call_TaskTelNum().GetModel(callid?.ToInt32() ?? 0);
92
+                    taskId = task?.F_TaskId ?? 0;
93
+                    hfTaskId.Value = taskId.ToString();
94
+                    Model.T_CTI_Task model = new BLL.T_CTI_Task().GetModel(taskId);
95
+                    hfPagerId.Value = model?.y_TkModelId?.ToString() ?? "0";
96
+                    GetTelRecord(callid);
67 97
                 }
68 98
                 else
69 99
                 {
70
-                    location = GetPhoneLocation(phone, false);
100
+                    SysLog.WriteLog(new Exception("没获取到callid"));
71 101
                 }
72
-                txtWaiHuDian.InnerText = phone + " " + location;
73
-
74 102
                 #endregion
75 103
 
76
-                #region 根据电话获取客户信息
77
-
78
-                getCustomerInfoByPhone(phone);
79
-
80
-                #endregion
81
-            }
82
-            else
83
-            {
84
-                SysLog.WriteLog(new Exception("没获取到phone"));
85
-            }
86
-            //if (!string.IsNullOrEmpty(Request.QueryString["callid"]))
87
-            //{
88
-            //callid = Request.QueryString["callid"];//呼入Id 
89
-            //callid = "1214";
90
-            hfCallId.Value = callid;
91
-            var task = new BLL.T_Call_TaskTelNum().GetModel(callid?.ToInt32() ?? 0);
92
-            taskId = task?.F_TaskId ?? 0;
93
-            hfTaskId.Value = taskId.ToString();
94
-            Model.T_CTI_Task model = new BLL.T_CTI_Task().GetModel(taskId);
95
-            hfPagerId.Value = model?.y_TkModelId?.ToString() ?? "0";
96
-            GetTelRecord(callid);
97
-
98
-            InitField(callid, taskId.ToString());
99
-            //}
100
-            //else
101
-            //{
102
-            //    SysLog.WriteLog(new Exception("没获取到callid"));
103
-            //}
104
-            #endregion
105
-
106 104
 
107
-            Model.T_CTI_Task modelTask = new BLL.T_CTI_Task().GetModel(CommonRequest.GetInt("taskid", taskId));
108
-            if (modelTask != null)
109
-            {
110
-                if (modelTask.y_TkModelId != 0)
105
+                Model.T_CTI_Task modelTask = new BLL.T_CTI_Task().GetModel(CommonRequest.GetInt("taskid", taskId));
106
+                if (modelTask != null)
111 107
                 {
112
-                    txtPagerId.Value = modelTask.y_TkModelId.ToString();
113
-
114
-                    Model.T_Ask_PagerInfo modelpager = new BLL.T_Ask_PagerInfo().GetModel(Convert.ToInt32(modelTask.y_TkModelId.ToString()));
115
-                    if (modelpager.F_Title != null)
108
+                    if (modelTask.y_TkModelId != 0)
116 109
                     {
117
-                        spanTitle.InnerHtml = modelpager.F_Title.Trim();
118
-                    }
119
-                    if (modelpager.F_Remark != null)
120
-                    {
121
-                        spanRemark.InnerHtml = modelpager.F_Remark.Trim();
110
+                        txtPagerId.Value = modelTask.y_TkModelId.ToString();
111
+
112
+                        Model.T_Ask_PagerInfo modelpager = new BLL.T_Ask_PagerInfo().GetModel(Convert.ToInt32(modelTask.y_TkModelId.ToString()));
113
+                        if (modelpager.F_Title != null)
114
+                        {
115
+                            spanTitle.InnerHtml = modelpager.F_Title.Trim();
116
+                        }
117
+                        if (modelpager.F_Remark != null)
118
+                        {
119
+                            spanRemark.InnerHtml = modelpager.F_Remark.Trim();
120
+                        }
121
+                        LoadViewList(modelTask.y_TkModelId.ToString(), CommonRequest.GetInt("id", 1).ToString());
122 122
                     }
123
-                    LoadViewList(modelTask.y_TkModelId.ToString(), CommonRequest.GetInt("id", 1).ToString());
124
-                    //}
125 123
                 }
126 124
             }
127 125
         }
@@ -440,68 +438,6 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
440 438
         }
441 439
         #endregion
442 440
 
443
-        #region 加载从excel导入的自定义字段
444
-        private void InitField(string id, string taskid)
445
-        {
446
-            string strHtml = "";
447
-            DataTable dt = new DataTable();
448
-            DataTable dtphone = new DataTable();
449
-            try
450
-            {
451
-                string sql = " ";
452
-                try
453
-                {
454
-                    if (taskid.Trim() != "")
455
-                    {
456
-                        sql += " and [F_TaskId]=" + taskid + " ";
457
-                    }
458
-                    else
459
-                    {
460
-                        sql += " and [F_TaskId]=0 ";
461
-                    }
462
-                }
463
-                catch
464
-                { }
465
-                BLL.T_Call_PageField bll = new BLL.T_Call_PageField();
466
-                dtphone = new BLL.T_Call_TaskTelNum().GetList(" F_Id=" + id + " ").Tables[0];
467
-                dt = bll.GetList(" 1=1 " + sql + " order by F_Sort ").Tables[0];
468
-                if (dt.Rows.Count > 0)
469
-                {
470
-                    for (int i = 0; i < dt.Rows.Count; i++)
471
-                    {
472
-                        string fieldname = dt.Rows[i]["F_DBFieldlName"].ToString().Trim();
473
-                        string style = "";
474
-                        string read = "";
475
-                        if (fieldname == "F_Phone")
476
-                        {
477
-                            style = "background-color: #cccccc;color:red;";
478
-                            read = "readonly";
479
-                        }
480
-                        strHtml += "<div style=\"float:left; width:49.9%; height:30px; text-align:center; padding:0px;\">";
481
-                        strHtml += "<div style=\"height: 30px; padding: 0px; text-align: center;\">";
482
-                        strHtml += "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"";
483
-                        strHtml += " width=\"100%\" height=\"100%\" style=\" text-align:center;padding: 0px; border: 1px dotted #CCCCCC;\" class=\"form_table\">";
484
-                        strHtml += "<tr><th style=' height:30px;text-align:right;padding: 0px; padding-right:5px; width:100px; border-right: 1px dotted #CCCCCC;'><input type=\"text\" id=\"txt_id_" + dt.Rows[i]["F_Id"].ToString() + "\" value='" + dt.Rows[i]["F_DBFieldlName"].ToString().Trim() + "' name=\"forcount\" style=\"display:none\" />";
485
-                        strHtml += "<span id=\"span_name_" + dt.Rows[i]["F_Id"].ToString() + "\">" + dt.Rows[i]["F_Name"].ToString() + ":</span></th>";
486
-                        strHtml += "<td style='height:30px;text-align:left;padding: 0px;'>&nbsp;&nbsp;<input id='txt_field_" + dt.Rows[i]["F_Id"].ToString() + "' name='txt_field_" + dt.Rows[i]["F_Id"].ToString() + "' value='" + dtphone.Rows[0][fieldname].ToString() + "' " + read + " style='width:120px;" + style + "' class='txtInput normal' /></td></tr></table></div></div>";
487
-                    }
488
-
489
-                }
490
-            }
491
-            catch
492
-            {
493
-            }
494
-            finally
495
-            {
496
-                dt.Clear();
497
-                dt.Dispose();
498
-                dtphone.Clear();
499
-                dtphone.Dispose();
500
-            }
501
-            divFieldList.InnerHtml = strHtml;
502
-        }
503
-        #endregion
504
-
505 441
         SimpleWFEngine engine;
506 442
         WOSBusineSupporter.WOSBusineSupporter wosBusineSupporter;
507 443
         string connStr = DBUtility.DbHelperSQL.connectionString;

+ 8 - 9
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/callplanedit.aspx

@@ -134,17 +134,16 @@
134 134
                                     id="lbTaskName" for="TaskName"></label>
135 135
                             </td>
136 136
                         </tr>
137
-                       <%-- <tr>
138
-                            <th>
139
-                                <span style="color: red">计划类型:</span>
137
+                        <tr>
138
+                            <th style="border-right: 1px dotted #cccccc; border-top: 1px dotted #cccccc;">
139
+                                <span  style="color: red;">号码线路选择:</span>
140 140
                             </th>
141
-                            <td>
142
-                                <asp:DropDownList ID="ddlTaskType" runat="server">
143
-                                    <asp:ListItem Value="1" Selected="True">点击外呼</asp:ListItem>
144
-                                    <asp:ListItem Value="2">预测外呼</asp:ListItem>
145
-                                </asp:DropDownList>
141
+                            <td style="border-top: 1px dotted #cccccc;">
142
+                                <asp:DropDownList ID="ddlPre" runat="server"></asp:DropDownList>
143
+
144
+                                <span style="color: red;">&nbsp;&nbsp;*请确保前缀正确无误</span>
146 145
                             </td>
147
-                        </tr>--%>
146
+                        </tr>
148 147
                         <tr>
149 148
                             <th>
150 149
                                 <span style="color: red;">调查问卷:</span>

+ 18 - 2
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/callplanedit.aspx.cs

@@ -19,6 +19,14 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
19 19
                     txtId.Value = Request.QueryString["id"].Trim();
20 20
                     InitObj(Request.QueryString["id"].Trim());
21 21
                 }
22
+                BLL.T_Sys_DictionaryValue dictValue = new BLL.T_Sys_DictionaryValue();
23
+                var list = dictValue.DataTableToList(dictValue.GetList(" F_DictionaryFlag='HMXL' ").Tables[0]);
24
+                foreach (var item in list)
25
+                {
26
+                    ddlPre.Items.Add(new ListItem { Value = item.F_Describe.ToString(), Text = item.F_Name });
27
+                }
28
+
29
+
22 30
             }
23 31
         }
24 32
         void InitObj(string id)
@@ -75,6 +83,8 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
75 83
                 model.y_NoAnswerCount = 0;
76 84
                 model.y_ShutDownCount = 0;
77 85
                 model.TaskType = taskType;
86
+                model.Pre = ddlPre.SelectedValue;
87
+
78 88
                 return model;
79 89
             }
80 90
             set
@@ -84,6 +94,7 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
84 94
                     this.txtId.Value = value.TaskID.ToString();
85 95
                     this.TaskName.Text = value.TaskName;
86 96
                     this.txtPagerId.Value = value.y_TkModelId.ToString();
97
+                    this.ddlPre.SelectedValue = value.Pre;
87 98
                     try
88 99
                     {
89 100
                         if (value.y_TkModelId != 0)
@@ -95,6 +106,7 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
95 106
                     {
96 107
                     }
97 108
 
109
+
98 110
                 }
99 111
             }
100 112
         }
@@ -118,7 +130,11 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
118 130
                 }
119 131
                 if (Request.QueryString["otype"] == "modify")
120 132
                 {
121
-                    if (new BLL.T_CTI_Task().Update(T_CTI_TaskObj))
133
+                    var model = new BLL.T_CTI_Task().GetModel(Convert.ToInt32(Request.QueryString["id"].Trim()));
134
+                    model.TaskName = T_CTI_TaskObj.TaskName;
135
+                    model.y_TkModelId = T_CTI_TaskObj.y_TkModelId;
136
+                    model.Pre = T_CTI_TaskObj.Pre;
137
+                    if (new BLL.T_CTI_Task().Update(model))
122 138
                     {
123 139
                         MessageBoxToWindow("修改成功", "修改提示!", "success");
124 140
                     }
@@ -128,7 +144,7 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
128 144
                     }
129 145
                 }
130 146
             }
131
-            catch
147
+            catch (Exception ex)
132 148
             {
133 149
                 MessageBoxToWindow("保存失败!", "保存提示!", "error");
134 150
             }

+ 9 - 0
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/callplanedit.aspx.designer.cs

@@ -49,6 +49,15 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage {
49 49
         protected global::System.Web.UI.WebControls.TextBox TaskName;
50 50
         
51 51
         /// <summary>
52
+        /// ddlPre 控件。
53
+        /// </summary>
54
+        /// <remarks>
55
+        /// 自动生成的字段。
56
+        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
57
+        /// </remarks>
58
+        protected global::System.Web.UI.WebControls.DropDownList ddlPre;
59
+        
60
+        /// <summary>
52 61
         /// txtPagerId 控件。
53 62
         /// </summary>
54 63
         /// <remarks>

+ 1 - 9
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/callplanintophone.aspx

@@ -245,7 +245,7 @@
245 245
                                 <span>重复过滤:</span>
246 246
                             </th>
247 247
                             <td style="border-top: 1px dotted #cccccc;">
248
-                                <input id="chkGL1" type="checkbox" />&nbsp;过滤Excel中重复号码&nbsp;&nbsp;&nbsp;&nbsp;<input id="chkGL2" type="checkbox" />&nbsp;过滤三个月内外呼回访的号码
248
+                                <input id="chkGL1" type="checkbox" name="chkGL1" />&nbsp;过滤Excel中重复号码&nbsp;&nbsp;&nbsp;&nbsp;<input id="chkGL2" type="checkbox" name="chkGL2" />&nbsp;过滤三个月内外呼回访的号码
249 249
                             </td>
250 250
                         </tr>
251 251
                         <tr style="height: 250px;">
@@ -259,14 +259,6 @@
259 259
                             </td>
260 260
                         </tr>
261 261
                         <tr>
262
-                            <th style="border-right: 1px dotted #cccccc; border-top: 1px dotted #cccccc;">
263
-                                <span>号码前缀:</span>
264
-                            </th>
265
-                            <td style="border-top: 1px dotted #cccccc;">
266
-                                <input id="pre" type="text" name="pre" /><span style="color: red;">&nbsp;&nbsp;*请确保前缀正确无误,如不填则走默认线路!</span>
267
-                            </td>
268
-                        </tr>
269
-                        <tr>
270 262
                             <td>&nbsp;
271 263
                             </td>
272 264
                             <td align="center">

+ 1 - 1
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/callplanintophone.aspx.cs

@@ -84,7 +84,7 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage
84 84
                                                 string[] ArryClm = strSelName.Split(',');
85 85
 
86 86
                                                 SqlCommand cmd = new SqlCommand();
87
-                                                
87
+
88 88
                                                 foreach (DataRow dr in dtInputData.Rows)
89 89
                                                 {
90 90
                                                     sql = "";