w_bill_cred_audit.srw 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. $PBExportHeader$w_bill_cred_audit.srw
  2. forward
  3. global type w_bill_cred_audit from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_bill_cred_audit
  6. end type
  7. type st_7 from statictext within w_bill_cred_audit
  8. end type
  9. type ddlb_credtype from dropdownlistbox within w_bill_cred_audit
  10. end type
  11. end forward
  12. global type w_bill_cred_audit from w_publ_base
  13. integer width = 1211
  14. integer height = 688
  15. string title = "审核"
  16. boolean minbox = false
  17. windowtype windowtype = response!
  18. cb_1 cb_1
  19. st_7 st_7
  20. ddlb_credtype ddlb_credtype
  21. end type
  22. global w_bill_cred_audit w_bill_cred_audit
  23. type variables
  24. s_bill_cred_audit s_rst
  25. end variables
  26. on w_bill_cred_audit.create
  27. int iCurrent
  28. call super::create
  29. this.cb_1=create cb_1
  30. this.st_7=create st_7
  31. this.ddlb_credtype=create ddlb_credtype
  32. iCurrent=UpperBound(this.Control)
  33. this.Control[iCurrent+1]=this.cb_1
  34. this.Control[iCurrent+2]=this.st_7
  35. this.Control[iCurrent+3]=this.ddlb_credtype
  36. end on
  37. on w_bill_cred_audit.destroy
  38. call super::destroy
  39. destroy(this.cb_1)
  40. destroy(this.st_7)
  41. destroy(this.ddlb_credtype)
  42. end on
  43. event open;call super::open;s_rst.ifaudit = 0
  44. end event
  45. event close;call super::close;CloseWithReturn(THIS,s_rst)
  46. end event
  47. type cb_func from w_publ_base`cb_func within w_bill_cred_audit
  48. boolean visible = false
  49. integer x = 27
  50. integer y = 644
  51. integer taborder = 30
  52. end type
  53. type cb_exit from w_publ_base`cb_exit within w_bill_cred_audit
  54. integer x = 640
  55. integer y = 396
  56. integer taborder = 20
  57. string text = "取消"
  58. end type
  59. type cb_1 from uo_imflatbutton within w_bill_cred_audit
  60. integer x = 224
  61. integer y = 396
  62. integer width = 311
  63. integer height = 96
  64. integer taborder = 10
  65. boolean bringtotop = true
  66. boolean default = true
  67. string normalpicname = "ok.bmp"
  68. end type
  69. event clicked;call super::clicked;s_rst.ifaudit = 1
  70. s_rst.credtype = Trim(ddlb_credtype.Text)
  71. CLOSE(PARENT)
  72. end event
  73. type st_7 from statictext within w_bill_cred_audit
  74. integer x = 229
  75. integer y = 156
  76. integer width = 187
  77. integer height = 56
  78. boolean bringtotop = true
  79. integer textsize = -9
  80. integer weight = 400
  81. fontcharset fontcharset = gb2312charset!
  82. fontpitch fontpitch = variable!
  83. string facename = "宋体"
  84. long textcolor = 33554432
  85. long backcolor = 67108864
  86. boolean enabled = false
  87. string text = "凭证字"
  88. boolean focusrectangle = false
  89. end type
  90. type ddlb_credtype from dropdownlistbox within w_bill_cred_audit
  91. integer x = 425
  92. integer y = 144
  93. integer width = 453
  94. integer height = 340
  95. integer taborder = 40
  96. boolean bringtotop = true
  97. integer textsize = -9
  98. integer weight = 400
  99. fontcharset fontcharset = gb2312charset!
  100. fontpitch fontpitch = variable!
  101. string facename = "宋体"
  102. long textcolor = 33554432
  103. boolean vscrollbar = true
  104. borderstyle borderstyle = stylelowered!
  105. end type
  106. event constructor;String ls_credtype
  107. Int cnt
  108. DECLARE cur_credtype CURSOR FOR
  109. SELECT cw_Credenceword.Credenceword
  110. FROM cw_Credenceword
  111. Where accsetid = :sys_accsetid;
  112. OPEN cur_credtype;
  113. FETCH cur_credtype Into :ls_credtype;
  114. DO WHILE sqlca.SQLCode = 0
  115. cnt++
  116. This.AddItem(ls_credtype)
  117. FETCH cur_credtype Into :ls_credtype;
  118. LOOP
  119. IF cnt = 1 THEN
  120. Text = ls_credtype
  121. END IF
  122. CLOSE cur_credtype;
  123. end event