m_publ_preview_dnset.srm 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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_编辑格式 from menu within m_main
  8. end type
  9. type m_mxd from menu within m_main
  10. end type
  11. type m_- from menu within m_main
  12. end type
  13. type m_3 from menu within m_main
  14. end type
  15. type m_ from menu within m_main
  16. end type
  17. type m_-0 from menu within m_main
  18. end type
  19. type m_导入单据样式 from menu within m_main
  20. end type
  21. type m_导出单据样式 from menu within m_main
  22. end type
  23. type m_main from menu within m_publ_preview_dnset
  24. m_编辑格式 m_编辑格式
  25. m_mxd m_mxd
  26. m_- m_-
  27. m_3 m_3
  28. m_ m_
  29. m_-0 m_-0
  30. m_导入单据样式 m_导入单据样式
  31. m_导出单据样式 m_导出单据样式
  32. end type
  33. global type m_publ_preview_dnset from menu
  34. m_main m_main
  35. end type
  36. end forward
  37. global type m_publ_preview_dnset from menu
  38. m_main m_main
  39. end type
  40. global m_publ_preview_dnset m_publ_preview_dnset
  41. on m_publ_preview_dnset.create
  42. m_publ_preview_dnset=this
  43. call super::create
  44. this.menutextcolor = 134217735
  45. this.menubackcolor = 134217732
  46. this.menuhighlightcolor = 134217741
  47. this.textsize = 8
  48. this.weight = 400
  49. this.facename = "Tahoma"
  50. this.titlebackcolor = 134217730
  51. this.bitmapbackcolor = 12632256
  52. this.menubitmaps = true
  53. this.titlegradient = true
  54. this.toolbartextcolor = 134217746
  55. this.toolbarbackcolor = 67108864
  56. this.toolbarhighlightcolor = 134217741
  57. this.toolbargradient = true
  58. this.bitmapgradient = true
  59. this.m_main=create m_main
  60. this.Item[UpperBound(this.Item)+1]=this.m_main
  61. end on
  62. on m_publ_preview_dnset.destroy
  63. call super::destroy
  64. destroy(this.m_main)
  65. end on
  66. type m_main from menu within m_publ_preview_dnset
  67. m_编辑格式 m_编辑格式
  68. m_mxd m_mxd
  69. m_- m_-
  70. m_3 m_3
  71. m_ m_
  72. m_-0 m_-0
  73. m_导入单据样式 m_导入单据样式
  74. m_导出单据样式 m_导出单据样式
  75. end type
  76. on m_main.create
  77. call super::create
  78. this.text = " "
  79. this.menutextcolor = 134217735
  80. this.menubackcolor = 134217732
  81. this.menuhighlightcolor = 134217741
  82. this.textsize = 8
  83. this.weight = 400
  84. this.facename = "Tahoma"
  85. this.titlebackcolor = 134217730
  86. this.bitmapbackcolor = 12632256
  87. this.menubitmaps = true
  88. this.titlegradient = true
  89. this.toolbartextcolor = 134217746
  90. this.toolbarbackcolor = 67108864
  91. this.toolbarhighlightcolor = 134217741
  92. this.toolbargradient = true
  93. this.bitmapgradient = true
  94. this.m_编辑格式=create m_编辑格式
  95. this.m_mxd=create m_mxd
  96. this.m_-=create m_-
  97. this.m_3=create m_3
  98. this.m_=create m_
  99. this.m_-0=create m_-0
  100. this.m_导入单据样式=create m_导入单据样式
  101. this.m_导出单据样式=create m_导出单据样式
  102. this.Item[UpperBound(this.Item)+1]=this.m_编辑格式
  103. this.Item[UpperBound(this.Item)+1]=this.m_mxd
  104. this.Item[UpperBound(this.Item)+1]=this.m_-
  105. this.Item[UpperBound(this.Item)+1]=this.m_3
  106. this.Item[UpperBound(this.Item)+1]=this.m_
  107. this.Item[UpperBound(this.Item)+1]=this.m_-0
  108. this.Item[UpperBound(this.Item)+1]=this.m_导入单据样式
  109. this.Item[UpperBound(this.Item)+1]=this.m_导出单据样式
  110. end on
  111. on m_main.destroy
  112. call super::destroy
  113. destroy(this.m_编辑格式)
  114. destroy(this.m_mxd)
  115. destroy(this.m_-)
  116. destroy(this.m_3)
  117. destroy(this.m_)
  118. destroy(this.m_-0)
  119. destroy(this.m_导入单据样式)
  120. destroy(this.m_导出单据样式)
  121. end on
  122. event selected;//if not w_publ_preview.dw_1.describe('mxreport.type')='report' or retrieveid=0 then m_mxd.enabled=false //检查是否存在名为mxreport的report没有则此功能不可以用
  123. end event
  124. type m_编辑格式 from menu within m_main
  125. end type
  126. event clicked;if isvalid(w_publ_preview) then w_publ_preview.triggerevent("ue_mod_printbill")
  127. end event
  128. on m_编辑格式.create
  129. call super::create
  130. this.text = "编辑格式"
  131. this.menutextcolor = 134217735
  132. this.menubackcolor = 134217732
  133. this.menuhighlightcolor = 134217741
  134. this.textsize = 8
  135. this.weight = 400
  136. this.facename = "Tahoma"
  137. this.titlebackcolor = 134217730
  138. this.bitmapbackcolor = 12632256
  139. this.menubitmaps = true
  140. this.titlegradient = true
  141. this.toolbartextcolor = 134217746
  142. this.toolbarbackcolor = 67108864
  143. this.toolbarhighlightcolor = 134217741
  144. this.toolbargradient = true
  145. this.bitmapgradient = true
  146. end on
  147. on m_编辑格式.destroy
  148. call super::destroy
  149. end on
  150. type m_mxd from menu within m_main
  151. end type
  152. on m_mxd.create
  153. call super::create
  154. this.text = "明细网格调整"
  155. this.menutextcolor = 134217735
  156. this.menubackcolor = 134217732
  157. this.menuhighlightcolor = 134217741
  158. this.textsize = 8
  159. this.weight = 400
  160. this.facename = "Tahoma"
  161. this.titlebackcolor = 134217730
  162. this.bitmapbackcolor = 12632256
  163. this.menubitmaps = true
  164. this.titlegradient = true
  165. this.toolbartextcolor = 134217746
  166. this.toolbarbackcolor = 67108864
  167. this.toolbarhighlightcolor = 134217741
  168. this.toolbargradient = true
  169. this.bitmapgradient = true
  170. end on
  171. event clicked;if isvalid(w_publ_preview) then w_publ_preview.wf_dowithm(1)
  172. end event
  173. on m_mxd.destroy
  174. call super::destroy
  175. end on
  176. type m_- from menu within m_main
  177. end type
  178. on m_-.create
  179. call super::create
  180. this.text = "-"
  181. this.menutextcolor = 134217735
  182. this.menubackcolor = 134217732
  183. this.menuhighlightcolor = 134217741
  184. this.textsize = 8
  185. this.weight = 400
  186. this.facename = "Tahoma"
  187. this.titlebackcolor = 134217730
  188. this.bitmapbackcolor = 12632256
  189. this.menubitmaps = true
  190. this.titlegradient = true
  191. this.toolbartextcolor = 134217746
  192. this.toolbarbackcolor = 67108864
  193. this.toolbarhighlightcolor = 134217741
  194. this.toolbargradient = true
  195. this.bitmapgradient = true
  196. end on
  197. on m_-.destroy
  198. call super::destroy
  199. end on
  200. type m_3 from menu within m_main
  201. end type
  202. on m_3.create
  203. call super::create
  204. this.text = "单据样式"
  205. this.menutextcolor = 134217735
  206. this.menubackcolor = 134217732
  207. this.menuhighlightcolor = 134217741
  208. this.textsize = 8
  209. this.weight = 400
  210. this.facename = "Tahoma"
  211. this.titlebackcolor = 134217730
  212. this.bitmapbackcolor = 12632256
  213. this.menubitmaps = true
  214. this.titlegradient = true
  215. this.toolbartextcolor = 134217746
  216. this.toolbarbackcolor = 67108864
  217. this.toolbarhighlightcolor = 134217741
  218. this.toolbargradient = true
  219. this.bitmapgradient = true
  220. end on
  221. event clicked;if isvalid(w_publ_preview) then w_publ_preview.wf_dowithm(21)
  222. end event
  223. on m_3.destroy
  224. call super::destroy
  225. end on
  226. type m_ from menu within m_main
  227. end type
  228. on m_.create
  229. call super::create
  230. this.text = "恢复默认格式"
  231. this.menutextcolor = 134217735
  232. this.menubackcolor = 134217732
  233. this.menuhighlightcolor = 134217741
  234. this.textsize = 8
  235. this.weight = 400
  236. this.facename = "Tahoma"
  237. this.titlebackcolor = 134217730
  238. this.bitmapbackcolor = 12632256
  239. this.menubitmaps = true
  240. this.titlegradient = true
  241. this.toolbartextcolor = 134217746
  242. this.toolbarbackcolor = 67108864
  243. this.toolbarhighlightcolor = 134217741
  244. this.toolbargradient = true
  245. this.bitmapgradient = true
  246. end on
  247. event clicked;if isvalid(w_publ_preview) then w_publ_preview.wf_dowithm(22)
  248. end event
  249. on m_.destroy
  250. call super::destroy
  251. end on
  252. type m_-0 from menu within m_main
  253. end type
  254. on m_-0.create
  255. call super::create
  256. this.text = "-"
  257. this.menutextcolor = 134217735
  258. this.menubackcolor = 134217732
  259. this.menuhighlightcolor = 134217741
  260. this.textsize = 8
  261. this.weight = 400
  262. this.facename = "Tahoma"
  263. this.titlebackcolor = 134217730
  264. this.bitmapbackcolor = 12632256
  265. this.menubitmaps = true
  266. this.titlegradient = true
  267. this.toolbartextcolor = 134217746
  268. this.toolbarbackcolor = 67108864
  269. this.toolbarhighlightcolor = 134217741
  270. this.toolbargradient = true
  271. this.bitmapgradient = true
  272. end on
  273. on m_-0.destroy
  274. call super::destroy
  275. end on
  276. type m_导入单据样式 from menu within m_main
  277. end type
  278. on m_导入单据样式.create
  279. call super::create
  280. this.text = "导入单据样式"
  281. this.menutextcolor = 134217735
  282. this.menubackcolor = 134217732
  283. this.menuhighlightcolor = 134217741
  284. this.textsize = 8
  285. this.weight = 400
  286. this.facename = "Tahoma"
  287. this.titlebackcolor = 134217730
  288. this.bitmapbackcolor = 12632256
  289. this.menubitmaps = true
  290. this.titlegradient = true
  291. this.toolbartextcolor = 134217746
  292. this.toolbarbackcolor = 67108864
  293. this.toolbarhighlightcolor = 134217741
  294. this.toolbargradient = true
  295. this.bitmapgradient = true
  296. end on
  297. on m_导入单据样式.destroy
  298. call super::destroy
  299. end on
  300. event clicked;if isvalid(w_publ_preview) then w_publ_preview.f_inport()
  301. end event
  302. type m_导出单据样式 from menu within m_main
  303. end type
  304. on m_导出单据样式.create
  305. call super::create
  306. this.text = "导出单据样式"
  307. this.menutextcolor = 134217735
  308. this.menubackcolor = 134217732
  309. this.menuhighlightcolor = 134217741
  310. this.textsize = 8
  311. this.weight = 400
  312. this.facename = "Tahoma"
  313. this.titlebackcolor = 134217730
  314. this.bitmapbackcolor = 12632256
  315. this.menubitmaps = true
  316. this.titlegradient = true
  317. this.toolbartextcolor = 134217746
  318. this.toolbarbackcolor = 67108864
  319. this.toolbarhighlightcolor = 134217741
  320. this.toolbargradient = true
  321. this.bitmapgradient = true
  322. end on
  323. on m_导出单据样式.destroy
  324. call super::destroy
  325. end on
  326. event clicked;if isvalid(w_publ_preview) then w_publ_preview.f_export()
  327. end event