yuqian il y a 8 ans
Parent
commit
575967cd2c

+ 84 - 0
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/chooseagent.aspx

@@ -0,0 +1,84 @@
1
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="chooseagent.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.calloutmanage.chooseagent" %>
2
+
3
+<!DOCTYPE html>
4
+
5
+<html xmlns="http://www.w3.org/1999/xhtml">
6
+<head runat="server">
7
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+    <title></title>
9
+    <link href="../images/style.css" rel="stylesheet" type="text/css" />
10
+
11
+</head>
12
+<body>
13
+    <form id="form1" runat="server">
14
+        <div id="divUserList">
15
+        </div>
16
+        <input type="button" name="name" value="保存" class="btnSubmit" id="btnSubmit" />
17
+    </form>
18
+
19
+    <script src="../scripts/jquery/jquery-1.8.3.min.js"></script>
20
+    <script src="../scripts/ui/js/plugins/ligerLayout.js" type="text/javascript"></script>
21
+    <script>
22
+        $(function () {
23
+            LoadUserList();
24
+            $("#btnSubmit").click(function () {
25
+                var agentIds = "";
26
+                $(":selected").each(function (i, obj) {
27
+                    agentIds += $(obj).val() + ",";
28
+                });
29
+                $.ajax({
30
+                    url: "",
31
+                    type: "POST",
32
+                    async: false,
33
+                    data: { agentIds: agentIds },
34
+                    success: function (res) {
35
+                        if (res.flag) {
36
+
37
+                        }
38
+                        else {
39
+                            $.ligerDialog.error(res.msg);
40
+                        }
41
+                    }
42
+
43
+                });
44
+            });
45
+        });
46
+        function LoadUserList() {
47
+            try {
48
+                $.ajax({
49
+                    type: 'get',
50
+                    url: 'ajax/callplanfpset.ashx?action=getusers',
51
+                    data: { userid: '' },
52
+                    dataType: 'html',
53
+                    async: false,
54
+                    cache: false,
55
+                    success: function (res) {
56
+                        if (res != "") {
57
+                            document.getElementById("divUserList").innerHTML = res;
58
+                        }
59
+                    }
60
+                });
61
+            }
62
+            catch (e) {
63
+                $.ligerDialog.error("加载失败,错误信息:" + e.Message);
64
+            }
65
+        }
66
+        function SelectAll() {
67
+            if ($("#chkAll").prop("checked")) {
68
+                $(":checkbox").prop("checked", true);
69
+            } else {
70
+                $(":checkbox").prop("checked", false);
71
+            }
72
+        }
73
+
74
+        function SelectGroup(obj) {
75
+            if ($(obj).prop("checked")) {
76
+                $(":checkbox[name='" + $(obj).attr("name") + "']").prop("checked", true);
77
+            } else {
78
+                $(":checkbox[name='" + $(obj).attr("name") + "']").prop("checked", false);
79
+            }
80
+
81
+        }
82
+    </script>
83
+</body>
84
+</html>

+ 25 - 0
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/chooseagent.aspx.cs

@@ -0,0 +1,25 @@
1
+using HySoft.Common;
2
+using System;
3
+using System.Collections.Generic;
4
+using System.Linq;
5
+using System.Web;
6
+using System.Web.UI;
7
+using System.Web.UI.WebControls;
8
+
9
+namespace HySoft.BaseCallCenter.Web.calloutmanage
10
+{
11
+    public partial class chooseagent : System.Web.UI.Page
12
+    {
13
+        private BLL.T_CTI_Task taskBLL = new BLL.T_CTI_Task();
14
+        protected void Page_Load(object sender, EventArgs e)
15
+        {
16
+            if (!IsPostBack)
17
+            {
18
+                var taskId = CommonRequest.GetInt("id", 0);
19
+                var task = taskBLL.GetModel(taskId);
20
+                if (task == null)
21
+                    return;
22
+            }
23
+        }
24
+    }
25
+}

+ 24 - 0
HyBaseCallCenter/BaseCallCenter.Web/calloutmanage/chooseagent.aspx.designer.cs

