w_rp_add.srw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945
  1. $PBExportHeader$w_rp_add.srw
  2. forward
  3. global type w_rp_add from w_publ_base
  4. end type
  5. type cb_save_add from uo_imflatbutton within w_rp_add
  6. end type
  7. type cb_save_exit from uo_imflatbutton within w_rp_add
  8. end type
  9. type cb_save_delet from uo_imflatbutton within w_rp_add
  10. end type
  11. type st_1 from statictext within w_rp_add
  12. end type
  13. type st_2 from statictext within w_rp_add
  14. end type
  15. type st_3 from statictext within w_rp_add
  16. end type
  17. type st_4 from statictext within w_rp_add
  18. end type
  19. type st_5 from statictext within w_rp_add
  20. end type
  21. type st_6 from statictext within w_rp_add
  22. end type
  23. type st_7 from statictext within w_rp_add
  24. end type
  25. type st_8 from statictext within w_rp_add
  26. end type
  27. type sle_1 from singlelineedit within w_rp_add
  28. end type
  29. type sle_2 from singlelineedit within w_rp_add
  30. end type
  31. type sle_4 from singlelineedit within w_rp_add
  32. end type
  33. type sle_5 from singlelineedit within w_rp_add
  34. end type
  35. type sle_6 from singlelineedit within w_rp_add
  36. end type
  37. type sle_7 from singlelineedit within w_rp_add
  38. end type
  39. type sle_8 from singlelineedit within w_rp_add
  40. end type
  41. type ddlb_1 from dropdownlistbox within w_rp_add
  42. end type
  43. type sle_3 from singlelineedit within w_rp_add
  44. end type
  45. type st_9 from statictext within w_rp_add
  46. end type
  47. type sle_9 from singlelineedit within w_rp_add
  48. end type
  49. type st_10 from statictext within w_rp_add
  50. end type
  51. type r_bar from rectangle within w_rp_add
  52. end type
  53. type s_u_rp from structure within w_rp_add
  54. end type
  55. end forward
  56. type s_u_rp from structure
  57. string rpcode
  58. string rpname
  59. integer rptype
  60. string col1name0
  61. string col1name1
  62. string col1name2
  63. string col2name0
  64. string col2name1
  65. string col2name2
  66. end type
  67. global type w_rp_add from w_publ_base
  68. integer width = 1847
  69. integer height = 1080
  70. string title = "报表增加"
  71. boolean minbox = false
  72. windowtype windowtype = response!
  73. long backcolor = 134217742
  74. cb_save_add cb_save_add
  75. cb_save_exit cb_save_exit
  76. cb_save_delet cb_save_delet
  77. st_1 st_1
  78. st_2 st_2
  79. st_3 st_3
  80. st_4 st_4
  81. st_5 st_5
  82. st_6 st_6
  83. st_7 st_7
  84. st_8 st_8
  85. sle_1 sle_1
  86. sle_2 sle_2
  87. sle_4 sle_4
  88. sle_5 sle_5
  89. sle_6 sle_6
  90. sle_7 sle_7
  91. sle_8 sle_8
  92. ddlb_1 ddlb_1
  93. sle_3 sle_3
  94. st_9 st_9
  95. sle_9 sle_9
  96. st_10 st_10
  97. r_bar r_bar
  98. end type
  99. global w_rp_add w_rp_add
  100. type variables
  101. public:
  102. long rpid
  103. private:
  104. s_u_rp ss_u_rp
  105. Boolean IT_NEWBEGIN = FALSE //新建标志
  106. Boolean IT_UPDATEBEGIN = FALSE//修改标志
  107. end variables
  108. forward prototypes
  109. public subroutine p_clearmx ()
  110. public function integer save (ref string arg_msg)
  111. public function integer acceptmx (string arg_rpcode, string arg_rpname, integer arg_rptype, string arg_col1name0, string arg_col1name1, string arg_col1name2, string arg_col2name0, string arg_col2name1, string arg_col2name2)
  112. end prototypes
  113. public subroutine p_clearmx ();ss_u_rp.rpcode = ""
  114. ss_u_rp.rpname =""
  115. ss_u_rp.rptype =0
  116. ss_u_rp.col1name0 =""
  117. ss_u_rp.col1name1 =""
  118. ss_u_rp.col1name2 = ""
  119. ss_u_rp.col2name0 =""
  120. ss_u_rp.col2name1 =""
  121. ss_u_rp.col2name2 = ""
  122. end subroutine
  123. public function integer save (ref string arg_msg);Int rslt = 1,i
  124. IF IT_NEWBEGIN = True And IT_UPDATEBEGIN = False THEN
  125. rpid = f_sys_scidentity(0,"u_rp","rpid",arg_msg,True,sqlca) //数据commit事务)
  126. IF rpid <= 0 THEN
  127. rslt = 0
  128. GOTO ext
  129. END IF
  130. INSERT INTO u_rp
  131. (rpid,
  132. rpcode,
  133. rpname,
  134. rptype,
  135. col1name0,
  136. col1name1,
  137. col1name2,
  138. col2name0,
  139. col2name1,
  140. col2name2
  141. )
  142. VALUES (
  143. :rpid,
  144. :ss_u_rp.rpcode ,
  145. :ss_u_rp.rpname ,
  146. :ss_u_rp.rptype,
  147. :ss_u_rp.col1name0 ,
  148. :ss_u_rp.col1name1 ,
  149. :ss_u_rp.col1name2 ,
  150. :ss_u_rp.col2name0,
  151. :ss_u_rp.col2name1,
  152. :ss_u_rp.col2name2
  153. ) Using sqlca;
  154. IF sqlca.SQLCode <> 0 THEN
  155. rslt = 0
  156. arg_msg = "因网络或其它原因导致插入明细操作失败"+"~n"+sqlca.SQLErrText
  157. ROLLBACK Using sqlca;
  158. GOTO ext
  159. END IF
  160. END IF
  161. IF IT_UPDATEBEGIN = True And IT_NEWBEGIN = False THEN
  162. UPDATE u_rp
  163. SET
  164. rpcode = :ss_u_rp.rpcode,
  165. rpname = :ss_u_rp.rpname,
  166. rptype = :ss_u_rp.rptype,
  167. col1name1 = :ss_u_rp.col1name1,
  168. col1name2 = :ss_u_rp.col1name2,
  169. col2name1 = :ss_u_rp.col2name1,
  170. col2name2 = :ss_u_rp.col2name2,
  171. col1name0 = :ss_u_rp.col1name0,
  172. col2name0 = :ss_u_rp.col2name0
  173. Where rpid = :rpid;
  174. IF sqlca.SQLCode <> 0 THEN
  175. rslt = 0
  176. arg_msg = "因网络或其它原因导致插入明细操作失败"+"~n"+sqlca.SQLErrText
  177. ROLLBACK Using sqlca;
  178. GOTO ext
  179. END IF
  180. END IF
  181. ext:
  182. IF rslt = 0 THEN
  183. p_clearmx()
  184. ROLLBACK Using sqlca;
  185. ELSEIF rslt = 1 THEN
  186. COMMIT Using sqlca;
  187. END IF
  188. RETURN rslt
  189. end function
  190. public function integer acceptmx (string arg_rpcode, string arg_rpname, integer arg_rptype, string arg_col1name0, string arg_col1name1, string arg_col1name2, string arg_col2name0, string arg_col2name1, string arg_col2name2);Int rslt = 1
  191. IF Trim(arg_rpcode) = "" THEN arg_rpcode = ""
  192. IF Trim(arg_rpname) = "" THEN arg_rpname = ""
  193. IF Trim(arg_col1name0) = "" THEN arg_col1name0 = ""
  194. IF Trim(arg_col1name1) = "" THEN arg_col1name1 = ""
  195. IF Trim(arg_col1name2) = "" THEN arg_col1name2 = ""
  196. IF Trim(arg_col2name0) = "" THEN arg_col2name0 = ""
  197. IF Trim(arg_col2name1) = "" THEN arg_col2name1 = ""
  198. IF Trim(arg_col2name2) = "" THEN arg_col2name2 = ""
  199. IF arg_rpcode = "" THEN
  200. MessageBox("Error","报表编码不能为空")
  201. rslt = 0
  202. GOTO ext
  203. END IF
  204. IF arg_rpname = "" THEN
  205. MessageBox("Error","报表名称不能为空")
  206. rslt = 0
  207. GOTO ext
  208. END IF
  209. ss_u_rp.rpcode = arg_rpcode
  210. ss_u_rp.rpname = arg_rpname
  211. ss_u_rp.rptype = arg_rptype
  212. ss_u_rp.col1name0 = arg_col1name0
  213. ss_u_rp.col1name1 = arg_col1name1
  214. ss_u_rp.col1name2 = arg_col1name2
  215. ss_u_rp.col2name0 = arg_col2name0
  216. ss_u_rp.col2name1 = arg_col2name1
  217. ss_u_rp.col2name2 = arg_col2name2
  218. ext:
  219. IF rslt = 0 THEN p_clearmx()
  220. RETURN rslt
  221. end function
  222. on w_rp_add.create
  223. int iCurrent
  224. call super::create
  225. this.cb_save_add=create cb_save_add
  226. this.cb_save_exit=create cb_save_exit
  227. this.cb_save_delet=create cb_save_delet
  228. this.st_1=create st_1
  229. this.st_2=create st_2
  230. this.st_3=create st_3
  231. this.st_4=create st_4
  232. this.st_5=create st_5
  233. this.st_6=create st_6
  234. this.st_7=create st_7
  235. this.st_8=create st_8
  236. this.sle_1=create sle_1
  237. this.sle_2=create sle_2
  238. this.sle_4=create sle_4
  239. this.sle_5=create sle_5
  240. this.sle_6=create sle_6
  241. this.sle_7=create sle_7
  242. this.sle_8=create sle_8
  243. this.ddlb_1=create ddlb_1
  244. this.sle_3=create sle_3
  245. this.st_9=create st_9
  246. this.sle_9=create sle_9
  247. this.st_10=create st_10
  248. this.r_bar=create r_bar
  249. iCurrent=UpperBound(this.Control)
  250. this.Control[iCurrent+1]=this.cb_save_add
  251. this.Control[iCurrent+2]=this.cb_save_exit
  252. this.Control[iCurrent+3]=this.cb_save_delet
  253. this.Control[iCurrent+4]=this.st_1
  254. this.Control[iCurrent+5]=this.st_2
  255. this.Control[iCurrent+6]=this.st_3
  256. this.Control[iCurrent+7]=this.st_4
  257. this.Control[iCurrent+8]=this.st_5
  258. this.Control[iCurrent+9]=this.st_6
  259. this.Control[iCurrent+10]=this.st_7
  260. this.Control[iCurrent+11]=this.st_8
  261. this.Control[iCurrent+12]=this.sle_1
  262. this.Control[iCurrent+13]=this.sle_2
  263. this.Control[iCurrent+14]=this.sle_4
  264. this.Control[iCurrent+15]=this.sle_5
  265. this.Control[iCurrent+16]=this.sle_6
  266. this.Control[iCurrent+17]=this.sle_7
  267. this.Control[iCurrent+18]=this.sle_8
  268. this.Control[iCurrent+19]=this.ddlb_1
  269. this.Control[iCurrent+20]=this.sle_3
  270. this.Control[iCurrent+21]=this.st_9
  271. this.Control[iCurrent+22]=this.sle_9
  272. this.Control[iCurrent+23]=this.st_10
  273. this.Control[iCurrent+24]=this.r_bar
  274. end on
  275. on w_rp_add.destroy
  276. call super::destroy
  277. destroy(this.cb_save_add)
  278. destroy(this.cb_save_exit)
  279. destroy(this.cb_save_delet)
  280. destroy(this.st_1)
  281. destroy(this.st_2)
  282. destroy(this.st_3)
  283. destroy(this.st_4)
  284. destroy(this.st_5)
  285. destroy(this.st_6)
  286. destroy(this.st_7)
  287. destroy(this.st_8)
  288. destroy(this.sle_1)
  289. destroy(this.sle_2)
  290. destroy(this.sle_4)
  291. destroy(this.sle_5)
  292. destroy(this.sle_6)
  293. destroy(this.sle_7)
  294. destroy(this.sle_8)
  295. destroy(this.ddlb_1)
  296. destroy(this.sle_3)
  297. destroy(this.st_9)
  298. destroy(this.sle_9)
  299. destroy(this.st_10)
  300. destroy(this.r_bar)
  301. end on
  302. event open;call super::open;String rpcode,rpname,col1name0,col1name1,col1name2,col2name0,col2name1,col2name2
  303. integer rptype
  304. IF String( Message.StringParm) = "new" THEN
  305. IT_NEWBEGIN = True
  306. IT_UPDATEBEGIN = False
  307. ELSE
  308. rpid = Long(Message.StringParm)
  309. IT_NEWBEGIN = False
  310. IT_UPDATEBEGIN = True
  311. SELECT rpcode,rpname,rptype,col1name0,col1name1,col1name2,col2name0,col2name1,col2name2 INTO
  312. : rpcode,:rpname,:rptype,:col1name0,:col1name1,:col1name2,:col2name0,:col2name1,:col2name2
  313. From u_rp Where u_rp.rpid = :rpid;
  314. sle_2.text=rpcode
  315. sle_4.text=rpname
  316. sle_3.text=col1name0
  317. sle_5.text=col1name1
  318. sle_6.text=col1name2
  319. sle_9.text=col2name0
  320. sle_7.text=col2name1
  321. sle_8.text=col2name2
  322. if rptype=0 then
  323. ddlb_1.text="单列"
  324. else
  325. ddlb_1.text="双列"
  326. end if
  327. ddlb_1.TriggerEvent(selectionchanged!)
  328. END IF
  329. //IF String( Message.StringParm) = "update" THEN
  330. // IT_NEWBEGIN = False
  331. // IT_UPDATEBEGIN = True
  332. //END IF
  333. //MessageBox("",String(rpid))
  334. end event
  335. type cb_func from w_publ_base`cb_func within w_rp_add
  336. boolean visible = false
  337. integer x = 2592
  338. integer y = 280
  339. end type
  340. type cb_exit from w_publ_base`cb_exit within w_rp_add
  341. boolean visible = false
  342. integer x = 2363
  343. integer y = 104
  344. end type
  345. type cb_save_add from uo_imflatbutton within w_rp_add
  346. integer x = 46
  347. integer y = 848
  348. integer width = 416
  349. integer height = 132
  350. integer taborder = 160
  351. boolean bringtotop = true
  352. string text = "保存并新增"
  353. string normalpicname = "new.bmp"
  354. integer picsize = 16
  355. end type
  356. event clicked;call super::clicked;Integer rp_type
  357. String arg_msg
  358. IF ddlb_1.Text = "单列" THEN
  359. rp_type = 0
  360. sle_7.Text = ""
  361. sle_8.Text = ""
  362. ELSE
  363. rp_type = 1
  364. END IF
  365. IF acceptmx(Trim(sle_2.Text),Trim(sle_4.Text), rp_type,Trim(sle_3.Text),Trim(sle_5.Text),Trim(sle_6.Text),Trim(sle_9.Text),Trim(sle_7.Text),Trim(sle_8.Text)) = 0 THEN
  366. GOTO ext
  367. END IF
  368. arg_msg = ""
  369. IF Save(arg_msg ) = 0 THEN //i 为printid
  370. MessageBox('Error!',arg_msg)
  371. RETURN
  372. END IF
  373. MessageBox(publ_operator,'保存操作成功!')
  374. sle_2.Text = ""
  375. sle_3.Text = ""
  376. sle_4.Text = ""
  377. sle_5.Text = ""
  378. sle_6.Text = ""
  379. sle_7.Text = ""
  380. sle_8.Text = ""
  381. sle_9.Text = ""
  382. ext:
  383. IT_NEWBEGIN = True
  384. IT_UPDATEBEGIN = False
  385. RETURN
  386. end event
  387. type cb_save_exit from uo_imflatbutton within w_rp_add
  388. integer x = 727
  389. integer y = 848
  390. integer width = 411
  391. integer height = 132
  392. integer taborder = 170
  393. boolean bringtotop = true
  394. string text = "保存并退出"
  395. boolean default = true
  396. string normalpicname = "open.bmp"
  397. integer picsize = 16
  398. end type
  399. event clicked;call super::clicked;Integer rp_type
  400. string arg_msg
  401. IF ddlb_1.Text = "单列" THEN
  402. rp_type = 0
  403. sle_7.Text = ""
  404. sle_8.Text = ""
  405. ELSE
  406. rp_type = 1
  407. END IF
  408. IF acceptmx(Trim(sle_2.Text),Trim(sle_4.Text), rp_type,Trim(sle_3.Text),Trim(sle_5.Text),Trim(sle_6.Text),Trim(sle_9.Text),Trim(sle_7.Text),Trim(sle_8.Text)) = 0 THEN
  409. GOTO ext
  410. END IF
  411. //messagebox("",sle_9.Text)
  412. arg_msg = ""
  413. IF Save(arg_msg ) = 0 THEN //i 为printid
  414. MessageBox('Error!',arg_msg)
  415. RETURN
  416. END IF
  417. MessageBox(publ_operator,'保存操作成功!')
  418. sle_2.Text = ""
  419. sle_3.Text = ""
  420. sle_4.Text = ""
  421. sle_5.Text = ""
  422. sle_6.Text = ""
  423. sle_7.Text = ""
  424. sle_8.Text = ""
  425. sle_9.Text = ""
  426. close(parent)
  427. ext:
  428. RETURN
  429. end event
  430. type cb_save_delet from uo_imflatbutton within w_rp_add
  431. integer x = 1408
  432. integer y = 848
  433. integer width = 389
  434. integer height = 132
  435. integer taborder = 180
  436. boolean bringtotop = true
  437. string text = "退出"
  438. boolean default = true
  439. string normalpicname = "delete.bmp"
  440. integer picsize = 16
  441. end type
  442. event clicked;call super::clicked;close(parent)
  443. end event
  444. type st_1 from statictext within w_rp_add
  445. boolean visible = false
  446. integer x = 32
  447. integer y = 36
  448. integer width = 507
  449. integer height = 80
  450. boolean bringtotop = true
  451. integer textsize = -9
  452. integer weight = 400
  453. fontcharset fontcharset = gb2312charset!
  454. fontpitch fontpitch = variable!
  455. string facename = "宋体"
  456. long textcolor = 33554432
  457. long backcolor = 67108864
  458. string text = "报表id:"
  459. alignment alignment = right!
  460. boolean focusrectangle = false
  461. end type
  462. type st_2 from statictext within w_rp_add
  463. integer x = 32
  464. integer y = 28
  465. integer width = 507
  466. integer height = 80
  467. boolean bringtotop = true
  468. integer textsize = -9
  469. integer weight = 400
  470. fontcharset fontcharset = gb2312charset!
  471. fontpitch fontpitch = variable!
  472. string facename = "宋体"
  473. long textcolor = 134217751
  474. long backcolor = 134217748
  475. string text = "报表编号:"
  476. boolean focusrectangle = false
  477. end type
  478. type st_3 from statictext within w_rp_add
  479. integer x = 32
  480. integer y = 128
  481. integer width = 507
  482. integer height = 80
  483. boolean bringtotop = true
  484. integer textsize = -9
  485. integer weight = 400
  486. fontcharset fontcharset = gb2312charset!
  487. fontpitch fontpitch = variable!
  488. string facename = "宋体"
  489. long textcolor = 134217751
  490. long backcolor = 134217748
  491. string text = "报表名称:"
  492. boolean focusrectangle = false
  493. end type
  494. type st_4 from statictext within w_rp_add
  495. integer x = 1042
  496. integer y = 124
  497. integer width = 261
  498. integer height = 80
  499. boolean bringtotop = true
  500. integer textsize = -9
  501. integer weight = 400
  502. fontcharset fontcharset = gb2312charset!
  503. fontpitch fontpitch = variable!
  504. string facename = "宋体"
  505. long textcolor = 134217751
  506. long backcolor = 134217748
  507. string text = "报表类型:"
  508. alignment alignment = right!
  509. boolean focusrectangle = false
  510. end type
  511. type st_5 from statictext within w_rp_add
  512. integer x = 23
  513. integer y = 356
  514. integer width = 507
  515. integer height = 80
  516. boolean bringtotop = true
  517. integer textsize = -9
  518. integer weight = 400
  519. fontcharset fontcharset = gb2312charset!
  520. fontpitch fontpitch = variable!
  521. string facename = "宋体"
  522. long textcolor = 134217751
  523. long backcolor = 134217748
  524. string text = "左边第1列统计标题:"
  525. alignment alignment = right!
  526. boolean focusrectangle = false
  527. end type
  528. type st_6 from statictext within w_rp_add
  529. integer x = 23
  530. integer y = 440
  531. integer width = 507
  532. integer height = 80
  533. boolean bringtotop = true
  534. integer textsize = -9
  535. integer weight = 400
  536. fontcharset fontcharset = gb2312charset!
  537. fontpitch fontpitch = variable!
  538. string facename = "宋体"
  539. long textcolor = 134217751
  540. long backcolor = 134217748
  541. string text = "左边第2列统计标题:"
  542. alignment alignment = right!
  543. boolean focusrectangle = false
  544. end type
  545. type st_7 from statictext within w_rp_add
  546. integer x = 23
  547. integer y = 636
  548. integer width = 507
  549. integer height = 80
  550. boolean bringtotop = true
  551. integer textsize = -9
  552. integer weight = 400
  553. fontcharset fontcharset = gb2312charset!
  554. fontpitch fontpitch = variable!
  555. string facename = "宋体"
  556. long textcolor = 134217751
  557. long backcolor = 134217748
  558. string text = "右边第1列统计标题:"
  559. alignment alignment = right!
  560. boolean focusrectangle = false
  561. end type
  562. type st_8 from statictext within w_rp_add
  563. integer x = 23
  564. integer y = 728
  565. integer width = 507
  566. integer height = 80
  567. boolean bringtotop = true
  568. integer textsize = -9
  569. integer weight = 400
  570. fontcharset fontcharset = gb2312charset!
  571. fontpitch fontpitch = variable!
  572. string facename = "宋体"
  573. long textcolor = 134217751
  574. long backcolor = 134217748
  575. string text = "右边第2列统计标题:"
  576. alignment alignment = right!
  577. boolean focusrectangle = false
  578. end type
  579. type sle_1 from singlelineedit within w_rp_add
  580. boolean visible = false
  581. integer x = 535
  582. integer y = 20
  583. integer width = 494
  584. integer height = 84
  585. integer taborder = 10
  586. boolean bringtotop = true
  587. integer textsize = -9
  588. integer weight = 400
  589. fontcharset fontcharset = gb2312charset!
  590. fontpitch fontpitch = variable!
  591. string facename = "宋体"
  592. long textcolor = 33554432
  593. boolean enabled = false
  594. boolean border = false
  595. end type
  596. type sle_2 from singlelineedit within w_rp_add
  597. integer x = 288
  598. integer y = 24
  599. integer width = 1495
  600. integer height = 84
  601. integer taborder = 20
  602. boolean bringtotop = true
  603. integer textsize = -9
  604. integer weight = 400
  605. fontcharset fontcharset = gb2312charset!
  606. fontpitch fontpitch = variable!
  607. string facename = "宋体"
  608. long textcolor = 33554432
  609. long backcolor = 134217750
  610. boolean border = false
  611. end type
  612. type sle_4 from singlelineedit within w_rp_add
  613. integer x = 283
  614. integer y = 116
  615. integer width = 731
  616. integer height = 84
  617. integer taborder = 20
  618. boolean bringtotop = true
  619. integer textsize = -9
  620. integer weight = 400
  621. fontcharset fontcharset = gb2312charset!
  622. fontpitch fontpitch = variable!
  623. string facename = "宋体"
  624. long textcolor = 33554432
  625. long backcolor = 134217750
  626. boolean border = false
  627. end type
  628. type sle_5 from singlelineedit within w_rp_add
  629. integer x = 530
  630. integer y = 332
  631. integer width = 1253
  632. integer height = 84
  633. integer taborder = 20
  634. boolean bringtotop = true
  635. integer textsize = -9
  636. integer weight = 400
  637. fontcharset fontcharset = gb2312charset!
  638. fontpitch fontpitch = variable!
  639. string facename = "宋体"
  640. long textcolor = 33554432
  641. long backcolor = 134217750
  642. boolean border = false
  643. end type
  644. type sle_6 from singlelineedit within w_rp_add
  645. integer x = 530
  646. integer y = 424
  647. integer width = 1253
  648. integer height = 84
  649. integer taborder = 20
  650. boolean bringtotop = true
  651. integer textsize = -9
  652. integer weight = 400
  653. fontcharset fontcharset = gb2312charset!
  654. fontpitch fontpitch = variable!
  655. string facename = "宋体"
  656. long textcolor = 33554432
  657. long backcolor = 134217750
  658. boolean border = false
  659. end type
  660. type sle_7 from singlelineedit within w_rp_add
  661. integer x = 535
  662. integer y = 628
  663. integer width = 1253
  664. integer height = 84
  665. integer taborder = 20
  666. boolean bringtotop = true
  667. integer textsize = -9
  668. integer weight = 400
  669. fontcharset fontcharset = gb2312charset!
  670. fontpitch fontpitch = variable!
  671. string facename = "宋体"
  672. long textcolor = 33554432
  673. long backcolor = 134217750
  674. boolean border = false
  675. end type
  676. type sle_8 from singlelineedit within w_rp_add
  677. integer x = 535
  678. integer y = 720
  679. integer width = 1253
  680. integer height = 84
  681. integer taborder = 20
  682. boolean bringtotop = true
  683. integer textsize = -9
  684. integer weight = 400
  685. fontcharset fontcharset = gb2312charset!
  686. fontpitch fontpitch = variable!
  687. string facename = "宋体"
  688. long textcolor = 33554432
  689. long backcolor = 134217750
  690. boolean border = false
  691. end type
  692. type ddlb_1 from dropdownlistbox within w_rp_add
  693. integer x = 1307
  694. integer y = 124
  695. integer width = 480
  696. integer height = 300
  697. integer taborder = 30
  698. boolean bringtotop = true
  699. integer textsize = -9
  700. integer weight = 400
  701. fontcharset fontcharset = gb2312charset!
  702. fontpitch fontpitch = variable!
  703. string facename = "宋体"
  704. long textcolor = 33554432
  705. string text = "双列"
  706. string item[] = {"单列","双列"}
  707. borderstyle borderstyle = stylelowered!
  708. end type
  709. event selectionchanged;IF ddlb_1.Text = "双列" THEN
  710. st_10.Visible = True
  711. sle_9.Visible = True
  712. st_7.Visible = True
  713. st_8.Visible = True
  714. sle_7.Visible = True
  715. sle_8.Visible = True
  716. // cb_save_add.y=cb_save_add.y + 300
  717. // cb_save_exit.y=cb_save_exit.y + 300
  718. // cb_save_delet.y=cb_save_delet.y + 300
  719. END IF
  720. IF ddlb_1.Text = "单列" THEN
  721. st_10.Visible = False
  722. sle_9.Visible = False
  723. st_7.Visible = False
  724. st_8.Visible = False
  725. sle_7.Visible = False
  726. sle_8.Visible = False
  727. // cb_save_add.y=cb_save_add.y - 300
  728. // cb_save_exit.y=cb_save_exit.y - 300
  729. // cb_save_delet.y=cb_save_delet.y -300
  730. END IF
  731. end event
  732. type sle_3 from singlelineedit within w_rp_add
  733. integer x = 530
  734. integer y = 240
  735. integer width = 1253
  736. integer height = 84
  737. integer taborder = 30
  738. boolean bringtotop = true
  739. integer textsize = -9
  740. integer weight = 400
  741. fontcharset fontcharset = gb2312charset!
  742. fontpitch fontpitch = variable!
  743. string facename = "宋体"
  744. long textcolor = 33554432
  745. long backcolor = 134217750
  746. boolean border = false
  747. end type
  748. type st_9 from statictext within w_rp_add
  749. integer x = 197
  750. integer y = 264
  751. integer width = 334
  752. integer height = 80
  753. boolean bringtotop = true
  754. integer textsize = -9
  755. integer weight = 400
  756. fontcharset fontcharset = gb2312charset!
  757. fontpitch fontpitch = variable!
  758. string facename = "宋体"
  759. long textcolor = 134217751
  760. long backcolor = 134217748
  761. string text = "左边行标题:"
  762. alignment alignment = right!
  763. boolean focusrectangle = false
  764. end type
  765. type sle_9 from singlelineedit within w_rp_add
  766. integer x = 535
  767. integer y = 536
  768. integer width = 1253
  769. integer height = 84
  770. integer taborder = 40
  771. boolean bringtotop = true
  772. integer textsize = -9
  773. integer weight = 400
  774. fontcharset fontcharset = gb2312charset!
  775. fontpitch fontpitch = variable!
  776. string facename = "宋体"
  777. long textcolor = 33554432
  778. long backcolor = 134217750
  779. boolean border = false
  780. end type
  781. type st_10 from statictext within w_rp_add
  782. integer x = 197
  783. integer y = 560
  784. integer width = 334
  785. integer height = 80
  786. boolean bringtotop = true
  787. integer textsize = -9
  788. integer weight = 400
  789. fontcharset fontcharset = gb2312charset!
  790. fontpitch fontpitch = variable!
  791. string facename = "宋体"
  792. long textcolor = 134217751
  793. long backcolor = 134217748
  794. string text = "右边行标题:"
  795. alignment alignment = right!
  796. boolean focusrectangle = false
  797. end type
  798. type r_bar from rectangle within w_rp_add
  799. boolean visible = false
  800. long linecolor = 16777215
  801. integer linethickness = 4
  802. long fillcolor = 1073741824
  803. integer x = 4530
  804. integer y = 544
  805. integer width = 146
  806. integer height = 68
  807. end type
  808. event constructor;this.fillcolor = 14215660
  809. this.linecolor = 14215660
  810. this.x = -1
  811. this.y = -1
  812. //this.height = ln_bar.beginy - 5
  813. //
  814. end event