w_ljfieb_modpsw.srw 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. $PBExportHeader$w_ljfieb_modpsw.srw
  2. forward
  3. global type w_ljfieb_modpsw from window
  4. end type
  5. type cb_2 from commandbutton within w_ljfieb_modpsw
  6. end type
  7. type cb_1 from commandbutton within w_ljfieb_modpsw
  8. end type
  9. type st_3 from statictext within w_ljfieb_modpsw
  10. end type
  11. type sle_psw2 from singlelineedit within w_ljfieb_modpsw
  12. end type
  13. type st_2 from statictext within w_ljfieb_modpsw
  14. end type
  15. type sle_psw1 from singlelineedit within w_ljfieb_modpsw
  16. end type
  17. type sle_orgpsw from singlelineedit within w_ljfieb_modpsw
  18. end type
  19. type st_1 from statictext within w_ljfieb_modpsw
  20. end type
  21. end forward
  22. global type w_ljfieb_modpsw from window
  23. integer width = 1051
  24. integer height = 600
  25. boolean titlebar = true
  26. string title = "修改密码"
  27. boolean controlmenu = true
  28. windowtype windowtype = response!
  29. long backcolor = 67108864
  30. string icon = "AppIcon!"
  31. boolean center = true
  32. cb_2 cb_2
  33. cb_1 cb_1
  34. st_3 st_3
  35. sle_psw2 sle_psw2
  36. st_2 st_2
  37. sle_psw1 sle_psw1
  38. sle_orgpsw sle_orgpsw
  39. st_1 st_1
  40. end type
  41. global w_ljfieb_modpsw w_ljfieb_modpsw
  42. type variables
  43. s_ljfieb_modpsw ins_rslt
  44. string org_psw
  45. end variables
  46. on w_ljfieb_modpsw.create
  47. this.cb_2=create cb_2
  48. this.cb_1=create cb_1
  49. this.st_3=create st_3
  50. this.sle_psw2=create sle_psw2
  51. this.st_2=create st_2
  52. this.sle_psw1=create sle_psw1
  53. this.sle_orgpsw=create sle_orgpsw
  54. this.st_1=create st_1
  55. this.Control[]={this.cb_2,&
  56. this.cb_1,&
  57. this.st_3,&
  58. this.sle_psw2,&
  59. this.st_2,&
  60. this.sle_psw1,&
  61. this.sle_orgpsw,&
  62. this.st_1}
  63. end on
  64. on w_ljfieb_modpsw.destroy
  65. destroy(this.cb_2)
  66. destroy(this.cb_1)
  67. destroy(this.st_3)
  68. destroy(this.sle_psw2)
  69. destroy(this.st_2)
  70. destroy(this.sle_psw1)
  71. destroy(this.sle_orgpsw)
  72. destroy(this.st_1)
  73. end on
  74. event open;org_psw = message.stringparm
  75. ins_rslt.ifok = 0
  76. end event
  77. event close;closewithreturn(this, ins_rslt)
  78. end event
  79. type cb_2 from commandbutton within w_ljfieb_modpsw
  80. integer x = 626
  81. integer y = 404
  82. integer width = 311
  83. integer height = 96
  84. integer taborder = 50
  85. integer textsize = -9
  86. integer weight = 400
  87. fontcharset fontcharset = gb2312charset!
  88. fontpitch fontpitch = variable!
  89. string facename = "宋体"
  90. string text = "取消"
  91. end type
  92. event clicked;close(parent)
  93. end event
  94. type cb_1 from commandbutton within w_ljfieb_modpsw
  95. integer x = 151
  96. integer y = 404
  97. integer width = 311
  98. integer height = 96
  99. integer taborder = 40
  100. integer textsize = -9
  101. integer weight = 400
  102. fontcharset fontcharset = gb2312charset!
  103. fontpitch fontpitch = variable!
  104. string facename = "宋体"
  105. string text = "确定"
  106. end type
  107. event clicked;IF sle_orgpsw.Text <> org_psw THEN
  108. MessageBox('ERROR', '原密码错误')
  109. sle_orgpsw.SetFocus()
  110. RETURN
  111. END IF
  112. IF sle_psw1.Text = '' THEN
  113. MessageBox('ERROR', '新密码不能为空')
  114. sle_psw1.SetFocus()
  115. RETURN
  116. END IF
  117. IF sle_psw2.Text <> sle_psw1.Text THEN
  118. MessageBox('ERROR', '新密码确认与新密码不符')
  119. sle_psw2.SetFocus()
  120. RETURN
  121. END IF
  122. ins_rslt.ifok = 1
  123. ins_rslt.newpsw = sle_psw1.Text
  124. Close(Parent)
  125. end event
  126. type st_3 from statictext within w_ljfieb_modpsw
  127. integer x = 82
  128. integer y = 288
  129. integer width = 288
  130. integer height = 56
  131. integer textsize = -9
  132. integer weight = 400
  133. fontcharset fontcharset = gb2312charset!
  134. fontpitch fontpitch = variable!
  135. string facename = "宋体"
  136. long textcolor = 33554432
  137. long backcolor = 67108864
  138. string text = "新密码确认"
  139. alignment alignment = Right!
  140. boolean focusrectangle = false
  141. end type
  142. type sle_psw2 from singlelineedit within w_ljfieb_modpsw
  143. integer x = 389
  144. integer y = 276
  145. integer width = 549
  146. integer height = 84
  147. integer taborder = 30
  148. integer textsize = -9
  149. integer weight = 400
  150. fontcharset fontcharset = gb2312charset!
  151. fontpitch fontpitch = variable!
  152. string facename = "宋体"
  153. long textcolor = 33554432
  154. boolean password = true
  155. borderstyle borderstyle = stylelowered!
  156. end type
  157. type st_2 from statictext within w_ljfieb_modpsw
  158. integer x = 151
  159. integer y = 176
  160. integer width = 219
  161. integer height = 56
  162. integer textsize = -9
  163. integer weight = 400
  164. fontcharset fontcharset = gb2312charset!
  165. fontpitch fontpitch = variable!
  166. string facename = "宋体"
  167. long textcolor = 33554432
  168. long backcolor = 67108864
  169. string text = "新密码"
  170. alignment alignment = Right!
  171. boolean focusrectangle = false
  172. end type
  173. type sle_psw1 from singlelineedit within w_ljfieb_modpsw
  174. integer x = 389
  175. integer y = 164
  176. integer width = 549
  177. integer height = 84
  178. integer taborder = 20
  179. integer textsize = -9
  180. integer weight = 400
  181. fontcharset fontcharset = gb2312charset!
  182. fontpitch fontpitch = variable!
  183. string facename = "宋体"
  184. long textcolor = 33554432
  185. boolean password = true
  186. borderstyle borderstyle = stylelowered!
  187. end type
  188. type sle_orgpsw from singlelineedit within w_ljfieb_modpsw
  189. integer x = 389
  190. integer y = 52
  191. integer width = 549
  192. integer height = 84
  193. integer taborder = 10
  194. integer textsize = -9
  195. integer weight = 400
  196. fontcharset fontcharset = gb2312charset!
  197. fontpitch fontpitch = variable!
  198. string facename = "宋体"
  199. long textcolor = 33554432
  200. boolean password = true
  201. borderstyle borderstyle = stylelowered!
  202. end type
  203. type st_1 from statictext within w_ljfieb_modpsw
  204. integer x = 151
  205. integer y = 64
  206. integer width = 219
  207. integer height = 56
  208. integer textsize = -9
  209. integer weight = 400
  210. fontcharset fontcharset = gb2312charset!
  211. fontpitch fontpitch = variable!
  212. string facename = "宋体"
  213. long textcolor = 33554432
  214. long backcolor = 67108864
  215. string text = "原密码"
  216. alignment alignment = Right!
  217. boolean focusrectangle = false
  218. end type