m_publ_preview_dnset.srm 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. $PBExportHeader$m_publ_preview_dnset.srm
  2. forward
  3. global type m_publ_preview_dnset from menu
  4. end type
  5. type m_main from menu within m_publ_preview_dnset
  6. end type
  7. type m_mxd from menu within m_main
  8. end type
  9. type m_- from menu within m_main
  10. end type
  11. type m_3 from menu within m_main
  12. end type
  13. type m_ from menu within m_main
  14. end type
  15. type m_main from menu within m_publ_preview_dnset
  16. m_mxd m_mxd
  17. m_- m_-
  18. m_3 m_3
  19. m_ m_
  20. end type
  21. global type m_publ_preview_dnset from menu
  22. m_main m_main
  23. end type
  24. end forward
  25. global type m_publ_preview_dnset from menu
  26. m_main m_main
  27. end type
  28. global m_publ_preview_dnset m_publ_preview_dnset
  29. on m_publ_preview_dnset.create
  30. m_publ_preview_dnset=this
  31. call super::create
  32. this.menutextcolor = 134217735
  33. this.menubackcolor = 134217732
  34. this.menuhighlightcolor = 134217741
  35. this.textsize = 8
  36. this.weight = 400
  37. this.facename = "Tahoma"
  38. this.titlebackcolor = 134217730
  39. this.bitmapbackcolor = 12632256
  40. this.menubitmaps = true
  41. this.titlegradient = true
  42. this.toolbartextcolor = 134217746
  43. this.toolbarbackcolor = 67108864
  44. this.toolbarhighlightcolor = 134217741
  45. this.toolbargradient = true
  46. this.bitmapgradient = true
  47. this.m_main=create m_main
  48. this.Item[UpperBound(this.Item)+1]=this.m_main
  49. end on
  50. on m_publ_preview_dnset.destroy
  51. call super::destroy
  52. destroy(this.m_main)
  53. end on
  54. type m_main from menu within m_publ_preview_dnset
  55. m_mxd m_mxd
  56. m_- m_-
  57. m_3 m_3
  58. m_ m_
  59. end type
  60. on m_main.create
  61. call super::create
  62. this.text = " "
  63. this.menutextcolor = 134217735
  64. this.menubackcolor = 134217732
  65. this.menuhighlightcolor = 134217741
  66. this.textsize = 8
  67. this.weight = 400
  68. this.facename = "Tahoma"
  69. this.titlebackcolor = 134217730
  70. this.bitmapbackcolor = 12632256
  71. this.menubitmaps = true
  72. this.titlegradient = true
  73. this.toolbartextcolor = 134217746
  74. this.toolbarbackcolor = 67108864
  75. this.toolbarhighlightcolor = 134217741
  76. this.toolbargradient = true
  77. this.bitmapgradient = true
  78. this.m_mxd=create m_mxd
  79. this.m_-=create m_-
  80. this.m_3=create m_3
  81. this.m_=create m_
  82. this.Item[UpperBound(this.Item)+1]=this.m_mxd
  83. this.Item[UpperBound(this.Item)+1]=this.m_-
  84. this.Item[UpperBound(this.Item)+1]=this.m_3
  85. this.Item[UpperBound(this.Item)+1]=this.m_
  86. end on
  87. on m_main.destroy
  88. call super::destroy
  89. destroy(this.m_mxd)
  90. destroy(this.m_-)
  91. destroy(this.m_3)
  92. destroy(this.m_)
  93. end on
  94. event selected;//if not w_publ_preview.dw_1.describe('mxreport.type')='report' or retrieveid=0 then m_mxd.enabled=false //检查是否存在名为mxreport的report没有则此功能不可以用
  95. end event
  96. type m_mxd from menu within m_main
  97. end type
  98. on m_mxd.create
  99. call super::create
  100. this.text = "明细网格调整"
  101. this.menutextcolor = 134217735
  102. this.menubackcolor = 134217732
  103. this.menuhighlightcolor = 134217741
  104. this.textsize = 8
  105. this.weight = 400
  106. this.facename = "Tahoma"
  107. this.titlebackcolor = 134217730
  108. this.bitmapbackcolor = 12632256
  109. this.menubitmaps = true
  110. this.titlegradient = true
  111. this.toolbartextcolor = 134217746
  112. this.toolbarbackcolor = 67108864
  113. this.toolbarhighlightcolor = 134217741
  114. this.toolbargradient = true
  115. this.bitmapgradient = true
  116. end on
  117. event clicked;if isvalid(w_publ_preview) then w_publ_preview.wf_dowithm(1)
  118. end event
  119. on m_mxd.destroy
  120. call super::destroy
  121. end on
  122. type m_- from menu within m_main
  123. end type
  124. on m_-.create
  125. call super::create
  126. this.text = "-"
  127. this.menutextcolor = 134217735
  128. this.menubackcolor = 134217732
  129. this.menuhighlightcolor = 134217741
  130. this.textsize = 8
  131. this.weight = 400
  132. this.facename = "Tahoma"
  133. this.titlebackcolor = 134217730
  134. this.bitmapbackcolor = 12632256
  135. this.menubitmaps = true
  136. this.titlegradient = true
  137. this.toolbartextcolor = 134217746
  138. this.toolbarbackcolor = 67108864
  139. this.toolbarhighlightcolor = 134217741
  140. this.toolbargradient = true
  141. this.bitmapgradient = true
  142. end on
  143. on m_-.destroy
  144. call super::destroy
  145. end on
  146. type m_3 from menu within m_main
  147. end type
  148. on m_3.create
  149. call super::create
  150. this.text = "单据样式"
  151. this.menutextcolor = 134217735
  152. this.menubackcolor = 134217732
  153. this.menuhighlightcolor = 134217741
  154. this.textsize = 8
  155. this.weight = 400
  156. this.facename = "Tahoma"
  157. this.titlebackcolor = 134217730
  158. this.bitmapbackcolor = 12632256
  159. this.menubitmaps = true
  160. this.titlegradient = true
  161. this.toolbartextcolor = 134217746
  162. this.toolbarbackcolor = 67108864
  163. this.toolbarhighlightcolor = 134217741
  164. this.toolbargradient = true
  165. this.bitmapgradient = true
  166. end on
  167. event clicked;if isvalid(w_publ_preview) then w_publ_preview.wf_dowithm(21)
  168. end event
  169. on m_3.destroy
  170. call super::destroy
  171. end on
  172. type m_ from menu within m_main
  173. end type
  174. on m_.create
  175. call super::create
  176. this.text = "恢复默认格式"
  177. this.menutextcolor = 134217735
  178. this.menubackcolor = 134217732
  179. this.menuhighlightcolor = 134217741
  180. this.textsize = 8
  181. this.weight = 400
  182. this.facename = "Tahoma"
  183. this.titlebackcolor = 134217730
  184. this.bitmapbackcolor = 12632256
  185. this.menubitmaps = true
  186. this.titlegradient = true
  187. this.toolbartextcolor = 134217746
  188. this.toolbarbackcolor = 67108864
  189. this.toolbarhighlightcolor = 134217741
  190. this.toolbargradient = true
  191. this.bitmapgradient = true
  192. end on
  193. event clicked;if isvalid(w_publ_preview) then w_publ_preview.wf_dowithm(22)
  194. end event
  195. on m_.destroy
  196. call super::destroy
  197. end on