w_sc_workpricetable_copy.srw 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. $PBExportHeader$w_sc_workpricetable_copy.srw
  2. forward
  3. global type w_sc_workpricetable_copy from w_publ_base
  4. end type
  5. type ddlb_1 from dropdownlistbox within w_sc_workpricetable_copy
  6. end type
  7. end forward
  8. global type w_sc_workpricetable_copy from w_publ_base
  9. integer width = 1093
  10. integer height = 508
  11. string title = "复制"
  12. boolean minbox = false
  13. windowtype windowtype = response!
  14. ddlb_1 ddlb_1
  15. end type
  16. global w_sc_workpricetable_copy w_sc_workpricetable_copy
  17. type variables
  18. long rst_wrkgrpid
  19. end variables
  20. on w_sc_workpricetable_copy.create
  21. int iCurrent
  22. call super::create
  23. this.ddlb_1=create ddlb_1
  24. iCurrent=UpperBound(this.Control)
  25. this.Control[iCurrent+1]=this.ddlb_1
  26. end on
  27. on w_sc_workpricetable_copy.destroy
  28. call super::destroy
  29. destroy(this.ddlb_1)
  30. end on
  31. event open;call super::open;Long ll_mtrlid
  32. ll_mtrlid = Message.DoubleParm
  33. Long ll_wrkGrpid
  34. String ls_wrkGrpName
  35. DECLARE pf CURSOR FOR
  36. SELECT distinct u_sc_workprice.wrkGrpid,
  37. u_sc_workgroup.wrkGrpName
  38. FROM u_sc_workprice Left OUTER JOIN u_sc_workgroup
  39. ON u_sc_workprice.wrkGrpid = u_sc_workgroup.wrkGrpid
  40. and u_sc_workprice.mtrlid = :ll_mtrlid
  41. order by u_sc_workprice.wrkGrpid;
  42. OPEN pf;
  43. FETCH pf INTO :ll_wrkGrpid,:ls_wrkGrpName;
  44. DO WHILE sqlca.SQLCode = 0
  45. ddlb_1.AddItem(ls_wrkGrpName+Fill(' ',40)+'['+String(ll_wrkGrpid)+']')
  46. FETCH pf INTO :ll_wrkGrpid,:ls_wrkGrpName;
  47. LOOP
  48. close pf;
  49. ddlb_1.AddItem('全部')
  50. ddlb_1.text = '全部'
  51. rst_wrkgrpid = 0
  52. end event
  53. event close;call super::close;closewithreturn(this,rst_wrkgrpid)
  54. end event
  55. type cb_func from w_publ_base`cb_func within w_sc_workpricetable_copy
  56. integer x = 160
  57. integer y = 264
  58. integer width = 311
  59. integer height = 96
  60. string text = "确定"
  61. toolbaralignment pic_align = alignatleft!
  62. boolean border = true
  63. end type
  64. event cb_func::clicked;if ddlb_1.text = '全部' then
  65. rst_wrkgrpid = -1
  66. else
  67. rst_wrkgrpid = Long(Mid ( ddlb_1.Text,Pos(ddlb_1.Text,'[') + 1,Len(ddlb_1.Text) - Pos(ddlb_1.Text,'[') - 1 ))
  68. end if
  69. close(parent)
  70. end event
  71. type cb_exit from w_publ_base`cb_exit within w_sc_workpricetable_copy
  72. integer x = 553
  73. integer y = 268
  74. end type
  75. type ddlb_1 from dropdownlistbox within w_sc_workpricetable_copy
  76. integer x = 206
  77. integer y = 80
  78. integer width = 645
  79. integer height = 880
  80. integer taborder = 10
  81. boolean bringtotop = true
  82. integer textsize = -9
  83. integer weight = 400
  84. fontcharset fontcharset = gb2312charset!
  85. fontpitch fontpitch = variable!
  86. string facename = "宋体"
  87. long textcolor = 33554432
  88. boolean sorted = false
  89. boolean vscrollbar = true
  90. borderstyle borderstyle = stylelowered!
  91. end type