w_rpt_colp.srw 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. $PBExportHeader$w_rpt_colp.srw
  2. $PBExportComments$列特性-- 窗口
  3. forward
  4. global type w_rpt_colp from Window
  5. end type
  6. type cb_2 from commandbutton within w_rpt_colp
  7. end type
  8. type cb_1 from commandbutton within w_rpt_colp
  9. end type
  10. type dw1 from datawindow within w_rpt_colp
  11. end type
  12. end forward
  13. global type w_rpt_colp from Window
  14. int X=5
  15. int Y=320
  16. int Width=3406
  17. int Height=1648
  18. boolean TitleBar=true
  19. string Title="列特性"
  20. long BackColor=80269524
  21. boolean ControlMenu=true
  22. WindowType WindowType=response!
  23. cb_2 cb_2
  24. cb_1 cb_1
  25. dw1 dw1
  26. end type
  27. global w_rpt_colp w_rpt_colp
  28. type variables
  29. int i,ii_rows
  30. datawindow idw
  31. end variables
  32. on w_rpt_colp.create
  33. this.cb_2=create cb_2
  34. this.cb_1=create cb_1
  35. this.dw1=create dw1
  36. this.Control[]={this.cb_2,&
  37. this.cb_1,&
  38. this.dw1}
  39. end on
  40. on w_rpt_colp.destroy
  41. destroy(this.cb_2)
  42. destroy(this.cb_1)
  43. destroy(this.dw1)
  44. end on
  45. event open;f_wcenter(this)
  46. idw=w_rpt_main.dw3
  47. idw.rowscopy(1,idw.rowcount(),Primary!,dw1,1,Primary!)
  48. end event
  49. type cb_2 from commandbutton within w_rpt_colp
  50. int X=1847
  51. int Y=1440
  52. int Width=247
  53. int Height=108
  54. int TabOrder=20
  55. string Text="取消"
  56. int TextSize=-9
  57. int Weight=400
  58. string FaceName="宋体"
  59. FontPitch FontPitch=Variable!
  60. end type
  61. event clicked;close(parent)
  62. end event
  63. type cb_1 from commandbutton within w_rpt_colp
  64. int X=1221
  65. int Y=1440
  66. int Width=247
  67. int Height=108
  68. int TabOrder=10
  69. string Text="确认"
  70. int TextSize=-9
  71. int Weight=400
  72. string FaceName="宋体"
  73. FontPitch FontPitch=Variable!
  74. end type
  75. event clicked;dw1.accepttext()
  76. idw.reset()
  77. dw1.rowscopy(1,dw1.rowcount(),Primary!,idw,1,Primary!)
  78. w_rpt_main.ii_save=1
  79. close(parent)
  80. end event
  81. type dw1 from datawindow within w_rpt_colp
  82. int Width=3387
  83. int Height=1424
  84. int TabOrder=30
  85. string DataObject="dw_rpt_colp"
  86. BorderStyle BorderStyle=StyleLowered!
  87. boolean HScrollBar=true
  88. boolean VScrollBar=true
  89. boolean HSplitScroll=true
  90. boolean LiveScroll=true
  91. end type