w_email_set_detail.srw 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  1. $PBExportHeader$w_email_set_detail.srw
  2. forward
  3. global type w_email_set_detail from w_publ_base
  4. end type
  5. type st_1 from statictext within w_email_set_detail
  6. end type
  7. type sle_mailuser from singlelineedit within w_email_set_detail
  8. end type
  9. type st_2 from statictext within w_email_set_detail
  10. end type
  11. type st_mailtype from statictext within w_email_set_detail
  12. end type
  13. type st_4 from statictext within w_email_set_detail
  14. end type
  15. type sle_mailpsw from singlelineedit within w_email_set_detail
  16. end type
  17. type st_5 from statictext within w_email_set_detail
  18. end type
  19. type st_6 from statictext within w_email_set_detail
  20. end type
  21. type sle_popset from singlelineedit within w_email_set_detail
  22. end type
  23. type st_7 from statictext within w_email_set_detail
  24. end type
  25. type st_8 from statictext within w_email_set_detail
  26. end type
  27. type sle_smtpset from singlelineedit within w_email_set_detail
  28. end type
  29. type st_9 from statictext within w_email_set_detail
  30. end type
  31. type cbx_ifdelmsg from checkbox within w_email_set_detail
  32. end type
  33. type st_10 from statictext within w_email_set_detail
  34. end type
  35. type sle_mailaddress from singlelineedit within w_email_set_detail
  36. end type
  37. type em_popport from editmask within w_email_set_detail
  38. end type
  39. type em_smtpport from editmask within w_email_set_detail
  40. end type
  41. type em_gap from editmask within w_email_set_detail
  42. end type
  43. type cb_save from uo_imflatbutton within w_email_set_detail
  44. end type
  45. type st_opemp from statictext within w_email_set_detail
  46. end type
  47. type st_opdate from statictext within w_email_set_detail
  48. end type
  49. type mle_dscrp from multilineedit within w_email_set_detail
  50. end type
  51. type sle_othermsg from singlelineedit within w_email_set_detail
  52. end type
  53. type st_3 from statictext within w_email_set_detail
  54. end type
  55. type st_11 from statictext within w_email_set_detail
  56. end type
  57. type st_12 from statictext within w_email_set_detail
  58. end type
  59. type st_13 from statictext within w_email_set_detail
  60. end type
  61. type cb_1 from uo_imflatbutton within w_email_set_detail
  62. end type
  63. type cb_ok from uo_imflatbutton within w_email_set_detail
  64. end type
  65. type cbx_1 from checkbox within w_email_set_detail
  66. end type
  67. type ln_bar from line within w_email_set_detail
  68. end type
  69. type ln_bar2 from line within w_email_set_detail
  70. end type
  71. end forward
  72. global type w_email_set_detail from w_publ_base
  73. integer width = 2277
  74. integer height = 1504
  75. string title = "账号设置"
  76. boolean minbox = false
  77. windowtype windowtype = response!
  78. st_1 st_1
  79. sle_mailuser sle_mailuser
  80. st_2 st_2
  81. st_mailtype st_mailtype
  82. st_4 st_4
  83. sle_mailpsw sle_mailpsw
  84. st_5 st_5
  85. st_6 st_6
  86. sle_popset sle_popset
  87. st_7 st_7
  88. st_8 st_8
  89. sle_smtpset sle_smtpset
  90. st_9 st_9
  91. cbx_ifdelmsg cbx_ifdelmsg
  92. st_10 st_10
  93. sle_mailaddress sle_mailaddress
  94. em_popport em_popport
  95. em_smtpport em_smtpport
  96. em_gap em_gap
  97. cb_save cb_save
  98. st_opemp st_opemp
  99. st_opdate st_opdate
  100. mle_dscrp mle_dscrp
  101. sle_othermsg sle_othermsg
  102. st_3 st_3
  103. st_11 st_11
  104. st_12 st_12
  105. st_13 st_13
  106. cb_1 cb_1
  107. cb_ok cb_ok
  108. cbx_1 cbx_1
  109. ln_bar ln_bar
  110. ln_bar2 ln_bar2
  111. end type
  112. global w_email_set_detail w_email_set_detail
  113. type variables
  114. private:
  115. long mailid
  116. long mailtype
  117. long empid
  118. string old_title
  119. boolean dw_can_edit
  120. transaction Commit_Tran // 帐号表所有数据库
  121. transaction fj_tran // 邮件附件数据库
  122. end variables
  123. forward prototypes
  124. public subroutine wf_set_ui ()
  125. public subroutine wf_check_valid ()
  126. public function integer wf_save (ref string arg_msg)
  127. public function integer wf_retrieve (ref string arg_msg)
  128. public subroutine wf_set_default ()
  129. end prototypes
  130. public subroutine wf_set_ui ();sle_mailaddress.enabled = dw_edit_mode and dw_can_edit
  131. sle_mailpsw.enabled = dw_edit_mode and dw_can_edit
  132. sle_mailuser.enabled = dw_edit_mode and dw_can_edit
  133. sle_popset.enabled = dw_edit_mode and dw_can_edit
  134. sle_smtpset.enabled = dw_edit_mode and dw_can_edit
  135. em_gap.enabled = dw_edit_mode and dw_can_edit
  136. em_popport.enabled = dw_edit_mode and dw_can_edit
  137. em_smtpport.enabled = dw_edit_mode and dw_can_edit
  138. cbx_ifdelmsg.enabled = dw_edit_mode and dw_can_edit
  139. sle_othermsg.enabled = dw_edit_mode and dw_can_edit
  140. mle_dscrp.enabled = dw_edit_mode and dw_can_edit
  141. cb_save.enabled = dw_can_edit
  142. if dw_edit_mode then
  143. cb_save.text = '保存'
  144. else
  145. cb_save.text = '修改'
  146. end if
  147. if dw_edit_mode then
  148. if mailid = 0 then
  149. this.title = old_title + '[添加]'
  150. else
  151. this.title = old_title + '[修改]'
  152. end if
  153. else
  154. this.title = old_title + '[查看]'
  155. end if
  156. end subroutine
  157. public subroutine wf_check_valid ();
  158. end subroutine
  159. public function integer wf_save (ref string arg_msg);integer rslt = 1
  160. uo_email_set uo_set
  161. uo_set.commit_tran = commit_tran
  162. uo_set.fj_tran = fj_tran
  163. uo_set.mailid = mailid
  164. uo_set.empid = empid
  165. uo_set.mailtype = mailtype
  166. uo_set.mailaddress = sle_mailaddress.text
  167. uo_set.mailpsw = f_psw_bczh(sle_mailpsw.text,0,sys_power_key)
  168. uo_set.mailuser = sle_mailuser.text
  169. uo_set.popset = sle_popset.text
  170. uo_set.smtpset = sle_smtpset.text
  171. uo_set.gap = long(em_gap.text)
  172. uo_set.popport = long(em_popport.text)
  173. uo_set.smtpport = long(em_smtpport.text)
  174. uo_set.othermsg = sle_othermsg.text
  175. uo_set.dscrp = mle_dscrp.text
  176. if cbx_1.checked then
  177. uo_set.ifuseSSL = 1
  178. else
  179. uo_set.ifuseSSL = 0
  180. end if
  181. if cbx_ifdelmsg.checked then
  182. uo_set.ifdelmsg = 1
  183. else
  184. uo_set.ifdelmsg = 0
  185. end if
  186. if uo_set.uf_save(arg_msg) <> 1 then
  187. rslt = 0
  188. goto ext
  189. end if
  190. mailid = uo_set.mailid
  191. ext:
  192. return rslt
  193. end function
  194. public function integer wf_retrieve (ref string arg_msg);int rslt = 1
  195. uo_email_set uo_set
  196. uo_set.commit_tran = commit_tran
  197. uo_set.fj_tran = fj_tran
  198. if uo_set.p_getinfo(mailid, arg_msg) <> 1 then
  199. rslt = 0
  200. goto ext
  201. end if
  202. sle_mailuser.text = uo_set.mailuser
  203. sle_mailaddress.text = uo_set.mailaddress
  204. sle_mailpsw.text = f_psw_bczh(uo_set.mailpsw,1,sys_power_key)
  205. sle_popset.text = uo_set.popset
  206. sle_smtpset.text = uo_set.smtpset
  207. em_gap.text = string(uo_set.gap)
  208. em_popport.text = string(uo_set.popport)
  209. em_smtpport.text = string(uo_set.smtpport)
  210. sle_othermsg.text = uo_set.othermsg
  211. mle_dscrp.text = uo_set.dscrp
  212. st_opemp.text = uo_set.opemp
  213. st_opdate.text = string(uo_set.opdate, 'yyyy-mm-dd hh:mm')
  214. mailtype = uo_set.mailtype
  215. empid = uo_set.empid
  216. cbx_1.checked = (uo_set.ifuseSSL = 1)
  217. cbx_ifdelmsg.checked = (uo_set.ifdelmsg = 1)
  218. if mailtype = 1 then
  219. st_mailtype.text = '公共'
  220. else
  221. st_mailtype.text = '私人'
  222. end if
  223. ext:
  224. return rslt
  225. end function
  226. public subroutine wf_set_default ();if mailtype = 0 then
  227. st_mailtype.text = '私人'
  228. elseif mailtype = 1 then
  229. st_mailtype.text = '公共'
  230. end if
  231. em_popport.text = '110'
  232. em_smtpport.text = '25'
  233. em_gap.text = '0'
  234. cbx_ifdelmsg.checked = false
  235. end subroutine
  236. on w_email_set_detail.create
  237. int iCurrent
  238. call super::create
  239. this.st_1=create st_1
  240. this.sle_mailuser=create sle_mailuser
  241. this.st_2=create st_2
  242. this.st_mailtype=create st_mailtype
  243. this.st_4=create st_4
  244. this.sle_mailpsw=create sle_mailpsw
  245. this.st_5=create st_5
  246. this.st_6=create st_6
  247. this.sle_popset=create sle_popset
  248. this.st_7=create st_7
  249. this.st_8=create st_8
  250. this.sle_smtpset=create sle_smtpset
  251. this.st_9=create st_9
  252. this.cbx_ifdelmsg=create cbx_ifdelmsg
  253. this.st_10=create st_10
  254. this.sle_mailaddress=create sle_mailaddress
  255. this.em_popport=create em_popport
  256. this.em_smtpport=create em_smtpport
  257. this.em_gap=create em_gap
  258. this.cb_save=create cb_save
  259. this.st_opemp=create st_opemp
  260. this.st_opdate=create st_opdate
  261. this.mle_dscrp=create mle_dscrp
  262. this.sle_othermsg=create sle_othermsg
  263. this.st_3=create st_3
  264. this.st_11=create st_11
  265. this.st_12=create st_12
  266. this.st_13=create st_13
  267. this.cb_1=create cb_1
  268. this.cb_ok=create cb_ok
  269. this.cbx_1=create cbx_1
  270. this.ln_bar=create ln_bar
  271. this.ln_bar2=create ln_bar2
  272. iCurrent=UpperBound(this.Control)
  273. this.Control[iCurrent+1]=this.st_1
  274. this.Control[iCurrent+2]=this.sle_mailuser
  275. this.Control[iCurrent+3]=this.st_2
  276. this.Control[iCurrent+4]=this.st_mailtype
  277. this.Control[iCurrent+5]=this.st_4
  278. this.Control[iCurrent+6]=this.sle_mailpsw
  279. this.Control[iCurrent+7]=this.st_5
  280. this.Control[iCurrent+8]=this.st_6
  281. this.Control[iCurrent+9]=this.sle_popset
  282. this.Control[iCurrent+10]=this.st_7
  283. this.Control[iCurrent+11]=this.st_8
  284. this.Control[iCurrent+12]=this.sle_smtpset
  285. this.Control[iCurrent+13]=this.st_9
  286. this.Control[iCurrent+14]=this.cbx_ifdelmsg
  287. this.Control[iCurrent+15]=this.st_10
  288. this.Control[iCurrent+16]=this.sle_mailaddress
  289. this.Control[iCurrent+17]=this.em_popport
  290. this.Control[iCurrent+18]=this.em_smtpport
  291. this.Control[iCurrent+19]=this.em_gap
  292. this.Control[iCurrent+20]=this.cb_save
  293. this.Control[iCurrent+21]=this.st_opemp
  294. this.Control[iCurrent+22]=this.st_opdate
  295. this.Control[iCurrent+23]=this.mle_dscrp
  296. this.Control[iCurrent+24]=this.sle_othermsg
  297. this.Control[iCurrent+25]=this.st_3
  298. this.Control[iCurrent+26]=this.st_11
  299. this.Control[iCurrent+27]=this.st_12
  300. this.Control[iCurrent+28]=this.st_13
  301. this.Control[iCurrent+29]=this.cb_1
  302. this.Control[iCurrent+30]=this.cb_ok
  303. this.Control[iCurrent+31]=this.cbx_1
  304. this.Control[iCurrent+32]=this.ln_bar
  305. this.Control[iCurrent+33]=this.ln_bar2
  306. end on
  307. on w_email_set_detail.destroy
  308. call super::destroy
  309. destroy(this.st_1)
  310. destroy(this.sle_mailuser)
  311. destroy(this.st_2)
  312. destroy(this.st_mailtype)
  313. destroy(this.st_4)
  314. destroy(this.sle_mailpsw)
  315. destroy(this.st_5)
  316. destroy(this.st_6)
  317. destroy(this.sle_popset)
  318. destroy(this.st_7)
  319. destroy(this.st_8)
  320. destroy(this.sle_smtpset)
  321. destroy(this.st_9)
  322. destroy(this.cbx_ifdelmsg)
  323. destroy(this.st_10)
  324. destroy(this.sle_mailaddress)
  325. destroy(this.em_popport)
  326. destroy(this.em_smtpport)
  327. destroy(this.em_gap)
  328. destroy(this.cb_save)
  329. destroy(this.st_opemp)
  330. destroy(this.st_opdate)
  331. destroy(this.mle_dscrp)
  332. destroy(this.sle_othermsg)
  333. destroy(this.st_3)
  334. destroy(this.st_11)
  335. destroy(this.st_12)
  336. destroy(this.st_13)
  337. destroy(this.cb_1)
  338. destroy(this.cb_ok)
  339. destroy(this.cbx_1)
  340. destroy(this.ln_bar)
  341. destroy(this.ln_bar2)
  342. end on
  343. event open;call super::open;commit_tran = sqlca
  344. Long ll_ConnectionID
  345. String arg_msg
  346. Int li_ifexit = 0
  347. IF sys_email_sqlca.DBHandle() > 0 THEN
  348. fj_tran = sys_email_sqlca
  349. ELSE
  350. MessageBox('系统提示','要使用邮件功能,请先定义邮件数据库')
  351. li_ifexit = 1
  352. END IF
  353. IF li_ifexit = 0 THEN
  354. // setid
  355. String ls_msg
  356. old_title = THIS.Title
  357. s_email_set s_set
  358. s_set = Message.PowerObjectParm
  359. mailid = s_set.mailid
  360. empid = s_set.empid
  361. mailtype = s_set.viewtype
  362. dw_can_edit = (s_set.flag = 1)
  363. dw_edit_mode = dw_can_edit
  364. IF mailid = 0 THEN
  365. // 默认值
  366. wf_set_default()
  367. ELSE
  368. IF wf_retrieve(ls_msg) <> 1 THEN
  369. MessageBox('系统错误', ls_msg, stopsign!)
  370. Close(THIS)
  371. RETURN
  372. END IF
  373. END IF
  374. wf_set_UI()
  375. ELSE
  376. cb_exit.PostEvent(Clicked!)
  377. END IF
  378. end event
  379. event resize;call super::resize;ln_bar.endx = this.width
  380. ln_bar2.endx = this.width
  381. end event
  382. type cb_func from w_publ_base`cb_func within w_email_set_detail
  383. boolean visible = false
  384. end type
  385. type cb_exit from w_publ_base`cb_exit within w_email_set_detail
  386. integer x = 1774
  387. integer y = 1288
  388. integer taborder = 140
  389. string text = "取消"
  390. end type
  391. type st_1 from statictext within w_email_set_detail
  392. integer y = 60
  393. integer width = 311
  394. integer height = 48
  395. boolean bringtotop = true
  396. integer textsize = -9
  397. integer weight = 400
  398. fontcharset fontcharset = gb2312charset!
  399. fontpitch fontpitch = variable!
  400. string facename = "宋体"
  401. long textcolor = 33554432
  402. long backcolor = 134217739
  403. string text = "用 户 名"
  404. alignment alignment = right!
  405. boolean focusrectangle = false
  406. end type
  407. type sle_mailuser from singlelineedit within w_email_set_detail
  408. integer x = 334
  409. integer y = 40
  410. integer width = 1358
  411. integer height = 92
  412. integer taborder = 10
  413. boolean bringtotop = true
  414. integer textsize = -9
  415. integer weight = 400
  416. fontcharset fontcharset = gb2312charset!
  417. fontpitch fontpitch = variable!
  418. string facename = "宋体"
  419. long textcolor = 33554432
  420. borderstyle borderstyle = stylelowered!
  421. end type
  422. type st_2 from statictext within w_email_set_detail
  423. integer x = 1737
  424. integer y = 60
  425. integer width = 251
  426. integer height = 48
  427. boolean bringtotop = true
  428. integer textsize = -9
  429. integer weight = 400
  430. fontcharset fontcharset = gb2312charset!
  431. fontpitch fontpitch = variable!
  432. string facename = "宋体"
  433. long textcolor = 33554432
  434. long backcolor = 134217739
  435. string text = "邮箱类型"
  436. alignment alignment = right!
  437. boolean focusrectangle = false
  438. end type
  439. type st_mailtype from statictext within w_email_set_detail
  440. integer x = 2030
  441. integer y = 60
  442. integer width = 160
  443. integer height = 48
  444. boolean bringtotop = true
  445. integer textsize = -9
  446. integer weight = 400
  447. fontcharset fontcharset = gb2312charset!
  448. fontpitch fontpitch = variable!
  449. string facename = "宋体"
  450. long textcolor = 33554432
  451. long backcolor = 134217739
  452. string text = "私人"
  453. boolean focusrectangle = false
  454. end type
  455. type st_4 from statictext within w_email_set_detail
  456. integer y = 196
  457. integer width = 311
  458. integer height = 48
  459. boolean bringtotop = true
  460. integer textsize = -9
  461. integer weight = 400
  462. fontcharset fontcharset = gb2312charset!
  463. fontpitch fontpitch = variable!
  464. string facename = "宋体"
  465. long textcolor = 33554432
  466. long backcolor = 134217739
  467. string text = "邮箱地址"
  468. alignment alignment = right!
  469. boolean focusrectangle = false
  470. end type
  471. type sle_mailpsw from singlelineedit within w_email_set_detail
  472. integer x = 334
  473. integer y = 312
  474. integer width = 1358
  475. integer height = 92
  476. integer taborder = 40
  477. boolean bringtotop = true
  478. integer textsize = -9
  479. integer weight = 400
  480. fontcharset fontcharset = gb2312charset!
  481. fontpitch fontpitch = variable!
  482. string facename = "宋体"
  483. long textcolor = 33554432
  484. boolean password = true
  485. borderstyle borderstyle = stylelowered!
  486. end type
  487. type st_5 from statictext within w_email_set_detail
  488. integer y = 332
  489. integer width = 311
  490. integer height = 48
  491. boolean bringtotop = true
  492. integer textsize = -9
  493. integer weight = 400
  494. fontcharset fontcharset = gb2312charset!
  495. fontpitch fontpitch = variable!
  496. string facename = "宋体"
  497. long textcolor = 33554432
  498. long backcolor = 134217739
  499. string text = "邮箱密码"
  500. alignment alignment = right!
  501. boolean focusrectangle = false
  502. end type
  503. type st_6 from statictext within w_email_set_detail
  504. integer y = 468
  505. integer width = 311
  506. integer height = 48
  507. boolean bringtotop = true
  508. integer textsize = -9
  509. integer weight = 400
  510. fontcharset fontcharset = gb2312charset!
  511. fontpitch fontpitch = variable!
  512. string facename = "宋体"
  513. long textcolor = 33554432
  514. long backcolor = 134217739
  515. string text = "POP服务器"
  516. alignment alignment = right!
  517. boolean focusrectangle = false
  518. end type
  519. type sle_popset from singlelineedit within w_email_set_detail
  520. integer x = 334
  521. integer y = 448
  522. integer width = 1358
  523. integer height = 92
  524. integer taborder = 50
  525. boolean bringtotop = true
  526. integer textsize = -9
  527. integer weight = 400
  528. fontcharset fontcharset = gb2312charset!
  529. fontpitch fontpitch = variable!
  530. string facename = "宋体"
  531. long textcolor = 33554432
  532. borderstyle borderstyle = stylelowered!
  533. end type
  534. type st_7 from statictext within w_email_set_detail
  535. integer x = 1737
  536. integer y = 468
  537. integer width = 251
  538. integer height = 48
  539. boolean bringtotop = true
  540. integer textsize = -9
  541. integer weight = 400
  542. fontcharset fontcharset = gb2312charset!
  543. fontpitch fontpitch = variable!
  544. string facename = "宋体"
  545. long textcolor = 33554432
  546. long backcolor = 134217739
  547. string text = "POP端口"
  548. alignment alignment = right!
  549. boolean focusrectangle = false
  550. end type
  551. type st_8 from statictext within w_email_set_detail
  552. integer y = 604
  553. integer width = 311
  554. integer height = 48
  555. boolean bringtotop = true
  556. integer textsize = -9
  557. integer weight = 400
  558. fontcharset fontcharset = gb2312charset!
  559. fontpitch fontpitch = variable!
  560. string facename = "宋体"
  561. long textcolor = 33554432
  562. long backcolor = 134217739
  563. string text = "SMTP服务器"
  564. alignment alignment = right!
  565. boolean focusrectangle = false
  566. end type
  567. type sle_smtpset from singlelineedit within w_email_set_detail
  568. integer x = 334
  569. integer y = 584
  570. integer width = 1358
  571. integer height = 92
  572. integer taborder = 70
  573. boolean bringtotop = true
  574. integer textsize = -9
  575. integer weight = 400
  576. fontcharset fontcharset = gb2312charset!
  577. fontpitch fontpitch = variable!
  578. string facename = "宋体"
  579. long textcolor = 33554432
  580. borderstyle borderstyle = stylelowered!
  581. end type
  582. type st_9 from statictext within w_email_set_detail
  583. integer x = 1737
  584. integer y = 604
  585. integer width = 251
  586. integer height = 48
  587. boolean bringtotop = true
  588. integer textsize = -9
  589. integer weight = 400
  590. fontcharset fontcharset = gb2312charset!
  591. fontpitch fontpitch = variable!
  592. string facename = "宋体"
  593. long textcolor = 33554432
  594. long backcolor = 134217739
  595. string text = "SMTP端口"
  596. alignment alignment = right!
  597. boolean focusrectangle = false
  598. end type
  599. type cbx_ifdelmsg from checkbox within w_email_set_detail
  600. integer x = 334
  601. integer y = 852
  602. integer width = 873
  603. integer height = 64
  604. integer taborder = 110
  605. boolean bringtotop = true
  606. integer textsize = -9
  607. integer weight = 400
  608. fontcharset fontcharset = gb2312charset!
  609. fontpitch fontpitch = variable!
  610. string facename = "宋体"
  611. long textcolor = 33554432
  612. long backcolor = 134217739
  613. string text = "收件后删除邮件服务器上的备份"
  614. end type
  615. type st_10 from statictext within w_email_set_detail
  616. integer x = 1737
  617. integer y = 740
  618. integer width = 251
  619. integer height = 48
  620. boolean bringtotop = true
  621. integer textsize = -9
  622. integer weight = 400
  623. fontcharset fontcharset = gb2312charset!
  624. fontpitch fontpitch = variable!
  625. string facename = "宋体"
  626. long textcolor = 33554432
  627. long backcolor = 134217739
  628. string text = "发件间隔"
  629. alignment alignment = right!
  630. boolean focusrectangle = false
  631. end type
  632. type sle_mailaddress from singlelineedit within w_email_set_detail
  633. integer x = 334
  634. integer y = 176
  635. integer width = 1358
  636. integer height = 92
  637. integer taborder = 30
  638. boolean bringtotop = true
  639. integer textsize = -9
  640. integer weight = 400
  641. fontcharset fontcharset = gb2312charset!
  642. fontpitch fontpitch = variable!
  643. string facename = "宋体"
  644. long textcolor = 33554432
  645. borderstyle borderstyle = stylelowered!
  646. end type
  647. type em_popport from editmask within w_email_set_detail
  648. integer x = 1993
  649. integer y = 452
  650. integer width = 215
  651. integer height = 84
  652. integer taborder = 60
  653. boolean bringtotop = true
  654. integer textsize = -9
  655. integer weight = 400
  656. fontcharset fontcharset = gb2312charset!
  657. fontpitch fontpitch = variable!
  658. string facename = "宋体"
  659. long textcolor = 33554432
  660. string text = "110"
  661. borderstyle borderstyle = stylelowered!
  662. string mask = "######"
  663. end type
  664. type em_smtpport from editmask within w_email_set_detail
  665. integer x = 1993
  666. integer y = 588
  667. integer width = 215
  668. integer height = 84
  669. integer taborder = 80
  670. boolean bringtotop = true
  671. integer textsize = -9
  672. integer weight = 400
  673. fontcharset fontcharset = gb2312charset!
  674. fontpitch fontpitch = variable!
  675. string facename = "宋体"
  676. long textcolor = 33554432
  677. string text = "25"
  678. borderstyle borderstyle = stylelowered!
  679. string mask = "######"
  680. end type
  681. type em_gap from editmask within w_email_set_detail
  682. integer x = 1993
  683. integer y = 724
  684. integer width = 215
  685. integer height = 84
  686. integer taborder = 100
  687. boolean bringtotop = true
  688. integer textsize = -9
  689. integer weight = 400
  690. fontcharset fontcharset = gb2312charset!
  691. fontpitch fontpitch = variable!
  692. string facename = "宋体"
  693. long textcolor = 33554432
  694. string text = "0"
  695. borderstyle borderstyle = stylelowered!
  696. string mask = "###0"
  697. end type
  698. type cb_save from uo_imflatbutton within w_email_set_detail
  699. boolean visible = false
  700. integer x = 1385
  701. integer y = 1284
  702. integer width = 311
  703. integer height = 96
  704. integer taborder = 130
  705. boolean bringtotop = true
  706. end type
  707. event clicked;call super::clicked;string ls_msg
  708. if dw_edit_mode then
  709. // 保存
  710. wf_check_valid()
  711. if wf_save(ls_msg) <> 1 then
  712. MessageBox('保存失败', ls_msg)
  713. return
  714. end if
  715. if wf_retrieve(ls_msg) <> 1 then
  716. MessageBox('系统错误', '未能刷新内容:' + ls_msg, stopsign!)
  717. close(parent)
  718. return
  719. end if
  720. end if
  721. dw_edit_mode = not dw_edit_mode
  722. wf_set_ui()
  723. end event
  724. type st_opemp from statictext within w_email_set_detail
  725. integer x = 393
  726. integer y = 1148
  727. integer width = 320
  728. integer height = 48
  729. boolean bringtotop = true
  730. integer textsize = -9
  731. integer weight = 400
  732. fontcharset fontcharset = gb2312charset!
  733. fontpitch fontpitch = variable!
  734. string facename = "宋体"
  735. long textcolor = 33554432
  736. long backcolor = 134217739
  737. boolean focusrectangle = false
  738. end type
  739. type st_opdate from statictext within w_email_set_detail
  740. integer x = 1285
  741. integer y = 1148
  742. integer width = 539
  743. integer height = 48
  744. boolean bringtotop = true
  745. integer textsize = -9
  746. integer weight = 400
  747. fontcharset fontcharset = gb2312charset!
  748. fontpitch fontpitch = variable!
  749. string facename = "宋体"
  750. long textcolor = 33554432
  751. long backcolor = 134217739
  752. boolean focusrectangle = false
  753. end type
  754. type mle_dscrp from multilineedit within w_email_set_detail
  755. integer x = 334
  756. integer y = 948
  757. integer width = 1358
  758. integer height = 156
  759. integer taborder = 120
  760. boolean bringtotop = true
  761. integer textsize = -9
  762. integer weight = 400
  763. fontcharset fontcharset = gb2312charset!
  764. fontpitch fontpitch = variable!
  765. string facename = "宋体"
  766. long textcolor = 33554432
  767. borderstyle borderstyle = stylelowered!
  768. end type
  769. type sle_othermsg from singlelineedit within w_email_set_detail
  770. integer x = 334
  771. integer y = 720
  772. integer width = 1358
  773. integer height = 92
  774. integer taborder = 90
  775. boolean bringtotop = true
  776. integer textsize = -9
  777. integer weight = 400
  778. fontcharset fontcharset = gb2312charset!
  779. fontpitch fontpitch = variable!
  780. string facename = "宋体"
  781. long textcolor = 33554432
  782. borderstyle borderstyle = stylelowered!
  783. end type
  784. type st_3 from statictext within w_email_set_detail
  785. integer y = 740
  786. integer width = 311
  787. integer height = 48
  788. boolean bringtotop = true
  789. integer textsize = -9
  790. integer weight = 400
  791. fontcharset fontcharset = gb2312charset!
  792. fontpitch fontpitch = variable!
  793. string facename = "宋体"
  794. long textcolor = 33554432
  795. long backcolor = 134217739
  796. string text = "附加信息"
  797. alignment alignment = right!
  798. boolean focusrectangle = false
  799. end type
  800. type st_11 from statictext within w_email_set_detail
  801. integer y = 964
  802. integer width = 311
  803. integer height = 48
  804. boolean bringtotop = true
  805. integer textsize = -9
  806. integer weight = 400
  807. fontcharset fontcharset = gb2312charset!
  808. fontpitch fontpitch = variable!
  809. string facename = "宋体"
  810. long textcolor = 33554432
  811. long backcolor = 134217739
  812. string text = "备 注"
  813. alignment alignment = right!
  814. boolean focusrectangle = false
  815. end type
  816. type st_12 from statictext within w_email_set_detail
  817. integer x = 55
  818. integer y = 1148
  819. integer width = 306
  820. integer height = 48
  821. boolean bringtotop = true
  822. integer textsize = -9
  823. integer weight = 400
  824. fontcharset fontcharset = gb2312charset!
  825. fontpitch fontpitch = variable!
  826. string facename = "宋体"
  827. long textcolor = 33554432
  828. long backcolor = 134217739
  829. string text = "最后修改人:"
  830. boolean focusrectangle = false
  831. end type
  832. type st_13 from statictext within w_email_set_detail
  833. integer x = 896
  834. integer y = 1148
  835. integer width = 379
  836. integer height = 48
  837. boolean bringtotop = true
  838. integer textsize = -9
  839. integer weight = 400
  840. fontcharset fontcharset = gb2312charset!
  841. fontpitch fontpitch = variable!
  842. string facename = "宋体"
  843. long textcolor = 33554432
  844. long backcolor = 134217739
  845. string text = "最后修改日期: "
  846. boolean focusrectangle = false
  847. end type
  848. type cb_1 from uo_imflatbutton within w_email_set_detail
  849. integer x = 1746
  850. integer y = 1008
  851. integer width = 338
  852. integer height = 96
  853. integer taborder = 150
  854. boolean bringtotop = true
  855. string text = "测试连接"
  856. string normalpicname = "link.ico"
  857. integer picsize = 16
  858. end type
  859. event clicked;call super::clicked;oleobject jmail
  860. jmail = CREATE oleobject
  861. jmail.ConnectToNewObject("JMail.Message")
  862. jmail.Charset = 'GB2312'
  863. jmail.ISOEncodeHeaders = TRUE
  864. jmail.silent = TRUE
  865. jmail.Logging = TRUE
  866. jmail.FROM = Trim(sle_mailaddress.text) //发件人邮箱
  867. jmail.FromName = Trim(sle_mailuser.text) //发件人
  868. jmail.Subject = '测试邮件'
  869. jmail.MailServerUserName = Trim(sle_mailaddress.text) //发件邮箱登录账户
  870. jmail.MailServerPassword = Trim(sle_mailpsw.text) //发件邮箱用户密码
  871. jmail.Priority = 1 //优先级
  872. jmail.Body = "测试邮件~r~n" //邮件内容
  873. jmail.AddRecipient('longjoe_test@163.com')
  874. IF jmail.Send(Trim(sle_smtpset.text)) THEN
  875. MessageBox('提示','测试成功')
  876. ELSE
  877. MessageBox('错误',"邮箱设置不正确或者没有连接网络", StopSign!, OK! )
  878. END IF
  879. jmail.Close()
  880. DESTROY jmail
  881. end event
  882. type cb_ok from uo_imflatbutton within w_email_set_detail
  883. integer x = 1385
  884. integer y = 1284
  885. integer width = 311
  886. integer height = 96
  887. integer taborder = 140
  888. boolean bringtotop = true
  889. string normalpicname = "SAVE.BMP"
  890. integer picsize = 16
  891. end type
  892. event clicked;call super::clicked;string ls_msg
  893. if dw_edit_mode then
  894. // 保存
  895. wf_check_valid()
  896. if wf_save(ls_msg) <> 1 then
  897. MessageBox('保存失败', ls_msg)
  898. return
  899. end if
  900. close(parent)
  901. else
  902. close(parent)
  903. end if
  904. end event
  905. type cbx_1 from checkbox within w_email_set_detail
  906. integer x = 1257
  907. integer y = 840
  908. integer width = 416
  909. integer height = 92
  910. boolean bringtotop = true
  911. integer textsize = -9
  912. integer weight = 400
  913. fontcharset fontcharset = gb2312charset!
  914. fontpitch fontpitch = variable!
  915. string facename = "宋体"
  916. long textcolor = 33554432
  917. long backcolor = 134217739
  918. string text = "启用SSL加密"
  919. end type
  920. type ln_bar from line within w_email_set_detail
  921. long linecolor = 268435456
  922. integer linethickness = 4
  923. integer beginy = 1240
  924. integer endx = 1961
  925. integer endy = 1240
  926. end type
  927. type ln_bar2 from line within w_email_set_detail
  928. long linecolor = 16777215
  929. integer linethickness = 4
  930. integer beginy = 1244
  931. integer endx = 1993
  932. integer endy = 1244
  933. end type