w_rp_sc_abnormity.srw 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. $PBExportHeader$w_rp_sc_abnormity.srw
  2. forward
  3. global type w_rp_sc_abnormity from w_publ_easyq
  4. end type
  5. type ddlb_1 from dropdownlistbox within w_rp_sc_abnormity
  6. end type
  7. end forward
  8. global type w_rp_sc_abnormity from w_publ_easyq
  9. string title = "个人工序计件单统计表"
  10. ddlb_1 ddlb_1
  11. end type
  12. global w_rp_sc_abnormity w_rp_sc_abnormity
  13. on w_rp_sc_abnormity.create
  14. int iCurrent
  15. call super::create
  16. this.ddlb_1=create ddlb_1
  17. iCurrent=UpperBound(this.Control)
  18. this.Control[iCurrent+1]=this.ddlb_1
  19. end on
  20. on w_rp_sc_abnormity.destroy
  21. call super::destroy
  22. destroy(this.ddlb_1)
  23. end on
  24. event open;call super::open;EM_1.TEXT=string(today(),'yyyy-mm')+'-01'
  25. cb_1.triggerevent(clicked!)
  26. end event
  27. event ue_before_open;call super::ue_before_open;if_ue_filter=true
  28. if_ue_sort=true
  29. if_ue_sentdataout=true
  30. wf_replacedw()
  31. end event
  32. type cb_func from w_publ_easyq`cb_func within w_rp_sc_abnormity
  33. end type
  34. type cb_exit from w_publ_easyq`cb_exit within w_rp_sc_abnormity
  35. end type
  36. type cb_2 from w_publ_easyq`cb_2 within w_rp_sc_abnormity
  37. end type
  38. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_sc_abnormity
  39. end type
  40. type cb_1 from w_publ_easyq`cb_1 within w_rp_sc_abnormity
  41. end type
  42. event cb_1::clicked;call super::clicked;datetime firstdate ,enddate
  43. firstdate = datetime(date(em_1.text),time(0))
  44. enddate = datetime(date(em_2.text),time('23:59:59'))
  45. dw_1.retrieve(firstdate,enddate)
  46. end event
  47. type st_3 from w_publ_easyq`st_3 within w_rp_sc_abnormity
  48. end type
  49. type st_4 from w_publ_easyq`st_4 within w_rp_sc_abnormity
  50. end type
  51. type em_1 from w_publ_easyq`em_1 within w_rp_sc_abnormity
  52. end type
  53. type em_2 from w_publ_easyq`em_2 within w_rp_sc_abnormity
  54. end type
  55. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_sc_abnormity
  56. integer y = 52
  57. end type
  58. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_sc_abnormity
  59. integer y = 52
  60. end type
  61. type dw_1 from w_publ_easyq`dw_1 within w_rp_sc_abnormity
  62. integer y = 300
  63. string dataobject = "dw_rp_sc_abnormity"
  64. end type
  65. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_sc_abnormity
  66. end type
  67. type sle_cust from w_publ_easyq`sle_cust within w_rp_sc_abnormity
  68. end type
  69. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_sc_abnormity
  70. end type
  71. type st_cust from w_publ_easyq`st_cust within w_rp_sc_abnormity
  72. end type
  73. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_sc_abnormity
  74. end type
  75. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_sc_abnormity
  76. end type
  77. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_sc_abnormity
  78. end type
  79. type pb_2 from w_publ_easyq`pb_2 within w_rp_sc_abnormity
  80. end type
  81. type cb_help from w_publ_easyq`cb_help within w_rp_sc_abnormity
  82. end type
  83. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_sc_abnormity
  84. end type
  85. type gb_1 from w_publ_easyq`gb_1 within w_rp_sc_abnormity
  86. end type
  87. type ln_bar from w_publ_easyq`ln_bar within w_rp_sc_abnormity
  88. end type
  89. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_sc_abnormity
  90. end type
  91. type r_bar from w_publ_easyq`r_bar within w_rp_sc_abnormity
  92. end type
  93. type ln_1 from w_publ_easyq`ln_1 within w_rp_sc_abnormity
  94. end type
  95. type ln_2 from w_publ_easyq`ln_2 within w_rp_sc_abnormity
  96. end type
  97. type ln_3 from w_publ_easyq`ln_3 within w_rp_sc_abnormity
  98. end type
  99. type ln_4 from w_publ_easyq`ln_4 within w_rp_sc_abnormity
  100. end type
  101. type ddlb_1 from dropdownlistbox within w_rp_sc_abnormity
  102. integer x = 1829
  103. integer y = 52
  104. integer width = 919
  105. integer height = 452
  106. integer taborder = 130
  107. boolean bringtotop = true
  108. integer textsize = -9
  109. integer weight = 400
  110. fontcharset fontcharset = gb2312charset!
  111. fontpitch fontpitch = variable!
  112. string facename = "宋体"
  113. long textcolor = 33554432
  114. string text = "明细表"
  115. boolean sorted = false
  116. string item[] = {"明细表","汇总表","汇总表[相关号人员工序]","汇总表[相关号工序]","汇总表2[相关号工序]"}
  117. borderstyle borderstyle = stylelowered!
  118. end type
  119. event selectionchanged;dw_1.uf_save_profile_layout()
  120. IF This.Text = '明细表' THEN
  121. dw_1.DataObject = 'dw_rp_sc_abnormity'
  122. ELSEIF This.Text = '汇总表' THEN
  123. dw_1.DataObject = 'dw_rp_sc_abnormity_hz'
  124. ELSEIF This.Text = '汇总表[相关号人员工序]' THEN
  125. dw_1.DataObject = 'dw_rp_sc_abnormity_hz_2'
  126. ELSEIF This.Text = '汇总表[相关号工序]' THEN
  127. dw_1.DataObject = 'dw_rp_sc_abnormity_hz_3'
  128. ELSEIF This.Text = '汇总表2[相关号工序]' THEN
  129. dw_1.DataObject = 'dw_rp_sc_abnormity_hz_4'
  130. END IF
  131. wf_replacedw()
  132. cb_1.TriggerEvent(Clicked!)
  133. end event