@@ -0,0 +1,24 @@
1
+//------------------------------------------------------------------------------
2
+// <自动生成>
3
+//     此代码由工具生成。
4
+//
5
+//     对此文件的更改可能导致不正确的行为,如果
6
+//     重新生成代码,则所做更改将丢失。
7
+// </自动生成>
8
+//------------------------------------------------------------------------------
9
+
10
+namespace HySoft.BaseCallCenter.Web.calloutmanage {
11
+    
12
+    
13
+    public partial class chooseagent {
14
+        
15
+        /// <summary>
16
+        /// form1 控件。
17
+        /// </summary>
18
+        /// <remarks>
19
+        /// 自动生成的字段。
20
+        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
21
+        /// </remarks>
22
+        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
23
+    }
24
+}

+ 131 - 0
HyBaseCallCenter/BaseCallCenter.Web/customermanage/customerlabelmodify.aspx

@@ -0,0 +1,131 @@
1
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="customerlabelmodify.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.customermanage.customerlabelmodify" %>
2
+
3
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+
5
+<html xmlns="http://www.w3.org/1999/xhtml">
6
+<head>
7
+    <title>编辑客户</title>
8
+    <script src="../scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
9
+    <script type="text/javascript" src="../scripts/jquery/jquery.form.js"></script>
10
+    <script type="text/javascript" src="../scripts/jquery/jquery.validate.min.js"></script>
11
+    <script type="text/javascript" src="../scripts/jquery/messages_cn.js"></script>
12
+    <script type="text/javascript" src="../scripts/function.js"></script>
13
+    <link href="../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
14
+    <script src="../scripts/ui/json2.js" type="text/javascript"></script>
15
+    <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
16
+    <script src="../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
17
+    <link href="../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
18
+    <link href="../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
19
+    <script src="../scripts/ui/js/plugins/ligerGrid.js" type="text/javascript"></script>
20
+    <script src="../scripts/ui/js/plugins/ligerLayout.js" type="text/javascript"></script>
21
+    <script src="../scripts/ui/js/plugins/ligerTree.js" type="text/javascript"></script>
22
+    <script src="../scripts/ui/js/plugins/ligerMenu.js" type="text/javascript"></script>
23
+    <script src="../scripts/ui/js/plugins/ligerTextBox.js" type="text/javascript"></script>
24
+    <script src="../scripts/ui/js/plugins/ligerComboBox.js" type="text/javascript"></script>
25
+    <link href="../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
26
+    <link href="../images/style.css" rel="stylesheet" type="text/css" />
27
+    <script src="../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
28
+    <script type="text/javascript">
29
+        var treelist = null;
30
+        $(function () {
31
+            LoadList();
32
+            //AddHistoryList();
33
+            InitList();
34
+        });
35
+        function toDay() {
36
+            var d = new Date();
37
+            var str = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate();
38
+            return str;
39
+        }
40
+        var gridlist;
41
+        var singleClick;
42
+
43
+
44
+        function CloseThis() {
45
+            var dialog = frameElement.dialog;
46
+            parent.InitList();
47
+            dialog.close();
48
+        }
49
+        function SaveInfo(res) {
50
+            switch (res) {
51
+                case 'success':
52
+                    $.ligerDialog.success('保存成功', function (yes) { CloseThis(); });
53
+                    break;
54
+                case 'warn':
55
+                    $.ligerDialog.error('保存失败,请确认数据正确性');
56
+                    break;
57
+                case 'error':
58
+                    $.ligerDialog.error('系统错误,请联系开发商');
59
+                    break;
60
+                default:
61
+                    break;
62
+            }
63
+        }
64
+        function validate() {
65
+            lblCustomerName.innerHTML = "*";
66
+            lblCustomerName.style.color = "#717171";
67
+            lblCustomerCode.innerHTML = "*";
68
+            lblCustomerCode.style.color = "#717171";
69
+            if (document.getElementById("txtCustomerName").value == "") {
70
+                lblCustomerName.innerHTML = "请填写客户名";
71
+                lblCustomerName.style.color = "red";
72
+                return false;
73
+            }
74
+            else if (document.getElementById("txtCustomerCode").value == "") {
75
+                lblCustomerCode.innerHTML = "请填写客户编号";
76
+                lblCustomerCode.style.color = "red";
77
+                return false;
78
+            }
79
+            return true;
80
+        }
81
+
82
+    </script>
83
+
84
+</head>
85
+<body class="mainbody" style="margin-top: 0px;">
86
+    <form id="form1" runat="server">
87
+        <div id="contentTab">
88
+            <table class="form_table">
89
+                <col width="95px" />
90
+                <col />
91
+                <col width="95px" />
92
+                <col />
93
+                <col width="95px" />
94
+                <col />
95
+                <tbody>
96
+                    <tr>
97
+                        <th>标签名称:
98
+                        </th>
99
+                        <td colspan="3">
100
+                            <asp:HiddenField ID="hiddLabelId" runat="server" />
101
+                            <asp:TextBox ID="txtLabelName" runat="server" CssClass="txtInput normal" Style="width: 300px;"></asp:TextBox><label
102
+                                id="lblLabelName" for="txtLabelName">*</label>
103
+                        </td>
104
+                    </tr>
105
+                    <tr>
106
+                        <th>标签描述:
107
+                        </th>
108
+                        <td colspan="3">
109
+                            <asp:TextBox ID="txtLabelDescription" runat="server" CssClass="txtInput normal" Style="width: 300px;" TextMode="MultiLine"></asp:TextBox><label
110
+                                id="lblLabelDescription" for="txtLabelDescription">*</label>
111
+                        </td>
112
+                    </tr>
113
+                    <tr>
114
+                        <th>标签排序:
115
+                        </th>
116
+                        <td colspan="3">
117
+                            <asp:TextBox ID="txtLabelSort" runat="server" CssClass="txtInput normal" Style="width: 300px;"></asp:TextBox><label
118
+                                id="lblLabelSort" for="txtLabelSort">*</label>
119
+                        </td>
120
+                    </tr>
121
+
122
+                </tbody>
123
+            </table>
124
+            <div class="foot_btn_box">
125
+                <asp:Button ID="btnSubmit" runat="server" Text="保&nbsp;&nbsp;存" CssClass="btnSubmit"
126
+                    OnClientClick="return validate();" OnClick="btnSubmit_Click" />
127
+            </div>
128
+        </div>
129
+    </form>
130
+</body>
131
+</html>

