w_email_ds_rev.srw 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. $PBExportHeader$w_email_ds_rev.srw
  2. forward
  3. global type w_email_ds_rev from window
  4. end type
  5. type cb_3 from commandbutton within w_email_ds_rev
  6. end type
  7. type cb_2 from commandbutton within w_email_ds_rev
  8. end type
  9. type st_6 from statictext within w_email_ds_rev
  10. end type
  11. type sle_auottime from singlelineedit within w_email_ds_rev
  12. end type
  13. type st_1 from statictext within w_email_ds_rev
  14. end type
  15. type cb_1 from commandbutton within w_email_ds_rev
  16. end type
  17. end forward
  18. global type w_email_ds_rev from window
  19. integer width = 1298
  20. integer height = 492
  21. boolean titlebar = true
  22. string title = "定时收件"
  23. boolean controlmenu = true
  24. windowtype windowtype = response!
  25. long backcolor = 67108864
  26. string icon = "AppIcon!"
  27. boolean center = true
  28. cb_3 cb_3
  29. cb_2 cb_2
  30. st_6 st_6
  31. sle_auottime sle_auottime
  32. st_1 st_1
  33. cb_1 cb_1
  34. end type
  35. global w_email_ds_rev w_email_ds_rev
  36. type variables
  37. transaction Commit_Tran // 帐号表所有数据库
  38. transaction fj_tran // 邮件附件数据库
  39. end variables
  40. on w_email_ds_rev.create
  41. this.cb_3=create cb_3
  42. this.cb_2=create cb_2
  43. this.st_6=create st_6
  44. this.sle_auottime=create sle_auottime
  45. this.st_1=create st_1
  46. this.cb_1=create cb_1
  47. this.Control[]={this.cb_3,&
  48. this.cb_2,&
  49. this.st_6,&
  50. this.sle_auottime,&
  51. this.st_1,&
  52. this.cb_1}
  53. end on
  54. on w_email_ds_rev.destroy
  55. destroy(this.cb_3)
  56. destroy(this.cb_2)
  57. destroy(this.st_6)
  58. destroy(this.sle_auottime)
  59. destroy(this.st_1)
  60. destroy(this.cb_1)
  61. end on
  62. event open;sle_auottime.text =string( Long(f_ProfileString(sys_empid,publ_userid+'_'+'sle_auottime', "autotime",'0')))
  63. commit_tran = sqlca
  64. fj_tran = sys_email_sqlca
  65. end event
  66. type cb_3 from commandbutton within w_email_ds_rev
  67. integer x = 165
  68. integer y = 260
  69. integer width = 923
  70. integer height = 128
  71. integer taborder = 80
  72. integer textsize = -9
  73. integer weight = 400
  74. fontcharset fontcharset = gb2312charset!
  75. fontpitch fontpitch = variable!
  76. string facename = "宋体"
  77. string text = "后台自动接收(不用打开ERP)"
  78. end type
  79. event clicked;String ls_run
  80. ls_run = 'lj_email.exe -longjoe&'&
  81. + sys_system_id + '&'&
  82. + sys_cur_version + '&'&
  83. + String(sys_if_register) + '&'&
  84. + Commit_Tran.Database + '&'&
  85. + Commit_Tran.UserID + '&'&
  86. + f_psw_bczh(Commit_Tran.DBPass,0,sys_power_key) + '&'&
  87. + Commit_Tran.LogID + '&'&
  88. + f_psw_bczh(Commit_Tran.LogPass,0,sys_power_key) + '&'&
  89. + Commit_Tran.ServerName + '&'&
  90. + string(sys_empid) + '&'&
  91. + '-1&'&
  92. + '0&'&
  93. + fj_tran.Database + '&'&
  94. + fj_tran.UserID + '&'&
  95. + f_psw_bczh(fj_tran.DBPass,0,sys_power_key) + '&'&
  96. + fj_tran.LogID + '&'&
  97. + f_psw_bczh(fj_tran.LogPass,0,sys_power_key) + '&'&
  98. + fj_tran.ServerName + '&'&
  99. +String(long(trim(sle_auottime.text))) + '&'
  100. IF Run( ls_run) = -1 THEN
  101. MessageBox('错误','运行程序失败!',stopsign!,ok!)
  102. RETURN
  103. END IF
  104. close(parent)
  105. end event
  106. type cb_2 from commandbutton within w_email_ds_rev
  107. integer x = 690
  108. integer y = 128
  109. integer width = 402
  110. integer height = 108
  111. integer taborder = 70
  112. integer textsize = -9
  113. integer weight = 400
  114. fontcharset fontcharset = gb2312charset!
  115. fontpitch fontpitch = variable!
  116. string facename = "宋体"
  117. string text = "取消"
  118. end type
  119. event clicked;CloseWithReturn(parent,"cancel")
  120. end event
  121. type st_6 from statictext within w_email_ds_rev
  122. integer x = 1115
  123. integer y = 28
  124. integer width = 123
  125. integer height = 80
  126. integer textsize = -9
  127. integer weight = 400
  128. fontcharset fontcharset = gb2312charset!
  129. fontpitch fontpitch = variable!
  130. string facename = "宋体"
  131. long textcolor = 33554432
  132. long backcolor = 67108864
  133. string text = "分钟"
  134. boolean focusrectangle = false
  135. end type
  136. type sle_auottime from singlelineedit within w_email_ds_rev
  137. integer x = 800
  138. integer y = 16
  139. integer width = 288
  140. integer height = 84
  141. integer taborder = 10
  142. integer textsize = -9
  143. integer weight = 400
  144. fontcharset fontcharset = gb2312charset!
  145. fontpitch fontpitch = variable!
  146. string facename = "宋体"
  147. long textcolor = 33554432
  148. string text = "10"
  149. end type
  150. type st_1 from statictext within w_email_ds_rev
  151. integer x = 23
  152. integer y = 36
  153. integer width = 782
  154. integer height = 72
  155. integer textsize = -9
  156. integer weight = 400
  157. fontcharset fontcharset = gb2312charset!
  158. fontpitch fontpitch = variable!
  159. string facename = "宋体"
  160. long textcolor = 33554432
  161. long backcolor = 67108864
  162. string text = "设置定时接收邮件的时间间隔:"
  163. boolean focusrectangle = false
  164. end type
  165. type cb_1 from commandbutton within w_email_ds_rev
  166. integer x = 165
  167. integer y = 128
  168. integer width = 402
  169. integer height = 108
  170. integer taborder = 60
  171. boolean bringtotop = true
  172. integer textsize = -9
  173. integer weight = 400
  174. fontcharset fontcharset = gb2312charset!
  175. fontpitch fontpitch = variable!
  176. string facename = "宋体"
  177. string text = "确定"
  178. end type
  179. event clicked;f_SetProfileString (sys_empid,publ_userid+'_'+'sle_auottime', "autotime",String(long(trim(sle_auottime.text))))
  180. close(parent)
  181. end event