w_email_seach_cust_group.srw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. $PBExportHeader$w_email_seach_cust_group.srw
  2. forward
  3. global type w_email_seach_cust_group from w_publ_easyq
  4. end type
  5. type cbx_1 from checkbox within w_email_seach_cust_group
  6. end type
  7. type ddlb_1 from dropdownlistbox within w_email_seach_cust_group
  8. end type
  9. type tv_1 from uo_tv_cusarea within w_email_seach_cust_group
  10. end type
  11. type ddlb_scid from uo_ddlb_scid within w_email_seach_cust_group
  12. end type
  13. type cb_3 from uo_imflatbutton within w_email_seach_cust_group
  14. end type
  15. type cb_4 from uo_imflatbutton within w_email_seach_cust_group
  16. end type
  17. type cb_5 from uo_imflatbutton within w_email_seach_cust_group
  18. end type
  19. end forward
  20. global type w_email_seach_cust_group from w_publ_easyq
  21. integer x = 9
  22. integer y = 12
  23. integer width = 3611
  24. integer height = 2380
  25. string title = "客户筛选"
  26. boolean minbox = false
  27. boolean maxbox = false
  28. boolean resizable = false
  29. windowtype windowtype = response!
  30. cbx_1 cbx_1
  31. ddlb_1 ddlb_1
  32. tv_1 tv_1
  33. ddlb_scid ddlb_scid
  34. cb_3 cb_3
  35. cb_4 cb_4
  36. cb_5 cb_5
  37. end type
  38. global w_email_seach_cust_group w_email_seach_cust_group
  39. type variables
  40. long cur_scid_arr[]
  41. String ls_areaname = ''
  42. datetime end_date_jq
  43. string ls_u_cust_cusareaname
  44. string ls_u_cust_rep_email
  45. string ls_cuscode
  46. string ls_name
  47. string ls_custype
  48. string ls_u_cust_grade
  49. string ls_u_cust_dscrp
  50. string ls_u_cust_rep_repname
  51. string ls_u_cust_rep_sex
  52. string ls_u_cust_rep_deptname
  53. string ls_u_cust_rep_duty
  54. boolean b_Focus=false
  55. s_edit_index_tran ss_tran
  56. end variables
  57. forward prototypes
  58. public subroutine wf_combine (ref datawindow arg_dw)
  59. public function decimal f_getys (long arg_custid, integer arg_scid, datetime arg_star, datetime arg_end)
  60. public function datetime f_month_add (datetime arg_date)
  61. public subroutine wf_face ()
  62. public subroutine wf_filter ()
  63. end prototypes
  64. public subroutine wf_combine (ref datawindow arg_dw);//合并金额
  65. arg_dw.setsort("u_cust_sc_cuscode")
  66. arg_dw.sort()
  67. long cnt,row
  68. cnt=arg_dw.rowcount()
  69. if cnt>1 then
  70. for row=cnt to 2 step -1
  71. if arg_dw.object.u_cust_sc_cuscode[row - 1]=arg_dw.object.u_cust_sc_cuscode[row] then
  72. arg_dw.object.orgn_amt[row - 1]=arg_dw.object.orgn_amt[row - 1]+arg_dw.object.orgn_amt[row]
  73. arg_dw.object.v_musttakebalc_incdec_groupbysc_msttakeamt[row - 1]=arg_dw.object.v_musttakebalc_incdec_groupbysc_msttakeamt[row - 1]+arg_dw.object.v_musttakebalc_incdec_groupbysc_msttakeamt[row]
  74. arg_dw.object.v_musttakebalc_incdec_groupbysc_takeamt[row - 1]=arg_dw.object.v_musttakebalc_incdec_groupbysc_takeamt[row - 1]+arg_dw.object.v_musttakebalc_incdec_groupbysc_takeamt[row]
  75. arg_dw.object.v_musttakebalc_balcamt_groupbysc_balcamt[row - 1]=arg_dw.object.v_musttakebalc_balcamt_groupbysc_balcamt[row - 1]+arg_dw.object.v_musttakebalc_balcamt_groupbysc_balcamt[row]
  76. arg_dw.deleterow(row)
  77. end if
  78. next
  79. end if
  80. end subroutine
  81. public function decimal f_getys (long arg_custid, integer arg_scid, datetime arg_star, datetime arg_end); decimal amt,amt1
  82. SELECT
  83. isnull(sum( U_Bmsttake.msttakeamt - U_Bmsttake.takeamt ) ,0)as '应收'
  84. into :amt
  85. FROM U_Bmsttake left outer join u_accounts on
  86. U_Bmsttake.accountsid = u_accounts.accountsid
  87. left outer join u_itemdef on
  88. U_Bmsttake.itemid = u_itemdef.itemid
  89. left outer join cw_banktype on
  90. U_Bmsttake.banktypeid = cw_banktype.banktypeid,
  91. u_scdef
  92. WHERE ( U_Bmsttake.scid = u_scdef.ScID ) and
  93. ( U_Bmsttake.cusid = :arg_custid) AND
  94. ( U_Bmsttake.takedate >= :arg_star ) AND
  95. ( U_Bmsttake.takedate < :arg_end ) and
  96. ( U_Bmsttake.scid = :arg_scid) ;
  97. //////////////////////////////////////////////////////
  98. SELECT
  99. isnull(sum(U_Bmsttake.takeamt ) ,0)as '应收'
  100. into :amt1
  101. FROM U_Bmsttake left outer join u_accounts on
  102. U_Bmsttake.accountsid = u_accounts.accountsid
  103. left outer join u_itemdef on
  104. U_Bmsttake.itemid = u_itemdef.itemid
  105. left outer join cw_banktype on
  106. U_Bmsttake.banktypeid = cw_banktype.banktypeid,
  107. u_scdef
  108. WHERE ( U_Bmsttake.scid = u_scdef.ScID ) and
  109. ( U_Bmsttake.cusid = :arg_custid) AND
  110. ( U_Bmsttake.takedate >= :arg_star ) AND
  111. ( U_Bmsttake.takedate < :arg_end ) and
  112. (( U_Bmsttake.finishdate >= :end_date_jq ) or U_Bmsttake.finishflag=0) AND
  113. ( U_Bmsttake.scid = :arg_scid) ;
  114. amt=amt + amt1
  115. return amt
  116. // and
  117. // ( U_Bmsttake.finishflag = 0 );
  118. end function
  119. public function datetime f_month_add (datetime arg_date);datetime d_date
  120. date e_date
  121. e_date=date(arg_date)
  122. if long(month(e_date))<>12 then
  123. arg_date= DateTime(date(string(year(e_date)) + '-' +string(long(month(e_date)) + 1) + '-01' ) ,00:00:00)
  124. else
  125. arg_date= DateTime(date(string(long(year(e_date)) + 1) + '-01' + '-01' ) ,00:00:00)
  126. end if
  127. return arg_date
  128. end function
  129. public subroutine wf_face ();//String ls_column_name[] //存放列名
  130. //String ls_column_text[] //存放列标题名称
  131. //Integer i, li_column_count
  132. //TRY
  133. // //得到数据窗口的总列数
  134. // li_column_count = Long(dw_1.Describe("DataWindow.Column.Count"))
  135. // // //循环依次读取
  136. // FOR i = 1 To li_column_count
  137. // ls_column_name[i] = dw_1.Describe("#"+String(i)+".name")
  138. // ls_column_text[i] = dw_1.Describe(ls_column_name[i] + "_t.text")
  139. //
  140. // NEXT
  141. //
  142. // String ls_x,ls_x_t,ls_visible,ls_width
  143. // FOR i = 1 To li_column_count
  144. // ls_x = ls_x + ls_column_name[i] + '_t.x=' + dw_1.Describe(ls_column_name[i] + ".x") + "~t"
  145. // //ls_x= ls_x + ls_column_name[i] + '.x=' + dw_1.Describe(ls_column_name[i] + ".x") + "~t"
  146. // ls_width = ls_width + ls_column_name[i] + '_t.width=' + dw_1.Describe(ls_column_name[i] + ".width") + "~t"
  147. // ls_visible = ls_visible + ls_column_name[i] + '_t.visible=' + dw_1.Describe(ls_column_name[i] + ".visible") + "~t"
  148. // NEXT
  149. //
  150. //
  151. // dw_2.Modify(ls_x)
  152. // dw_2.Modify(ls_width)
  153. // dw_2.Modify(ls_visible)
  154. // dw_2.Object.DataWindow.horizontalScrollPosition = dw_1.Object.DataWindow.horizontalScrollPosition
  155. //Catch(RunTimeError e)
  156. //END TRY
  157. //
  158. //
  159. //
  160. //
  161. end subroutine
  162. public subroutine wf_filter ();String ls_date
  163. //dw_2.AcceptText()
  164. //ls_u_cust_rep_email= "'%" +string(dw_2.object.u_cust_rep_email_t[1])+ "%'"
  165. //ls_cuscode= "'%" +string(dw_2.object.cuscode_t[1])+ "%'"
  166. //ls_name= "'%" +string(dw_2.object.name_t[1])+ "%'"
  167. //ls_custype= "'%" +string(dw_2.object.custype_t[1])+ "%'"
  168. //ls_u_cust_cusareaname= "'%" +string(dw_2.object.u_cust_cusareaname_t[1])+ "%'"
  169. //ls_u_cust_grade= "'%" +string(dw_2.object.u_cust_grade_t[1])+ "%'"
  170. //ls_u_cust_dscrp= "'%" +string(dw_2.object.u_cust_dscrp_t[1])+ "%'"
  171. //ls_u_cust_rep_repname= "'%" +string(dw_2.object.u_cust_rep_repname_t[1])+ "%'"
  172. //ls_u_cust_rep_sex= "'%" +string(dw_2.object.u_cust_rep_sex_t[1])+ "%'"
  173. //ls_u_cust_rep_deptname= "'%" +string(dw_2.object.u_cust_rep_deptname_t[1])+ "%'"
  174. //ls_u_cust_rep_duty= "'%" +string(dw_2.object.u_cust_rep_duty_t[1])+ "%'"
  175. //
  176. ////ls_date = "(u_cust_rep.email like " + ls_u_cust_rep_email + ") and (cuscode like " + ls_cuscode + ")" + " and (name like " + ls_name + ")"
  177. //
  178. ////ls_date = "email like + ' %1 ' + "
  179. ////dw.setfilter(" name = 'lily' ")
  180. ////IF Trim(sle_find.Text) = "" THEN RETURN
  181. //ls_date = "'%" + Trim(sle_find.Text) + "%'"
  182. ////dw_list.SetFilter("subject like '%" + ls_date + "%' " )
  183. //ls_date = "(subject like " + ls_date + ") or (sendman like " + ls_date + ")" + " or (revman like " + ls_date + ")"
  184. //
  185. //
  186. //dw_1.SetFilter( " u_cust_rep.email = 'lily' ")
  187. //dw_1.Filter()
  188. //dw_1.SetFilter("")
  189. end subroutine
  190. on w_email_seach_cust_group.create
  191. int iCurrent
  192. call super::create
  193. this.cbx_1=create cbx_1
  194. this.ddlb_1=create ddlb_1
  195. this.tv_1=create tv_1
  196. this.ddlb_scid=create ddlb_scid
  197. this.cb_3=create cb_3
  198. this.cb_4=create cb_4
  199. this.cb_5=create cb_5
  200. iCurrent=UpperBound(this.Control)
  201. this.Control[iCurrent+1]=this.cbx_1
  202. this.Control[iCurrent+2]=this.ddlb_1
  203. this.Control[iCurrent+3]=this.tv_1
  204. this.Control[iCurrent+4]=this.ddlb_scid
  205. this.Control[iCurrent+5]=this.cb_3
  206. this.Control[iCurrent+6]=this.cb_4
  207. this.Control[iCurrent+7]=this.cb_5
  208. end on
  209. on w_email_seach_cust_group.destroy
  210. call super::destroy
  211. destroy(this.cbx_1)
  212. destroy(this.ddlb_1)
  213. destroy(this.tv_1)
  214. destroy(this.ddlb_scid)
  215. destroy(this.cb_3)
  216. destroy(this.cb_4)
  217. destroy(this.cb_5)
  218. end on
  219. event open;call super::open;ls_areaname = "%%"
  220. cb_1.triggerevent(clicked!)
  221. ss_tran = message.powerobjectparm
  222. end event
  223. event ue_before_open;call super::ue_before_open;if_ue_retr=true
  224. if_ue_filter=true
  225. if_ue_sort=true
  226. if_ue_sentdataout=true
  227. //IF sys_option_takepay_sc = 1 THEN
  228. dw_1.DataObject = "dw_email_seach_cust_group"
  229. ddlb_scid.Enabled = TRUE
  230. //ELSE
  231. // dw_1.DataObject = "dw_rp_musttake_balc_scid_fenyue"
  232. // ddlb_scid.Enabled = FALSE
  233. //END IF
  234. dw_1.settransobject(sqlca)
  235. dw_1.ins_INIfile_name = sys_inifilename
  236. dw_1.ins_opemp = publ_operator
  237. dw_1.cardw_empid = sys_empid
  238. dw_1.cur_DataObject = dw_1.DataObject
  239. dw_1.uf_read_profile_layout()
  240. wf_face()
  241. end event
  242. event resize;call super::resize;tv_1.Height = This.Height - dw_1.Y - 115
  243. end event
  244. type cb_func from w_publ_easyq`cb_func within w_email_seach_cust_group
  245. boolean visible = false
  246. end type
  247. type cb_exit from w_publ_easyq`cb_exit within w_email_seach_cust_group
  248. integer x = 160
  249. end type
  250. type cb_2 from w_publ_easyq`cb_2 within w_email_seach_cust_group
  251. boolean visible = false
  252. boolean bringtotop = true
  253. end type
  254. type cb_psetup from w_publ_easyq`cb_psetup within w_email_seach_cust_group
  255. boolean visible = false
  256. boolean bringtotop = true
  257. end type
  258. type cb_1 from w_publ_easyq`cb_1 within w_email_seach_cust_group
  259. boolean bringtotop = true
  260. end type
  261. event cb_1::clicked;call super::clicked;
  262. dw_1.Retrieve(ls_areaname)
  263. end event
  264. type st_3 from w_publ_easyq`st_3 within w_email_seach_cust_group
  265. boolean visible = false
  266. integer x = 608
  267. integer width = 315
  268. string text = "发生日期从:"
  269. alignment alignment = left!
  270. end type
  271. type st_4 from w_publ_easyq`st_4 within w_email_seach_cust_group
  272. boolean visible = false
  273. integer x = 1449
  274. end type
  275. type em_1 from w_publ_easyq`em_1 within w_email_seach_cust_group
  276. boolean visible = false
  277. integer x = 910
  278. integer width = 430
  279. integer textsize = -10
  280. string mask = "yyyy-mm"
  281. end type
  282. type em_2 from w_publ_easyq`em_2 within w_email_seach_cust_group
  283. boolean visible = false
  284. integer x = 1550
  285. integer width = 430
  286. integer textsize = -10
  287. string mask = "yyyy-mm"
  288. end type
  289. type ddlb_yl from w_publ_easyq`ddlb_yl within w_email_seach_cust_group
  290. boolean visible = false
  291. integer x = 1495
  292. integer y = 40
  293. end type
  294. type cbx_yl from w_publ_easyq`cbx_yl within w_email_seach_cust_group
  295. boolean visible = false
  296. integer x = 1285
  297. integer y = 44
  298. end type
  299. type dw_1 from w_publ_easyq`dw_1 within w_email_seach_cust_group
  300. event dwnlbuttonup pbm_dwnlbuttonup
  301. event mousemove pbm_dwnmousemove
  302. integer x = 855
  303. integer y = 300
  304. integer width = 2546
  305. integer height = 1792
  306. string dataobject = "dw_email_seach_cust_group"
  307. boolean hsplitscroll = false
  308. boolean livescroll = false
  309. end type
  310. event dw_1::mousemove;wf_face()
  311. end event
  312. event dw_1::clicked;IF row > 0 THEN
  313. This.SelectRow(0,False)
  314. This.SetRow(row)
  315. This.SelectRow(row,True)
  316. END IF
  317. b_Focus = False
  318. end event
  319. event dw_1::scrollhorizontal;call super::scrollhorizontal;wf_face()
  320. end event
  321. type sle_mtrl from w_publ_easyq`sle_mtrl within w_email_seach_cust_group
  322. end type
  323. type sle_cust from w_publ_easyq`sle_cust within w_email_seach_cust_group
  324. end type
  325. type st_mtrl from w_publ_easyq`st_mtrl within w_email_seach_cust_group
  326. end type
  327. type st_cust from w_publ_easyq`st_cust within w_email_seach_cust_group
  328. end type
  329. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_email_seach_cust_group
  330. end type
  331. type pb_em1 from w_publ_easyq`pb_em1 within w_email_seach_cust_group
  332. boolean visible = false
  333. integer x = 1344
  334. integer y = 184
  335. end type
  336. type pb_em2 from w_publ_easyq`pb_em2 within w_email_seach_cust_group
  337. boolean visible = false
  338. integer x = 1975
  339. integer y = 188
  340. end type
  341. type pb_2 from w_publ_easyq`pb_2 within w_email_seach_cust_group
  342. boolean visible = false
  343. integer x = 2583
  344. integer y = 60
  345. end type
  346. type cb_help from w_publ_easyq`cb_help within w_email_seach_cust_group
  347. boolean visible = false
  348. end type
  349. type cb_copyself from w_publ_easyq`cb_copyself within w_email_seach_cust_group
  350. boolean visible = false
  351. end type
  352. type gb_1 from w_publ_easyq`gb_1 within w_email_seach_cust_group
  353. end type
  354. type ln_bar from w_publ_easyq`ln_bar within w_email_seach_cust_group
  355. end type
  356. type ln_bar2 from w_publ_easyq`ln_bar2 within w_email_seach_cust_group
  357. end type
  358. type r_bar from w_publ_easyq`r_bar within w_email_seach_cust_group
  359. end type
  360. type ln_1 from w_publ_easyq`ln_1 within w_email_seach_cust_group
  361. end type
  362. type ln_2 from w_publ_easyq`ln_2 within w_email_seach_cust_group
  363. end type
  364. type ln_3 from w_publ_easyq`ln_3 within w_email_seach_cust_group
  365. end type
  366. type ln_4 from w_publ_easyq`ln_4 within w_email_seach_cust_group
  367. end type
  368. type cbx_1 from checkbox within w_email_seach_cust_group
  369. boolean visible = false
  370. integer x = 2409
  371. integer y = 204
  372. integer width = 585
  373. integer height = 76
  374. boolean bringtotop = true
  375. integer textsize = -9
  376. integer weight = 400
  377. fontcharset fontcharset = gb2312charset!
  378. fontpitch fontpitch = variable!
  379. string facename = "宋体"
  380. long textcolor = 16711680
  381. long backcolor = 134217739
  382. string text = "不显示无交易的客户"
  383. boolean checked = true
  384. end type
  385. type ddlb_1 from dropdownlistbox within w_email_seach_cust_group
  386. boolean visible = false
  387. integer x = 9
  388. integer y = 200
  389. integer width = 494
  390. integer height = 300
  391. integer taborder = 20
  392. boolean bringtotop = true
  393. integer textsize = -9
  394. integer weight = 400
  395. fontcharset fontcharset = gb2312charset!
  396. fontpitch fontpitch = variable!
  397. string facename = "宋体"
  398. long textcolor = 33554432
  399. string text = "格式一"
  400. boolean sorted = false
  401. string item[] = {"格式一","格式二"}
  402. borderstyle borderstyle = stylelowered!
  403. end type
  404. event selectionchanged;
  405. //IF THIS.Text = '格式二' THEN
  406. // ddlb_scid.Enabled = FALSE
  407. //ELSE
  408. // ddlb_scid.Enabled = TRUE
  409. //END IF
  410. IF THIS.Text = '格式一' THEN
  411. // IF sys_option_takepay_sc = 1 THEN
  412. dw_1.DataObject = 'dw_rp_musttake_balc_scid'
  413. // ELSE
  414. // dw_1.DataObject = 'dw_rp_musttake_balc'
  415. // END IF
  416. dw_1.ins_INIfile_name = sys_inifilename
  417. dw_1.ins_opemp = publ_operator
  418. dw_1.cardw_empid = sys_empid
  419. dw_1.cur_DataObject = dw_1.DataObject
  420. dw_1.uf_read_profile_layout()
  421. ELSE
  422. dw_1.uf_save_profile_layout()
  423. // IF sys_option_takepay_sc = 1 THEN
  424. dw_1.DataObject = 'dw_rp_musttake_balc_scid_2'
  425. // ELSE
  426. // dw_1.DataObject = 'dw_rp_musttake_balc_2'
  427. // END IF
  428. // dw_1.DataObject = 'dw_rp_musttake_balc_2'
  429. END IF
  430. dw_1.SetTransObject(sqlca)
  431. cb_1.triggerevent(clicked!)
  432. end event
  433. type tv_1 from uo_tv_cusarea within w_email_seach_cust_group
  434. integer y = 304
  435. integer width = 850
  436. integer height = 1520
  437. integer taborder = 60
  438. boolean bringtotop = true
  439. integer textsize = -9
  440. fontcharset fontcharset = gb2312charset!
  441. fontfamily fontfamily = anyfont!
  442. string facename = "宋体"
  443. end type
  444. event selectionchanged;call super::selectionchanged;ls_areaname = THIS.uo_cur_info.areaname
  445. ls_areaname = ls_areaname + '%'
  446. cb_1.TriggerEvent(Clicked!)
  447. end event
  448. type ddlb_scid from uo_ddlb_scid within w_email_seach_cust_group
  449. boolean visible = false
  450. integer x = 32
  451. integer y = 200
  452. integer width = 562
  453. integer height = 424
  454. integer taborder = 20
  455. boolean bringtotop = true
  456. end type
  457. event selectionchanged;call super::selectionchanged;cur_scid_arr = THIS.uo_scid_arr
  458. cb_1.triggerevent(clicked!)
  459. end event
  460. event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
  461. end event
  462. type cb_3 from uo_imflatbutton within w_email_seach_cust_group
  463. integer x = 1339
  464. integer width = 439
  465. integer height = 164
  466. integer taborder = 40
  467. boolean bringtotop = true
  468. string text = "添加客户联系人"
  469. string normalpicname = "caudit.bmp"
  470. integer picsize = 16
  471. toolbaralignment pic_align = alignattop!
  472. boolean border = false
  473. end type
  474. event clicked;call super::clicked;//s_sendmx_parm s_sendmxx
  475. s_rep_group_parm ss_rep_group
  476. Long i,j
  477. dw_1.AcceptText()
  478. DO WHILE i < dw_1.RowCount()
  479. i++
  480. IF dw_1.Object.isselect[i] = 1 THEN
  481. j++
  482. ss_rep_group.s_group[j].reltype = 0
  483. ss_rep_group.s_group[j].relid = dw_1.Object.u_cust_cusid[i]
  484. ss_rep_group.s_group[j].repid = dw_1.Object.u_cust_rep_repid[i]
  485. END IF
  486. LOOP
  487. CloseWithReturn(Parent, ss_rep_group)
  488. end event
  489. type cb_4 from uo_imflatbutton within w_email_seach_cust_group
  490. integer x = 855
  491. integer width = 233
  492. integer height = 164
  493. integer taborder = 50
  494. boolean bringtotop = true
  495. string text = "全选"
  496. string normalpicname = "ok.bmp"
  497. integer picsize = 16
  498. toolbaralignment pic_align = alignattop!
  499. boolean border = false
  500. end type
  501. event clicked;call super::clicked;Integer i
  502. TRY
  503. FOR i = 1 To dw_1.RowCount()
  504. dw_1.Object.isselect[i] = 1
  505. NEXT
  506. Catch(RunTimeError e)
  507. END TRY
  508. end event
  509. type cb_5 from uo_imflatbutton within w_email_seach_cust_group
  510. integer x = 1097
  511. integer width = 233
  512. integer height = 164
  513. integer taborder = 60
  514. boolean bringtotop = true
  515. string text = "全不选"
  516. string normalpicname = "ok.bmp"
  517. integer picsize = 16
  518. toolbaralignment pic_align = alignattop!
  519. boolean border = false
  520. end type
  521. event clicked;call super::clicked;Integer i
  522. TRY
  523. FOR i = 1 To dw_1.RowCount()
  524. dw_1.Object.isselect[i] = 0
  525. NEXT
  526. Catch(RunTimeError e)
  527. END TRY
  528. end event