w_cmpl_qty_ch.srw 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415
  1. $PBExportHeader$w_cmpl_qty_ch.srw
  2. forward
  3. global type w_cmpl_qty_ch from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_cmpl_qty_ch
  6. end type
  7. type st_3 from statictext within w_cmpl_qty_ch
  8. end type
  9. type em_1 from editmask within w_cmpl_qty_ch
  10. end type
  11. type cb_2 from commandbutton within w_cmpl_qty_ch
  12. end type
  13. type cb_3 from commandbutton within w_cmpl_qty_ch
  14. end type
  15. type cb_4 from commandbutton within w_cmpl_qty_ch
  16. end type
  17. type cb_5 from commandbutton within w_cmpl_qty_ch
  18. end type
  19. type cb_6 from commandbutton within w_cmpl_qty_ch
  20. end type
  21. type cb_7 from commandbutton within w_cmpl_qty_ch
  22. end type
  23. type cb_8 from commandbutton within w_cmpl_qty_ch
  24. end type
  25. type cb_9 from commandbutton within w_cmpl_qty_ch
  26. end type
  27. type cb_10 from commandbutton within w_cmpl_qty_ch
  28. end type
  29. type cb_11 from commandbutton within w_cmpl_qty_ch
  30. end type
  31. type cb_13 from commandbutton within w_cmpl_qty_ch
  32. end type
  33. type cb_14 from commandbutton within w_cmpl_qty_ch
  34. end type
  35. type cb_15 from commandbutton within w_cmpl_qty_ch
  36. end type
  37. type cb_16 from commandbutton within w_cmpl_qty_ch
  38. end type
  39. type cb_17 from commandbutton within w_cmpl_qty_ch
  40. end type
  41. type cb_12 from commandbutton within w_cmpl_qty_ch
  42. end type
  43. type st_1 from statictext within w_cmpl_qty_ch
  44. end type
  45. type cb_18 from commandbutton within w_cmpl_qty_ch
  46. end type
  47. type cb_19 from commandbutton within w_cmpl_qty_ch
  48. end type
  49. type cb_20 from commandbutton within w_cmpl_qty_ch
  50. end type
  51. type cb_21 from commandbutton within w_cmpl_qty_ch
  52. end type
  53. type sle_2 from editmask within w_cmpl_qty_ch
  54. end type
  55. type rb_1 from radiobutton within w_cmpl_qty_ch
  56. end type
  57. type rb_2 from radiobutton within w_cmpl_qty_ch
  58. end type
  59. type em_2 from editmask within w_cmpl_qty_ch
  60. end type
  61. type st_2 from statictext within w_cmpl_qty_ch
  62. end type
  63. type cb_22 from commandbutton within w_cmpl_qty_ch
  64. end type
  65. type cb_23 from commandbutton within w_cmpl_qty_ch
  66. end type
  67. type cb_24 from commandbutton within w_cmpl_qty_ch
  68. end type
  69. type sle_1 from u_sleedit within w_cmpl_qty_ch
  70. end type
  71. type cb_status from commandbutton within w_cmpl_qty_ch
  72. end type
  73. type cb_woodcode from commandbutton within w_cmpl_qty_ch
  74. end type
  75. type cb_pcode from commandbutton within w_cmpl_qty_ch
  76. end type
  77. type cb_mtrlsectype from commandbutton within w_cmpl_qty_ch
  78. end type
  79. type cb_zxmtrlmode from commandbutton within w_cmpl_qty_ch
  80. end type
  81. type cb_25 from commandbutton within w_cmpl_qty_ch
  82. end type
  83. type cb_26 from commandbutton within w_cmpl_qty_ch
  84. end type
  85. type cb_27 from commandbutton within w_cmpl_qty_ch
  86. end type
  87. type cb_28 from commandbutton within w_cmpl_qty_ch
  88. end type
  89. type cb_29 from commandbutton within w_cmpl_qty_ch
  90. end type
  91. type cb_mxdscrp from commandbutton within w_cmpl_qty_ch
  92. end type
  93. type cb_mxdscrp4 from commandbutton within w_cmpl_qty_ch
  94. end type
  95. type cb_mxdscrp3 from commandbutton within w_cmpl_qty_ch
  96. end type
  97. type cb_mxdscrp2 from commandbutton within w_cmpl_qty_ch
  98. end type
  99. end forward
  100. global type w_cmpl_qty_ch from w_publ_base
  101. integer width = 1824
  102. integer height = 1264
  103. string title = "公式设定"
  104. boolean minbox = false
  105. windowtype windowtype = response!
  106. cb_1 cb_1
  107. st_3 st_3
  108. em_1 em_1
  109. cb_2 cb_2
  110. cb_3 cb_3
  111. cb_4 cb_4
  112. cb_5 cb_5
  113. cb_6 cb_6
  114. cb_7 cb_7
  115. cb_8 cb_8
  116. cb_9 cb_9
  117. cb_10 cb_10
  118. cb_11 cb_11
  119. cb_13 cb_13
  120. cb_14 cb_14
  121. cb_15 cb_15
  122. cb_16 cb_16
  123. cb_17 cb_17
  124. cb_12 cb_12
  125. st_1 st_1
  126. cb_18 cb_18
  127. cb_19 cb_19
  128. cb_20 cb_20
  129. cb_21 cb_21
  130. sle_2 sle_2
  131. rb_1 rb_1
  132. rb_2 rb_2
  133. em_2 em_2
  134. st_2 st_2
  135. cb_22 cb_22
  136. cb_23 cb_23
  137. cb_24 cb_24
  138. sle_1 sle_1
  139. cb_status cb_status
  140. cb_woodcode cb_woodcode
  141. cb_pcode cb_pcode
  142. cb_mtrlsectype cb_mtrlsectype
  143. cb_zxmtrlmode cb_zxmtrlmode
  144. cb_25 cb_25
  145. cb_26 cb_26
  146. cb_27 cb_27
  147. cb_28 cb_28
  148. cb_29 cb_29
  149. cb_mxdscrp cb_mxdscrp
  150. cb_mxdscrp4 cb_mxdscrp4
  151. cb_mxdscrp3 cb_mxdscrp3
  152. cb_mxdscrp2 cb_mxdscrp2
  153. end type
  154. global w_cmpl_qty_ch w_cmpl_qty_ch
  155. type variables
  156. s_cmpl_qty s_cmpl
  157. string ls_value
  158. decimal addqty
  159. decimal price
  160. decimal rebate
  161. string status
  162. string woodcode
  163. string pcode
  164. string zxmtrlmode
  165. string mtrlsectype
  166. end variables
  167. forward prototypes
  168. public subroutine wf_cmp ()
  169. end prototypes
  170. public subroutine wf_cmp ();
  171. String ls_msg
  172. s_cmpl_qty arg_cmpl
  173. decimal ld_qty
  174. arg_cmpl = s_cmpl
  175. arg_cmpl.formula = sle_1.Text
  176. arg_cmpl.num = dec(em_1.Text)
  177. arg_cmpl.flag = rb_1.Checked
  178. arg_cmpl.addvalue = Dec(em_2.Text)
  179. ld_qty = 0
  180. if f_cmpl_qty(arg_cmpl,ld_qty,ls_msg) = 0 then
  181. sle_1.Text = ''
  182. MessageBox('提示',ls_msg, Information!, OK! )
  183. RETURN
  184. END IF
  185. sle_2.Text = String(ld_qty,'###,####,###0.######')
  186. end subroutine
  187. on w_cmpl_qty_ch.create
  188. int iCurrent
  189. call super::create
  190. this.cb_1=create cb_1
  191. this.st_3=create st_3
  192. this.em_1=create em_1
  193. this.cb_2=create cb_2
  194. this.cb_3=create cb_3
  195. this.cb_4=create cb_4
  196. this.cb_5=create cb_5
  197. this.cb_6=create cb_6
  198. this.cb_7=create cb_7
  199. this.cb_8=create cb_8
  200. this.cb_9=create cb_9
  201. this.cb_10=create cb_10
  202. this.cb_11=create cb_11
  203. this.cb_13=create cb_13
  204. this.cb_14=create cb_14
  205. this.cb_15=create cb_15
  206. this.cb_16=create cb_16
  207. this.cb_17=create cb_17
  208. this.cb_12=create cb_12
  209. this.st_1=create st_1
  210. this.cb_18=create cb_18
  211. this.cb_19=create cb_19
  212. this.cb_20=create cb_20
  213. this.cb_21=create cb_21
  214. this.sle_2=create sle_2
  215. this.rb_1=create rb_1
  216. this.rb_2=create rb_2
  217. this.em_2=create em_2
  218. this.st_2=create st_2
  219. this.cb_22=create cb_22
  220. this.cb_23=create cb_23
  221. this.cb_24=create cb_24
  222. this.sle_1=create sle_1
  223. this.cb_status=create cb_status
  224. this.cb_woodcode=create cb_woodcode
  225. this.cb_pcode=create cb_pcode
  226. this.cb_mtrlsectype=create cb_mtrlsectype
  227. this.cb_zxmtrlmode=create cb_zxmtrlmode
  228. this.cb_25=create cb_25
  229. this.cb_26=create cb_26
  230. this.cb_27=create cb_27
  231. this.cb_28=create cb_28
  232. this.cb_29=create cb_29
  233. this.cb_mxdscrp=create cb_mxdscrp
  234. this.cb_mxdscrp4=create cb_mxdscrp4
  235. this.cb_mxdscrp3=create cb_mxdscrp3
  236. this.cb_mxdscrp2=create cb_mxdscrp2
  237. iCurrent=UpperBound(this.Control)
  238. this.Control[iCurrent+1]=this.cb_1
  239. this.Control[iCurrent+2]=this.st_3
  240. this.Control[iCurrent+3]=this.em_1
  241. this.Control[iCurrent+4]=this.cb_2
  242. this.Control[iCurrent+5]=this.cb_3
  243. this.Control[iCurrent+6]=this.cb_4
  244. this.Control[iCurrent+7]=this.cb_5
  245. this.Control[iCurrent+8]=this.cb_6
  246. this.Control[iCurrent+9]=this.cb_7
  247. this.Control[iCurrent+10]=this.cb_8
  248. this.Control[iCurrent+11]=this.cb_9
  249. this.Control[iCurrent+12]=this.cb_10
  250. this.Control[iCurrent+13]=this.cb_11
  251. this.Control[iCurrent+14]=this.cb_13
  252. this.Control[iCurrent+15]=this.cb_14
  253. this.Control[iCurrent+16]=this.cb_15
  254. this.Control[iCurrent+17]=this.cb_16
  255. this.Control[iCurrent+18]=this.cb_17
  256. this.Control[iCurrent+19]=this.cb_12
  257. this.Control[iCurrent+20]=this.st_1
  258. this.Control[iCurrent+21]=this.cb_18
  259. this.Control[iCurrent+22]=this.cb_19
  260. this.Control[iCurrent+23]=this.cb_20
  261. this.Control[iCurrent+24]=this.cb_21
  262. this.Control[iCurrent+25]=this.sle_2
  263. this.Control[iCurrent+26]=this.rb_1
  264. this.Control[iCurrent+27]=this.rb_2
  265. this.Control[iCurrent+28]=this.em_2
  266. this.Control[iCurrent+29]=this.st_2
  267. this.Control[iCurrent+30]=this.cb_22
  268. this.Control[iCurrent+31]=this.cb_23
  269. this.Control[iCurrent+32]=this.cb_24
  270. this.Control[iCurrent+33]=this.sle_1
  271. this.Control[iCurrent+34]=this.cb_status
  272. this.Control[iCurrent+35]=this.cb_woodcode
  273. this.Control[iCurrent+36]=this.cb_pcode
  274. this.Control[iCurrent+37]=this.cb_mtrlsectype
  275. this.Control[iCurrent+38]=this.cb_zxmtrlmode
  276. this.Control[iCurrent+39]=this.cb_25
  277. this.Control[iCurrent+40]=this.cb_26
  278. this.Control[iCurrent+41]=this.cb_27
  279. this.Control[iCurrent+42]=this.cb_28
  280. this.Control[iCurrent+43]=this.cb_29
  281. this.Control[iCurrent+44]=this.cb_mxdscrp
  282. this.Control[iCurrent+45]=this.cb_mxdscrp4
  283. this.Control[iCurrent+46]=this.cb_mxdscrp3
  284. this.Control[iCurrent+47]=this.cb_mxdscrp2
  285. end on
  286. on w_cmpl_qty_ch.destroy
  287. call super::destroy
  288. destroy(this.cb_1)
  289. destroy(this.st_3)
  290. destroy(this.em_1)
  291. destroy(this.cb_2)
  292. destroy(this.cb_3)
  293. destroy(this.cb_4)
  294. destroy(this.cb_5)
  295. destroy(this.cb_6)
  296. destroy(this.cb_7)
  297. destroy(this.cb_8)
  298. destroy(this.cb_9)
  299. destroy(this.cb_10)
  300. destroy(this.cb_11)
  301. destroy(this.cb_13)
  302. destroy(this.cb_14)
  303. destroy(this.cb_15)
  304. destroy(this.cb_16)
  305. destroy(this.cb_17)
  306. destroy(this.cb_12)
  307. destroy(this.st_1)
  308. destroy(this.cb_18)
  309. destroy(this.cb_19)
  310. destroy(this.cb_20)
  311. destroy(this.cb_21)
  312. destroy(this.sle_2)
  313. destroy(this.rb_1)
  314. destroy(this.rb_2)
  315. destroy(this.em_2)
  316. destroy(this.st_2)
  317. destroy(this.cb_22)
  318. destroy(this.cb_23)
  319. destroy(this.cb_24)
  320. destroy(this.sle_1)
  321. destroy(this.cb_status)
  322. destroy(this.cb_woodcode)
  323. destroy(this.cb_pcode)
  324. destroy(this.cb_mtrlsectype)
  325. destroy(this.cb_zxmtrlmode)
  326. destroy(this.cb_25)
  327. destroy(this.cb_26)
  328. destroy(this.cb_27)
  329. destroy(this.cb_28)
  330. destroy(this.cb_29)
  331. destroy(this.cb_mxdscrp)
  332. destroy(this.cb_mxdscrp4)
  333. destroy(this.cb_mxdscrp3)
  334. destroy(this.cb_mxdscrp2)
  335. end on
  336. event close;call super::close;closewithreturn(this,s_cmpl)
  337. end event
  338. event open;call super::open;String ls_num
  339. cb_status.Text = '配置' //sys_option_change_status
  340. cb_woodcode.Text = '配置1' //sys_option_change_woodcode
  341. cb_pcode.Text ='配置2' //sys_option_change_pcode
  342. cb_mtrlsectype.Text = '自定义1' //sys_option_change_mtrlsectype
  343. cb_zxmtrlmode.Text = '自定义2' // sys_option_change_zxmtrlmode
  344. //IF Len(sys_option_change_status) > 5 THEN
  345. // cb_status.Width = 33 * Len(sys_option_change_status)
  346. //END IF
  347. //
  348. //IF Len(sys_option_change_woodcode) > 5 THEN
  349. // cb_woodcode.Width = 33 * Len(sys_option_change_woodcode)
  350. //END IF
  351. //
  352. //IF Len(sys_option_change_pcode) > 5 THEN
  353. // cb_pcode.Width = 33 * Len(sys_option_change_pcode)
  354. //END IF
  355. //
  356. //IF Len(sys_option_change_mtrlsectype) > 5 THEN
  357. // cb_mtrlsectype.Width = 33 * Len(sys_option_change_mtrlsectype)
  358. //END IF
  359. //
  360. //IF Len(sys_option_change_zxmtrlmode) > 5 THEN
  361. // cb_zxmtrlmode.Width = 33 * Len(sys_option_change_zxmtrlmode)
  362. //END IF
  363. //
  364. cb_woodcode.x = cb_status.x + cb_status.width + 57
  365. cb_pcode.x = cb_woodcode.x + cb_woodcode.width + 57
  366. cb_mtrlsectype.x = cb_pcode.x + cb_pcode.width + 57
  367. cb_zxmtrlmode.x = cb_mtrlsectype.x + cb_mtrlsectype.width + 57
  368. s_cmpl = Message.PowerObjectParm
  369. ls_value = f_ProfileString (sys_empid,'w_cmpl_qty_ch', "value",'1')
  370. ls_num = f_ProfileString (sys_empid,'w_cmpl_qty_ch', "num",'5')
  371. IF ls_num > '5' THEN
  372. ls_num = '5'
  373. END IF
  374. addqty = s_cmpl.addqty
  375. price = s_cmpl.price
  376. IF s_cmpl.ifnorebate = 0 THEN
  377. rebate = s_cmpl.rebate
  378. ELSE
  379. cb_24.Visible = FALSE
  380. END IF
  381. em_1.Text = ls_num
  382. sle_1.Text = s_cmpl.formula
  383. sle_2.Text = String(s_cmpl.qty,'####,###,###0.#######')
  384. em_2.Text = ls_value
  385. sle_1.SetFocus()
  386. end event
  387. event key;call super::key;IF Key = KeyEnter! THEN
  388. cb_1.triggerevent(clicked!)
  389. END IF
  390. end event
  391. type cb_func from w_publ_base`cb_func within w_cmpl_qty_ch
  392. boolean visible = false
  393. end type
  394. type cb_exit from w_publ_base`cb_exit within w_cmpl_qty_ch
  395. integer x = 1403
  396. integer y = 1060
  397. integer width = 343
  398. integer taborder = 50
  399. end type
  400. type cb_1 from uo_imflatbutton within w_cmpl_qty_ch
  401. integer x = 1403
  402. integer y = 948
  403. integer width = 343
  404. integer height = 96
  405. integer taborder = 40
  406. boolean bringtotop = true
  407. string normalpicname = "ok.bmp"
  408. end type
  409. event clicked;call super::clicked;string ls_num
  410. wf_cmp()
  411. ls_num = em_1.text
  412. ls_value = em_2.text
  413. f_SetProfileString (sys_empid,"w_cmpl_qty_ch", "num", ls_num)
  414. f_SetProfileString (sys_empid,"w_cmpl_qty_ch", "value", ls_value)
  415. s_cmpl.formula = sle_1.text
  416. s_cmpl.qty = dec(sle_2.text)
  417. close(parent)
  418. end event
  419. type st_3 from statictext within w_cmpl_qty_ch
  420. integer x = 1403
  421. integer y = 372
  422. integer width = 201
  423. integer height = 64
  424. boolean bringtotop = true
  425. integer textsize = -9
  426. integer weight = 400
  427. fontcharset fontcharset = gb2312charset!
  428. fontpitch fontpitch = variable!
  429. string facename = "宋体"
  430. long textcolor = 33554432
  431. long backcolor = 134217738
  432. string text = "小数位:"
  433. alignment alignment = right!
  434. boolean focusrectangle = false
  435. end type
  436. type em_1 from editmask within w_cmpl_qty_ch
  437. integer x = 1609
  438. integer y = 356
  439. integer width = 165
  440. integer height = 84
  441. integer taborder = 60
  442. boolean bringtotop = true
  443. integer textsize = -9
  444. integer weight = 400
  445. fontcharset fontcharset = gb2312charset!
  446. fontpitch fontpitch = variable!
  447. string facename = "宋体"
  448. long textcolor = 33554432
  449. alignment alignment = right!
  450. borderstyle borderstyle = stylelowered!
  451. string mask = "###0"
  452. boolean spin = true
  453. double increment = 1
  454. string minmax = "0~~5"
  455. end type
  456. event modified;cb_12.SetFocus()
  457. end event
  458. type cb_2 from commandbutton within w_cmpl_qty_ch
  459. integer x = 41
  460. integer y = 628
  461. integer width = 165
  462. integer height = 104
  463. integer taborder = 70
  464. boolean bringtotop = true
  465. integer textsize = -9
  466. integer weight = 400
  467. fontcharset fontcharset = gb2312charset!
  468. fontpitch fontpitch = variable!
  469. string facename = "宋体"
  470. string text = "7"
  471. end type
  472. event clicked;string ls_temp
  473. ls_temp = this.text
  474. sle_1.replacetext(ls_temp)
  475. sle_1.setfocus()
  476. end event
  477. type cb_3 from commandbutton within w_cmpl_qty_ch
  478. integer x = 261
  479. integer y = 628
  480. integer width = 165
  481. integer height = 104
  482. integer taborder = 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. string text = "8"
  490. end type
  491. event clicked;string ls_temp
  492. ls_temp = this.text
  493. sle_1.replacetext(ls_temp)
  494. sle_1.setfocus()
  495. end event
  496. type cb_4 from commandbutton within w_cmpl_qty_ch
  497. integer x = 261
  498. integer y = 768
  499. integer width = 165
  500. integer height = 104
  501. integer taborder = 130
  502. boolean bringtotop = true
  503. integer textsize = -9
  504. integer weight = 400
  505. fontcharset fontcharset = gb2312charset!
  506. fontpitch fontpitch = variable!
  507. string facename = "宋体"
  508. string text = "5"
  509. end type
  510. event clicked;string ls_temp
  511. ls_temp = this.text
  512. sle_1.replacetext(ls_temp)
  513. sle_1.setfocus()
  514. end event
  515. type cb_5 from commandbutton within w_cmpl_qty_ch
  516. integer x = 41
  517. integer y = 768
  518. integer width = 165
  519. integer height = 104
  520. integer taborder = 90
  521. boolean bringtotop = true
  522. integer textsize = -9
  523. integer weight = 400
  524. fontcharset fontcharset = gb2312charset!
  525. fontpitch fontpitch = variable!
  526. string facename = "宋体"
  527. string text = "4"
  528. end type
  529. event clicked;string ls_temp
  530. ls_temp = this.text
  531. sle_1.replacetext(ls_temp)
  532. sle_1.setfocus()
  533. end event
  534. type cb_6 from commandbutton within w_cmpl_qty_ch
  535. integer x = 480
  536. integer y = 628
  537. integer width = 165
  538. integer height = 104
  539. integer taborder = 100
  540. boolean bringtotop = true
  541. integer textsize = -9
  542. integer weight = 400
  543. fontcharset fontcharset = gb2312charset!
  544. fontpitch fontpitch = variable!
  545. string facename = "宋体"
  546. string text = "9"
  547. end type
  548. event clicked;string ls_temp
  549. ls_temp = this.text
  550. sle_1.replacetext(ls_temp)
  551. sle_1.setfocus()
  552. end event
  553. type cb_7 from commandbutton within w_cmpl_qty_ch
  554. integer x = 704
  555. integer y = 628
  556. integer width = 165
  557. integer height = 104
  558. integer taborder = 140
  559. boolean bringtotop = true
  560. integer textsize = -9
  561. integer weight = 400
  562. fontcharset fontcharset = gb2312charset!
  563. fontpitch fontpitch = variable!
  564. string facename = "宋体"
  565. string text = "/"
  566. end type
  567. event clicked;string ls_temp
  568. ls_temp = this.text
  569. sle_1.replacetext(ls_temp)
  570. sle_1.setfocus()
  571. end event
  572. type cb_8 from commandbutton within w_cmpl_qty_ch
  573. integer x = 704
  574. integer y = 768
  575. integer width = 165
  576. integer height = 104
  577. integer taborder = 200
  578. boolean bringtotop = true
  579. integer textsize = -9
  580. integer weight = 400
  581. fontcharset fontcharset = gb2312charset!
  582. fontpitch fontpitch = variable!
  583. string facename = "宋体"
  584. string text = "*"
  585. end type
  586. event clicked;string ls_temp
  587. ls_temp = this.text
  588. sle_1.replacetext(ls_temp)
  589. sle_1.setfocus()
  590. end event
  591. type cb_9 from commandbutton within w_cmpl_qty_ch
  592. integer x = 480
  593. integer y = 768
  594. integer width = 165
  595. integer height = 104
  596. integer taborder = 150
  597. boolean bringtotop = true
  598. integer textsize = -9
  599. integer weight = 400
  600. fontcharset fontcharset = gb2312charset!
  601. fontpitch fontpitch = variable!
  602. string facename = "宋体"
  603. string text = "6"
  604. end type
  605. event clicked;string ls_temp
  606. ls_temp = this.text
  607. sle_1.replacetext(ls_temp)
  608. sle_1.setfocus()
  609. end event
  610. type cb_10 from commandbutton within w_cmpl_qty_ch
  611. integer x = 41
  612. integer y = 904
  613. integer width = 165
  614. integer height = 104
  615. integer taborder = 110
  616. boolean bringtotop = true
  617. integer textsize = -9
  618. integer weight = 400
  619. fontcharset fontcharset = gb2312charset!
  620. fontpitch fontpitch = variable!
  621. string facename = "宋体"
  622. string text = "1"
  623. end type
  624. event clicked;string ls_temp
  625. ls_temp = this.text
  626. sle_1.replacetext(ls_temp)
  627. sle_1.setfocus()
  628. end event
  629. type cb_11 from commandbutton within w_cmpl_qty_ch
  630. integer x = 261
  631. integer y = 904
  632. integer width = 165
  633. integer height = 104
  634. integer taborder = 160
  635. boolean bringtotop = true
  636. integer textsize = -9
  637. integer weight = 400
  638. fontcharset fontcharset = gb2312charset!
  639. fontpitch fontpitch = variable!
  640. string facename = "宋体"
  641. string text = "2"
  642. end type
  643. event clicked;string ls_temp
  644. ls_temp = this.text
  645. sle_1.replacetext(ls_temp)
  646. sle_1.setfocus()
  647. end event
  648. type cb_13 from commandbutton within w_cmpl_qty_ch
  649. integer x = 41
  650. integer y = 1044
  651. integer width = 165
  652. integer height = 104
  653. integer taborder = 170
  654. boolean bringtotop = true
  655. integer textsize = -9
  656. integer weight = 400
  657. fontcharset fontcharset = gb2312charset!
  658. fontpitch fontpitch = variable!
  659. string facename = "宋体"
  660. string text = "0"
  661. end type
  662. event clicked;string ls_temp
  663. ls_temp = this.text
  664. sle_1.replacetext(ls_temp)
  665. sle_1.setfocus()
  666. end event
  667. type cb_14 from commandbutton within w_cmpl_qty_ch
  668. integer x = 480
  669. integer y = 904
  670. integer width = 165
  671. integer height = 104
  672. integer taborder = 180
  673. boolean bringtotop = true
  674. integer textsize = -9
  675. integer weight = 400
  676. fontcharset fontcharset = gb2312charset!
  677. fontpitch fontpitch = variable!
  678. string facename = "宋体"
  679. string text = "3"
  680. end type
  681. event clicked;string ls_temp
  682. ls_temp = this.text
  683. sle_1.replacetext(ls_temp)
  684. sle_1.setfocus()
  685. end event
  686. type cb_15 from commandbutton within w_cmpl_qty_ch
  687. integer x = 704
  688. integer y = 904
  689. integer width = 165
  690. integer height = 104
  691. integer taborder = 210
  692. boolean bringtotop = true
  693. integer textsize = -9
  694. integer weight = 400
  695. fontcharset fontcharset = gb2312charset!
  696. fontpitch fontpitch = variable!
  697. string facename = "宋体"
  698. string text = "-"
  699. end type
  700. event clicked;string ls_temp
  701. ls_temp = this.text
  702. sle_1.replacetext(ls_temp)
  703. sle_1.setfocus()
  704. end event
  705. type cb_16 from commandbutton within w_cmpl_qty_ch
  706. integer x = 704
  707. integer y = 1044
  708. integer width = 165
  709. integer height = 104
  710. integer taborder = 250
  711. boolean bringtotop = true
  712. integer textsize = -9
  713. integer weight = 400
  714. fontcharset fontcharset = gb2312charset!
  715. fontpitch fontpitch = variable!
  716. string facename = "宋体"
  717. string text = "+"
  718. end type
  719. event clicked;string ls_temp
  720. ls_temp = this.text
  721. sle_1.replacetext(ls_temp)
  722. sle_1.setfocus()
  723. end event
  724. type cb_17 from commandbutton within w_cmpl_qty_ch
  725. integer x = 261
  726. integer y = 1044
  727. integer width = 165
  728. integer height = 104
  729. integer taborder = 220
  730. boolean bringtotop = true
  731. integer textsize = -9
  732. integer weight = 400
  733. fontcharset fontcharset = gb2312charset!
  734. fontpitch fontpitch = variable!
  735. string facename = "宋体"
  736. string text = "."
  737. end type
  738. event clicked;string ls_temp
  739. ls_temp = this.text
  740. sle_1.replacetext(ls_temp)
  741. sle_1.setfocus()
  742. end event
  743. type cb_12 from commandbutton within w_cmpl_qty_ch
  744. integer x = 933
  745. integer y = 1044
  746. integer width = 165
  747. integer height = 104
  748. integer taborder = 30
  749. boolean bringtotop = true
  750. integer textsize = -9
  751. integer weight = 400
  752. fontcharset fontcharset = gb2312charset!
  753. fontpitch fontpitch = variable!
  754. string facename = "宋体"
  755. string text = "="
  756. end type
  757. event clicked;wf_cmp()
  758. cb_1.SetFocus()
  759. end event
  760. type st_1 from statictext within w_cmpl_qty_ch
  761. integer x = 1134
  762. integer y = 856
  763. integer width = 206
  764. integer height = 64
  765. boolean bringtotop = true
  766. integer textsize = -9
  767. integer weight = 400
  768. fontcharset fontcharset = gb2312charset!
  769. fontpitch fontpitch = variable!
  770. string facename = "宋体"
  771. long textcolor = 33554432
  772. long backcolor = 134217738
  773. string text = "结 果:"
  774. alignment alignment = right!
  775. boolean focusrectangle = false
  776. end type
  777. type cb_18 from commandbutton within w_cmpl_qty_ch
  778. integer x = 933
  779. integer y = 768
  780. integer width = 165
  781. integer height = 104
  782. integer taborder = 260
  783. boolean bringtotop = true
  784. integer textsize = -9
  785. integer weight = 400
  786. fontcharset fontcharset = gb2312charset!
  787. fontpitch fontpitch = variable!
  788. string facename = "宋体"
  789. string text = "("
  790. end type
  791. event clicked;string ls_temp
  792. ls_temp = this.text
  793. sle_1.replacetext(ls_temp)
  794. sle_1.setfocus()
  795. end event
  796. type cb_19 from commandbutton within w_cmpl_qty_ch
  797. integer x = 933
  798. integer y = 904
  799. integer width = 165
  800. integer height = 104
  801. integer taborder = 290
  802. boolean bringtotop = true
  803. integer textsize = -9
  804. integer weight = 400
  805. fontcharset fontcharset = gb2312charset!
  806. fontpitch fontpitch = variable!
  807. string facename = "宋体"
  808. string text = ")"
  809. end type
  810. event clicked;string ls_temp
  811. ls_temp = this.text
  812. sle_1.replacetext(ls_temp)
  813. sle_1.setfocus()
  814. end event
  815. type cb_20 from commandbutton within w_cmpl_qty_ch
  816. integer x = 933
  817. integer y = 628
  818. integer width = 165
  819. integer height = 104
  820. integer taborder = 230
  821. boolean bringtotop = true
  822. integer textsize = -9
  823. integer weight = 400
  824. fontcharset fontcharset = gb2312charset!
  825. fontpitch fontpitch = variable!
  826. string facename = "宋体"
  827. string text = "C"
  828. end type
  829. event clicked;sle_1.text = ''
  830. end event
  831. type cb_21 from commandbutton within w_cmpl_qty_ch
  832. integer x = 480
  833. integer y = 1044
  834. integer width = 165
  835. integer height = 104
  836. integer taborder = 270
  837. boolean bringtotop = true
  838. integer textsize = -9
  839. integer weight = 400
  840. fontcharset fontcharset = gb2312charset!
  841. fontpitch fontpitch = variable!
  842. string facename = "宋体"
  843. string text = "BS"
  844. end type
  845. event clicked;sle_1.text = mid(sle_1.text,1,len(sle_1.text) - 1)
  846. end event
  847. type sle_2 from editmask within w_cmpl_qty_ch
  848. integer x = 1358
  849. integer y = 840
  850. integer width = 421
  851. integer height = 84
  852. integer taborder = 280
  853. boolean bringtotop = true
  854. integer textsize = -9
  855. integer weight = 400
  856. fontcharset fontcharset = gb2312charset!
  857. fontpitch fontpitch = variable!
  858. string facename = "宋体"
  859. long textcolor = 33554432
  860. alignment alignment = right!
  861. boolean displayonly = true
  862. borderstyle borderstyle = stylelowered!
  863. string mask = "#########0.##########"
  864. end type
  865. type rb_1 from radiobutton within w_cmpl_qty_ch
  866. integer x = 1175
  867. integer y = 676
  868. integer width = 155
  869. integer height = 60
  870. boolean bringtotop = true
  871. integer textsize = -9
  872. integer weight = 400
  873. fontcharset fontcharset = gb2312charset!
  874. fontpitch fontpitch = variable!
  875. string facename = "宋体"
  876. long textcolor = 33554432
  877. long backcolor = 134217738
  878. string text = "*"
  879. boolean checked = true
  880. end type
  881. type rb_2 from radiobutton within w_cmpl_qty_ch
  882. integer x = 1175
  883. integer y = 756
  884. integer width = 160
  885. integer height = 56
  886. boolean bringtotop = true
  887. integer textsize = -9
  888. integer weight = 400
  889. fontcharset fontcharset = gb2312charset!
  890. fontpitch fontpitch = variable!
  891. string facename = "宋体"
  892. long textcolor = 33554432
  893. long backcolor = 134217738
  894. string text = "/"
  895. end type
  896. type em_2 from editmask within w_cmpl_qty_ch
  897. integer x = 1358
  898. integer y = 704
  899. integer width = 421
  900. integer height = 84
  901. integer taborder = 300
  902. boolean bringtotop = true
  903. integer textsize = -9
  904. integer weight = 400
  905. fontcharset fontcharset = gb2312charset!
  906. fontpitch fontpitch = variable!
  907. string facename = "宋体"
  908. long textcolor = 33554432
  909. alignment alignment = right!
  910. borderstyle borderstyle = stylelowered!
  911. string mask = "#########0.##########"
  912. end type
  913. event modified;cb_12.SetFocus()
  914. end event
  915. type st_2 from statictext within w_cmpl_qty_ch
  916. integer x = 1175
  917. integer y = 612
  918. integer width = 535
  919. integer height = 60
  920. boolean bringtotop = true
  921. integer textsize = -9
  922. integer weight = 400
  923. fontcharset fontcharset = gb2312charset!
  924. fontpitch fontpitch = variable!
  925. string facename = "宋体"
  926. long textcolor = 255
  927. long backcolor = 134217739
  928. string text = "说明:C-清除,BS-退格"
  929. boolean focusrectangle = false
  930. end type
  931. type cb_22 from commandbutton within w_cmpl_qty_ch
  932. integer x = 41
  933. integer y = 352
  934. integer width = 165
  935. integer height = 104
  936. integer taborder = 120
  937. boolean bringtotop = true
  938. integer textsize = -9
  939. integer weight = 400
  940. fontcharset fontcharset = gb2312charset!
  941. fontpitch fontpitch = variable!
  942. string facename = "宋体"
  943. string text = "辅数"
  944. end type
  945. event clicked;string ls_temp
  946. ls_temp = "[" + this.text + "]"
  947. sle_1.replacetext(ls_temp)
  948. sle_1.setfocus()
  949. end event
  950. type cb_23 from commandbutton within w_cmpl_qty_ch
  951. integer x = 261
  952. integer y = 352
  953. integer width = 165
  954. integer height = 104
  955. integer taborder = 190
  956. boolean bringtotop = true
  957. integer textsize = -9
  958. integer weight = 400
  959. fontcharset fontcharset = gb2312charset!
  960. fontpitch fontpitch = variable!
  961. string facename = "宋体"
  962. string text = "单价"
  963. end type
  964. event clicked;string ls_temp
  965. ls_temp = "[" + this.text + "]"
  966. sle_1.replacetext(ls_temp)
  967. sle_1.setfocus()
  968. end event
  969. type cb_24 from commandbutton within w_cmpl_qty_ch
  970. integer x = 480
  971. integer y = 352
  972. integer width = 165
  973. integer height = 104
  974. integer taborder = 240
  975. boolean bringtotop = true
  976. integer textsize = -9
  977. integer weight = 400
  978. fontcharset fontcharset = gb2312charset!
  979. fontpitch fontpitch = variable!
  980. string facename = "宋体"
  981. string text = "折扣"
  982. end type
  983. event clicked;string ls_temp
  984. ls_temp = "[" + this.text + "]"
  985. sle_1.replacetext(ls_temp)
  986. sle_1.setfocus()
  987. end event
  988. type sle_1 from u_sleedit within w_cmpl_qty_ch
  989. integer x = 41
  990. integer y = 100
  991. integer width = 1755
  992. integer taborder = 20
  993. boolean bringtotop = true
  994. end type
  995. type cb_status from commandbutton within w_cmpl_qty_ch
  996. integer x = 41
  997. integer y = 216
  998. integer width = 165
  999. integer height = 104
  1000. integer taborder = 130
  1001. boolean bringtotop = true
  1002. integer textsize = -9
  1003. integer weight = 400
  1004. fontcharset fontcharset = gb2312charset!
  1005. fontpitch fontpitch = variable!
  1006. string facename = "宋体"
  1007. string text = "配置"
  1008. end type
  1009. event clicked;string ls_temp
  1010. ls_temp = "[" + this.text + "]"
  1011. sle_1.replacetext(ls_temp)
  1012. sle_1.setfocus()
  1013. end event
  1014. type cb_woodcode from commandbutton within w_cmpl_qty_ch
  1015. integer x = 261
  1016. integer y = 216
  1017. integer width = 165
  1018. integer height = 104
  1019. integer taborder = 130
  1020. boolean bringtotop = true
  1021. integer textsize = -9
  1022. integer weight = 400
  1023. fontcharset fontcharset = gb2312charset!
  1024. fontpitch fontpitch = variable!
  1025. string facename = "宋体"
  1026. string text = "配置1"
  1027. end type
  1028. event clicked;string ls_temp
  1029. ls_temp = "[" + this.text + "]"
  1030. sle_1.replacetext(ls_temp)
  1031. sle_1.setfocus()
  1032. end event
  1033. type cb_pcode from commandbutton within w_cmpl_qty_ch
  1034. integer x = 480
  1035. integer y = 216
  1036. integer width = 165
  1037. integer height = 104
  1038. integer taborder = 200
  1039. boolean bringtotop = true
  1040. integer textsize = -9
  1041. integer weight = 400
  1042. fontcharset fontcharset = gb2312charset!
  1043. fontpitch fontpitch = variable!
  1044. string facename = "宋体"
  1045. string text = "配置2"
  1046. end type
  1047. event clicked;string ls_temp
  1048. ls_temp = "[" + this.text + "]"
  1049. sle_1.replacetext(ls_temp)
  1050. sle_1.setfocus()
  1051. end event
  1052. type cb_mtrlsectype from commandbutton within w_cmpl_qty_ch
  1053. integer x = 690
  1054. integer y = 216
  1055. integer width = 302
  1056. integer height = 104
  1057. integer taborder = 130
  1058. boolean bringtotop = true
  1059. integer textsize = -9
  1060. integer weight = 400
  1061. fontcharset fontcharset = gb2312charset!
  1062. fontpitch fontpitch = variable!
  1063. string facename = "宋体"
  1064. string text = "自定义一"
  1065. end type
  1066. event clicked;string ls_temp
  1067. ls_temp = "[" + this.text + "]"
  1068. sle_1.replacetext(ls_temp)
  1069. sle_1.setfocus()
  1070. end event
  1071. type cb_zxmtrlmode from commandbutton within w_cmpl_qty_ch
  1072. integer x = 1029
  1073. integer y = 216
  1074. integer width = 302
  1075. integer height = 104
  1076. integer taborder = 130
  1077. boolean bringtotop = true
  1078. integer textsize = -9
  1079. integer weight = 400
  1080. fontcharset fontcharset = gb2312charset!
  1081. fontpitch fontpitch = variable!
  1082. string facename = "宋体"
  1083. string text = "自定义二"
  1084. end type
  1085. event clicked;string ls_temp
  1086. ls_temp = "[" + this.text + "]"
  1087. sle_1.replacetext(ls_temp)
  1088. sle_1.setfocus()
  1089. end event
  1090. type cb_25 from commandbutton within w_cmpl_qty_ch
  1091. integer x = 41
  1092. integer width = 165
  1093. integer height = 88
  1094. integer taborder = 140
  1095. boolean bringtotop = true
  1096. integer textsize = -9
  1097. integer weight = 400
  1098. fontcharset fontcharset = gb2312charset!
  1099. fontpitch fontpitch = variable!
  1100. string facename = "宋体"
  1101. string text = "选择"
  1102. end type
  1103. event clicked;Open(w_formula_edit)
  1104. String ls_temp
  1105. ls_temp = Message.StringParm
  1106. IF ls_temp <> '' THEN
  1107. sle_1.Text = ls_temp
  1108. END IF
  1109. end event
  1110. type cb_26 from commandbutton within w_cmpl_qty_ch
  1111. integer x = 206
  1112. integer width = 165
  1113. integer height = 88
  1114. integer taborder = 150
  1115. boolean bringtotop = true
  1116. integer textsize = -9
  1117. integer weight = 400
  1118. fontcharset fontcharset = gb2312charset!
  1119. fontpitch fontpitch = variable!
  1120. string facename = "宋体"
  1121. string text = "保存"
  1122. end type
  1123. event clicked;Long ll_newid
  1124. String ls_formula,errmsg
  1125. Long rslt = 1
  1126. ls_formula = Trim(sle_1.Text)
  1127. ll_newid = f_sys_scidentity(0,"u_formula_def","formulaid",errmsg,FALSE,sqlca)
  1128. IF ll_newid <= 0 THEN
  1129. rslt = 0
  1130. GOTO ext
  1131. ELSE
  1132. INSERT INTO u_formula_def
  1133. ( formulaid,
  1134. content )
  1135. VALUES ( :ll_newid,
  1136. :ls_formula ) ;
  1137. IF sqlca.SQLCode <> 0 THEN
  1138. errmsg = '插入公式失败'
  1139. rslt = 0
  1140. GOTO ext
  1141. END IF
  1142. END IF
  1143. ext:
  1144. IF rslt = 0 THEN
  1145. ROLLBACK;
  1146. MessageBox('错误',errmsg,stopsign!,OK!)
  1147. ELSE
  1148. COMMIT;
  1149. MessageBox('提示',"保存成功!", Information!, OK! )
  1150. END IF
  1151. end event
  1152. type cb_27 from commandbutton within w_cmpl_qty_ch
  1153. integer x = 1440
  1154. integer y = 216
  1155. integer width = 329
  1156. integer height = 104
  1157. integer taborder = 140
  1158. boolean bringtotop = true
  1159. integer textsize = -9
  1160. integer weight = 400
  1161. fontcharset fontcharset = gb2312charset!
  1162. fontpitch fontpitch = variable!
  1163. string facename = "宋体"
  1164. string text = "价格表单价"
  1165. end type
  1166. event clicked;string ls_temp
  1167. ls_temp = "[" + this.text + "]"
  1168. sle_1.replacetext(ls_temp)
  1169. sle_1.setfocus()
  1170. end event
  1171. type cb_28 from commandbutton within w_cmpl_qty_ch
  1172. integer x = 690
  1173. integer y = 352
  1174. integer width = 302
  1175. integer height = 104
  1176. integer taborder = 70
  1177. boolean bringtotop = true
  1178. integer textsize = -9
  1179. integer weight = 400
  1180. fontcharset fontcharset = gb2312charset!
  1181. fontpitch fontpitch = variable!
  1182. string facename = "宋体"
  1183. string text = "包装数"
  1184. end type
  1185. event clicked;string ls_temp
  1186. ls_temp = "[" + this.text + "]"
  1187. sle_1.replacetext(ls_temp)
  1188. sle_1.setfocus()
  1189. end event
  1190. type cb_29 from commandbutton within w_cmpl_qty_ch
  1191. integer x = 1029
  1192. integer y = 352
  1193. integer width = 302
  1194. integer height = 104
  1195. integer taborder = 250
  1196. boolean bringtotop = true
  1197. integer textsize = -9
  1198. integer weight = 400
  1199. fontcharset fontcharset = gb2312charset!
  1200. fontpitch fontpitch = variable!
  1201. string facename = "宋体"
  1202. string text = "规格"
  1203. end type
  1204. event clicked;string ls_temp
  1205. ls_temp = "[" + this.text + "]"
  1206. sle_1.replacetext(ls_temp)
  1207. sle_1.setfocus()
  1208. end event
  1209. type cb_mxdscrp from commandbutton within w_cmpl_qty_ch
  1210. integer x = 41
  1211. integer y = 484
  1212. integer width = 274
  1213. integer height = 104
  1214. integer taborder = 210
  1215. boolean bringtotop = true
  1216. integer textsize = -9
  1217. integer weight = 400
  1218. fontcharset fontcharset = gb2312charset!
  1219. fontpitch fontpitch = variable!
  1220. string facename = "宋体"
  1221. string text = "明细备注"
  1222. end type
  1223. event clicked;string ls_temp
  1224. ls_temp = "[" + this.text + "]"
  1225. sle_1.replacetext(ls_temp)
  1226. sle_1.setfocus()
  1227. end event
  1228. type cb_mxdscrp4 from commandbutton within w_cmpl_qty_ch
  1229. integer x = 1029
  1230. integer y = 484
  1231. integer width = 302
  1232. integer height = 104
  1233. integer taborder = 220
  1234. boolean bringtotop = true
  1235. integer textsize = -9
  1236. integer weight = 400
  1237. fontcharset fontcharset = gb2312charset!
  1238. fontpitch fontpitch = variable!
  1239. string facename = "宋体"
  1240. string text = "明细备注4"
  1241. end type
  1242. event clicked;string ls_temp
  1243. ls_temp = "[" + this.text + "]"
  1244. sle_1.replacetext(ls_temp)
  1245. sle_1.setfocus()
  1246. end event
  1247. type cb_mxdscrp3 from commandbutton within w_cmpl_qty_ch
  1248. integer x = 686
  1249. integer y = 484
  1250. integer width = 302
  1251. integer height = 104
  1252. integer taborder = 220
  1253. boolean bringtotop = true
  1254. integer textsize = -9
  1255. integer weight = 400
  1256. fontcharset fontcharset = gb2312charset!
  1257. fontpitch fontpitch = variable!
  1258. string facename = "宋体"
  1259. string text = "明细备注3"
  1260. end type
  1261. event clicked;string ls_temp
  1262. ls_temp = "[" + this.text + "]"
  1263. sle_1.replacetext(ls_temp)
  1264. sle_1.setfocus()
  1265. end event
  1266. type cb_mxdscrp2 from commandbutton within w_cmpl_qty_ch
  1267. integer x = 343
  1268. integer y = 484
  1269. integer width = 302
  1270. integer height = 104
  1271. integer taborder = 220
  1272. boolean bringtotop = true
  1273. integer textsize = -9
  1274. integer weight = 400
  1275. fontcharset fontcharset = gb2312charset!
  1276. fontpitch fontpitch = variable!
  1277. string facename = "宋体"
  1278. string text = "明细备注2"
  1279. end type
  1280. event clicked;string ls_temp
  1281. ls_temp = "[" + this.text + "]"
  1282. sle_1.replacetext(ls_temp)
  1283. sle_1.setfocus()
  1284. end event