FrmOutgoingCalls.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. using LYFZ.ComponentLibrary;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. namespace LYFZ.Software.MainBusiness.CallerWizard
  11. {
  12. public partial class FrmOutgoingCalls : LYFZ.Software.UI.CallerWizard.FrmOutgoingCalls
  13. {
  14. LYFZ.BLL.BLL_ErpCallWizard cwbll = new BLL.BLL_ErpCallWizard();
  15. private delegate void UpdateControl();
  16. public FrmOutgoingCalls()
  17. {
  18. this.Shown += FrmCustomerCalls_Shown;
  19. this.btnQuery.Click += btnQuery_Click;
  20. this.btnDelete.Click += btnDelete_Click;
  21. this.btnCall.Click += btnCall_Click;
  22. this.btnPlayer.Click += btnPlayer_Click;
  23. this.btnClose.Click += btnClose_Click;
  24. this.tabControlEx1.SelectedIndexChanged += tabControlEx1_SelectedIndexChanged;
  25. this.ucPager_ClientOrder.EventPaging += UcPagerEx1_EventPaging;
  26. }
  27. /// <summary>
  28. /// 窗体加载事件
  29. /// </summary>
  30. /// <param name="sender"></param>
  31. /// <param name="e"></param>
  32. void FrmCustomerCalls_Shown(object sender, EventArgs e)
  33. {
  34. this.btnDelete.Enabled = LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.CustomerCallsCompetence, CustomAttributes.OperatingAuthority.Delete);
  35. this.PublicFunctionRows();
  36. }
  37. /// <summary>
  38. /// 查询
  39. /// </summary>
  40. /// <param name="sender"></param>
  41. /// <param name="e"></param>
  42. void btnQuery_Click(object sender, EventArgs e)
  43. {
  44. this.PublicFunctionRows();
  45. }
  46. /// <summary>
  47. /// 删除
  48. /// </summary>
  49. /// <param name="sender"></param>
  50. /// <param name="e"></param>
  51. void btnDelete_Click(object sender, EventArgs e)
  52. {
  53. if (this.dgvData.Rows.Count > 0)
  54. {
  55. if (this.dgvData.CurrentRow == null)
  56. { MessageBoxCustom.Show("请选中你要录音回放的数据!"); return; }
  57. if (this.dgvData.CurrentRow.Index >= 0 && this.dgvData.CurrentCell.RowIndex >= 0)
  58. {
  59. if (!string.IsNullOrEmpty(this.dgvData.CurrentRow.Cells["ID"].Value.ToString().Trim()))
  60. {
  61. if (MessageBoxCustom.Show("您确定删除吗?", "温馨提示!", MessageBoxButtons.YesNo) == DialogResult.No)
  62. { return; }
  63. if (cwbll.Delete(Convert.ToInt32(this.dgvData.CurrentRow.Cells["ID"].Value)))
  64. {
  65. string logsContent = "删除客户来电电话号码:" + this.dgvData.CurrentRow.Cells["电话"].Value.ToString();
  66. LYFZ.BLL.BLL_ErpSystemLogs.WriteSystemLog(LYFZ.EnumPublic.SystemLogsType.删除电话记录, logsContent, LYFZ.BLL.BLL_ErpUser.UsersModel.User_EmployeeID, LYFZ.BLL.BLL_ErpUser.UsersModel.User_Name);
  67. MessageBoxCustom.Show("删除成功!"); this.dgvData.Rows.Remove(this.dgvData.CurrentRow);
  68. }
  69. else
  70. { MessageBoxCustom.Show("删除失败!"); }
  71. }
  72. }
  73. }
  74. }
  75. /// <summary>
  76. /// 呼叫
  77. /// </summary>
  78. /// <param name="sender"></param>
  79. /// <param name="e"></param>
  80. void btnCall_Click(object sender, EventArgs e)
  81. {
  82. if (this.dgvData.Rows.Count > 0)
  83. {
  84. if (this.dgvData.CurrentRow == null)
  85. { MessageBoxCustom.Show("请选中你要录音回放的数据!"); return; }
  86. if (this.dgvData.CurrentRow.Index >= 0 && this.dgvData.CurrentCell.RowIndex >= 0)
  87. {
  88. if (!string.IsNullOrEmpty(this.dgvData.CurrentRow.Cells["电话"].Value.ToString().Trim()))
  89. {
  90. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.PhoneCall(this.dgvData.CurrentRow.Cells["电话"].Value.ToString().Trim());
  91. }
  92. else
  93. { MessageBoxCustom.Show("选择的通话记录电话号码为空!"); }
  94. }
  95. }
  96. }
  97. /// <summary>
  98. /// 录音回放
  99. /// </summary>
  100. /// <param name="sender"></param>
  101. /// <param name="e"></param>
  102. void btnPlayer_Click(object sender, EventArgs e)
  103. {
  104. if (this.dgvData.Rows.Count > 0)
  105. {
  106. if (this.dgvData.CurrentRow == null)
  107. { MessageBoxCustom.Show("请选中你要录音回放的数据!"); return; }
  108. if (this.dgvData.CurrentRow.Index >= 0 && this.dgvData.CurrentCell.RowIndex >= 0)
  109. {
  110. if (!string.IsNullOrEmpty(this.dgvData.CurrentRow.Cells["路径"].Value.ToString().Trim()))
  111. {
  112. //播放
  113. FrmPlayer set = new FrmPlayer();
  114. set.Path = this.dgvData.CurrentRow.Cells["路径"].Value.ToString().Trim();
  115. set.ShowDialog();
  116. }
  117. else
  118. { MessageBoxCustom.Show("选择的通话记录未录音!"); }
  119. }
  120. }
  121. }
  122. /// <summary>
  123. /// 关闭
  124. /// </summary>
  125. /// <param name="sender"></param>
  126. /// <param name="e"></param>
  127. void btnClose_Click(object sender, EventArgs e)
  128. {
  129. this.Close();
  130. }
  131. /// <summary>
  132. /// 选项卡选择事件
  133. /// </summary>
  134. /// <param name="sender"></param>
  135. /// <param name="e"></param>
  136. void tabControlEx1_SelectedIndexChanged(object sender, EventArgs e)
  137. {
  138. this.PublicFunctionRows();
  139. }
  140. /// <summary>
  141. /// 分页前数据,便于展开时用来查询订单的子数据
  142. /// </summary>
  143. DataTable tblMianSelectData = new DataTable();
  144. /// <summary>
  145. /// 创建行
  146. /// </summary>
  147. private void PublicFunctionRows()
  148. {
  149. this.UcPagerEx1.EventPaging -= UcPagerEx1_EventPaging;
  150. this.UcPagerEx1.EventPaging += UcPagerEx1_EventPaging;
  151. this.UcPagerEx1.PageCurrent = 1;
  152. this.UcPagerEx1.PageSize = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetPageSize();//3;分页条数
  153. this.UcPagerEx1.Bind();
  154. }
  155. /// <summary>
  156. /// 画分页
  157. /// </summary>
  158. /// <param name="e"></param>
  159. /// <returns></returns>
  160. int UcPagerEx1_EventPaging(UCPager.EventPagingArg e)
  161. {
  162. LYFZ.UCPager.PageData pageData = new LYFZ.UCPager.PageData();
  163. pageData.TableName = GetTableName_Main();
  164. pageData.PageIndex = this.UcPagerEx1.PageCurrent;
  165. pageData.PageSize = this.UcPagerEx1.PageSize;
  166. pageData.QueryCondition = GetWhereStr();
  167. pageData.OrderStr = "时间";
  168. pageData.OrderType = 1;
  169. string StrTabName = this.tabControlEx1.SelectedTab.Name.Trim();
  170. this.dgvData.dgvGuidName = GetGuidName();
  171. this.dgvData.dgvUserEmployeeID = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.LoginUserModel.User_EmployeeID;
  172. this.dgvData.dgvFixedHideColumn = "ID,路径";
  173. this.dgvData.dgvCurrentColumnOriginalSet = GetFieldName();
  174. pageData.QueryFieldName = this.dgvData.dgvSetColumnName();
  175. if (string.IsNullOrEmpty(pageData.QueryFieldName))
  176. { pageData.QueryFieldName = this.dgvData.dgvCurrentColumnOriginalSet; }
  177. LYFZ.ComponentLibrary.FrmLoadHandling.LoadDoWorkMethod(delegate(object obj, BackgroundWorker backgroundWorker)
  178. {
  179. this.tblMianSelectData = pageData.QueryDataTable().Tables[0];
  180. try
  181. {
  182. this.Invoke(new LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.UpdateControl(delegate()
  183. {
  184. this.dgvData.DataSource(this.tblMianSelectData);
  185. this.dgvData.FillLastColumn(true);
  186. }));
  187. }
  188. catch
  189. { }
  190. });
  191. try
  192. {
  193. this.UcPagerEx1.TbDataSource = this.tblMianSelectData;
  194. this.dgvData.Columns["时间"].Width = 110;
  195. this.dgvData.ColumnHeaderMouseDoubleClick -= dgvData_ColumnHeaderMouseDoubleClick;
  196. this.dgvData.ColumnHeaderMouseDoubleClick += dgvData_ColumnHeaderMouseDoubleClick;
  197. }
  198. catch { }
  199. this.dgvData.ClearSelection();
  200. return pageData.TotalCount;
  201. }
  202. /// <summary>
  203. /// 列表双击事件
  204. /// </summary>
  205. /// <param name="sender"></param>
  206. /// <param name="e"></param>
  207. void dgvData_ColumnHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
  208. {
  209. }
  210. /// <summary>
  211. /// 查询要获取的字段
  212. /// </summary>
  213. /// <returns></returns>
  214. private string GetGuidName()
  215. {
  216. switch (this.tabControlEx1.SelectedTab.Name.Trim())
  217. {
  218. case "tabPage_ClientOrder":
  219. return LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0035.ToString().Trim();
  220. case "tabPage_ClientOld":
  221. return LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0036.ToString().Trim();
  222. case "tabPage_ClientIntent":
  223. return LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0037.ToString().Trim();
  224. case "tabPage_ClientOther":
  225. return LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0038.ToString().Trim();
  226. case "tabPage_ClientUser":
  227. return LYFZ.EnumPublic.dgvGuidName.E_FormAll_A0039.ToString().Trim();
  228. default: return "";
  229. }
  230. }
  231. /// <summary>
  232. /// 查询要获取的字段
  233. /// </summary>
  234. /// <returns></returns>
  235. private string GetFieldName()
  236. {
  237. switch (this.tabControlEx1.SelectedTab.Name.Trim())
  238. {
  239. case "tabPage_ClientOrder":
  240. return "";
  241. case "tabPage_ClientOld":
  242. return "";
  243. case "tabPage_ClientIntent":
  244. return "";
  245. case "tabPage_ClientOther":
  246. return "";
  247. case "tabPage_ClientUser":
  248. return "ID,姓名,电话,时间,路径";
  249. default: return "";
  250. }
  251. }
  252. /// <summary>
  253. /// 返回要操作的条件
  254. /// </summary>
  255. /// <returns></returns>
  256. private string GetWhereStr()
  257. {
  258. string StrWhere = " 1=1 ";
  259. switch (this.tabControlEx1.SelectedTab.Name.Trim())
  260. {
  261. case "tabPage_ClientOrder":
  262. StrWhere += "";
  263. break;
  264. case "tabPage_ClientOld":
  265. StrWhere += "";
  266. break;
  267. case "tabPage_ClientIntent":
  268. StrWhere += "";
  269. break;
  270. case "tabPage_ClientOther":
  271. StrWhere += "";
  272. break;
  273. case "tabPage_ClientUser":
  274. StrWhere += " And 状态 = '拨出电话'";
  275. if (this.txtQuery.Text.Trim() != "")
  276. { StrWhere += " And (姓名 like '%" + this.txtQuery.Text.Trim() + "%' or 电话 like '%" + this.txtQuery.Text.Trim() + "%')"; }
  277. break;
  278. }
  279. return StrWhere;
  280. }
  281. /// <summary>
  282. /// 返回要操作的数据表
  283. /// </summary>
  284. /// <returns></returns>
  285. private string GetTableName_Main()
  286. {
  287. switch (this.tabControlEx1.SelectedTab.Name.Trim())
  288. {
  289. case "tabPage_ClientOrder":
  290. return "";
  291. case "tabPage_ClientOld":
  292. return "";
  293. case "tabPage_ClientIntent":
  294. return "";
  295. case "tabPage_ClientOther":
  296. return "";
  297. case "tabPage_ClientUser":
  298. return "BView_CallsElves_UserCalls";
  299. default: return "";
  300. }
  301. }
  302. /// <summary>
  303. /// 定义列表属性
  304. /// </summary>
  305. public LYFZ.ComponentLibrary.DataGridViewEc dgvData
  306. {
  307. get
  308. {
  309. switch (this.tabControlEx1.SelectedTab.Name.Trim())
  310. {
  311. case "tabPage_ClientOrder":
  312. return this.dgvData_ClientOrder;
  313. case "tabPage_ClientOld":
  314. return this.dgvData_ClientOld;
  315. case "tabPage_ClientIntent":
  316. return this.dgvData_ClientIntent;
  317. case "tabPage_ClientOther":
  318. return this.dgvData_ClientOther;
  319. case "tabPage_ClientUser":
  320. return this.dgvData_ClientUser;
  321. default: return this.dgvData_ClientOrder;
  322. }
  323. }
  324. set
  325. {
  326. switch (this.tabControlEx1.SelectedTab.Name.Trim())
  327. {
  328. case "tabPage_ClientOrder":
  329. this.dgvData_ClientOrder = value;
  330. break;
  331. case "tabPage_ClientOld":
  332. this.dgvData_ClientOld = value;
  333. break;
  334. case "tabPage_ClientIntent":
  335. this.dgvData_ClientIntent = value;
  336. break;
  337. case "tabPage_ClientOther":
  338. this.dgvData_ClientOther = value;
  339. break;
  340. case "tabPage_ClientUser":
  341. this.dgvData_ClientUser = value;
  342. break;
  343. }
  344. }
  345. }
  346. /// <summary>
  347. /// 定义分页控件属性
  348. /// </summary>
  349. public LYFZ.UCPager.ucPagerEx UcPagerEx1
  350. {
  351. get
  352. {
  353. switch (this.tabControlEx1.SelectedTab.Name.Trim())
  354. {
  355. case "tabPage_ClientOrder":
  356. return this.ucPager_ClientOrder;
  357. case "tabPage_ClientOld":
  358. return this.ucPager_ClientOld;
  359. case "tabPage_ClientIntent":
  360. return this.ucPager_ClientIntent;
  361. case "tabPage_ClientOther":
  362. return this.ucPager_ClientOther;
  363. case "tabPage_ClientUser":
  364. return this.ucPager_ClientUser;
  365. default: return this.ucPager_ClientOrder;
  366. }
  367. }
  368. set
  369. {
  370. switch (this.tabControlEx1.SelectedTab.Name.Trim())
  371. {
  372. case "tabPage_ClientOrder":
  373. this.ucPager_ClientOrder = value;
  374. break;
  375. case "tabPage_ClientOld":
  376. this.ucPager_ClientOld = value;
  377. break;
  378. case "tabPage_ClientIntent":
  379. this.ucPager_ClientIntent = value;
  380. break;
  381. case "tabPage_ClientOther":
  382. this.ucPager_ClientOther = value;
  383. break;
  384. case "tabPage_ClientUser":
  385. this.ucPager_ClientUser = value;
  386. break;
  387. }
  388. }
  389. }
  390. //string type;
  391. //#region 加载数据
  392. //protected override void FrmOutgoingCalls_Shown(object sender, EventArgs e)
  393. //{
  394. // try
  395. // {
  396. // type = "5";
  397. // GvDataBind();
  398. // #region 权限设置
  399. // #region 删除拨出电话
  400. // if (LYFZ.BLL.BLL_ErpUser.GetRights(LYFZ.BLL.BLL_ErpUser.CurrentUserRights.OutgoingCallsCompetence, CustomAttributes.OperatingAuthority.Delete))
  401. // {
  402. // btnDelete.Enabled = true;
  403. // }
  404. // else
  405. // {
  406. // btnDelete.Enabled = false;
  407. // }
  408. // #endregion
  409. // #endregion
  410. // }
  411. // catch (Exception ex)
  412. // {
  413. // MessageBoxCustom.Show(ex.Message);
  414. // }
  415. //}
  416. //#endregion
  417. //#region 获取客户来电
  418. //protected override void btnCustomerCalls_Click(object sender, EventArgs e)
  419. //{
  420. // try
  421. // {
  422. // type = "1";
  423. // GvDataBind();
  424. // }
  425. // catch (Exception ex)
  426. // {
  427. // MessageBoxCustom.Show(ex.Message);
  428. // }
  429. //}
  430. //#endregion
  431. //#region 获取老客户来电
  432. //protected override void btnOldCustomers_Click(object sender, EventArgs e)
  433. //{
  434. // try
  435. // {
  436. // type = "2";
  437. // GvDataBind();
  438. // }
  439. // catch (Exception ex)
  440. // {
  441. // MessageBoxCustom.Show(ex.Message);
  442. // }
  443. //}
  444. //#region 获取老客户来电
  445. //public void bindOldCustomers()
  446. //{
  447. // dgv.Rows.Clear();
  448. // dgv.Columns["Cus_Name"].Visible = true;
  449. // dgv.Columns["Sex"].Visible = true;
  450. // LYFZ.BLL.BLL_ErpCallWizard cabll = new BLL.BLL_ErpCallWizard();
  451. // LYFZ.BLL.BLL_ErpCustomer cubll = new BLL.BLL_ErpCustomer();
  452. // DataTable dt = new DataTable();
  453. // string keyword = txtQuery.Text;
  454. // #region 获取来电精灵号码
  455. // if (!string.IsNullOrEmpty(keyword))
  456. // {
  457. // dt = cabll.GetView_tb_ErpCallWizard("(Callw_Status='拨出电话' and Cus_Type='老客户') and (Cus_Name like '%" + keyword + "%' or dbo.tb_Product(Cus_Name) like '%" + keyword + "%' or Cus_Telephone like '%" + keyword + "%') order by tb_ErpCallWizard.Id desc").Tables[0];
  458. // }
  459. // else { dt = cabll.GetView_tb_ErpCallWizard("Callw_Status='拨出电话' and Cus_Type='老客户' order by tb_ErpCallWizard.Id desc").Tables[0]; }
  460. // for (int i = 0; i < dt.Rows.Count; i++)
  461. // {
  462. // DataGridViewRow dgvr = new DataGridViewRow();
  463. // DataGridViewCell cell = null;
  464. // cell = new DataGridViewTextBoxCell();
  465. // cell.Value = dt.Rows[i]["ID"].ToString().Trim(); ;
  466. // dgvr.Cells.Add(cell);
  467. // cell = new DataGridViewTextBoxCell();
  468. // cell.Value = dt.Rows[i]["Cus_Name"].ToString().Trim();
  469. // dgvr.Cells.Add(cell);
  470. // cell = new DataGridViewTextBoxCell();
  471. // if (Convert.ToBoolean(dt.Rows[i]["Cus_Sex"].ToString().Trim()) == false)
  472. // {
  473. // cell.Value = "男";
  474. // }
  475. // else { cell.Value = "女"; }
  476. // dgvr.Cells.Add(cell);
  477. // cell = new DataGridViewTextBoxCell();
  478. // cell.Value = dt.Rows[i]["Callw_Telephone"].ToString(); ;
  479. // dgvr.Cells.Add(cell);
  480. // cell = new DataGridViewTextBoxCell();
  481. // cell.Value = dt.Rows[i]["Callw_DateTime"].ToString(); ;
  482. // dgvr.Cells.Add(cell);
  483. // this.dgv.Rows.Add(dgvr);
  484. // }
  485. // #endregion
  486. //}
  487. //#endregion
  488. //#endregion
  489. //#region 获取意向客户
  490. //protected override void btnIntentionOfCustomers_Click(object sender, EventArgs e)
  491. //{
  492. // try
  493. // {
  494. // type = "3";
  495. // GvDataBind();
  496. // }
  497. // catch (Exception ex)
  498. // {
  499. // MessageBoxCustom.Show(ex.Message);
  500. // }
  501. //}
  502. //#endregion
  503. //#region 获取员工电话
  504. //protected override void btnStaffPhone_Click(object sender, EventArgs e)
  505. //{
  506. //}
  507. //#endregion
  508. //#region 获取其它电话
  509. //protected override void btnOtherPhone_Click(object sender, EventArgs e)
  510. //{
  511. // try
  512. // {
  513. // type = "4";
  514. // GvDataBind();
  515. // }
  516. // catch (Exception ex)
  517. // {
  518. // MessageBoxCustom.Show(ex.Message);
  519. // }
  520. //}
  521. //#endregion
  522. //#region 删除
  523. //protected override void btndelete_Click(object sender, EventArgs e)
  524. //{
  525. // try
  526. // {
  527. // if (this.dgv.SelectedRows.Count == 0)
  528. // {
  529. // MessageBoxCustom.Show("请选中你要删除的数据!");
  530. // return;
  531. // }
  532. // if (MessageBoxCustom.Show("你确定要删除吗?", "删除提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
  533. // {
  534. // LYFZ.BLL.BLL_ErpCallWizard bll = new BLL.BLL_ErpCallWizard();
  535. // int id = Convert.ToInt32(this.dgv.CurrentRow.Cells["ID"].Value);
  536. // if (bll.Delete(id) == true)
  537. // {
  538. // #region 写入操作日志
  539. // string logsContent = "删除拨出电话号码:" + dgv.CurrentRow.Cells["Callw_Telephone"].Value.ToString();
  540. // LYFZ.BLL.BLL_ErpSystemLogs.WriteSystemLog(LYFZ.EnumPublic.SystemLogsType.删除电话记录, logsContent, LYFZ.BLL.BLL_ErpUser.UsersModel.User_EmployeeID, LYFZ.BLL.BLL_ErpUser.UsersModel.User_Name);
  541. // //LYFZ.BLL.BLL_ErpSystemLogs systemLogsBll = new BLL.BLL_ErpSystemLogs();
  542. // //LYFZ.Model.Model_ErpSystemLogs systemLogsModel = new Model.Model_ErpSystemLogs();
  543. // //systemLogsModel.Slogs_Type = "user";
  544. // //systemLogsModel.Slogs_Topic = "删除拨出电话";
  545. // //systemLogsModel.Slogs_Content = "删除拨出电话号码:" + dgv.CurrentRow.Cells["Callw_Telephone"].Value.ToString();
  546. // //systemLogsModel.Slogs_UserName = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.LoginUserModel.User_Name;
  547. // //systemLogsModel.Slogs_IP = "";
  548. // //systemLogsModel.Slogs_CreateDatetime = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.GetServerDateTime();
  549. // //systemLogsModel.Slogs_CreateName = LYFZ.Software.MainBusiness.CommonLogical.SuccessfulLogin.LoginUserModel.User_EmployeeID;
  550. // //systemLogsBll.Add(systemLogsModel);
  551. // #endregion
  552. // MessageBoxCustom.Show("删除成功!");
  553. // GvDataBind();
  554. // }
  555. // else { MessageBoxCustom.Show("删除失败!"); }
  556. // }
  557. // }
  558. // catch (Exception ex) { MessageBoxCustom.Show(ex.Message); }
  559. //}
  560. //#endregion
  561. //#region 关闭
  562. //protected override void btnClose_Click(object sender, EventArgs e)
  563. //{
  564. // this.Close();
  565. //}
  566. //#endregion
  567. //#region 录音回放
  568. //protected override void btnRecordingPlayback_Click(object sender, EventArgs e)
  569. //{
  570. // try
  571. // {
  572. // if (this.dgv.SelectedRows.Count == 0)
  573. // {
  574. // MessageBoxCustom.Show("请选中你要录音回放的数据!");
  575. // return;
  576. // }
  577. // LYFZ.BLL.BLL_ErpCallWizard bll = new BLL.BLL_ErpCallWizard();
  578. // int id = Convert.ToInt32(this.dgv.CurrentRow.Cells["ID"].Value);
  579. // DataTable dt = bll.GetList("ID=" + id + "").Tables[0];
  580. // if (dt.Rows.Count > 0)
  581. // {
  582. // string Callw_SoundRecording = dt.Rows[0]["Callw_SoundRecording"].ToString();
  583. // if (!string.IsNullOrEmpty(Callw_SoundRecording))
  584. // {
  585. // //播放
  586. // FrmPlayer set = new FrmPlayer();
  587. // set.Path = Callw_SoundRecording;
  588. // set.ShowDialog();
  589. // }
  590. // else { MessageBoxCustom.Show("文件未找到!"); }
  591. // }
  592. // }
  593. // catch (Exception ex) { MessageBoxCustom.Show(ex.Message); }
  594. //}
  595. //#endregion
  596. }
  597. }