w_aifmb_com_match.srw 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. $PBExportHeader$w_aifmb_com_match.srw
  2. forward
  3. global type w_aifmb_com_match from window
  4. end type
  5. type sle_usercode from singlelineedit within w_aifmb_com_match
  6. end type
  7. type st_3 from statictext within w_aifmb_com_match
  8. end type
  9. type cb_2 from commandbutton within w_aifmb_com_match
  10. end type
  11. type cb_1 from commandbutton within w_aifmb_com_match
  12. end type
  13. type sle_psw from singlelineedit within w_aifmb_com_match
  14. end type
  15. type st_2 from statictext within w_aifmb_com_match
  16. end type
  17. type st_1 from statictext within w_aifmb_com_match
  18. end type
  19. type sle_username from singlelineedit within w_aifmb_com_match
  20. end type
  21. end forward
  22. global type w_aifmb_com_match from window
  23. integer width = 1399
  24. integer height = 676
  25. boolean titlebar = true
  26. string title = "绑定现有帐号"
  27. boolean controlmenu = true
  28. windowtype windowtype = response!
  29. long backcolor = 16777215
  30. string icon = "AppIcon!"
  31. boolean center = true
  32. sle_usercode sle_usercode
  33. st_3 st_3
  34. cb_2 cb_2
  35. cb_1 cb_1
  36. sle_psw sle_psw
  37. st_2 st_2
  38. st_1 st_1
  39. sle_username sle_username
  40. end type
  41. global w_aifmb_com_match w_aifmb_com_match
  42. on w_aifmb_com_match.create
  43. this.sle_usercode=create sle_usercode
  44. this.st_3=create st_3
  45. this.cb_2=create cb_2
  46. this.cb_1=create cb_1
  47. this.sle_psw=create sle_psw
  48. this.st_2=create st_2
  49. this.st_1=create st_1
  50. this.sle_username=create sle_username
  51. this.Control[]={this.sle_usercode,&
  52. this.st_3,&
  53. this.cb_2,&
  54. this.cb_1,&
  55. this.sle_psw,&
  56. this.st_2,&
  57. this.st_1,&
  58. this.sle_username}
  59. end on
  60. on w_aifmb_com_match.destroy
  61. destroy(this.sle_usercode)
  62. destroy(this.st_3)
  63. destroy(this.cb_2)
  64. destroy(this.cb_1)
  65. destroy(this.sle_psw)
  66. destroy(this.st_2)
  67. destroy(this.st_1)
  68. destroy(this.sle_username)
  69. end on
  70. type sle_usercode from singlelineedit within w_aifmb_com_match
  71. integer x = 393
  72. integer y = 60
  73. integer width = 855
  74. integer height = 84
  75. integer taborder = 40
  76. integer textsize = -9
  77. integer weight = 400
  78. fontcharset fontcharset = gb2312charset!
  79. fontpitch fontpitch = variable!
  80. string facename = "宋体"
  81. long textcolor = 33554432
  82. borderstyle borderstyle = stylelowered!
  83. end type
  84. type st_3 from statictext within w_aifmb_com_match
  85. integer x = 96
  86. integer y = 76
  87. integer width = 279
  88. integer height = 48
  89. integer textsize = -9
  90. integer weight = 400
  91. fontcharset fontcharset = gb2312charset!
  92. fontpitch fontpitch = variable!
  93. string facename = "宋体"
  94. long textcolor = 33554432
  95. long backcolor = 16777215
  96. string text = "企业代号"
  97. alignment alignment = right!
  98. boolean focusrectangle = false
  99. end type
  100. type cb_2 from commandbutton within w_aifmb_com_match
  101. integer x = 951
  102. integer y = 444
  103. integer width = 288
  104. integer height = 100
  105. integer taborder = 160
  106. integer textsize = -9
  107. integer weight = 400
  108. fontcharset fontcharset = gb2312charset!
  109. fontpitch fontpitch = variable!
  110. string facename = "宋体"
  111. string text = "退出"
  112. boolean cancel = true
  113. end type
  114. event clicked;closewithreturn(parent, 0)
  115. end event
  116. type cb_1 from commandbutton within w_aifmb_com_match
  117. integer x = 608
  118. integer y = 444
  119. integer width = 288
  120. integer height = 100
  121. integer taborder = 150
  122. integer textsize = -9
  123. integer weight = 400
  124. fontcharset fontcharset = gb2312charset!
  125. fontpitch fontpitch = variable!
  126. string facename = "宋体"
  127. string text = "确定"
  128. boolean default = true
  129. end type
  130. event clicked;Int rslt = 1
  131. String arg_msg
  132. uo_aifmb = Create uo_aifmb
  133. IF sle_username.Text = '' THEN
  134. rslt = 0
  135. arg_msg = '请输入企业名称'
  136. sle_username.SetFocus()
  137. GOTO ext
  138. END IF
  139. IF sle_psw.Text = '' THEN
  140. rslt = 0
  141. arg_msg = '请输入企业密码'
  142. sle_psw.SetFocus()
  143. GOTO ext
  144. END IF
  145. IF uo_aifmb.uf_commatch(sle_usercode.Text, sle_username.Text, sle_psw.Text, arg_msg) <> 1 THEN
  146. rslt = 0
  147. GOTO ext
  148. END IF
  149. ext:
  150. Destroy uo_aifmb
  151. IF rslt = 1 THEN
  152. CloseWithReturn(Parent, 1)
  153. ELSE
  154. MessageBox('ERROR', arg_msg)
  155. END IF
  156. end event
  157. type sle_psw from singlelineedit within w_aifmb_com_match
  158. integer x = 393
  159. integer y = 308
  160. integer width = 855
  161. integer height = 84
  162. integer taborder = 30
  163. integer textsize = -9
  164. integer weight = 400
  165. fontcharset fontcharset = gb2312charset!
  166. fontpitch fontpitch = variable!
  167. string facename = "宋体"
  168. long textcolor = 33554432
  169. boolean password = true
  170. borderstyle borderstyle = stylelowered!
  171. end type
  172. type st_2 from statictext within w_aifmb_com_match
  173. integer x = 96
  174. integer y = 324
  175. integer width = 279
  176. integer height = 48
  177. integer textsize = -9
  178. integer weight = 400
  179. fontcharset fontcharset = gb2312charset!
  180. fontpitch fontpitch = variable!
  181. string facename = "宋体"
  182. long textcolor = 33554432
  183. long backcolor = 16777215
  184. string text = "企业密码"
  185. alignment alignment = right!
  186. boolean focusrectangle = false
  187. end type
  188. type st_1 from statictext within w_aifmb_com_match
  189. integer x = 96
  190. integer y = 200
  191. integer width = 279
  192. integer height = 48
  193. integer textsize = -9
  194. integer weight = 400
  195. fontcharset fontcharset = gb2312charset!
  196. fontpitch fontpitch = variable!
  197. string facename = "宋体"
  198. long textcolor = 33554432
  199. long backcolor = 16777215
  200. string text = "企业名称"
  201. alignment alignment = right!
  202. boolean focusrectangle = false
  203. end type
  204. type sle_username from singlelineedit within w_aifmb_com_match
  205. integer x = 393
  206. integer y = 184
  207. integer width = 855
  208. integer height = 84
  209. integer taborder = 10
  210. integer textsize = -9
  211. integer weight = 400
  212. fontcharset fontcharset = gb2312charset!
  213. fontpitch fontpitch = variable!
  214. string facename = "宋体"
  215. long textcolor = 33554432
  216. borderstyle borderstyle = stylelowered!
  217. end type