w_aifmb_login_response.srw 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. $PBExportHeader$w_aifmb_login_response.srw
  2. forward
  3. global type w_aifmb_login_response from window
  4. end type
  5. type cb_exit from commandbutton within w_aifmb_login_response
  6. end type
  7. type cb_1 from commandbutton within w_aifmb_login_response
  8. end type
  9. type p_1 from picture within w_aifmb_login_response
  10. end type
  11. type sle_authcode from singlelineedit within w_aifmb_login_response
  12. end type
  13. type st_3 from statictext within w_aifmb_login_response
  14. end type
  15. type st_2 from statictext within w_aifmb_login_response
  16. end type
  17. type sle_psw from singlelineedit within w_aifmb_login_response
  18. end type
  19. type st_1 from statictext within w_aifmb_login_response
  20. end type
  21. type sle_username from singlelineedit within w_aifmb_login_response
  22. end type
  23. end forward
  24. global type w_aifmb_login_response from window
  25. integer width = 1061
  26. integer height = 580
  27. boolean titlebar = true
  28. string title = "登录"
  29. boolean controlmenu = true
  30. windowtype windowtype = response!
  31. long backcolor = 67108864
  32. string icon = "AppIcon!"
  33. boolean center = true
  34. cb_exit cb_exit
  35. cb_1 cb_1
  36. p_1 p_1
  37. sle_authcode sle_authcode
  38. st_3 st_3
  39. st_2 st_2
  40. sle_psw sle_psw
  41. st_1 st_1
  42. sle_username sle_username
  43. end type
  44. global w_aifmb_login_response w_aifmb_login_response
  45. on w_aifmb_login_response.create
  46. this.cb_exit=create cb_exit
  47. this.cb_1=create cb_1
  48. this.p_1=create p_1
  49. this.sle_authcode=create sle_authcode
  50. this.st_3=create st_3
  51. this.st_2=create st_2
  52. this.sle_psw=create sle_psw
  53. this.st_1=create st_1
  54. this.sle_username=create sle_username
  55. this.Control[]={this.cb_exit,&
  56. this.cb_1,&
  57. this.p_1,&
  58. this.sle_authcode,&
  59. this.st_3,&
  60. this.st_2,&
  61. this.sle_psw,&
  62. this.st_1,&
  63. this.sle_username}
  64. end on
  65. on w_aifmb_login_response.destroy
  66. destroy(this.cb_exit)
  67. destroy(this.cb_1)
  68. destroy(this.p_1)
  69. destroy(this.sle_authcode)
  70. destroy(this.st_3)
  71. destroy(this.st_2)
  72. destroy(this.sle_psw)
  73. destroy(this.st_1)
  74. destroy(this.sle_username)
  75. end on
  76. event open;Int rslt = 1
  77. String arg_msg
  78. uo_aifmb = Create uo_aifmb
  79. Blob lb_pic
  80. IF uo_aifmb.uf_AuthCode(lb_pic, arg_msg) <> 1 THEN
  81. rslt = 0
  82. GOTO ext
  83. END IF
  84. p_1.SetPicture(lb_pic)
  85. ext:
  86. Destroy uo_aifmb
  87. IF rslt = 0 THEN
  88. MessageBox('Error', arg_msg)
  89. cb_exit.PostEvent(Clicked!)
  90. END IF
  91. end event
  92. type cb_exit from commandbutton within w_aifmb_login_response
  93. integer x = 658
  94. integer y = 392
  95. integer width = 229
  96. integer height = 84
  97. integer taborder = 50
  98. integer textsize = -9
  99. integer weight = 400
  100. fontcharset fontcharset = gb2312charset!
  101. fontpitch fontpitch = variable!
  102. string facename = "宋体"
  103. string text = "取消"
  104. boolean cancel = true
  105. end type
  106. event clicked;close(parent)
  107. end event
  108. type cb_1 from commandbutton within w_aifmb_login_response
  109. integer x = 407
  110. integer y = 392
  111. integer width = 229
  112. integer height = 84
  113. integer taborder = 40
  114. integer textsize = -9
  115. integer weight = 400
  116. fontcharset fontcharset = gb2312charset!
  117. fontpitch fontpitch = variable!
  118. string facename = "宋体"
  119. string text = "登录"
  120. boolean default = true
  121. end type
  122. event clicked;Int rslt = 1
  123. String arg_msg
  124. uo_aifmb = Create uo_aifmb
  125. IF uo_aifmb.uf_UserLogin(sle_username.Text, sle_psw.Text, sle_authcode.Text, arg_msg) <> 1 THEN
  126. rslt = 0
  127. GOTO ext
  128. END IF
  129. ext:
  130. Destroy uo_aifmb
  131. IF rslt = 0 THEN
  132. MessageBox('Error', arg_msg)
  133. ELSE
  134. Close(Parent)
  135. END IF
  136. end event
  137. type p_1 from picture within w_aifmb_login_response
  138. integer x = 786
  139. integer y = 272
  140. integer width = 215
  141. integer height = 92
  142. boolean originalsize = true
  143. boolean focusrectangle = false
  144. end type
  145. event clicked;int rslt = 1
  146. string arg_msg
  147. uo_aifmb = create uo_aifmb
  148. blob lb_pic
  149. if uo_aifmb.uf_AuthCode(lb_pic, arg_msg) <> 1 then
  150. rslt = 0
  151. goto ext
  152. end if
  153. p_1.SetPicture(lb_pic)
  154. ext:
  155. destroy uo_aifmb
  156. if rslt = 0 then
  157. MessageBox('Error', arg_msg)
  158. end if
  159. end event
  160. type sle_authcode from singlelineedit within w_aifmb_login_response
  161. integer x = 311
  162. integer y = 272
  163. integer width = 457
  164. integer height = 92
  165. integer taborder = 30
  166. integer textsize = -9
  167. integer weight = 400
  168. fontcharset fontcharset = gb2312charset!
  169. fontpitch fontpitch = variable!
  170. string facename = "宋体"
  171. long textcolor = 33554432
  172. borderstyle borderstyle = stylelowered!
  173. end type
  174. type st_3 from statictext within w_aifmb_login_response
  175. integer x = 46
  176. integer y = 292
  177. integer width = 247
  178. integer height = 48
  179. integer textsize = -9
  180. integer weight = 400
  181. fontcharset fontcharset = gb2312charset!
  182. fontpitch fontpitch = variable!
  183. string facename = "宋体"
  184. long textcolor = 33554432
  185. long backcolor = 67108864
  186. string text = "验证码"
  187. alignment alignment = right!
  188. boolean focusrectangle = false
  189. end type
  190. type st_2 from statictext within w_aifmb_login_response
  191. integer x = 46
  192. integer y = 172
  193. integer width = 247
  194. integer height = 48
  195. integer textsize = -9
  196. integer weight = 400
  197. fontcharset fontcharset = gb2312charset!
  198. fontpitch fontpitch = variable!
  199. string facename = "宋体"
  200. long textcolor = 33554432
  201. long backcolor = 67108864
  202. string text = "密码"
  203. alignment alignment = right!
  204. boolean focusrectangle = false
  205. end type
  206. type sle_psw from singlelineedit within w_aifmb_login_response
  207. integer x = 311
  208. integer y = 152
  209. integer width = 457
  210. integer height = 92
  211. integer taborder = 20
  212. integer textsize = -9
  213. integer weight = 400
  214. fontcharset fontcharset = gb2312charset!
  215. fontpitch fontpitch = variable!
  216. string facename = "宋体"
  217. long textcolor = 33554432
  218. boolean password = true
  219. borderstyle borderstyle = stylelowered!
  220. end type
  221. type st_1 from statictext within w_aifmb_login_response
  222. integer x = 64
  223. integer y = 52
  224. integer width = 229
  225. integer height = 48
  226. integer textsize = -9
  227. integer weight = 400
  228. fontcharset fontcharset = gb2312charset!
  229. fontpitch fontpitch = variable!
  230. string facename = "宋体"
  231. long textcolor = 33554432
  232. long backcolor = 67108864
  233. string text = "用户名"
  234. alignment alignment = right!
  235. boolean focusrectangle = false
  236. end type
  237. type sle_username from singlelineedit within w_aifmb_login_response
  238. integer x = 311
  239. integer y = 32
  240. integer width = 457
  241. integer height = 92
  242. integer taborder = 10
  243. integer textsize = -9
  244. integer weight = 400
  245. fontcharset fontcharset = gb2312charset!
  246. fontpitch fontpitch = variable!
  247. string facename = "宋体"
  248. long textcolor = 33554432
  249. borderstyle borderstyle = stylelowered!
  250. end type