w_inware_buy_getbar_ch.srw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. $PBExportHeader$w_inware_buy_getbar_ch.srw
  2. forward
  3. global type w_inware_buy_getbar_ch from w_pageretr_ch
  4. end type
  5. type st_2 from statictext within w_inware_buy_getbar_ch
  6. end type
  7. type em_1 from editmask within w_inware_buy_getbar_ch
  8. end type
  9. type cbx_mlselect from checkbox within w_inware_buy_getbar_ch
  10. end type
  11. type cbx_allselect from checkbox within w_inware_buy_getbar_ch
  12. end type
  13. type cbx_ml from checkbox within w_inware_buy_getbar_ch
  14. end type
  15. type cb_ok from uo_imflatbutton within w_inware_buy_getbar_ch
  16. end type
  17. type cb_del from uo_imflatbutton within w_inware_buy_getbar_ch
  18. end type
  19. type dw_choice from datawindow within w_inware_buy_getbar_ch
  20. end type
  21. type st_3 from statictext within w_inware_buy_getbar_ch
  22. end type
  23. type em_2 from editmask within w_inware_buy_getbar_ch
  24. end type
  25. end forward
  26. global type w_inware_buy_getbar_ch from w_pageretr_ch
  27. integer width = 3611
  28. integer height = 2380
  29. string title = "采购收货单"
  30. st_2 st_2
  31. em_1 em_1
  32. cbx_mlselect cbx_mlselect
  33. cbx_allselect cbx_allselect
  34. cbx_ml cbx_ml
  35. cb_ok cb_ok
  36. cb_del cb_del
  37. dw_choice dw_choice
  38. st_3 st_3
  39. em_2 em_2
  40. end type
  41. global w_inware_buy_getbar_ch w_inware_buy_getbar_ch
  42. type variables
  43. s_inware_tbuy_array INS_RT_STRU
  44. boolean if_changeselect=true
  45. int if_mlselect=0
  46. long cur_cusid,cur_storageid,cur_scid
  47. end variables
  48. forward prototypes
  49. public function integer wf_face_change ()
  50. end prototypes
  51. public function integer wf_face_change ();//wf_face_change()
  52. IF cbx_ml.Checked THEN
  53. dw_pageretr.Height = THIS.Height - dw_pageretr.Y - 140
  54. dw_choice.Visible = FALSE
  55. cb_ok.Visible = FALSE
  56. cb_del.Visible = FALSE
  57. ELSE
  58. dw_pageretr.Height = cb_ok.Y - dw_pageretr.Y - 10
  59. dw_choice.Visible = TRUE
  60. cb_ok.Visible = TRUE
  61. cb_del.Visible = TRUE
  62. END IF
  63. RETURN 1
  64. end function
  65. on w_inware_buy_getbar_ch.create
  66. int iCurrent
  67. call super::create
  68. this.st_2=create st_2
  69. this.em_1=create em_1
  70. this.cbx_mlselect=create cbx_mlselect
  71. this.cbx_allselect=create cbx_allselect
  72. this.cbx_ml=create cbx_ml
  73. this.cb_ok=create cb_ok
  74. this.cb_del=create cb_del
  75. this.dw_choice=create dw_choice
  76. this.st_3=create st_3
  77. this.em_2=create em_2
  78. iCurrent=UpperBound(this.Control)
  79. this.Control[iCurrent+1]=this.st_2
  80. this.Control[iCurrent+2]=this.em_1
  81. this.Control[iCurrent+3]=this.cbx_mlselect
  82. this.Control[iCurrent+4]=this.cbx_allselect
  83. this.Control[iCurrent+5]=this.cbx_ml
  84. this.Control[iCurrent+6]=this.cb_ok
  85. this.Control[iCurrent+7]=this.cb_del
  86. this.Control[iCurrent+8]=this.dw_choice
  87. this.Control[iCurrent+9]=this.st_3
  88. this.Control[iCurrent+10]=this.em_2
  89. end on
  90. on w_inware_buy_getbar_ch.destroy
  91. call super::destroy
  92. destroy(this.st_2)
  93. destroy(this.em_1)
  94. destroy(this.cbx_mlselect)
  95. destroy(this.cbx_allselect)
  96. destroy(this.cbx_ml)
  97. destroy(this.cb_ok)
  98. destroy(this.cb_del)
  99. destroy(this.dw_choice)
  100. destroy(this.st_3)
  101. destroy(this.em_2)
  102. end on
  103. event ue_usual_query_filt;call super::ue_usual_query_filt;string obj_expr=''
  104. if trim(sle_usual_query.text)<>'' then
  105. if pos(trim(sle_usual_query.text),'%')=0 then
  106. obj_expr=obj_expr+'( u_inware_inwarecode like "%'+trim(sle_usual_query.text)+'%" )'
  107. else
  108. obj_expr=obj_expr+'( u_inware_inwarecode like "'+trim(sle_usual_query.text)+'" )'
  109. end if
  110. end if
  111. dw_pageretr.setfilter(obj_expr)
  112. dw_pageretr.setredraw(false)
  113. dw_pageretr.filter()
  114. if dw_pageretr.rowcount()>=1 then
  115. dw_pageretr.selectrow(0,false)
  116. dw_pageretr.selectrow(1,true)
  117. end if
  118. dw_pageretr.setredraw(true)
  119. end event
  120. event ue_usual_query_retr;string ls_querystrpart=''
  121. ls_newselect=lower(ori_oldselect)
  122. if trim(sle_usual_query.text)<>'' then
  123. if pos(trim(sle_usual_query.text),'%')=0 then
  124. ls_querystrpart="(u_inware.inwarecode like '%"+trim(sle_usual_query.text)+"%')"
  125. else
  126. ls_querystrpart="(u_inware.inwarecode like '"+trim(sle_usual_query.text)+"')"
  127. end if
  128. if pos(ls_newselect," where ") <> 0 then
  129. ls_newselect=ls_newselect+" and ("+ls_querystrpart+')'
  130. else
  131. ls_newselect=ls_newselect+" where ("+ls_querystrpart+')'
  132. end if
  133. end if
  134. wf_retrieveuc(dw_pageretr,ls_newselect,1)
  135. this.triggerevent('retrieve_pageretr')
  136. end event
  137. event retrieve_pageretr;Boolean cb_firstpage_enabled,cb_nextpage_enabled,cb_retrieveall_enabled
  138. Boolean cb_priorpage_enabled,cb_query_enabled,cb_retrieve_enabled
  139. //cb_firstpage_enabled=cb_firstpage.enabled
  140. cb_nextpage_enabled = cb_nextpage.Enabled
  141. cb_retrieveall_enabled = cb_retrieveall.Enabled
  142. //cb_priorpage_enabled=cb_priorpage.enabled
  143. //cb_firstpage.enabled=false
  144. cb_nextpage.Enabled = FALSE
  145. cb_retrieveall.Enabled = FALSE
  146. //cb_priorpage.enabled=false
  147. SetPointer(HourGlass!)
  148. DateTime first_date,end_date
  149. first_date = DateTime(Date(em_1.Text),Time(0))
  150. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  151. dw_pageretr.Retrieve(cur_scid,first_date,end_date)
  152. SetPointer(Arrow!)
  153. //cb_firstpage.enabled=cb_firstpage_enabled
  154. cb_nextpage.Enabled = cb_nextpage_enabled
  155. cb_retrieveall.Enabled = cb_retrieveall_enabled
  156. //cb_priorpage.enabled=cb_priorpage_enabled
  157. IF cbx_mlselect.Checked AND dw_pageretr.RowCount() > 1 THEN
  158. dw_pageretr.SelectRow(1,FALSE)
  159. END IF
  160. end event
  161. event open;THIS.TriggerEvent('ue_before_open')
  162. wf_movetocenter()
  163. OLD_TITLE = THIS.Title
  164. ///
  165. Date date_s
  166. date_s = RelativeDate(today(),-30)
  167. date ld_date
  168. ld_date=relativedate( relativedate(date(string(today(),'yyyy-mm-01')),32), &
  169. - day ( relativedate( date(string(today(),'yyyy-mm-01')) ,32)))
  170. EM_1.TEXT=string(date_s)
  171. EM_2.Text = string(ld_date)
  172. ///
  173. s_tran = Message.PowerObjectParm
  174. IF NOT IsNull(s_tran) THEN
  175. retrieve_all = s_tran.if_retrieve_all
  176. mode = s_tran.work_mode
  177. arg_pkid = s_tran.arg_pkid
  178. arg_string_code = s_tran.arg_string_code
  179. cur_cusid = s_tran.d_long
  180. cur_storageid = s_tran.c_long
  181. cur_scid = s_tran.b_long
  182. END IF
  183. dw_pageretr.RBUTTON_FILTER_USE = TRUE //右键查询功能开关
  184. dw_pageretr.titleclick_sort_use = TRUE //单击标题排序功能开关
  185. dw_pageretr.SetTransObject (sqlca)
  186. pkcolumndbtname = dw_pageretr.DESCRIBE("#1.dbname") //取第一列为关键字
  187. ori_oldselect = dw_pageretr.DESCRIBE("DataWindow.Table.Select")
  188. ls_newselect = ori_oldselect
  189. ds_curquery = CREATE DATASTORE
  190. ds_curquery.DataObject = 'd_extr_find'
  191. ds_curquery.SetTransObject (sqlca)
  192. wf_editindex_lockf()
  193. sle_usual_query.Text = Trim(arg_string_code)
  194. IF NOT retrieve_all THEN
  195. THIS.TriggerEvent("ue_usual_query_RETR") //修改ls_newselect,retrieve
  196. ELSE
  197. wf_retrieveuc(dw_pageretr,ls_newselect,1)
  198. END IF
  199. IF retrieve_all AND Trim(arg_string_code) <> '' THEN
  200. THIS.TriggerEvent("ue_usual_query_filt")
  201. END IF
  202. s_hide_col s_col_mtrlsectype
  203. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  204. f_hide_col(1308,dw_pageretr,s_col_mtrlsectype)
  205. s_hide_col s_col_zxmtrlmode
  206. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  207. f_hide_col(1309,dw_pageretr,s_col_zxmtrlmode)
  208. end event
  209. event close;call super::close;CLOSEWITHRETURN(THIS,INS_RT_STRU)
  210. //<INS_RT_STRU> 窗体级子定义结构变量,用于返回
  211. end event
  212. type cb_func from w_pageretr_ch`cb_func within w_inware_buy_getbar_ch
  213. end type
  214. type cb_exit from w_pageretr_ch`cb_exit within w_inware_buy_getbar_ch
  215. end type
  216. type sle_usual_query from w_pageretr_ch`sle_usual_query within w_inware_buy_getbar_ch
  217. end type
  218. type cb_retrieveall from w_pageretr_ch`cb_retrieveall within w_inware_buy_getbar_ch
  219. integer x = 1074
  220. end type
  221. type em_pagerowno from w_pageretr_ch`em_pagerowno within w_inware_buy_getbar_ch
  222. integer x = 768
  223. end type
  224. type dw_pageretr from w_pageretr_ch`dw_pageretr within w_inware_buy_getbar_ch
  225. integer width = 3584
  226. integer height = 1260
  227. string dataobject = "dw_inware_buy_getbar_ch"
  228. end type
  229. event dw_pageretr::clicked;if row>0 then
  230. this.setrow(row)
  231. if if_mlselect=1 then
  232. if if_changeselect then
  233. this.selectrow(row,not this.IsSelected(row))
  234. else
  235. if_changeselect=true
  236. end if
  237. else
  238. this.selectrow(0,false)
  239. this.selectrow(row,true)
  240. end if
  241. end if
  242. end event
  243. event dw_pageretr::rowfocuschanged;if if_mlselect=1 then
  244. if currentrow <=0 then return
  245. if keydown(keycontrol!) then
  246. if this.isselected(currentrow) then
  247. this.selectrow(currentrow,false)
  248. if_changeselect=false
  249. else
  250. if_changeselect=true
  251. end if
  252. else
  253. if not this.isselected(currentrow) then
  254. this.selectrow(currentrow,true)
  255. if_changeselect=false
  256. else
  257. if_changeselect=true
  258. end if
  259. end if
  260. else
  261. if dw_edit_mode then return
  262. if currentrow <=0 then return
  263. this.selectrow(0,false)
  264. this.selectrow(currentrow,true)
  265. end if
  266. end event
  267. event dw_pageretr::constructor;call super::constructor;f_title_change(this)
  268. end event
  269. event dw_pageretr::doubleclicked;if cbx_ml.checked then
  270. cb_choice.TRIGGEREVENT(CLICKED!)
  271. else
  272. cb_ok.TRIGGEREVENT(CLICKED!)
  273. end if
  274. end event
  275. type st_1 from w_pageretr_ch`st_1 within w_inware_buy_getbar_ch
  276. end type
  277. type cb_nextpage from w_pageretr_ch`cb_nextpage within w_inware_buy_getbar_ch
  278. integer x = 1221
  279. end type
  280. type cb_choice from w_pageretr_ch`cb_choice within w_inware_buy_getbar_ch
  281. end type
  282. event cb_choice::clicked;call super::clicked;Long ROW,ls_i,chC = 0
  283. datawindow dw_ch
  284. IF cbx_ml.Checked THEN
  285. dw_ch = dw_pageretr
  286. ELSE
  287. dw_ch = dw_choice
  288. END IF
  289. FOR ls_i = 1 TO dw_ch.RowCount()
  290. IF dw_ch.IsSelected(ls_i) OR NOT cbx_ml.Checked THEN
  291. chC++
  292. INS_RT_STRU.inwareid[chC] = dw_ch.Object.u_inware_inwareid[ls_i]
  293. INS_RT_STRU.inwarecode[chC] = dw_ch.Object.u_inware_inwarecode[ls_i]
  294. INS_RT_STRU.mtrlid[chC] = dw_ch.Object.u_inwaremx_mtrlid[ls_i]
  295. INS_RT_STRU.storageid[chC] = dw_ch.Object.u_inware_storageid[ls_i]
  296. INS_RT_STRU.plancode[chC] = dw_ch.Object.u_inwaremx_plancode[ls_i]
  297. INS_RT_STRU.qty[chC] = dw_ch.Object.u_inwaremx_qty[ls_i]
  298. INS_RT_STRU.price[chC] = dw_ch.Object.u_inwaremx_price[ls_i]
  299. INS_RT_STRU.planprice[chC] = dw_ch.Object.u_inwaremx_planprice[ls_i]
  300. INS_RT_STRU.mtrlcode[chC] = dw_ch.Object.u_mtrldef_mtrlcode[ls_i]
  301. INS_RT_STRU.mtrlname[chC] = dw_ch.Object.u_mtrldef_mtrlname[ls_i]
  302. INS_RT_STRU.mtrltype[chC] = dw_ch.Object.u_mtrldef_mtrltype[ls_i]
  303. INS_RT_STRU.mtrlmode[chC] = dw_ch.Object.u_mtrldef_mtrlmode[ls_i]
  304. INS_RT_STRU.unit[chC] = dw_ch.Object.u_mtrldef_unit[ls_i]
  305. IF IsNull(INS_RT_STRU.qty[chC]) THEN INS_RT_STRU.qty[chC] = 0
  306. INS_RT_STRU.fprice[chC] = dw_ch.Object.u_inwaremx_fprice[ls_i]
  307. INS_RT_STRU.rebate[chC] = dw_ch.Object.u_inwaremx_rebate[ls_i]
  308. INS_RT_STRU.uprice[chC] = dw_ch.Object.u_inwaremx_uprice[ls_i]
  309. INS_RT_STRU.uqty[chC] = dw_ch.Object.u_inwaremx_uqty[ls_i]
  310. INS_RT_STRU.addqty[chC] = dw_ch.Object.u_inwaremx_addqty[ls_i]
  311. INS_RT_STRU.mxunit[chC] = dw_ch.Object.u_inwaremx_unit[ls_i]
  312. INS_RT_STRU.rate[chC] = dw_ch.Object.u_inwaremx_rate[ls_i]
  313. INS_RT_STRU.status[chC] = dw_ch.Object.u_inwaremx_status[ls_i]
  314. INS_RT_STRU.woodcode[chC] = dw_ch.Object.u_inwaremx_woodcode[ls_i]
  315. INS_RT_STRU.pcode[chC] = dw_ch.Object.u_inwaremx_pcode[ls_i]
  316. INS_RT_STRU.mtrlsectype[chC] = dw_ch.Object.u_mtrldef_mtrlsectype[ls_i]
  317. INS_RT_STRU.zxmtrlmode[chC] = dw_ch.Object.u_mtrldef_zxmtrlmode[ls_i]
  318. INS_RT_STRU.sptmtrlname[chC] = dw_ch.Object.u_inwaremx_sptmtrlname[ls_i]
  319. INS_RT_STRU.tax[chC] = dw_ch.Object.u_inwaremx_tax[ls_i]
  320. END IF
  321. NEXT
  322. IF chC = 0 THEN
  323. MessageBox('提示','请至少选择一个目标行!', Information!, OK! )
  324. RETURN
  325. END IF
  326. Close(PARENT)
  327. end event
  328. type cb_refresh from w_pageretr_ch`cb_refresh within w_inware_buy_getbar_ch
  329. end type
  330. type cb_help from w_pageretr_ch`cb_help within w_inware_buy_getbar_ch
  331. end type
  332. type ln_bar from w_pageretr_ch`ln_bar within w_inware_buy_getbar_ch
  333. end type
  334. type ln_bar2 from w_pageretr_ch`ln_bar2 within w_inware_buy_getbar_ch
  335. end type
  336. type r_bar from w_pageretr_ch`r_bar within w_inware_buy_getbar_ch
  337. end type
  338. type ln_1 from w_pageretr_ch`ln_1 within w_inware_buy_getbar_ch
  339. end type
  340. type ln_2 from w_pageretr_ch`ln_2 within w_inware_buy_getbar_ch
  341. end type
  342. type st_2 from statictext within w_inware_buy_getbar_ch
  343. integer x = 741
  344. integer y = 204
  345. integer width = 398
  346. integer height = 48
  347. boolean bringtotop = true
  348. integer textsize = -9
  349. integer weight = 400
  350. fontcharset fontcharset = gb2312charset!
  351. fontpitch fontpitch = variable!
  352. string facename = "宋体"
  353. long textcolor = 33554432
  354. long backcolor = 134217739
  355. string text = "进仓日期从:"
  356. boolean focusrectangle = false
  357. end type
  358. type em_1 from editmask within w_inware_buy_getbar_ch
  359. integer x = 1115
  360. integer y = 180
  361. integer width = 411
  362. integer height = 92
  363. integer taborder = 120
  364. boolean bringtotop = true
  365. integer textsize = -9
  366. integer weight = 400
  367. fontcharset fontcharset = gb2312charset!
  368. fontpitch fontpitch = variable!
  369. string facename = "宋体"
  370. long textcolor = 33554432
  371. string text = "none"
  372. alignment alignment = center!
  373. borderstyle borderstyle = stylelowered!
  374. maskdatatype maskdatatype = datemask!
  375. string mask = "yyyy-mm-dd"
  376. boolean spin = true
  377. end type
  378. type cbx_mlselect from checkbox within w_inware_buy_getbar_ch
  379. integer x = 2496
  380. integer y = 192
  381. integer width = 210
  382. integer height = 60
  383. boolean bringtotop = true
  384. integer textsize = -9
  385. integer weight = 400
  386. fontcharset fontcharset = gb2312charset!
  387. fontpitch fontpitch = variable!
  388. string facename = "宋体"
  389. long textcolor = 33554432
  390. long backcolor = 134217739
  391. string text = "多选 "
  392. end type
  393. event clicked;if this.checked then
  394. if_mlselect=1
  395. else
  396. if_mlselect=0
  397. end if
  398. f_SetProfileString (sys_empid,dw_pageretr.DATAOBJECT, "if_mlselect", string(if_mlselect))
  399. end event
  400. type cbx_allselect from checkbox within w_inware_buy_getbar_ch
  401. integer x = 2720
  402. integer y = 192
  403. integer width = 210
  404. integer height = 60
  405. boolean bringtotop = true
  406. integer textsize = -9
  407. integer weight = 400
  408. fontcharset fontcharset = gb2312charset!
  409. fontpitch fontpitch = variable!
  410. string facename = "宋体"
  411. long textcolor = 33554432
  412. long backcolor = 134217739
  413. string text = "全选"
  414. end type
  415. event clicked;Int li
  416. IF THIS.Checked AND cbx_mlselect.Checked THEN
  417. FOR li = 1 TO dw_pageretr.RowCount()
  418. dw_pageretr.SelectRow(li,TRUE)
  419. NEXT
  420. ELSE
  421. FOR li = 1 TO dw_pageretr.RowCount()
  422. dw_pageretr.SelectRow(li,FALSE)
  423. NEXT
  424. END IF
  425. end event
  426. type cbx_ml from checkbox within w_inware_buy_getbar_ch
  427. integer x = 2126
  428. integer y = 188
  429. integer width = 357
  430. integer height = 60
  431. boolean bringtotop = true
  432. integer textsize = -9
  433. integer weight = 700
  434. fontcharset fontcharset = gb2312charset!
  435. fontpitch fontpitch = variable!
  436. string facename = "宋体"
  437. long textcolor = 16711680
  438. long backcolor = 134217739
  439. string text = "直接多选"
  440. end type
  441. event clicked;wf_face_change()
  442. int use_ml
  443. if this.checked then
  444. use_ml=1
  445. else
  446. use_ml=0
  447. end if
  448. f_SetProfileString (sys_empid,dw_pageretr.DATAOBJECT, "use_ml", string(use_ml))
  449. end event
  450. event constructor;int use_ml
  451. use_ml=integer(f_ProfileString (sys_empid,dw_pageretr.DATAOBJECT, "use_ml", '0'))
  452. if use_ml=0 then
  453. this.checked=false
  454. else
  455. this.checked=true
  456. end if
  457. wf_face_change()
  458. end event
  459. event destructor;int use_ml
  460. if this.checked then
  461. use_ml=1
  462. else
  463. use_ml=0
  464. end if
  465. f_SetProfileString(sys_empid,dw_pageretr.DATAOBJECT, "use_ml", string(use_ml))
  466. end event
  467. type cb_ok from uo_imflatbutton within w_inware_buy_getbar_ch
  468. integer x = 2807
  469. integer y = 1580
  470. integer width = 379
  471. integer taborder = 80
  472. boolean bringtotop = true
  473. string text = "选定[Enter]"
  474. end type
  475. event clicked;call super::clicked;Long ROW,ls_i,chC = 0
  476. ROW = dw_pageretr.GetRow()
  477. IF ROW <= 0 THEN
  478. MessageBox('提示','请先选择目标行!', Information!, OK! )
  479. RETURN
  480. END IF
  481. FOR ls_i = 1 TO dw_pageretr.RowCount()
  482. IF dw_pageretr.IsSelected(ls_i) THEN
  483. IF dw_choice.Find('u_inware_inwareid ='+String(dw_pageretr.Object.u_inware_inwareid[ls_i]) + ' and u_inwaremx_printid = '+String(dw_pageretr.Object.u_inwaremx_printid[ls_i]),1,dw_choice.RowCount()) = 0 THEN
  484. chC++
  485. dw_pageretr.RowsCopy(ls_i, ls_i, Primary!, dw_choice, dw_choice.RowCount() + 1, Primary!)
  486. END IF
  487. END IF
  488. NEXT
  489. end event
  490. type cb_del from uo_imflatbutton within w_inware_buy_getbar_ch
  491. integer x = 3205
  492. integer y = 1580
  493. integer width = 379
  494. integer taborder = 90
  495. boolean bringtotop = true
  496. string text = "删除"
  497. string normalpicname = "delete.bmp"
  498. end type
  499. event clicked;call super::clicked;IF dw_choice.GETROW()=0 THEN
  500. MESSAGEBOX('提示','请选择删除的行对象!', Information!, OK! )
  501. RETURN
  502. END IF
  503. dw_choice.DeleteRow (0)
  504. dw_choice.TriggerEvent (rowfocuschanged!)
  505. end event
  506. type dw_choice from datawindow within w_inware_buy_getbar_ch
  507. integer y = 1692
  508. integer width = 3589
  509. integer height = 604
  510. integer taborder = 150
  511. boolean bringtotop = true
  512. string title = "none"
  513. string dataobject = "dw_inware_buy_getbar_ch"
  514. boolean minbox = true
  515. boolean hscrollbar = true
  516. boolean vscrollbar = true
  517. boolean hsplitscroll = true
  518. boolean livescroll = true
  519. borderstyle borderstyle = stylelowered!
  520. end type
  521. event rowfocuschanged;IF currentrow <=0 THEN RETURN
  522. this.selectrow(0,false)
  523. this.selectrow(currentrow,true)
  524. end event
  525. type st_3 from statictext within w_inware_buy_getbar_ch
  526. integer x = 1595
  527. integer y = 204
  528. integer width = 137
  529. integer height = 48
  530. boolean bringtotop = true
  531. integer textsize = -9
  532. integer weight = 400
  533. fontcharset fontcharset = gb2312charset!
  534. fontpitch fontpitch = variable!
  535. string facename = "宋体"
  536. long textcolor = 33554432
  537. long backcolor = 134217739
  538. string text = "到"
  539. boolean focusrectangle = false
  540. end type
  541. type em_2 from editmask within w_inware_buy_getbar_ch
  542. integer x = 1701
  543. integer y = 180
  544. integer width = 411
  545. integer height = 92
  546. integer taborder = 130
  547. boolean bringtotop = true
  548. integer textsize = -9
  549. integer weight = 400
  550. fontcharset fontcharset = gb2312charset!
  551. fontpitch fontpitch = variable!
  552. string facename = "宋体"
  553. long textcolor = 33554432
  554. string text = "none"
  555. alignment alignment = center!
  556. borderstyle borderstyle = stylelowered!
  557. maskdatatype maskdatatype = datemask!
  558. string mask = "yyyy-mm-dd"
  559. boolean spin = true
  560. end type