|
|
@@ -35,7 +35,7 @@
|
|
35
|
35
|
/// <param name="blres"></param>
|
|
36
|
36
|
/// <param name="strres"></param>*/
|
|
37
|
37
|
function EvtUnHold(blres, strres) {
|
|
38
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtUnHold");
|
|
|
38
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtUnHold");
|
|
39
|
39
|
if (blres == "True") {
|
|
40
|
40
|
parent.SetServerRes("坐席接回成功");
|
|
41
|
41
|
parent.SetLineStatus("取保持");
|
|
|
@@ -53,7 +53,7 @@
|
|
53
|
53
|
/// <param name="blres"></param>
|
|
54
|
54
|
/// <param name="strres"></param>*/
|
|
55
|
55
|
function EvtHold(blres, strres) {
|
|
56
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtHold");
|
|
|
56
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtHold");
|
|
57
|
57
|
if (blres == "True") {
|
|
58
|
58
|
parent.SetServerRes("坐席保持成功");
|
|
59
|
59
|
//parent.setButton(telImgType.gdFalse, telImgType.whFalse, telImgType.zmFalse, telImgType.zxFalse, telImgType.sfFalse, telImgType.zyFalse, telImgType.bcFalse, telImgType.jhTrue);
|
|
|
@@ -72,7 +72,7 @@
|
|
72
|
72
|
/// <param name="blres"></param>
|
|
73
|
73
|
/// <param name="strres"></param>*/
|
|
74
|
74
|
function EvtTransferToPhone(blres, strres) {
|
|
75
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtTransferToPhone");
|
|
|
75
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtTransferToPhone");
|
|
76
|
76
|
if (blres == "True") {
|
|
77
|
77
|
parent.SetServerRes("坐席转移电话成功");
|
|
78
|
78
|
parent.SetLineStatus("转移");
|
|
|
@@ -90,7 +90,7 @@
|
|
90
|
90
|
/// <param name="blres"></param>
|
|
91
|
91
|
/// <param name="strres"></param>*/
|
|
92
|
92
|
function EvtThirdParty(blres, strres) {
|
|
93
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtThirdParty");
|
|
|
93
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtThirdParty");
|
|
94
|
94
|
if (blres == "True") {
|
|
95
|
95
|
parent.SetServerRes("坐席三方通话成功");
|
|
96
|
96
|
parent.SetLineStatus("三方");
|
|
|
@@ -108,7 +108,7 @@
|
|
108
|
108
|
/// <param name="blres"></param>
|
|
109
|
109
|
/// <param name="strres"></param>*/
|
|
110
|
110
|
function EvtTransferToIVR(blres, strres) {
|
|
111
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtTransferToIVR");
|
|
|
111
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtTransferToIVR");
|
|
112
|
112
|
if (blres == "True") {
|
|
113
|
113
|
parent.SetServerRes("坐席转IVR成功");
|
|
114
|
114
|
//parent.setButton(telImgType.gdFalse, telImgType.whFalse, telImgType.zmFalse, telImgType.zxFalse, telImgType.sfFalse, telImgType.zyFalse, telImgType.bcFalse, telImgType.jhFalse);
|
|
|
@@ -126,7 +126,7 @@
|
|
126
|
126
|
/// <param name="blres"></param>
|
|
127
|
127
|
/// <param name="strres"></param>*/
|
|
128
|
128
|
function EvtSetFree(blres, strres) {
|
|
129
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtSetFree");
|
|
|
129
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtSetFree");
|
|
130
|
130
|
if (blres == "True") {
|
|
131
|
131
|
parent.SetServerRes("坐席置闲成功");
|
|
132
|
132
|
parent.SetLineStatus("空闲");
|
|
|
@@ -146,7 +146,7 @@
|
|
146
|
146
|
/// <param name="blres"></param>
|
|
147
|
147
|
/// <param name="strres"></param>*/
|
|
148
|
148
|
function EvtSetBusy(blres, strres) {
|
|
149
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtSetBusy");
|
|
|
149
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtSetBusy");
|
|
150
|
150
|
if (blres == "True") {
|
|
151
|
151
|
parent.SetServerRes("坐席置忙成功");
|
|
152
|
152
|
parent.SetLineStatus("空闲");
|
|
|
@@ -166,7 +166,7 @@
|
|
166
|
166
|
/// <param name="blres"></param>
|
|
167
|
167
|
/// <param name="strres"></param>*/
|
|
168
|
168
|
function EvtHangup(blres, strres) {
|
|
169
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtHangup");
|
|
|
169
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtHangup");
|
|
170
|
170
|
if (blres == "True") {
|
|
171
|
171
|
parent.SetServerRes("坐席挂机成功");
|
|
172
|
172
|
//parent.setButton(telImgType.gdFalse, telImgType.whTrue, telImgType.zmFalse, telImgType.zxTrue, telImgType.sfFalse, telImgType.zyFalse, telImgType.bcFalse, telImgType.jhTrue);
|
|
|
@@ -184,7 +184,7 @@
|
|
184
|
184
|
/// <param name="blres"></param>
|
|
185
|
185
|
/// <param name="strres"></param>*/
|
|
186
|
186
|
function EvtConsult(blres, strres) {
|
|
187
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtConsult");
|
|
|
187
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtConsult");
|
|
188
|
188
|
}
|
|
189
|
189
|
|
|
190
|
190
|
/*/// <summary>
|
|
|
@@ -212,7 +212,7 @@
|
|
212
|
212
|
/// <param name="blres"></param>
|
|
213
|
213
|
/// <param name="strres"></param>*/
|
|
214
|
214
|
function EvtAgentLogout(blres, strres) {
|
|
215
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtAgentLogout");
|
|
|
215
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtAgentLogout");
|
|
216
|
216
|
if (blres == "True") {
|
|
217
|
217
|
parent.SetServerRes("坐席签出成功");
|
|
218
|
218
|
parent.SetLineStatus("空闲");
|
|
|
@@ -231,7 +231,7 @@
|
|
231
|
231
|
/// <param name="blres"></param>
|
|
232
|
232
|
/// <param name="strres"></param>*/
|
|
233
|
233
|
function EvtAgentLogin(blres, strres) {
|
|
234
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtAgentLogin");
|
|
|
234
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtAgentLogin");
|
|
235
|
235
|
if (blres == "True") {
|
|
236
|
236
|
parent.SetServerRes("坐席签入成功");
|
|
237
|
237
|
parent.SetLineStatus("空闲");
|
|
|
@@ -241,9 +241,10 @@
|
|
241
|
241
|
resSign = 2;
|
|
242
|
242
|
}
|
|
243
|
243
|
else {
|
|
|
244
|
+ parent.SetServerStatus(0, "未知");
|
|
244
|
245
|
parent.SetServerRes("坐席签入失败:" + strres);
|
|
245
|
246
|
parent.SetLineStatus("未知");
|
|
246
|
|
- //parent.setButton(telImgType.gdFalse, telImgType.whFalse, telImgType.zmFalse, telImgType.zxFalse, telImgType.sfFalse, telImgType.zyFalse, telImgType.bcFalse, telImgType.jhFalse);
|
|
|
247
|
+ parent.setButton(telImgType.gdFalse, telImgType.whFalse, telImgType.zmFalse, telImgType.zxFalse, telImgType.sfFalse, telImgType.zyFalse, telImgType.bcFalse, telImgType.jhFalse);
|
|
247
|
248
|
parent.SetAgentStatus(0,"未签入");
|
|
248
|
249
|
}
|
|
249
|
250
|
}
|
|
|
@@ -253,7 +254,7 @@
|
|
253
|
254
|
/// </summary>
|
|
254
|
255
|
/// <param name="sender"></param>*/
|
|
255
|
256
|
function OCX_CallOut() {
|
|
256
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtTelephoneHangup");
|
|
|
257
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtTelephoneHangup");
|
|
257
|
258
|
if (blres == "True") {
|
|
258
|
259
|
parent.SetServerRes("坐席挂机成功");
|
|
259
|
260
|
parent.SetLineStatus("空闲");
|
|
|
@@ -276,6 +277,7 @@
|
|
276
|
277
|
parent.SetServerStatus(1, "空闲");
|
|
277
|
278
|
switch (serverState) {
|
|
278
|
279
|
case "0":
|
|
|
280
|
+ parent.SetServerStatus(0, "未知");
|
|
279
|
281
|
parent.SetServerRes("分机不可用");
|
|
280
|
282
|
parent.SetLineStatus("空闲");
|
|
281
|
283
|
parent.setButton(telImgType.gdFalse, telImgType.whFalse, telImgType.zmFalse, telImgType.zxFalse, telImgType.sfFalse, telImgType.zyFalse, telImgType.bcFalse, telImgType.jhFalse);
|
|
|
@@ -380,7 +382,7 @@
|
|
380
|
382
|
/// <param name="sender"></param>
|
|
381
|
383
|
/// <param name="agentState"></param>*/
|
|
382
|
384
|
function EvtAgentStateChange(agentState) {
|
|
383
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtAgentStateChange:" + agentState);
|
|
|
385
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtAgentStateChange:" + agentState);
|
|
384
|
386
|
|
|
385
|
387
|
//AGENT_STATE_UNKNOWN = 0x00, // 未知
|
|
386
|
388
|
|
|
|
@@ -448,7 +450,7 @@
|
|
448
|
450
|
/// <param name="callID"></param>
|
|
449
|
451
|
/// <param name="dataParam"></param>*/
|
|
450
|
452
|
function EvtCallComming(callerNum, callID, dataParam) {
|
|
451
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtCallComming");
|
|
|
453
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtCallComming");
|
|
452
|
454
|
try {
|
|
453
|
455
|
parent.document.getElementById("txtCallId").value = callID; //呼叫标识
|
|
454
|
456
|
parent.document.getElementById("txtCallNumber").value = callerNum; //来电号码
|
|
|
@@ -486,7 +488,7 @@
|
|
486
|
488
|
/// <param name="callID">呼叫编号</param>
|
|
487
|
489
|
/// <param name="dataParam">任务Id</param>*/
|
|
488
|
490
|
function EvtRecordInfo(path, callID, dataParam) {
|
|
489
|
|
- //WriteFileLogs(1, "iframeocx.aspx", "EvtRecordInfo: path=" + path + ";callID:" + callID + ";dataParam=" + dataParam);
|
|
|
491
|
+ WriteFileLogs(1, "iframeocx.aspx", "EvtRecordInfo: path=" + path + ";callID:" + callID + ";dataParam=" + dataParam);
|
|
490
|
492
|
try {
|
|
491
|
493
|
parent.UpdateCallPath(callID, path);
|
|
492
|
494
|
} catch (e) {
|