w_user_copyright_ch.srw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. $PBExportHeader$w_user_copyright_ch.srw
  2. forward
  3. global type w_user_copyright_ch from window
  4. end type
  5. type cbx_xls_print from checkbox within w_user_copyright_ch
  6. end type
  7. type cbx_report from checkbox within w_user_copyright_ch
  8. end type
  9. type cbx_xls_send from checkbox within w_user_copyright_ch
  10. end type
  11. type cbx_account from checkbox within w_user_copyright_ch
  12. end type
  13. type cbx_outrep from checkbox within w_user_copyright_ch
  14. end type
  15. type cbx_classview from checkbox within w_user_copyright_ch
  16. end type
  17. type cbx_spttype from checkbox within w_user_copyright_ch
  18. end type
  19. type cbx_plugins from checkbox within w_user_copyright_ch
  20. end type
  21. type cbx_classedit from checkbox within w_user_copyright_ch
  22. end type
  23. type cbx_storage from checkbox within w_user_copyright_ch
  24. end type
  25. type cbx_sc from checkbox within w_user_copyright_ch
  26. end type
  27. type cbx_area from checkbox within w_user_copyright_ch
  28. end type
  29. type cbx_right from checkbox within w_user_copyright_ch
  30. end type
  31. type cb_2 from uo_imflatbutton within w_user_copyright_ch
  32. end type
  33. type cb_1 from uo_imflatbutton within w_user_copyright_ch
  34. end type
  35. end forward
  36. global type w_user_copyright_ch from window
  37. integer width = 1531
  38. integer height = 1044
  39. boolean titlebar = true
  40. string title = "用户权限复制"
  41. boolean controlmenu = true
  42. windowtype windowtype = response!
  43. long backcolor = 134217739
  44. string icon = "AppIcon!"
  45. boolean center = true
  46. cbx_xls_print cbx_xls_print
  47. cbx_report cbx_report
  48. cbx_xls_send cbx_xls_send
  49. cbx_account cbx_account
  50. cbx_outrep cbx_outrep
  51. cbx_classview cbx_classview
  52. cbx_spttype cbx_spttype
  53. cbx_plugins cbx_plugins
  54. cbx_classedit cbx_classedit
  55. cbx_storage cbx_storage
  56. cbx_sc cbx_sc
  57. cbx_area cbx_area
  58. cbx_right cbx_right
  59. cb_2 cb_2
  60. cb_1 cb_1
  61. end type
  62. global w_user_copyright_ch w_user_copyright_ch
  63. type variables
  64. s_sys_user s_user
  65. end variables
  66. on w_user_copyright_ch.create
  67. this.cbx_xls_print=create cbx_xls_print
  68. this.cbx_report=create cbx_report
  69. this.cbx_xls_send=create cbx_xls_send
  70. this.cbx_account=create cbx_account
  71. this.cbx_outrep=create cbx_outrep
  72. this.cbx_classview=create cbx_classview
  73. this.cbx_spttype=create cbx_spttype
  74. this.cbx_plugins=create cbx_plugins
  75. this.cbx_classedit=create cbx_classedit
  76. this.cbx_storage=create cbx_storage
  77. this.cbx_sc=create cbx_sc
  78. this.cbx_area=create cbx_area
  79. this.cbx_right=create cbx_right
  80. this.cb_2=create cb_2
  81. this.cb_1=create cb_1
  82. this.Control[]={this.cbx_xls_print,&
  83. this.cbx_report,&
  84. this.cbx_xls_send,&
  85. this.cbx_account,&
  86. this.cbx_outrep,&
  87. this.cbx_classview,&
  88. this.cbx_spttype,&
  89. this.cbx_plugins,&
  90. this.cbx_classedit,&
  91. this.cbx_storage,&
  92. this.cbx_sc,&
  93. this.cbx_area,&
  94. this.cbx_right,&
  95. this.cb_2,&
  96. this.cb_1}
  97. end on
  98. on w_user_copyright_ch.destroy
  99. destroy(this.cbx_xls_print)
  100. destroy(this.cbx_report)
  101. destroy(this.cbx_xls_send)
  102. destroy(this.cbx_account)
  103. destroy(this.cbx_outrep)
  104. destroy(this.cbx_classview)
  105. destroy(this.cbx_spttype)
  106. destroy(this.cbx_plugins)
  107. destroy(this.cbx_classedit)
  108. destroy(this.cbx_storage)
  109. destroy(this.cbx_sc)
  110. destroy(this.cbx_area)
  111. destroy(this.cbx_right)
  112. destroy(this.cb_2)
  113. destroy(this.cb_1)
  114. end on
  115. event close;//f_SetProfileString (-1, THIS.ClassName(), "status", "1")
  116. Long i
  117. String ls_name
  118. Int li_value
  119. dragobject tmp
  120. checkbox cbx
  121. FOR i = 1 TO UpperBound(THIS.Control)
  122. tmp = THIS.Control[i]
  123. IF TypeOf(tmp) = checkbox! THEN
  124. cbx = tmp
  125. ls_name = cbx.ClassName()
  126. IF cbx.Checked THEN
  127. li_value = 1
  128. ELSE
  129. li_value = 0
  130. END IF
  131. f_SetProfileString (-1, THIS.ClassName(), ls_name, string(li_value))
  132. END IF
  133. NEXT
  134. CloseWithReturn(THIS,s_user)
  135. end event
  136. event open;Long i
  137. String ls_name
  138. Int li_value
  139. dragobject tmp
  140. checkbox cbx
  141. FOR i = 1 TO UpperBound(THIS.Control)
  142. tmp = THIS.Control[i]
  143. IF TypeOf(tmp) = checkbox! THEN
  144. cbx = tmp
  145. ls_name = cbx.ClassName()
  146. li_value = Integer(f_profilestring (-1, THIS.ClassName(), ls_name, "1"))
  147. cbx.Checked = li_value = 1
  148. END IF
  149. NEXT
  150. IF sys_option_cusarea = 0 THEN
  151. cbx_area.Checked = FALSE
  152. cbx_area.Enabled = FALSE
  153. END IF
  154. IF sys_option_outrep = 0 THEN
  155. cbx_outrep.Checked = FALSE
  156. cbx_outrep.Enabled = FALSE
  157. END IF
  158. end event
  159. type cbx_xls_print from checkbox within w_user_copyright_ch
  160. integer x = 809
  161. integer y = 308
  162. integer width = 576
  163. integer height = 60
  164. integer textsize = -9
  165. integer weight = 400
  166. fontcharset fontcharset = gb2312charset!
  167. fontpitch fontpitch = variable!
  168. string facename = "宋体"
  169. long textcolor = 33554432
  170. long backcolor = 134217739
  171. string text = "EXCEL打印权限"
  172. boolean checked = true
  173. end type
  174. type cbx_report from checkbox within w_user_copyright_ch
  175. integer x = 809
  176. integer y = 476
  177. integer width = 576
  178. integer height = 60
  179. boolean bringtotop = true
  180. integer textsize = -9
  181. integer weight = 400
  182. fontcharset fontcharset = gb2312charset!
  183. fontpitch fontpitch = variable!
  184. string facename = "宋体"
  185. long textcolor = 33554432
  186. long backcolor = 134217739
  187. string text = "自定义报表权限"
  188. boolean checked = true
  189. end type
  190. type cbx_xls_send from checkbox within w_user_copyright_ch
  191. integer x = 809
  192. integer y = 392
  193. integer width = 576
  194. integer height = 60
  195. boolean bringtotop = true
  196. integer textsize = -9
  197. integer weight = 400
  198. fontcharset fontcharset = gb2312charset!
  199. fontpitch fontpitch = variable!
  200. string facename = "宋体"
  201. long textcolor = 33554432
  202. long backcolor = 134217739
  203. string text = "EXCEL发送权限"
  204. boolean checked = true
  205. end type
  206. type cbx_account from checkbox within w_user_copyright_ch
  207. integer x = 114
  208. integer y = 476
  209. integer width = 576
  210. integer height = 60
  211. integer textsize = -9
  212. integer weight = 400
  213. fontcharset fontcharset = gb2312charset!
  214. fontpitch fontpitch = variable!
  215. string facename = "宋体"
  216. long textcolor = 33554432
  217. long backcolor = 134217739
  218. string text = "出纳账号权限"
  219. boolean checked = true
  220. end type
  221. type cbx_outrep from checkbox within w_user_copyright_ch
  222. integer x = 114
  223. integer y = 560
  224. integer width = 576
  225. integer height = 60
  226. boolean bringtotop = true
  227. integer textsize = -9
  228. integer weight = 400
  229. fontcharset fontcharset = gb2312charset!
  230. fontpitch fontpitch = variable!
  231. string facename = "宋体"
  232. long textcolor = 33554432
  233. long backcolor = 134217739
  234. string text = "业务员权限"
  235. boolean checked = true
  236. end type
  237. type cbx_classview from checkbox within w_user_copyright_ch
  238. integer x = 809
  239. integer y = 140
  240. integer width = 576
  241. integer height = 60
  242. integer textsize = -9
  243. integer weight = 400
  244. fontcharset fontcharset = gb2312charset!
  245. fontpitch fontpitch = variable!
  246. string facename = "宋体"
  247. long textcolor = 33554432
  248. long backcolor = 134217739
  249. string text = "附件查看权限"
  250. boolean checked = true
  251. end type
  252. type cbx_spttype from checkbox within w_user_copyright_ch
  253. integer x = 114
  254. integer y = 392
  255. integer width = 576
  256. integer height = 60
  257. boolean bringtotop = true
  258. integer textsize = -9
  259. integer weight = 400
  260. fontcharset fontcharset = gb2312charset!
  261. fontpitch fontpitch = variable!
  262. string facename = "宋体"
  263. long textcolor = 33554432
  264. long backcolor = 134217739
  265. string text = "供应商类别权限"
  266. boolean checked = true
  267. end type
  268. type cbx_plugins from checkbox within w_user_copyright_ch
  269. integer x = 809
  270. integer y = 224
  271. integer width = 576
  272. integer height = 60
  273. boolean bringtotop = true
  274. integer textsize = -9
  275. integer weight = 400
  276. fontcharset fontcharset = gb2312charset!
  277. fontpitch fontpitch = variable!
  278. string facename = "宋体"
  279. long textcolor = 33554432
  280. long backcolor = 134217739
  281. string text = "外挂执行权限"
  282. boolean checked = true
  283. end type
  284. type cbx_classedit from checkbox within w_user_copyright_ch
  285. integer x = 809
  286. integer y = 56
  287. integer width = 576
  288. integer height = 60
  289. integer textsize = -9
  290. integer weight = 400
  291. fontcharset fontcharset = gb2312charset!
  292. fontpitch fontpitch = variable!
  293. string facename = "宋体"
  294. long textcolor = 33554432
  295. long backcolor = 134217739
  296. string text = "附件修改权限"
  297. boolean checked = true
  298. end type
  299. type cbx_storage from checkbox within w_user_copyright_ch
  300. integer x = 114
  301. integer y = 308
  302. integer width = 576
  303. integer height = 60
  304. integer textsize = -9
  305. integer weight = 400
  306. fontcharset fontcharset = gb2312charset!
  307. fontpitch fontpitch = variable!
  308. string facename = "宋体"
  309. long textcolor = 33554432
  310. long backcolor = 134217739
  311. string text = "仓库权限"
  312. boolean checked = true
  313. end type
  314. type cbx_sc from checkbox within w_user_copyright_ch
  315. integer x = 114
  316. integer y = 224
  317. integer width = 576
  318. integer height = 60
  319. boolean bringtotop = true
  320. integer textsize = -9
  321. integer weight = 400
  322. fontcharset fontcharset = gb2312charset!
  323. fontpitch fontpitch = variable!
  324. string facename = "宋体"
  325. long textcolor = 33554432
  326. long backcolor = 134217739
  327. string text = "分部权限"
  328. boolean checked = true
  329. end type
  330. type cbx_area from checkbox within w_user_copyright_ch
  331. integer x = 114
  332. integer y = 140
  333. integer width = 576
  334. integer height = 60
  335. boolean bringtotop = true
  336. integer textsize = -9
  337. integer weight = 400
  338. fontcharset fontcharset = gb2312charset!
  339. fontpitch fontpitch = variable!
  340. string facename = "宋体"
  341. long textcolor = 33554432
  342. long backcolor = 134217739
  343. string text = "区域权限"
  344. boolean checked = true
  345. end type
  346. type cbx_right from checkbox within w_user_copyright_ch
  347. integer x = 114
  348. integer y = 56
  349. integer width = 576
  350. integer height = 60
  351. integer textsize = -9
  352. integer weight = 400
  353. fontcharset fontcharset = gb2312charset!
  354. fontpitch fontpitch = variable!
  355. string facename = "宋体"
  356. long textcolor = 33554432
  357. long backcolor = 134217739
  358. string text = "操作权限"
  359. boolean checked = true
  360. end type
  361. type cb_2 from uo_imflatbutton within w_user_copyright_ch
  362. integer x = 859
  363. integer y = 776
  364. integer width = 311
  365. integer taborder = 20
  366. string text = "取消"
  367. string normalpicname = "exit.bmp"
  368. end type
  369. event clicked;call super::clicked;s_user.copyflag = 0
  370. Close(PARENT)
  371. end event
  372. type cb_1 from uo_imflatbutton within w_user_copyright_ch
  373. integer x = 389
  374. integer y = 776
  375. integer width = 311
  376. integer taborder = 10
  377. string normalpicname = "ok.bmp"
  378. end type
  379. event clicked;call super::clicked;s_user.copyflag = 1
  380. IF cbx_right.Checked THEN
  381. s_user.right_flag = 1
  382. ELSE
  383. s_user.right_flag = 0
  384. END IF
  385. IF cbx_area.Checked THEN
  386. s_user.area_flag = 1
  387. ELSE
  388. s_user.area_flag = 0
  389. END IF
  390. IF cbx_sc.Checked THEN
  391. s_user.sc_flag = 1
  392. ELSE
  393. s_user.sc_flag = 0
  394. END IF
  395. IF cbx_storage.Checked THEN
  396. s_user.storage_flag = 1
  397. ELSE
  398. s_user.storage_flag = 0
  399. END IF
  400. IF cbx_spttype.Checked THEN
  401. s_user.spttype_flag = 1
  402. ELSE
  403. s_user.spttype_flag = 0
  404. END IF
  405. IF cbx_classedit.Checked THEN
  406. s_user.classedit_flag = 1
  407. ELSE
  408. s_user.classedit_flag = 0
  409. END IF
  410. IF cbx_classview.Checked THEN
  411. s_user.classview_flag = 1
  412. ELSE
  413. s_user.classview_flag = 0
  414. END IF
  415. IF cbx_plugins.Checked THEN
  416. s_user.plugins_flag = 1
  417. ELSE
  418. s_user.plugins_flag = 0
  419. END IF
  420. IF cbx_xls_print.Checked THEN
  421. s_user.xls_print_flag = 1
  422. ELSE
  423. s_user.xls_print_flag = 0
  424. END IF
  425. IF cbx_xls_send.Checked THEN
  426. s_user.xls_send_flag = 1
  427. ELSE
  428. s_user.xls_send_flag = 0
  429. END IF
  430. IF cbx_report.Checked THEN
  431. s_user.report_flag = 1
  432. ELSE
  433. s_user.report_flag = 0
  434. END IF
  435. IF cbx_account.Checked THEN
  436. s_user.account_flag = 1
  437. ELSE
  438. s_user.account_flag = 0
  439. END IF
  440. IF cbx_outrep.Checked THEN
  441. s_user.outrep_flag = 1
  442. ELSE
  443. s_user.outrep_flag = 0
  444. END IF
  445. Close(PARENT)
  446. end event