w_workprice_audit.srw 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. $PBExportHeader$w_workprice_audit.srw
  2. forward
  3. global type w_workprice_audit from window
  4. end type
  5. type ddlb_wrkgrp from dropdownlistbox within w_workprice_audit
  6. end type
  7. type st_3 from statictext within w_workprice_audit
  8. end type
  9. type cb_cancel from uo_imflatbutton within w_workprice_audit
  10. end type
  11. type cb_ok from uo_imflatbutton within w_workprice_audit
  12. end type
  13. end forward
  14. global type w_workprice_audit from window
  15. integer width = 1157
  16. integer height = 448
  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_wrkgrp ddlb_wrkgrp
  25. st_3 st_3
  26. cb_cancel cb_cancel
  27. cb_ok cb_ok
  28. end type
  29. global w_workprice_audit w_workprice_audit
  30. type variables
  31. long rslt_wrkGrpid
  32. end variables
  33. on w_workprice_audit.create
  34. this.ddlb_wrkgrp=create ddlb_wrkgrp
  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_wrkgrp,&
  39. this.st_3,&
  40. this.cb_cancel,&
  41. this.cb_ok}
  42. end on
  43. on w_workprice_audit.destroy
  44. destroy(this.ddlb_wrkgrp)
  45. destroy(this.st_3)
  46. destroy(this.cb_cancel)
  47. destroy(this.cb_ok)
  48. end on
  49. event close;closewithreturn(this,rslt_wrkGrpid)
  50. end event
  51. event open;Long ll_mtrlid
  52. ll_mtrlid = Message.DoubleParm
  53. String ls_wrkGrpName
  54. Long ls_wrkGrpid
  55. DECLARE cur_workgroup CURSOR FOR
  56. SELECT distinct u_sc_workgroup.wrkGrpid,
  57. u_sc_workgroup.wrkGrpName
  58. FROM u_sc_workgroup,u_sc_workprice
  59. WHERE ( u_sc_workgroup.wrkGrpid = u_sc_workprice.wrkGrpid )
  60. AND ( u_sc_workprice.mtrlid = :ll_mtrlid )
  61. Order By u_sc_workgroup.wrkGrpid Desc;
  62. OPEN cur_workgroup;
  63. FETCH cur_workgroup INTO :ls_wrkGrpid,:ls_wrkGrpName;
  64. DO WHILE sqlca.SQLCode = 0
  65. ddlb_wrkgrp.AddItem('['+String(ls_wrkGrpid)+']'+ls_wrkGrpName)
  66. FETCH cur_workgroup INTO :ls_wrkGrpid,:ls_wrkGrpName;
  67. LOOP
  68. ddlb_wrkgrp.AddItem('[-1]全部')
  69. ddlb_wrkgrp.Text = '[-1]全部'
  70. CLOSE cur_workgroup;
  71. end event
  72. type ddlb_wrkgrp from dropdownlistbox within w_workprice_audit
  73. integer x = 265
  74. integer y = 64
  75. integer width = 640
  76. integer height = 684
  77. integer taborder = 10
  78. integer textsize = -9
  79. integer weight = 400
  80. fontcharset fontcharset = gb2312charset!
  81. fontpitch fontpitch = variable!
  82. string facename = "宋体"
  83. long textcolor = 33554432
  84. borderstyle borderstyle = stylelowered!
  85. end type
  86. type st_3 from statictext within w_workprice_audit
  87. integer x = 78
  88. integer y = 76
  89. integer width = 160
  90. integer height = 48
  91. integer textsize = -9
  92. integer weight = 400
  93. fontcharset fontcharset = gb2312charset!
  94. fontpitch fontpitch = variable!
  95. string facename = "宋体"
  96. long textcolor = 33554432
  97. long backcolor = 134217739
  98. string text = "工组"
  99. alignment alignment = right!
  100. boolean focusrectangle = false
  101. end type
  102. type cb_cancel from uo_imflatbutton within w_workprice_audit
  103. integer x = 635
  104. integer y = 204
  105. integer width = 265
  106. integer taborder = 40
  107. string text = "取消"
  108. boolean cancel = true
  109. end type
  110. event clicked;call super::clicked;rslt_wrkGrpid = 0
  111. CLOSE(PARENT)
  112. end event
  113. type cb_ok from uo_imflatbutton within w_workprice_audit
  114. integer x = 251
  115. integer y = 204
  116. integer width = 265
  117. integer taborder = 30
  118. end type
  119. event clicked;call super::clicked;
  120. rslt_wrkGrpid=long(mid(ddlb_wrkgrp.text,2,pos(ddlb_wrkgrp.text,']') - 2 ))
  121. close(parent)
  122. end event