w_saletask_fx_cp_edit.srw 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. $PBExportHeader$w_saletask_fx_cp_edit.srw
  2. $PBExportComments$分销系统--packet打开模型
  3. forward
  4. global type w_saletask_fx_cp_edit from w_publ_base_style
  5. end type
  6. type cb_save from uo_imflatbutton within w_saletask_fx_cp_edit
  7. end type
  8. type dw_mx from u_dw_rbtnfilter within w_saletask_fx_cp_edit
  9. end type
  10. end forward
  11. global type w_saletask_fx_cp_edit from w_publ_base_style
  12. integer width = 4046
  13. integer height = 2180
  14. string title = ""
  15. boolean minbox = false
  16. windowtype windowtype = response!
  17. long backcolor = 16777215
  18. string icon = "graphics\chain_link_128px.ico"
  19. boolean center = true
  20. cb_save cb_save
  21. dw_mx dw_mx
  22. end type
  23. global w_saletask_fx_cp_edit w_saletask_fx_cp_edit
  24. type variables
  25. s_edit_index_tran s_tran
  26. Long ins_tid,ins_taskid
  27. end variables
  28. on w_saletask_fx_cp_edit.create
  29. int iCurrent
  30. call super::create
  31. this.cb_save=create cb_save
  32. this.dw_mx=create dw_mx
  33. iCurrent=UpperBound(this.Control)
  34. this.Control[iCurrent+1]=this.cb_save
  35. this.Control[iCurrent+2]=this.dw_mx
  36. end on
  37. on w_saletask_fx_cp_edit.destroy
  38. call super::destroy
  39. destroy(this.cb_save)
  40. destroy(this.dw_mx)
  41. end on
  42. event open;call super::open;s_tran = Message.PowerObjectParm
  43. ins_tid = s_tran.b_long
  44. ins_taskid = s_tran.c_long
  45. s_tran.arg_dw.rowscopy(1,s_tran.arg_dw.rowcount(),primary!,dw_mx,1,primary!)
  46. end event
  47. type cb_func from w_publ_base_style`cb_func within w_saletask_fx_cp_edit
  48. boolean visible = false
  49. end type
  50. type cb_exit from w_publ_base_style`cb_exit within w_saletask_fx_cp_edit
  51. end type
  52. type ln_bar from w_publ_base_style`ln_bar within w_saletask_fx_cp_edit
  53. end type
  54. type ln_bar2 from w_publ_base_style`ln_bar2 within w_saletask_fx_cp_edit
  55. end type
  56. type r_bar from w_publ_base_style`r_bar within w_saletask_fx_cp_edit
  57. end type
  58. type cb_save from uo_imflatbutton within w_saletask_fx_cp_edit
  59. integer width = 151
  60. integer height = 164
  61. integer taborder = 30
  62. boolean bringtotop = true
  63. string text = "保存"
  64. string normalpicname = "ok.bmp"
  65. integer picsize = 16
  66. toolbaralignment pic_align = alignattop!
  67. boolean border = false
  68. end type
  69. event clicked;call super::clicked;dw_mx.accepttext()
  70. Long i
  71. oleobject request,response,Item,ItemMx,mxs
  72. request = FXAppCom.CreatePbDictionary()
  73. request.SetString('token', app_token_fx)
  74. Item = FXAppCom.CreatePbDictionary()
  75. Item.SetInt('tid', ins_tid)
  76. Item.SetInt('taskid', ins_taskid)
  77. for i = 1 to dw_mx.rowcount()
  78. ItemMx = FXAppCom.CreatePbDictionary()
  79. ItemMx.SetInt('taskid', dw_mx.object.taskid[i])
  80. ItemMx.SetInt('printid', dw_mx.object.printid[i])
  81. ItemMx.SetString('mtrlcuscode', dw_mx.object.mtrlcuscode[i])
  82. ItemMx.SetString('mxdscrp', dw_mx.object.mxdscrp[i])
  83. ItemMx.SetString('mxdscrp2', dw_mx.object.mxdscrp2[i])
  84. mxs.Add(ItemMx)
  85. next
  86. request.SetObject('task', Item)
  87. request.SetObject('taskmxList', mxs)
  88. string arg_msg
  89. response = FXAppCom.DoExecute('FxSaletaskEdit', request)
  90. arg_msg = response.GetString('ErrMsg')
  91. if (arg_msg <> '') then
  92. messagebox('提示', '修改失败,' + arg_msg)
  93. RETURN
  94. else
  95. messagebox('提示', '修改成功!')
  96. end if
  97. CLOSE(PARENT)
  98. end event
  99. type dw_mx from u_dw_rbtnfilter within w_saletask_fx_cp_edit
  100. integer y = 192
  101. integer width = 4018
  102. integer height = 1896
  103. integer taborder = 30
  104. boolean bringtotop = true
  105. string dataobject = "dw_fx_saletaskmx_edit"
  106. boolean hscrollbar = true
  107. boolean vscrollbar = true
  108. boolean hsplitscroll = true
  109. boolean rbutton_filter_use = true
  110. boolean rbutton_setposition_use = true
  111. boolean titleclick_sort_use = true
  112. end type
  113. event clicked;call super::clicked;if dw_edit_mode then return
  114. if (row > 0) then
  115. this.SelectRow(0, false)
  116. this.SelectRow(row, true)
  117. end if
  118. end event