w_report_open.srw 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. $PBExportHeader$w_report_open.srw
  2. $PBExportComments$报表入口窗口-多文本窗口
  3. forward
  4. global type w_report_open from w_rpt_base
  5. end type
  6. type mdi_1 from mdiclient within w_report_open
  7. end type
  8. end forward
  9. global type w_report_open from w_rpt_base
  10. int Y=4
  11. int Width=3685
  12. int Height=2428
  13. WindowType WindowType=mdihelp!
  14. boolean TitleBar=true
  15. string Title="致用《动态数据窗口设计器》V6.0"
  16. string MenuName="m_rpt_pop"
  17. long BackColor=8421376
  18. event move pbm_move
  19. mdi_1 mdi_1
  20. end type
  21. global w_report_open w_report_open
  22. type variables
  23. end variables
  24. event move;if isvalid(w_rpt_statbar) then w_rpt_statbar.event resize(0,0,0)
  25. end event
  26. on w_report_open.create
  27. int iCurrent
  28. call super::create
  29. if this.MenuName = "m_rpt_pop" then this.MenuID = create m_rpt_pop
  30. this.mdi_1=create mdi_1
  31. iCurrent=UpperBound(this.Control)
  32. this.Control[iCurrent+1]=this.mdi_1
  33. end on
  34. on w_report_open.destroy
  35. call super::destroy
  36. if IsValid(MenuID) then destroy(MenuID)
  37. destroy(this.mdi_1)
  38. end on
  39. event open;call super::open;if not isvalid(istr_rpt) then
  40. close(this)
  41. return
  42. end if
  43. istr_rpt.window_mdi=this
  44. postevent('ue_cond')//先让此MDI窗口完全打开,可以使用于响应式窗口直接调用情况
  45. end event
  46. event ue_cond;choose case istr_rpt.label
  47. case '字段中文名设置'
  48. opensheetwithparm(w_rpt_field,istr_rpt,this,0,Original!)
  49. case '表或视图名设置'
  50. opensheetwithparm(w_rpt_table,istr_rpt,this,0,Original!)
  51. case '直接打印'
  52. post openwithparm(w_rpt_manage,istr_rpt,this)
  53. case else//报表设计,报表预览
  54. opensheetwithparm(w_rpt_manage,istr_rpt,this,0,Original!)
  55. end choose
  56. end event
  57. event resize;if isvalid(w_rpt_statbar) then w_rpt_statbar.event resize(0,0,0)
  58. end event
  59. type mdi_1 from mdiclient within w_report_open
  60. long BackColor=276856960
  61. end type