w_buytask_jd_index.srw 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. $PBExportHeader$w_buytask_jd_index.srw
  2. forward
  3. global type w_buytask_jd_index from w_publ_base
  4. end type
  5. type dw_1 from u_dw_rbtnfilter within w_buytask_jd_index
  6. end type
  7. type cb_1 from uo_imflatbutton within w_buytask_jd_index
  8. end type
  9. type ln_bar from line within w_buytask_jd_index
  10. end type
  11. type ln_bar2 from line within w_buytask_jd_index
  12. end type
  13. type r_bar from rectangle within w_buytask_jd_index
  14. end type
  15. end forward
  16. global type w_buytask_jd_index from w_publ_base
  17. integer width = 3611
  18. integer height = 2208
  19. string title = "订单进度"
  20. boolean minbox = false
  21. windowtype windowtype = response!
  22. dw_1 dw_1
  23. cb_1 cb_1
  24. ln_bar ln_bar
  25. ln_bar2 ln_bar2
  26. r_bar r_bar
  27. end type
  28. global w_buytask_jd_index w_buytask_jd_index
  29. type variables
  30. string ins_taskcode
  31. uo_ljfieb uo_fieb
  32. end variables
  33. on w_buytask_jd_index.create
  34. int iCurrent
  35. call super::create
  36. this.dw_1=create dw_1
  37. this.cb_1=create cb_1
  38. this.ln_bar=create ln_bar
  39. this.ln_bar2=create ln_bar2
  40. this.r_bar=create r_bar
  41. iCurrent=UpperBound(this.Control)
  42. this.Control[iCurrent+1]=this.dw_1
  43. this.Control[iCurrent+2]=this.cb_1
  44. this.Control[iCurrent+3]=this.ln_bar
  45. this.Control[iCurrent+4]=this.ln_bar2
  46. this.Control[iCurrent+5]=this.r_bar
  47. end on
  48. on w_buytask_jd_index.destroy
  49. call super::destroy
  50. destroy(this.dw_1)
  51. destroy(this.cb_1)
  52. destroy(this.ln_bar)
  53. destroy(this.ln_bar2)
  54. destroy(this.r_bar)
  55. end on
  56. event open;call super::open;dw_1.settransobject(sqlca)
  57. ins_taskcode = message.stringparm
  58. dw_1.retrieve(ins_taskcode)
  59. end event
  60. event ue_before_open;call super::ue_before_open;uo_fieb = create uo_ljfieb
  61. uo_fieb.commit_transaction = sys_email_sqlca
  62. end event
  63. event close;call super::close;destroy uo_fieb
  64. end event
  65. event resize;call super::resize;ln_bar.endx = this.width
  66. ln_bar2.endx = this.width
  67. r_bar.width = this.width
  68. end event
  69. type cb_func from w_publ_base`cb_func within w_buytask_jd_index
  70. boolean visible = false
  71. end type
  72. type cb_exit from w_publ_base`cb_exit within w_buytask_jd_index
  73. integer x = 379
  74. integer width = 151
  75. integer height = 164
  76. integer picsize = 16
  77. toolbaralignment pic_align = alignattop!
  78. boolean border = false
  79. end type
  80. type dw_1 from u_dw_rbtnfilter within w_buytask_jd_index
  81. integer x = 5
  82. integer y = 176
  83. integer width = 3575
  84. integer height = 1936
  85. integer taborder = 20
  86. boolean bringtotop = true
  87. string dataobject = "dw_buytask_jd_index"
  88. boolean hscrollbar = true
  89. boolean vscrollbar = true
  90. boolean hsplitscroll = true
  91. end type
  92. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <=0 THEN RETURN
  93. this.selectrow(0,false)
  94. this.selectrow(currentrow,true)
  95. end event
  96. type cb_1 from uo_imflatbutton within w_buytask_jd_index
  97. integer width = 384
  98. integer height = 164
  99. integer taborder = 30
  100. boolean bringtotop = true
  101. string text = "获取最新进度"
  102. string normalpicname = "update.bmp"
  103. integer picsize = 16
  104. toolbaralignment pic_align = alignattop!
  105. boolean border = false
  106. end type
  107. event clicked;call super::clicked;
  108. IF sys_email_sqlca.DBHandle() = 0 THEN
  109. MessageBox('Error','电子商务数据库连接失败,请检查')
  110. RETURN
  111. END IF
  112. String arg_msg
  113. If uo_fieb.update_buytask_jd(ins_taskcode,arg_msg,True) = 0 Then
  114. MessageBox('Erorr',arg_msg)
  115. Return
  116. End If
  117. dw_1.Retrieve(ins_taskcode)
  118. MessageBox('系统提示','获取最新进度成功!')
  119. end event
  120. type ln_bar from line within w_buytask_jd_index
  121. long linecolor = 268435456
  122. integer linethickness = 4
  123. integer beginy = 168
  124. integer endx = 2007
  125. integer endy = 168
  126. end type
  127. type ln_bar2 from line within w_buytask_jd_index
  128. long linecolor = 16777215
  129. integer linethickness = 4
  130. integer beginy = 172
  131. integer endx = 2039
  132. integer endy = 172
  133. end type
  134. type r_bar from rectangle within w_buytask_jd_index
  135. long linecolor = 16777215
  136. integer linethickness = 4
  137. long fillcolor = 1073741824
  138. integer x = 1531
  139. integer width = 146
  140. integer height = 68
  141. end type
  142. event constructor;this.fillcolor = 14215660
  143. this.linecolor = 14215660
  144. this.x = -1
  145. this.y = -1
  146. this.height = ln_bar.beginy - 5
  147. end event