w_fx_binding_apply.srw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. $PBExportHeader$w_fx_binding_apply.srw
  2. $PBExportComments$协同-绑定申请列表
  3. forward
  4. global type w_fx_binding_apply from w_publ_base_style
  5. end type
  6. type dw_1 from u_dw_rbtnfilter within w_fx_binding_apply
  7. end type
  8. type cb_1 from commandbutton within w_fx_binding_apply
  9. end type
  10. type cb_2 from commandbutton within w_fx_binding_apply
  11. end type
  12. end forward
  13. global type w_fx_binding_apply from w_publ_base_style
  14. integer y = 388
  15. integer width = 3376
  16. integer height = 1594
  17. string title = "绑定申请"
  18. boolean minbox = false
  19. windowtype windowtype = response!
  20. long backcolor = 16777215
  21. string icon = "graphics\chain_link_128px.ico"
  22. boolean center = true
  23. dw_1 dw_1
  24. cb_1 cb_1
  25. cb_2 cb_2
  26. end type
  27. global w_fx_binding_apply w_fx_binding_apply
  28. type variables
  29. int ins_rslt = 0 // 0 - 无操作返回 1 - 操作成功返回
  30. end variables
  31. forward prototypes
  32. public subroutine wf_reply_binding_apply (integer arg_flag)
  33. public subroutine wf_retrieve ()
  34. end prototypes
  35. public subroutine wf_reply_binding_apply (integer arg_flag);// arg_flag 0-待处理;1-同意;2-拒绝
  36. Long row
  37. row = dw_1.GetRow()
  38. IF row <= 0 THEN
  39. MessageBox('','未选中需要处理的记录')
  40. RETURN
  41. END IF
  42. String arg_msg
  43. OpenWithParm(w_packet_msg_edit_fx, arg_msg)
  44. s_open_packet s_ret
  45. s_ret = Message.PowerObjectParm
  46. if (s_ret.returnflag = 0) then
  47. MessageBox('提示', '操作取消')
  48. return
  49. end if
  50. String dscrp
  51. dscrp = s_ret.postscript
  52. if IsNull(dscrp) then
  53. dscrp = ''
  54. end if
  55. Long bindingId
  56. bindingId = dw_1.Object.id[row]
  57. arg_msg = ''
  58. oleobject request,response
  59. request = FXAppCom.CreatePbDictionary()
  60. request.SetString('token',app_token_fx)
  61. request.SetInt("bindingId",bindingId)
  62. request.SetInt('flag',arg_flag)
  63. request.SetString('dscrp',dscrp)
  64. response = FXAppCom.DoExecute("ReplyBindingApply",request)
  65. arg_msg = response.GetString('ErrMsg')
  66. if (arg_msg <> '') then
  67. MessageBox('',arg_msg)
  68. ELSE
  69. MessageBox('','操作成功')
  70. wf_retrieve()
  71. end if
  72. end subroutine
  73. public subroutine wf_retrieve ();dw_1.Reset()
  74. String arg_msg
  75. oleobject request,response,bindingApplyList
  76. Long cnt
  77. cnt = 0
  78. request = FXAppCom.CreatePbDictionary()
  79. request.SetString('token',app_token_fx)
  80. response = FXAppCom.DoExecute("GetBindingApplyList",request)
  81. arg_msg = response.GetString('ErrMsg')
  82. if (arg_msg <> '') then
  83. MessageBox('',arg_msg)
  84. RETURN
  85. end if
  86. bindingApplyList = response.GetPBArray("bindingApplyList")
  87. IF IsValid(bindingApplyList) THEN
  88. cnt = bindingApplyList.Count
  89. END IF
  90. IF cnt <= 0 THEN
  91. RETURN
  92. END IF
  93. Long row, i
  94. oleobject item
  95. FOR i = 1 TO cnt
  96. item = bindingApplyList.GetPBDictionary(i - 1)
  97. row = dw_1.InsertRow(0)
  98. dw_1.Object.id[row] = item.GetInt("id")
  99. dw_1.Object.fx_binding_apply_applydscrp[row] = item.GetString("applydscrp")
  100. dw_1.Object.fx_binding_apply_opdate[row] = item.GetDateTime("opdate")
  101. dw_1.Object.fx_binding_apply_opemp[row] = item.GetString("opemp")
  102. dw_1.Object.fx_company_comname[row] = item.GetString("comname")
  103. dw_1.Object.fx_company_simplename[row] = item.GetString("simplename")
  104. dw_1.Object.fx_company_custype[row] = item.GetString("custype")
  105. dw_1.Object.fx_company_tele[row] = item.GetString("tele")
  106. NEXT
  107. end subroutine
  108. on w_fx_binding_apply.create
  109. int iCurrent
  110. call super::create
  111. this.dw_1=create dw_1
  112. this.cb_1=create cb_1
  113. this.cb_2=create cb_2
  114. iCurrent=UpperBound(this.Control)
  115. this.Control[iCurrent+1]=this.dw_1
  116. this.Control[iCurrent+2]=this.cb_1
  117. this.Control[iCurrent+3]=this.cb_2
  118. end on
  119. on w_fx_binding_apply.destroy
  120. call super::destroy
  121. destroy(this.dw_1)
  122. destroy(this.cb_1)
  123. destroy(this.cb_2)
  124. end on
  125. event open;call super::open;wf_retrieve()
  126. end event
  127. event close;call super::close;CloseWithReturn(this, ins_rslt)
  128. end event
  129. event resize;call super::resize;dw_1.Width = this.workspacewidth( )
  130. dw_1.Height = this.workspaceheight( ) - dw_1.Y - 263
  131. cb_1.Y = dw_1.Y + dw_1.Height + 63
  132. cb_2.Y = dw_1.Y + dw_1.Height + 63
  133. cb_exit.Y = dw_1.Y + dw_1.Height + 63
  134. end event
  135. type cb_func from w_publ_base_style`cb_func within w_fx_binding_apply
  136. boolean visible = false
  137. integer x = 1558
  138. integer y = 1421
  139. integer width = 274
  140. string text = "确认发货"
  141. string normalpicname = "ok.bmp"
  142. integer picsize = 16
  143. end type
  144. type cb_exit from w_publ_base_style`cb_exit within w_fx_binding_apply
  145. integer x = 2973
  146. integer y = 1334
  147. integer width = 300
  148. integer height = 99
  149. string normalpicname = ""
  150. integer picsize = 0
  151. end type
  152. type ln_bar from w_publ_base_style`ln_bar within w_fx_binding_apply
  153. integer beginy = 0
  154. integer endy = 0
  155. end type
  156. type ln_bar2 from w_publ_base_style`ln_bar2 within w_fx_binding_apply
  157. integer beginy = 3
  158. integer endy = 3
  159. end type
  160. type r_bar from w_publ_base_style`r_bar within w_fx_binding_apply
  161. end type
  162. type dw_1 from u_dw_rbtnfilter within w_fx_binding_apply
  163. integer width = 3350
  164. integer height = 1267
  165. integer taborder = 20
  166. boolean bringtotop = true
  167. boolean titlebar = true
  168. string title = "申请企业"
  169. string dataobject = "dw_fx_binding_apply"
  170. boolean hscrollbar = true
  171. boolean vscrollbar = true
  172. boolean hsplitscroll = true
  173. boolean rbutton_filter_use = true
  174. boolean rbutton_setposition_use = true
  175. boolean titleclick_sort_use = true
  176. end type
  177. event clicked;call super::clicked;if (row <= 0) then return
  178. this.SelectRow(0, false)
  179. this.SelectRow(row, true)
  180. end event
  181. event itemfocuschanged;call super::itemfocuschanged;if (row > 0) then
  182. this.SelectRow(0, false)
  183. this.SelectRow(row, true)
  184. this.SetRow(row)
  185. string colName
  186. colName = this.GetColumnName()
  187. if (colName = 'outqty' or colName = 'outwarecode') then
  188. this.SelectText(1, Len(this.GetText()))
  189. end if
  190. end if
  191. end event
  192. type cb_1 from commandbutton within w_fx_binding_apply
  193. integer x = 1869
  194. integer y = 1334
  195. integer width = 300
  196. integer height = 99
  197. integer taborder = 20
  198. boolean bringtotop = true
  199. integer textsize = -9
  200. integer weight = 400
  201. fontcharset fontcharset = gb2312charset!
  202. fontpitch fontpitch = variable!
  203. string facename = "宋体"
  204. string text = "拒绝"
  205. end type
  206. event clicked;wf_reply_binding_apply(2)
  207. end event
  208. type cb_2 from commandbutton within w_fx_binding_apply
  209. integer x = 1189
  210. integer y = 1334
  211. integer width = 300
  212. integer height = 99
  213. integer taborder = 20
  214. boolean bringtotop = true
  215. integer textsize = -9
  216. integer weight = 400
  217. fontcharset fontcharset = gb2312charset!
  218. fontpitch fontpitch = variable!
  219. string facename = "宋体"
  220. string text = "同意"
  221. end type
  222. event clicked;wf_reply_binding_apply(1)
  223. end event