w_fx_checkitem_bymtrl.srw 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. $PBExportHeader$w_fx_checkitem_bymtrl.srw
  2. forward
  3. global type w_fx_checkitem_bymtrl from w_publ_easyq
  4. end type
  5. end forward
  6. global type w_fx_checkitem_bymtrl from w_publ_easyq
  7. integer width = 3031
  8. integer height = 2032
  9. string title = "物料质检项目"
  10. windowstate windowstate = normal!
  11. end type
  12. global w_fx_checkitem_bymtrl w_fx_checkitem_bymtrl
  13. type variables
  14. long ins_fxmtrlid,ins_cuscomid
  15. end variables
  16. forward prototypes
  17. public subroutine wf_refresh ()
  18. end prototypes
  19. public subroutine wf_refresh ();string arg_msg
  20. oleobject request,response,fx_mtrl,item
  21. request = FXAppCom.CreatePbDictionary()
  22. request.SetString('token', app_token_fx)
  23. request.SetInt('fxmtrlid', ins_fxmtrlid)
  24. request.SetInt('cuscomid', ins_cuscomid)
  25. response = FXAppCom.DoExecute('GetFxCheckItemByMtrl', request)
  26. arg_msg = response.GetString('ErrMsg')
  27. if (arg_msg <> '') then
  28. messagebox('提示', '获取物料质检项目失败,原因:' + arg_msg)
  29. return
  30. end if
  31. fx_mtrl = response.GetArrOfPBDictionary('FxCheckItem')
  32. IF isnull(fx_mtrl) THEN
  33. RETURN
  34. END IF
  35. IF fx_mtrl.Count <= 0 THEN
  36. RETURN
  37. END IF
  38. dw_1.Reset()
  39. dw_1.SetRedraw(false)
  40. long i,row
  41. for i = 1 to fx_mtrl.Count
  42. item = fx_mtrl.GetItem(i - 1)
  43. row = dw_1.InsertRow(0)
  44. dw_1.Object.comid[row] = item.GetInt('comid')
  45. dw_1.Object.itemid_erp[row] = item.GetInt('itemid_erp')
  46. dw_1.Object.itemcode[row] = item.GetString('itemcode')
  47. dw_1.Object.itemname[row] = item.GetString('itemname')
  48. dw_1.Object.standard[row] = item.GetString('standard')
  49. dw_1.Object.environmen[row] = item.GetString('environmen')
  50. dw_1.Object.method[row] = item.GetString('method')
  51. dw_1.Object.basis[row] = item.GetString('basis')
  52. dw_1.Object.equipment[row] = item.GetString('equipment')
  53. dw_1.Object.handtype[row] = item.GetString('handtype')
  54. dw_1.Object.dscrp[row] = item.GetString('dscrp')
  55. dw_1.Object.isuse[row] = item.GetInt('isuse')
  56. next
  57. dw_1.SetRedraw(true)
  58. end subroutine
  59. on w_fx_checkitem_bymtrl.create
  60. call super::create
  61. end on
  62. on w_fx_checkitem_bymtrl.destroy
  63. call super::destroy
  64. end on
  65. event open;call super::open;s_edit_index_tran s_tran
  66. s_tran = Message.PowerObjectParm
  67. IF NOT IsNull(s_tran.d_string ) THEN
  68. THIS.Title = s_tran.d_string
  69. END IF
  70. ins_fxmtrlid = s_tran.d_long
  71. ins_cuscomid = s_tran.e_long
  72. wf_refresh()
  73. end event
  74. type cb_func from w_publ_easyq`cb_func within w_fx_checkitem_bymtrl
  75. boolean visible = false
  76. end type
  77. type cb_exit from w_publ_easyq`cb_exit within w_fx_checkitem_bymtrl
  78. integer x = 274
  79. integer width = 270
  80. end type
  81. type cb_2 from w_publ_easyq`cb_2 within w_fx_checkitem_bymtrl
  82. boolean visible = false
  83. end type
  84. type cb_psetup from w_publ_easyq`cb_psetup within w_fx_checkitem_bymtrl
  85. boolean visible = false
  86. end type
  87. type cb_1 from w_publ_easyq`cb_1 within w_fx_checkitem_bymtrl
  88. integer width = 270
  89. end type
  90. event cb_1::clicked;call super::clicked;wf_refresh()
  91. end event
  92. type st_3 from w_publ_easyq`st_3 within w_fx_checkitem_bymtrl
  93. boolean visible = false
  94. end type
  95. type st_4 from w_publ_easyq`st_4 within w_fx_checkitem_bymtrl
  96. boolean visible = false
  97. end type
  98. type em_1 from w_publ_easyq`em_1 within w_fx_checkitem_bymtrl
  99. boolean visible = false
  100. end type
  101. type em_2 from w_publ_easyq`em_2 within w_fx_checkitem_bymtrl
  102. boolean visible = false
  103. end type
  104. type ddlb_yl from w_publ_easyq`ddlb_yl within w_fx_checkitem_bymtrl
  105. boolean visible = false
  106. end type
  107. type cbx_yl from w_publ_easyq`cbx_yl within w_fx_checkitem_bymtrl
  108. boolean visible = false
  109. end type
  110. type dw_1 from w_publ_easyq`dw_1 within w_fx_checkitem_bymtrl
  111. integer y = 180
  112. integer width = 2976
  113. integer height = 1732
  114. string dataobject = "dw_fx_checkitem_bymtrl"
  115. end type
  116. type sle_mtrl from w_publ_easyq`sle_mtrl within w_fx_checkitem_bymtrl
  117. end type
  118. type sle_cust from w_publ_easyq`sle_cust within w_fx_checkitem_bymtrl
  119. end type
  120. type st_mtrl from w_publ_easyq`st_mtrl within w_fx_checkitem_bymtrl
  121. end type
  122. type st_cust from w_publ_easyq`st_cust within w_fx_checkitem_bymtrl
  123. end type
  124. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_fx_checkitem_bymtrl
  125. end type
  126. type pb_em1 from w_publ_easyq`pb_em1 within w_fx_checkitem_bymtrl
  127. boolean visible = false
  128. end type
  129. type pb_em2 from w_publ_easyq`pb_em2 within w_fx_checkitem_bymtrl
  130. boolean visible = false
  131. end type
  132. type pb_2 from w_publ_easyq`pb_2 within w_fx_checkitem_bymtrl
  133. boolean visible = false
  134. end type
  135. type cb_help from w_publ_easyq`cb_help within w_fx_checkitem_bymtrl
  136. boolean visible = false
  137. end type
  138. type cb_copyself from w_publ_easyq`cb_copyself within w_fx_checkitem_bymtrl
  139. boolean visible = false
  140. end type
  141. type gb_1 from w_publ_easyq`gb_1 within w_fx_checkitem_bymtrl
  142. end type
  143. type ln_bar from w_publ_easyq`ln_bar within w_fx_checkitem_bymtrl
  144. end type
  145. type ln_bar2 from w_publ_easyq`ln_bar2 within w_fx_checkitem_bymtrl
  146. end type
  147. type r_bar from w_publ_easyq`r_bar within w_fx_checkitem_bymtrl
  148. end type
  149. type ln_1 from w_publ_easyq`ln_1 within w_fx_checkitem_bymtrl
  150. boolean visible = false
  151. end type
  152. type ln_2 from w_publ_easyq`ln_2 within w_fx_checkitem_bymtrl
  153. boolean visible = false
  154. end type
  155. type ln_3 from w_publ_easyq`ln_3 within w_fx_checkitem_bymtrl
  156. integer beginy = 176
  157. integer endy = 176
  158. end type
  159. type ln_4 from w_publ_easyq`ln_4 within w_fx_checkitem_bymtrl
  160. end type