w_modpsw.srw 4.9 KB

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