+ 71 - 0
HyBaseCallCenter/BaseCallCenter.Web/customermanage/customerlabelmodify.aspx.cs

@@ -0,0 +1,71 @@
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
+
8
+namespace HySoft.BaseCallCenter.Web.customermanage
9
+{
10
+    public partial class customerlabelmodify : System.Web.UI.Page
11
+    {
12
+        private BLL.T_Sys_DictionaryValue dicBLL = new BLL.T_Sys_DictionaryValue();
13
+        protected void Page_Load(object sender, EventArgs e)
14
+        {
15
+            if (!IsPostBack)
16
+            {
17
+                var action = Common.CommonRequest.GetString("action");
18
+                switch (action)
19
+                {
20
+                    case "edit":
21
+                        Modify();
22
+                        break;
23
+                    default:
24
+                        break;
25
+                }
26
+
27
+            }
28
+        }
29
+
30
+        private void Modify()
31
+        {
32
+            var labelId = Common.CommonRequest.GetInt("labelId", 0);
33
+            if (labelId > 0)
34
+            {
35
+                var label = new BLL.T_Sys_DictionaryValue().GetModel(labelId);
36
+                this.hiddLabelId.Value = label.F_DictionaryValueId.ToString();
37
+                this.txtLabelName.Text = label.F_Name;
38
+            }
39
+        }
40
+
41
+
42
+
43
+        protected void btnSubmit_Click(object sender, EventArgs e)
44
+        {
45
+            var labelId = 0;
46
+            var labelSort = 0;
47
+            int.TryParse(hiddLabelId.Value, out labelId);
48
+            var labelName = txtLabelName.Text;
49
+            var labelDescription = txtLabelDescription.Text;
50
+            int.TryParse(txtLabelSort.Text, out labelSort);
51
+            if (labelId > 0)
52
+            {
53
+                var model = dicBLL.GetModel(labelId);
54
+                model.F_Name = labelName;
55
+                dicBLL.Update(model);
56
+            }
57
+            else
58
+            {
59
+                dicBLL.Add(new Model.T_Sys_DictionaryValue
60
+                {
61
+                    F_Name = labelName,
62
+                    F_DictionaryFlag = "KHBQ",
63
+                    F_Describe = labelDescription,
64
+                    F_State = "1",
65
+                    F_Sort = labelSort,
66
+                    F_ValueCode = ""
67
+                });
68
+            }
69
+        }
70
+    }
71
+}

+ 69 - 0
HyBaseCallCenter/BaseCallCenter.Web/customermanage/customerlabelmodify.aspx.designer.cs

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