w_email_seach_self_group.srw 17 KB

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