w_cuscomm_list_ch.srw 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. $PBExportHeader$w_cuscomm_list_ch.srw
  2. forward
  3. global type w_cuscomm_list_ch from w_publ_choice
  4. end type
  5. type cbx_1 from checkbox within w_cuscomm_list_ch
  6. end type
  7. end forward
  8. global type w_cuscomm_list_ch from w_publ_choice
  9. integer width = 3611
  10. integer height = 1680
  11. string title = "企业通信列表"
  12. cbx_1 cbx_1
  13. end type
  14. global w_cuscomm_list_ch w_cuscomm_list_ch
  15. type variables
  16. Long ins_CusType
  17. s_cuscomm_ljfieb INS_RT_STRU
  18. Transaction tr_eb_sqlca
  19. end variables
  20. on w_cuscomm_list_ch.create
  21. int iCurrent
  22. call super::create
  23. this.cbx_1=create cbx_1
  24. iCurrent=UpperBound(this.Control)
  25. this.Control[iCurrent+1]=this.cbx_1
  26. end on
  27. on w_cuscomm_list_ch.destroy
  28. call super::destroy
  29. destroy(this.cbx_1)
  30. end on
  31. event open;tr_eb_sqlca = sys_email_sqlca // 电子商务连接
  32. This.TriggerEvent('ue_before_open')
  33. wf_movetocenter()
  34. if_ue_sort = True
  35. dw_CH.SetTransObject (tr_eb_sqlca)
  36. ins_CusType = Message.DoubleParm
  37. dw_CH.Retrieve(ins_CusType)
  38. end event
  39. event close;call super::close;CLOSEWITHRETURN(THIS,INS_RT_STRU)
  40. end event
  41. type cb_func from w_publ_choice`cb_func within w_cuscomm_list_ch
  42. end type
  43. type cb_exit from w_publ_choice`cb_exit within w_cuscomm_list_ch
  44. end type
  45. type sle_ch from w_publ_choice`sle_ch within w_cuscomm_list_ch
  46. boolean visible = false
  47. end type
  48. type dw_ch from w_publ_choice`dw_ch within w_cuscomm_list_ch
  49. integer y = 176
  50. integer width = 3589
  51. string dataobject = "dw_CusComm_list_ch"
  52. end type
  53. type st_1 from w_publ_choice`st_1 within w_cuscomm_list_ch
  54. boolean visible = false
  55. end type
  56. type cb_retrieve from w_publ_choice`cb_retrieve within w_cuscomm_list_ch
  57. end type
  58. event cb_retrieve::clicked;dw_CH.Retrieve(ins_CusType)
  59. end event
  60. type cb_choice from w_publ_choice`cb_choice within w_cuscomm_list_ch
  61. end type
  62. event cb_choice::clicked;call super::clicked;Long LS_ROW
  63. LS_ROW = dw_CH.GetRow()
  64. IF LS_ROW <= 0 THEN
  65. MessageBox('系统提示','请先选择目标行!',StopSign!)
  66. RETURN
  67. END IF
  68. INS_RT_STRU.CusCommID = dw_CH.Object.CusCommID[LS_ROW]
  69. INS_RT_STRU.CusCode = dw_CH.Object.CusCode[LS_ROW]
  70. INS_RT_STRU.CusName = dw_CH.Object.CusName[LS_ROW]
  71. INS_RT_STRU.CusType = dw_CH.Object.CusType[LS_ROW]
  72. Close(Parent)
  73. end event
  74. type ln_bar from w_publ_choice`ln_bar within w_cuscomm_list_ch
  75. end type
  76. type ln_bar2 from w_publ_choice`ln_bar2 within w_cuscomm_list_ch
  77. end type
  78. type r_bar from w_publ_choice`r_bar within w_cuscomm_list_ch
  79. end type
  80. type ln_1 from w_publ_choice`ln_1 within w_cuscomm_list_ch
  81. boolean visible = false
  82. end type
  83. type ln_2 from w_publ_choice`ln_2 within w_cuscomm_list_ch
  84. boolean visible = false
  85. end type
  86. type cbx_1 from checkbox within w_cuscomm_list_ch
  87. integer x = 640
  88. integer y = 60
  89. integer width = 457
  90. integer height = 92
  91. boolean bringtotop = true
  92. integer textsize = -9
  93. integer weight = 400
  94. fontcharset fontcharset = gb2312charset!
  95. fontpitch fontpitch = variable!
  96. string facename = "宋体"
  97. long textcolor = 33554432
  98. long backcolor = 67108864
  99. string text = "全部"
  100. end type
  101. event constructor;this.backcolor = 14215660
  102. end event
  103. event clicked;IF This.Checked THEN
  104. dw_CH.Retrieve(-1)
  105. ELSE
  106. dw_CH.Retrieve(ins_CusType)
  107. END IF
  108. end event