w_mtrlprp_ch.srw 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. $PBExportHeader$w_mtrlprp_ch.srw
  2. forward
  3. global type w_mtrlprp_ch from window
  4. end type
  5. type ddlb_mtrlprp from uo_ddlb_mtrlprp within w_mtrlprp_ch
  6. end type
  7. type st_3 from statictext within w_mtrlprp_ch
  8. end type
  9. type cb_cancel from uo_imflatbutton within w_mtrlprp_ch
  10. end type
  11. type cb_ok from uo_imflatbutton within w_mtrlprp_ch
  12. end type
  13. end forward
  14. global type w_mtrlprp_ch from window
  15. integer width = 997
  16. integer height = 660
  17. boolean titlebar = true
  18. string title = "物料来源选择"
  19. boolean controlmenu = true
  20. windowtype windowtype = response!
  21. long backcolor = 134217739
  22. string icon = "AppIcon!"
  23. boolean center = true
  24. ddlb_mtrlprp ddlb_mtrlprp
  25. st_3 st_3
  26. cb_cancel cb_cancel
  27. cb_ok cb_ok
  28. end type
  29. global w_mtrlprp_ch w_mtrlprp_ch
  30. type variables
  31. s_mtrlprp rls_mtrlprp
  32. end variables
  33. on w_mtrlprp_ch.create
  34. this.ddlb_mtrlprp=create ddlb_mtrlprp
  35. this.st_3=create st_3
  36. this.cb_cancel=create cb_cancel
  37. this.cb_ok=create cb_ok
  38. this.Control[]={this.ddlb_mtrlprp,&
  39. this.st_3,&
  40. this.cb_cancel,&
  41. this.cb_ok}
  42. end on
  43. on w_mtrlprp_ch.destroy
  44. destroy(this.ddlb_mtrlprp)
  45. destroy(this.st_3)
  46. destroy(this.cb_cancel)
  47. destroy(this.cb_ok)
  48. end on
  49. event close;closewithreturn(this,rls_mtrlprp)
  50. end event
  51. event open;rls_mtrlprp.mtrlprpid = -1
  52. end event
  53. type ddlb_mtrlprp from uo_ddlb_mtrlprp within w_mtrlprp_ch
  54. integer x = 425
  55. integer y = 152
  56. integer width = 352
  57. integer height = 480
  58. integer taborder = 10
  59. boolean bringtotop = true
  60. string text = ""
  61. string item[] = {"成品[0]","半成品[1]","原料[2]","其它[8]"}
  62. end type
  63. event selectionchanged;CHOOSE CASE Index
  64. CASE 1
  65. uo_mtrlprp = 0
  66. CASE 2
  67. uo_mtrlprp =1
  68. CASE 3
  69. uo_mtrlprp = 2
  70. CASE 4
  71. uo_mtrlprp = 8
  72. // CASE 5
  73. // uo_mtrlprp = 8
  74. END CHOOSE
  75. end event
  76. type st_3 from statictext within w_mtrlprp_ch
  77. integer x = 247
  78. integer y = 168
  79. integer width = 151
  80. integer height = 48
  81. integer textsize = -9
  82. integer weight = 400
  83. fontcharset fontcharset = gb2312charset!
  84. fontpitch fontpitch = variable!
  85. string facename = "宋体"
  86. long textcolor = 33554432
  87. long backcolor = 134217739
  88. string text = "属性"
  89. boolean focusrectangle = false
  90. end type
  91. type cb_cancel from uo_imflatbutton within w_mtrlprp_ch
  92. integer x = 549
  93. integer y = 356
  94. integer width = 265
  95. integer taborder = 40
  96. string text = "取消"
  97. boolean cancel = true
  98. end type
  99. event clicked;call super::clicked;close(parent)
  100. end event
  101. type cb_ok from uo_imflatbutton within w_mtrlprp_ch
  102. integer x = 165
  103. integer y = 356
  104. integer width = 265
  105. integer taborder = 30
  106. end type
  107. event clicked;call super::clicked;rls_mtrlprp.mtrlprpid = ddlb_mtrlprp.uo_mtrlprp
  108. close(parent)
  109. end event