w_email_set.srw 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. $PBExportHeader$w_email_set.srw
  2. forward
  3. global type w_email_set from w_publ_choice
  4. end type
  5. end forward
  6. global type w_email_set from w_publ_choice
  7. integer height = 1796
  8. end type
  9. global w_email_set w_email_set
  10. type variables
  11. s_email_set s_set
  12. end variables
  13. event open;call super::open;long arg_pkid
  14. arg_pkid = message.longparm
  15. long ll_row = 0
  16. ll_row = dw_ch.find('mailid = ' + string(arg_pkid), 1, dw_ch.rowcount())
  17. if ll_row > 0 then
  18. dw_ch.scrolltorow(ll_row)
  19. end if
  20. end event
  21. on w_email_set.create
  22. call super::create
  23. end on
  24. on w_email_set.destroy
  25. call super::destroy
  26. end on
  27. event close;call super::close;CloseWithReturn(THIS,s_set)
  28. end event
  29. event dw_filter;call super::dw_filter;string obj_expr=''
  30. if trim(sle_ch.text)<>'' then
  31. IF POS(trim(sle_ch.text),'%',1)=0 THEN
  32. obj_expr=obj_expr+'#3 like ~'%'+trim(sle_ch.text)+'%~''
  33. ELSE
  34. obj_expr=obj_expr+'#3 like ~''+trim(sle_ch.text)+'~''
  35. END IF
  36. end if
  37. dw_ch.setfilter(obj_expr)
  38. dw_ch.SetRedraw(False)
  39. dw_ch.filter()
  40. if dw_ch.rowcount()>=1 then
  41. dw_ch.selectrow(0,false)
  42. dw_ch.selectrow(1,true)
  43. end if
  44. dw_ch.SetRedraw(TRUE)
  45. end event
  46. type cb_func from w_publ_choice`cb_func within w_email_set
  47. end type
  48. type cb_exit from w_publ_choice`cb_exit within w_email_set
  49. end type
  50. type sle_ch from w_publ_choice`sle_ch within w_email_set
  51. end type
  52. type dw_ch from w_publ_choice`dw_ch within w_email_set
  53. integer width = 2153
  54. string dataobject = "dw_email_set_index"
  55. end type
  56. type st_1 from w_publ_choice`st_1 within w_email_set
  57. end type
  58. type cb_retrieve from w_publ_choice`cb_retrieve within w_email_set
  59. end type
  60. event cb_retrieve::clicked;dw_ch.retrieve(sys_empid)
  61. end event
  62. type cb_choice from w_publ_choice`cb_choice within w_email_set
  63. end type
  64. event cb_choice::clicked;call super::clicked;Long LS_ROW
  65. LS_ROW = dw_ch.GetRow()
  66. IF LS_ROW <= 0 THEN
  67. MessageBox('提示','请先选择目标行!',information!,ok!)
  68. RETURN
  69. END IF
  70. dw_ch.accepttext()
  71. s_set.mailid = dw_ch.object.mailid[LS_ROW]
  72. s_set.empid= dw_ch.object.empid[LS_ROW]
  73. s_set.mailuser= dw_ch.object.mailuser[LS_ROW]
  74. s_set.mailaddress= dw_ch.object.mailaddress[LS_ROW]
  75. s_set.popset= dw_ch.object.popset[LS_ROW]
  76. s_set.smtpset= dw_ch.object.smtpset[LS_ROW]
  77. s_set.othermsg= dw_ch.object.othermsg[LS_ROW]
  78. s_set.mailpsw = Trim(f_psw_bczh(dw_ch.object.mailpsw[LS_ROW],1,sys_power_key))
  79. s_set.popport= dw_ch.object.popport[LS_ROW]
  80. s_set.smtpport= dw_ch.object.smtpport[LS_ROW]
  81. s_set.ifnodelmsg= dw_ch.object.ifdelmsg[LS_ROW]
  82. Close(PARENT)
  83. end event
  84. type ln_bar from w_publ_choice`ln_bar within w_email_set
  85. end type
  86. type ln_bar2 from w_publ_choice`ln_bar2 within w_email_set
  87. end type
  88. type r_bar from w_publ_choice`r_bar within w_email_set
  89. end type
  90. type ln_1 from w_publ_choice`ln_1 within w_email_set
  91. end type
  92. type ln_2 from w_publ_choice`ln_2 within w_email_set
  93. end type