w_mrp_unit_ch.srw 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. $PBExportHeader$w_mrp_unit_ch.srw
  2. forward
  3. global type w_mrp_unit_ch from window
  4. end type
  5. type ddlb_1 from dropdownlistbox within w_mrp_unit_ch
  6. end type
  7. type cb_cancel from uo_imflatbutton within w_mrp_unit_ch
  8. end type
  9. type cb_ok from uo_imflatbutton within w_mrp_unit_ch
  10. end type
  11. end forward
  12. global type w_mrp_unit_ch from window
  13. integer width = 997
  14. integer height = 660
  15. boolean titlebar = true
  16. string title = "MRP运算按辅助单位补足选择"
  17. boolean controlmenu = true
  18. windowtype windowtype = response!
  19. long backcolor = 134217739
  20. string icon = "AppIcon!"
  21. boolean center = true
  22. ddlb_1 ddlb_1
  23. cb_cancel cb_cancel
  24. cb_ok cb_ok
  25. end type
  26. global w_mrp_unit_ch w_mrp_unit_ch
  27. type variables
  28. s_mtrlorigin rls_mtrlorigin
  29. end variables
  30. on w_mrp_unit_ch.create
  31. this.ddlb_1=create ddlb_1
  32. this.cb_cancel=create cb_cancel
  33. this.cb_ok=create cb_ok
  34. this.Control[]={this.ddlb_1,&
  35. this.cb_cancel,&
  36. this.cb_ok}
  37. end on
  38. on w_mrp_unit_ch.destroy
  39. destroy(this.ddlb_1)
  40. destroy(this.cb_cancel)
  41. destroy(this.cb_ok)
  42. end on
  43. event close;closewithreturn(this,rls_mtrlorigin)
  44. end event
  45. event open;rls_mtrlorigin.mtrloriginid = -1
  46. end event
  47. type ddlb_1 from dropdownlistbox within w_mrp_unit_ch
  48. integer x = 261
  49. integer y = 140
  50. integer width = 480
  51. integer height = 300
  52. integer taborder = 10
  53. integer textsize = -9
  54. integer weight = 400
  55. fontcharset fontcharset = gb2312charset!
  56. fontpitch fontpitch = variable!
  57. string facename = "宋体"
  58. long textcolor = 33554432
  59. string text = "无[0]"
  60. boolean sorted = false
  61. string item[] = {"无[0]","辅单位1[1]","辅单位2[2]","辅单位3[3]"}
  62. borderstyle borderstyle = stylelowered!
  63. end type
  64. type cb_cancel from uo_imflatbutton within w_mrp_unit_ch
  65. integer x = 549
  66. integer y = 356
  67. integer width = 265
  68. integer taborder = 40
  69. string text = "取消"
  70. boolean cancel = true
  71. end type
  72. event clicked;call super::clicked;close(parent)
  73. end event
  74. type cb_ok from uo_imflatbutton within w_mrp_unit_ch
  75. integer x = 165
  76. integer y = 356
  77. integer width = 265
  78. integer taborder = 30
  79. end type
  80. event clicked;call super::clicked;CHOOSE CASE ddlb_1.Text
  81. CASE '无[0]'
  82. rls_mtrlorigin.mtrloriginid = 0
  83. CASE '辅单位1[1]'
  84. rls_mtrlorigin.mtrloriginid = 1
  85. CASE '辅单位2[2]'
  86. rls_mtrlorigin.mtrloriginid = 2
  87. CASE '辅单位3[3]'
  88. rls_mtrlorigin.mtrloriginid = 3
  89. END CHOOSE
  90. Close(PARENT)
  91. end event