w_buytask_urgemx_aff.srw 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. $PBExportHeader$w_buytask_urgemx_aff.srw
  2. $PBExportComments$分销系统--packet打开模型
  3. forward
  4. global type w_buytask_urgemx_aff from w_publ_base_style
  5. end type
  6. type cb_ok from uo_imflatbutton within w_buytask_urgemx_aff
  7. end type
  8. type st_1 from statictext within w_buytask_urgemx_aff
  9. end type
  10. type mle_summary from multilineedit within w_buytask_urgemx_aff
  11. end type
  12. type st_2 from statictext within w_buytask_urgemx_aff
  13. end type
  14. type cb_1 from uo_imflatbutton within w_buytask_urgemx_aff
  15. end type
  16. type cb_2 from commandbutton within w_buytask_urgemx_aff
  17. end type
  18. type cb_3 from commandbutton within w_buytask_urgemx_aff
  19. end type
  20. end forward
  21. global type w_buytask_urgemx_aff from w_publ_base_style
  22. integer width = 2043
  23. integer height = 1400
  24. string title = "批确认"
  25. boolean maxbox = true
  26. boolean resizable = true
  27. long backcolor = 16777215
  28. string icon = "graphics\chain_link_128px.ico"
  29. boolean center = true
  30. cb_ok cb_ok
  31. st_1 st_1
  32. mle_summary mle_summary
  33. st_2 st_2
  34. cb_1 cb_1
  35. cb_2 cb_2
  36. cb_3 cb_3
  37. end type
  38. global w_buytask_urgemx_aff w_buytask_urgemx_aff
  39. type variables
  40. s_edit_index_tran s_tran
  41. Long id_arr[]
  42. end variables
  43. on w_buytask_urgemx_aff.create
  44. int iCurrent
  45. call super::create
  46. this.cb_ok=create cb_ok
  47. this.st_1=create st_1
  48. this.mle_summary=create mle_summary
  49. this.st_2=create st_2
  50. this.cb_1=create cb_1
  51. this.cb_2=create cb_2
  52. this.cb_3=create cb_3
  53. iCurrent=UpperBound(this.Control)
  54. this.Control[iCurrent+1]=this.cb_ok
  55. this.Control[iCurrent+2]=this.st_1
  56. this.Control[iCurrent+3]=this.mle_summary
  57. this.Control[iCurrent+4]=this.st_2
  58. this.Control[iCurrent+5]=this.cb_1
  59. this.Control[iCurrent+6]=this.cb_2
  60. this.Control[iCurrent+7]=this.cb_3
  61. end on
  62. on w_buytask_urgemx_aff.destroy
  63. call super::destroy
  64. destroy(this.cb_ok)
  65. destroy(this.st_1)
  66. destroy(this.mle_summary)
  67. destroy(this.st_2)
  68. destroy(this.cb_1)
  69. destroy(this.cb_2)
  70. destroy(this.cb_3)
  71. end on
  72. event open;call super::open;s_tran = Message.PowerObjectParm
  73. id_arr = s_tran.arr_long
  74. end event
  75. event resize;call super::resize;//if (this.Width < 3762) then this.Width = 3762
  76. //if (this.Height < 2292) then this.Height = 2292
  77. //
  78. //mle_summary.Width = this.workspacewidth( ) - mle_summary.X - 14
  79. //mle_postscript.Width = mle_summary.Width
  80. //mle_remark.Width = mle_summary.Width
  81. end event
  82. type cb_func from w_publ_base_style`cb_func within w_buytask_urgemx_aff
  83. boolean visible = false
  84. end type
  85. type cb_exit from w_publ_base_style`cb_exit within w_buytask_urgemx_aff
  86. boolean visible = false
  87. integer x = 549
  88. boolean enabled = false
  89. end type
  90. type ln_bar from w_publ_base_style`ln_bar within w_buytask_urgemx_aff
  91. boolean visible = false
  92. end type
  93. type ln_bar2 from w_publ_base_style`ln_bar2 within w_buytask_urgemx_aff
  94. boolean visible = false
  95. end type
  96. type r_bar from w_publ_base_style`r_bar within w_buytask_urgemx_aff
  97. end type
  98. event r_bar::constructor;//
  99. end event
  100. type cb_ok from uo_imflatbutton within w_buytask_urgemx_aff
  101. boolean visible = false
  102. integer x = 603
  103. integer y = 1100
  104. integer width = 384
  105. integer height = 108
  106. integer taborder = 30
  107. boolean bringtotop = true
  108. boolean enabled = false
  109. string normalpicname = "ok.bmp"
  110. integer picsize = 16
  111. toolbaralignment pic_align = alignattop!
  112. boolean border = false
  113. end type
  114. event clicked;call super::clicked;int rslt = 1
  115. Long i
  116. String ls_dscrp
  117. String arg_msg = '',arg_msg_tmp
  118. ls_dscrp = mle_summary.text
  119. oleobject list,request,response,lo_mx,mxItem
  120. request = FXAppCom.CreatePbDictionary()
  121. request.SetString("token",app_token_fx)
  122. lo_mx = FXAppCom.NewPBArray()
  123. FOR i = 1 To upperbound(id_arr)
  124. mxItem = FXAppCom.CreatePbDictionary()
  125. mxItem.SetInt('id',id_arr[i])
  126. mxItem.SetString('feedback',ls_dscrp)
  127. lo_mx.AddObject(mxItem)
  128. NEXT
  129. request.SetObject("urgemxList", lo_mx)
  130. oleobject lo_rsp
  131. lo_rsp = FXAppCom.DoExecute("UpdateBuytaskmxUrgeFlag", request)
  132. arg_msg_tmp = lo_rsp.GetString("ErrMsg")
  133. If arg_msg_tmp <> "" Then
  134. arg_msg = arg_msg_tmp
  135. rslt = 0
  136. goto ext
  137. END IF
  138. ext:
  139. IF rslt = 0 THEN
  140. messagebox("提示","保存失败"+arg_msg)
  141. return
  142. ELSEIF rslt = 1 THEN
  143. messagebox("提示","保存成功")
  144. END IF
  145. close(parent)
  146. end event
  147. type st_1 from statictext within w_buytask_urgemx_aff
  148. integer x = 64
  149. integer y = 40
  150. integer width = 1056
  151. integer height = 48
  152. boolean bringtotop = true
  153. integer textsize = -9
  154. integer weight = 400
  155. fontcharset fontcharset = gb2312charset!
  156. fontpitch fontpitch = variable!
  157. string facename = "宋体"
  158. long textcolor = 33554432
  159. long backcolor = 16777215
  160. string text = "确定要对选中的催货通知进行批确认操作吗"
  161. boolean focusrectangle = false
  162. end type
  163. type mle_summary from multilineedit within w_buytask_urgemx_aff
  164. integer x = 59
  165. integer y = 180
  166. integer width = 1929
  167. integer height = 900
  168. integer taborder = 30
  169. boolean bringtotop = true
  170. integer textsize = -9
  171. integer weight = 400
  172. fontcharset fontcharset = gb2312charset!
  173. fontpitch fontpitch = variable!
  174. string facename = "宋体"
  175. long textcolor = 33554432
  176. boolean vscrollbar = true
  177. boolean autovscroll = true
  178. end type
  179. type st_2 from statictext within w_buytask_urgemx_aff
  180. integer x = 64
  181. integer y = 108
  182. integer width = 256
  183. integer height = 48
  184. boolean bringtotop = true
  185. integer textsize = -9
  186. integer weight = 400
  187. fontcharset fontcharset = gb2312charset!
  188. fontpitch fontpitch = variable!
  189. string facename = "宋体"
  190. long textcolor = 33554432
  191. long backcolor = 16777215
  192. string text = "反馈信息"
  193. boolean focusrectangle = false
  194. end type
  195. type cb_1 from uo_imflatbutton within w_buytask_urgemx_aff
  196. boolean visible = false
  197. integer x = 1019
  198. integer y = 1100
  199. integer width = 384
  200. integer height = 108
  201. integer taborder = 40
  202. boolean bringtotop = true
  203. boolean enabled = false
  204. string text = "退出"
  205. string normalpicname = "ok.bmp"
  206. integer picsize = 16
  207. toolbaralignment pic_align = alignattop!
  208. boolean border = false
  209. end type
  210. type cb_2 from commandbutton within w_buytask_urgemx_aff
  211. integer x = 603
  212. integer y = 1128
  213. integer width = 384
  214. integer height = 108
  215. integer taborder = 40
  216. boolean bringtotop = true
  217. integer textsize = -9
  218. integer weight = 400
  219. fontcharset fontcharset = gb2312charset!
  220. fontpitch fontpitch = variable!
  221. string facename = "宋体"
  222. string text = "确定"
  223. end type
  224. event clicked;int rslt = 1
  225. Long i
  226. String ls_dscrp
  227. String arg_msg = '',arg_msg_tmp
  228. ls_dscrp = mle_summary.text
  229. oleobject list,request,response,lo_mx,mxItem
  230. request = FXAppCom.CreatePbDictionary()
  231. request.SetString("token",app_token_fx)
  232. lo_mx = FXAppCom.NewPBArray()
  233. FOR i = 1 To upperbound(id_arr)
  234. mxItem = FXAppCom.CreatePbDictionary()
  235. mxItem.SetInt('id',id_arr[i])
  236. mxItem.SetString('feedback',ls_dscrp)
  237. lo_mx.AddObject(mxItem)
  238. NEXT
  239. request.SetObject("urgemxList", lo_mx)
  240. oleobject lo_rsp
  241. lo_rsp = FXAppCom.DoExecute("UpdateBuytaskmxUrgeFlag", request)
  242. arg_msg_tmp = lo_rsp.GetString("ErrMsg")
  243. If arg_msg_tmp <> "" Then
  244. arg_msg = arg_msg_tmp
  245. rslt = 0
  246. goto ext
  247. END IF
  248. ext:
  249. IF rslt = 0 THEN
  250. messagebox("提示","保存失败"+arg_msg)
  251. return
  252. ELSEIF rslt = 1 THEN
  253. messagebox("提示","保存成功")
  254. END IF
  255. close(parent)
  256. end event
  257. type cb_3 from commandbutton within w_buytask_urgemx_aff
  258. integer x = 1019
  259. integer y = 1128
  260. integer width = 384
  261. integer height = 108
  262. integer taborder = 50
  263. boolean bringtotop = true
  264. integer textsize = -9
  265. integer weight = 400
  266. fontcharset fontcharset = gb2312charset!
  267. fontpitch fontpitch = variable!
  268. string facename = "宋体"
  269. string text = "退出"
  270. end type
  271. event clicked;close(parent)
  272. end event