w_super_psw.srw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. $PBExportHeader$w_super_psw.srw
  2. forward
  3. global type w_super_psw from w_publ_base
  4. end type
  5. type cb_1 from commandbutton within w_super_psw
  6. end type
  7. type cbx_1 from checkbox within w_super_psw
  8. end type
  9. type st_2 from statictext within w_super_psw
  10. end type
  11. type gb_1 from groupbox within w_super_psw
  12. end type
  13. type sle_2 from singlelineedit within w_super_psw
  14. end type
  15. type sle_1 from singlelineedit within w_super_psw
  16. end type
  17. type st_1 from statictext within w_super_psw
  18. end type
  19. type st_3 from statictext within w_super_psw
  20. end type
  21. end forward
  22. global type w_super_psw from w_publ_base
  23. integer width = 1202
  24. integer height = 580
  25. string title = "超级密码设置"
  26. boolean minbox = false
  27. windowtype windowtype = response!
  28. cb_1 cb_1
  29. cbx_1 cbx_1
  30. st_2 st_2
  31. gb_1 gb_1
  32. sle_2 sle_2
  33. sle_1 sle_1
  34. st_1 st_1
  35. st_3 st_3
  36. end type
  37. global w_super_psw w_super_psw
  38. type variables
  39. string supepsw=''
  40. end variables
  41. on w_super_psw.create
  42. int iCurrent
  43. call super::create
  44. this.cb_1=create cb_1
  45. this.cbx_1=create cbx_1
  46. this.st_2=create st_2
  47. this.gb_1=create gb_1
  48. this.sle_2=create sle_2
  49. this.sle_1=create sle_1
  50. this.st_1=create st_1
  51. this.st_3=create st_3
  52. iCurrent=UpperBound(this.Control)
  53. this.Control[iCurrent+1]=this.cb_1
  54. this.Control[iCurrent+2]=this.cbx_1
  55. this.Control[iCurrent+3]=this.st_2
  56. this.Control[iCurrent+4]=this.gb_1
  57. this.Control[iCurrent+5]=this.sle_2
  58. this.Control[iCurrent+6]=this.sle_1
  59. this.Control[iCurrent+7]=this.st_1
  60. this.Control[iCurrent+8]=this.st_3
  61. end on
  62. on w_super_psw.destroy
  63. call super::destroy
  64. destroy(this.cb_1)
  65. destroy(this.cbx_1)
  66. destroy(this.st_2)
  67. destroy(this.gb_1)
  68. destroy(this.sle_2)
  69. destroy(this.sle_1)
  70. destroy(this.st_1)
  71. destroy(this.st_3)
  72. end on
  73. event close;closewithreturn(this,supepsw)
  74. end event
  75. type cb_func from w_publ_base`cb_func within w_super_psw
  76. boolean visible = false
  77. integer x = 338
  78. integer y = 684
  79. integer width = 183
  80. boolean enabled = false
  81. end type
  82. type cb_exit from w_publ_base`cb_exit within w_super_psw
  83. integer x = 859
  84. integer y = 364
  85. integer width = 279
  86. string text = "取消"
  87. end type
  88. event cb_exit::clicked;supepsw=''
  89. close(parent)
  90. end event
  91. type cb_1 from commandbutton within w_super_psw
  92. integer x = 539
  93. integer y = 364
  94. integer width = 279
  95. integer height = 96
  96. integer taborder = 50
  97. boolean bringtotop = true
  98. integer textsize = -9
  99. integer weight = 400
  100. fontcharset fontcharset = gb2312charset!
  101. fontpitch fontpitch = variable!
  102. string facename = "宋体"
  103. string text = "确定"
  104. end type
  105. event clicked;sle_1.text=trim(sle_1.text)
  106. sle_2.text=trim(sle_2.text)
  107. if sle_1.text='' then
  108. messagebox("提示","请输入密码", Information!, OK! )
  109. return
  110. end if
  111. if not cbx_1.checked then
  112. if sle_1.text <> sle_2.text then
  113. messagebox("提示","输入的确认密码不正确", Information!, OK! )
  114. return
  115. end if
  116. end if
  117. supepsw=sle_1.text
  118. close(parent)
  119. end event
  120. type cbx_1 from checkbox within w_super_psw
  121. integer x = 55
  122. integer y = 376
  123. integer width = 302
  124. integer height = 76
  125. boolean bringtotop = true
  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 = 134217739
  133. string text = "显示密码"
  134. end type
  135. event clicked;if this.checked then
  136. sle_1.password=false
  137. sle_2.visible=false
  138. st_2.visible=false
  139. else
  140. sle_1.password=true
  141. sle_2.visible=true
  142. st_2.visible=true
  143. end if
  144. end event
  145. type st_2 from statictext within w_super_psw
  146. integer x = 73
  147. integer y = 240
  148. integer width = 274
  149. integer height = 60
  150. integer textsize = -9
  151. integer weight = 400
  152. fontcharset fontcharset = gb2312charset!
  153. fontpitch fontpitch = variable!
  154. string facename = "宋体"
  155. long textcolor = 33554432
  156. long backcolor = 134217739
  157. boolean enabled = false
  158. string text = "密码确认:"
  159. boolean focusrectangle = false
  160. end type
  161. type gb_1 from groupbox within w_super_psw
  162. integer x = 27
  163. integer width = 1120
  164. integer height = 336
  165. integer taborder = 20
  166. integer textsize = -9
  167. integer weight = 400
  168. fontcharset fontcharset = gb2312charset!
  169. fontpitch fontpitch = variable!
  170. string facename = "宋体"
  171. long textcolor = 33554432
  172. long backcolor = 134217739
  173. end type
  174. type sle_2 from singlelineedit within w_super_psw
  175. integer x = 347
  176. integer y = 224
  177. integer width = 745
  178. integer height = 92
  179. integer taborder = 40
  180. boolean bringtotop = true
  181. integer textsize = -9
  182. integer weight = 400
  183. fontcharset fontcharset = gb2312charset!
  184. fontpitch fontpitch = variable!
  185. string facename = "宋体"
  186. long textcolor = 33554432
  187. boolean autohscroll = false
  188. boolean password = true
  189. borderstyle borderstyle = stylelowered!
  190. end type
  191. event constructor;this.text=sys_superpsw
  192. end event
  193. type sle_1 from singlelineedit within w_super_psw
  194. integer x = 347
  195. integer y = 120
  196. integer width = 745
  197. integer height = 92
  198. integer taborder = 30
  199. boolean bringtotop = true
  200. integer textsize = -9
  201. integer weight = 400
  202. fontcharset fontcharset = gb2312charset!
  203. fontpitch fontpitch = variable!
  204. string facename = "宋体"
  205. long textcolor = 33554432
  206. boolean autohscroll = false
  207. boolean password = true
  208. borderstyle borderstyle = stylelowered!
  209. end type
  210. event constructor;this.text=sys_superpsw
  211. end event
  212. type st_1 from statictext within w_super_psw
  213. integer x = 73
  214. integer y = 140
  215. integer width = 274
  216. integer height = 48
  217. boolean bringtotop = true
  218. integer textsize = -9
  219. integer weight = 400
  220. fontcharset fontcharset = gb2312charset!
  221. fontpitch fontpitch = variable!
  222. string facename = "宋体"
  223. long textcolor = 33554432
  224. long backcolor = 134217739
  225. string text = "超级密码:"
  226. boolean focusrectangle = false
  227. end type
  228. type st_3 from statictext within w_super_psw
  229. integer x = 347
  230. integer y = 44
  231. integer width = 562
  232. integer height = 48
  233. boolean bringtotop = true
  234. integer textsize = -9
  235. integer weight = 400
  236. fontcharset fontcharset = gb2312charset!
  237. fontpitch fontpitch = variable!
  238. string facename = "宋体"
  239. long textcolor = 255
  240. long backcolor = 134217739
  241. string text = "此功能用于数据删除!"
  242. boolean focusrectangle = false
  243. end type