w_hsaccount_ch.srw 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. $PBExportHeader$w_hsaccount_ch.srw
  2. forward
  3. global type w_hsaccount_ch from w_publ_edit_choice
  4. end type
  5. end forward
  6. global type w_hsaccount_ch from w_publ_edit_choice
  7. integer width = 3214
  8. integer height = 2200
  9. string title = "项目设定"
  10. long backcolor = 82700779
  11. event refresh_face ( )
  12. end type
  13. global w_hsaccount_ch w_hsaccount_ch
  14. type variables
  15. s_accounts s_account
  16. end variables
  17. on w_hsaccount_ch.create
  18. call super::create
  19. end on
  20. on w_hsaccount_ch.destroy
  21. call super::destroy
  22. end on
  23. event retrieve_uc;dw_UC.retrieve()
  24. end event
  25. event close;CloseWithReturn(THIS,s_account)
  26. end event
  27. event ue_before_open;call super::ue_before_open;if_ue_filter = TRUE
  28. end event
  29. type cb_func from w_publ_edit_choice`cb_func within w_hsaccount_ch
  30. boolean visible = false
  31. integer y = 804
  32. boolean enabled = false
  33. end type
  34. type cb_exit from w_publ_edit_choice`cb_exit within w_hsaccount_ch
  35. integer x = 165
  36. end type
  37. event cb_exit::clicked;s_account.accountsid = 0
  38. Close (PARENT)
  39. end event
  40. type cb_add from w_publ_edit_choice`cb_add within w_hsaccount_ch
  41. boolean visible = false
  42. integer y = 804
  43. boolean enabled = false
  44. end type
  45. event cb_add::clicked;//Long ll_newid,i
  46. //String errmsg
  47. //IF dw_edit_mode THEN
  48. // dw_uc.AcceptText()
  49. // IF dw_uc.GetNextModified(0, Primary!) = 0 THEN
  50. // MessageBox('提示','没有任何修改,不可以保存!')
  51. // RETURN
  52. // END IF
  53. // dw_uc.Object.hsitemname[dw_uc.GetRow()] = Trim(dw_uc.Object.hsitemname[dw_uc.GetRow()])
  54. // dw_uc.Object.hsitemcode[dw_uc.GetRow()] = Trim(dw_uc.Object.hsitemcode[dw_uc.GetRow()])
  55. //
  56. // IF dw_uc.Object.hsitemcode[dw_uc.GetRow()] = '' THEN
  57. // MessageBox('提示','请输入编号!')
  58. // dw_uc.SetFocus()
  59. // dw_uc.SetColumn('hsitemcode')
  60. // RETURN
  61. // END IF
  62. //
  63. // IF dw_uc.Object.hsitemname[dw_uc.GetRow()] = '' THEN
  64. // MessageBox('提示','请输入项目资料名称!')
  65. // dw_uc.SetFocus()
  66. // dw_uc.SetColumn('hsitemname')
  67. // RETURN
  68. // END IF
  69. // dw_uc.Object.accsetid[dw_uc.GetRow()] = sys_accsetid
  70. //
  71. // IF dw_uc.Object.hsitemid[dw_uc.GetRow()] = 0 THEN
  72. // ll_newid = f_sys_scidentity(sys_accsetid,"cw_hsitem","hsitemid",errmsg,TRUE,id_sqlca)
  73. // IF ll_newid <= 0 THEN
  74. // MessageBox('提示',errmsg)
  75. // RETURN
  76. // ELSE
  77. // dw_uc.Object.hsitemid[dw_uc.GetRow()] = ll_newid
  78. // END IF
  79. // END IF
  80. //END IF
  81. //
  82. //IF dw_edit_mode THEN
  83. // String ls_errmsg
  84. // IF dw_uc.UPDATE() = -1 THEN
  85. // IF Pos(ins_sqlerrtext,"Cannot insert duplicate key row") > 0 THEN
  86. // ls_errmsg = "关键内容重复"
  87. // ELSE
  88. // ls_errmsg = "因为网络或其他原因>"+ins_sqlerrtext
  89. // END IF
  90. // ROLLBACK;
  91. // MessageBox ('提示',ls_errmsg+",保存操作失败!",Exclamation!,OK!)
  92. // LS_UPDATE_FLAG = FALSE
  93. // RETURN
  94. // ELSE
  95. // COMMIT;
  96. // FOR i = 1 TO 5
  97. // dw_uc.SetTabOrder ( i, 0 )
  98. // NEXT
  99. // LS_UPDATE_FLAG = TRUE
  100. // END IF
  101. // ins_sqlerrtext = ""
  102. //ELSE
  103. // Long li_row, li_cur_row
  104. // li_cur_row = dw_uc.GetRow()
  105. // li_row = dw_uc.InsertRow (0)
  106. // FOR i = 1 TO 5
  107. // dw_uc.SetTabOrder ( i, i*10 )
  108. // NEXT
  109. // dw_uc.SelectRow(0,FALSE)
  110. // dw_uc.ScrollToRow (li_row)
  111. // dw_uc.SelectRow(li_row,TRUE)
  112. // dw_uc.SetFocus()
  113. // modifyrow_no = li_row
  114. //END IF
  115. //
  116. //dw_edit_mode = NOT dw_edit_mode
  117. //WF_FACE_CHANGE()
  118. //PARENT.TriggerEvent('refresh_face')
  119. //
  120. //
  121. //
  122. end event
  123. type cb_edit from w_publ_edit_choice`cb_edit within w_hsaccount_ch
  124. boolean visible = false
  125. integer y = 804
  126. boolean enabled = false
  127. end type
  128. event cb_edit::clicked;//Long i
  129. //IF dw_edit_mode THEN
  130. // IF dw_uc.GetItemStatus(dw_uc.GetRow(), 0, Primary!) = NewModified! OR dw_uc.GetItemStatus(dw_uc.GetRow(), 0, Primary!) = New! THEN
  131. // dw_uc.DeleteRow(dw_uc.GetRow())
  132. // ELSE
  133. // dw_uc.ReselectRow(dw_uc.GetRow())
  134. // END IF
  135. // FOR i = 1 TO 5
  136. // dw_uc.SetTabOrder ( i, 0 )
  137. // NEXT
  138. // modifyrow_no = 0
  139. //ELSE
  140. // modifyrow_no = dw_uc.GetRow()
  141. // FOR i = 1 TO 5
  142. // dw_uc.SetTabOrder ( i, i*10 )
  143. // NEXT
  144. // dw_uc.SetFocus()
  145. //
  146. // dw_uc.SelectRow(0,FALSE)
  147. // dw_uc.ScrollToRow (modifyrow_no)
  148. // dw_uc.SelectRow(modifyrow_no,TRUE)
  149. //
  150. //END IF
  151. //
  152. //dw_edit_mode = NOT dw_edit_mode
  153. //WF_FACE_CHANGE()
  154. //PARENT.TriggerEvent('refresh_face')
  155. //
  156. end event
  157. type cb_delet from w_publ_edit_choice`cb_delet within w_hsaccount_ch
  158. boolean visible = false
  159. integer y = 804
  160. boolean enabled = false
  161. end type
  162. event cb_delet::clicked;//IF MessageBox (publ_operator,"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
  163. //RETURN
  164. //END IF
  165. //
  166. //long LS_id
  167. //LONG LS_LONG=0
  168. //string ls_code,arg_msg
  169. //IF DW_UC.GETROW()<=0 THEN
  170. // MESSAGEBOX(publ_operator,'没有操作目标记录!')
  171. // RETURN
  172. //END IF
  173. //LS_id=DW_UC.OBJECT.hsitemid[DW_UC.GETROW()]
  174. //select COUNT(*) into :LS_LONG from cw_credencemx
  175. // where cw_credencemx.itemid=:LS_id
  176. // and cw_credencemx.accsetid=:sys_accsetid;
  177. //if SQLCA.SQLCode<>0 then
  178. // MessageBox (publ_operator,"数据查询操作失败!(请重试!)",Exclamation!,OK!)
  179. // return
  180. //end if
  181. //IF LS_LONG>0 THEN
  182. // MessageBox (publ_operator,"该资料已经使用于凭证,不可以删除!",Exclamation!,OK!)
  183. // RETURN
  184. //END IF
  185. //
  186. //LS_LONG=0
  187. //select COUNT(*) into :LS_LONG from cw_inititembala
  188. // where cw_inititembala.itemid=:LS_id
  189. // and cw_inititembala.accsetid=:sys_accsetid;
  190. //if SQLCA.SQLCode<>0 then
  191. // MessageBox (publ_operator,"数据查询操作失败!(请重试!)",Exclamation!,OK!)
  192. // return
  193. //end if
  194. //IF LS_LONG>0 THEN
  195. // MessageBox (publ_operator,"该资料已经使用于项目初始化数据,不可以删除!",Exclamation!,OK!)
  196. // RETURN
  197. //END IF
  198. //
  199. //dw_uc.SetRedraw (false)
  200. //dw_UC.DeleteRow (0)
  201. //dw_UC.TriggerEvent (rowfocuschanged!)
  202. //
  203. //if dw_UC.Update() = -1 then
  204. // rollback;
  205. // MessageBox (publ_operator,"删除记录操作失败!",Exclamation!,OK!)
  206. //else
  207. // commit;
  208. //end if
  209. //dw_uc.SetRedraw (true)
  210. end event
  211. type cb_choice from w_publ_edit_choice`cb_choice within w_hsaccount_ch
  212. integer x = 0
  213. end type
  214. event cb_choice::clicked;call super::clicked;Long ll_row
  215. dw_uc.AcceptText()
  216. ll_row = dw_uc.GetRow()
  217. IF ll_row <= 0 THEN
  218. MessageBox('提示','请选择项目')
  219. RETURN
  220. END IF
  221. s_account.accountsid = dw_uc.Object.accountsid[ll_row]
  222. s_account.accountsname = dw_uc.Object.accountsname[ll_row]
  223. Close (PARENT)
  224. end event
  225. type dw_uc from w_publ_edit_choice`dw_uc within w_hsaccount_ch
  226. integer y = 184
  227. integer width = 3182
  228. integer height = 1924
  229. string dataobject = "dw_hsaccount_index"
  230. end type
  231. type cb_help from w_publ_edit_choice`cb_help within w_hsaccount_ch
  232. boolean visible = false
  233. integer x = 1243
  234. integer y = 520
  235. boolean enabled = false
  236. end type
  237. type ln_bar from w_publ_edit_choice`ln_bar within w_hsaccount_ch
  238. end type
  239. type ln_bar2 from w_publ_edit_choice`ln_bar2 within w_hsaccount_ch
  240. end type
  241. type r_bar from w_publ_edit_choice`r_bar within w_hsaccount_ch
  242. end type