w_email_huizi.srw 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. $PBExportHeader$w_email_huizi.srw
  2. forward
  3. global type w_email_huizi from window
  4. end type
  5. type cb_2 from commandbutton within w_email_huizi
  6. end type
  7. type mle_1 from multilineedit within w_email_huizi
  8. end type
  9. type st_1 from statictext within w_email_huizi
  10. end type
  11. type cb_1 from commandbutton within w_email_huizi
  12. end type
  13. end forward
  14. global type w_email_huizi from window
  15. integer width = 1161
  16. integer height = 872
  17. boolean titlebar = true
  18. string title = "发送回执"
  19. boolean controlmenu = true
  20. windowtype windowtype = response!
  21. long backcolor = 67108864
  22. string icon = "AppIcon!"
  23. boolean center = true
  24. cb_2 cb_2
  25. mle_1 mle_1
  26. st_1 st_1
  27. cb_1 cb_1
  28. end type
  29. global w_email_huizi w_email_huizi
  30. type variables
  31. s_email_set s_parm
  32. end variables
  33. forward prototypes
  34. public subroutine wf_updte_ntflag ()
  35. end prototypes
  36. public subroutine wf_updte_ntflag ();//mailid
  37. update u_email_msg set NTFlag =0 where id=:s_parm.id Using sys_email_sqlca;
  38. commit Using sys_email_sqlca;
  39. end subroutine
  40. on w_email_huizi.create
  41. this.cb_2=create cb_2
  42. this.mle_1=create mle_1
  43. this.st_1=create st_1
  44. this.cb_1=create cb_1
  45. this.Control[]={this.cb_2,&
  46. this.mle_1,&
  47. this.st_1,&
  48. this.cb_1}
  49. end on
  50. on w_email_huizi.destroy
  51. destroy(this.cb_2)
  52. destroy(this.mle_1)
  53. destroy(this.st_1)
  54. destroy(this.cb_1)
  55. end on
  56. event open;String ls_text
  57. mle_1.Text = String(f_ProfileString(sys_empid,publ_userid+'_huizi', "text11",''))
  58. s_parm = Message.PowerObjectParm
  59. ls_text = "选择《确定》将会回复一封邮件给 " + String(s_parm.revaddress ) + " 表示您已经收到对方的邮件。主题为:"
  60. st_1.Text = ls_text
  61. IF Trim(mle_1.Text) = "" THEN
  62. mle_1.Text = "邮件已经收到,我将尽快处理" +Char(13) +Char(10)+ "I have received the mail, I will work on it and reply to you as soon as possible"
  63. END IF
  64. end event
  65. type cb_2 from commandbutton within w_email_huizi
  66. integer x = 622
  67. integer y = 668
  68. integer width = 457
  69. integer height = 112
  70. integer taborder = 20
  71. integer textsize = -9
  72. integer weight = 400
  73. fontcharset fontcharset = gb2312charset!
  74. fontpitch fontpitch = variable!
  75. string facename = "宋体"
  76. string text = "取消"
  77. end type
  78. event clicked;wf_updte_NTFlag()
  79. close(parent)
  80. end event
  81. type mle_1 from multilineedit within w_email_huizi
  82. integer y = 260
  83. integer width = 1134
  84. integer height = 400
  85. integer taborder = 10
  86. integer textsize = -9
  87. integer weight = 400
  88. fontcharset fontcharset = gb2312charset!
  89. fontpitch fontpitch = variable!
  90. string facename = "宋体"
  91. long textcolor = 33554432
  92. boolean autohscroll = true
  93. boolean autovscroll = true
  94. borderstyle borderstyle = stylelowered!
  95. end type
  96. type st_1 from statictext within w_email_huizi
  97. integer x = 27
  98. integer y = 8
  99. integer width = 1083
  100. integer height = 232
  101. integer textsize = -9
  102. integer weight = 400
  103. fontcharset fontcharset = gb2312charset!
  104. fontpitch fontpitch = variable!
  105. string facename = "宋体"
  106. long textcolor = 134217751
  107. long backcolor = 67108864
  108. boolean focusrectangle = false
  109. end type
  110. type cb_1 from commandbutton within w_email_huizi
  111. integer x = 50
  112. integer y = 668
  113. integer width = 457
  114. integer height = 112
  115. integer taborder = 10
  116. integer textsize = -9
  117. integer weight = 400
  118. fontcharset fontcharset = gb2312charset!
  119. fontpitch fontpitch = variable!
  120. string facename = "宋体"
  121. string text = "确定"
  122. end type
  123. event clicked;
  124. s_parm.Subject = mle_1.Text
  125. f_SetProfileString (sys_empid,publ_userid+'_huizi', "text11",String(mle_1.Text))
  126. wf_updte_NTFlag()
  127. OpenWithParm(w_email_send_new,s_parm)
  128. w_email_send_new.cb_send.TriggerEvent('clicked')
  129. close(parent)
  130. end event