w_currency_ch.srw 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. $PBExportHeader$w_currency_ch.srw
  2. forward
  3. global type w_currency_ch from w_publ_edit_choice
  4. end type
  5. end forward
  6. global type w_currency_ch from w_publ_edit_choice
  7. integer width = 1330
  8. integer height = 1620
  9. string title = "币种选择"
  10. long backcolor = 81324524
  11. end type
  12. global w_currency_ch w_currency_ch
  13. type variables
  14. s_currency s_ch
  15. end variables
  16. on w_currency_ch.create
  17. call super::create
  18. end on
  19. on w_currency_ch.destroy
  20. call super::destroy
  21. end on
  22. event retrieve_uc;dw_UC.Retrieve(sys_accsetid)
  23. end event
  24. event close;CloseWithReturn(THIS,s_ch)
  25. end event
  26. event open;call super::open;s_ch.moneyid = 0
  27. end event
  28. type cb_func from w_publ_edit_choice`cb_func within w_currency_ch
  29. integer x = 0
  30. end type
  31. type cb_exit from w_publ_edit_choice`cb_exit within w_currency_ch
  32. integer x = 329
  33. end type
  34. type cb_add from w_publ_edit_choice`cb_add within w_currency_ch
  35. boolean visible = false
  36. integer y = 372
  37. boolean enabled = false
  38. end type
  39. event cb_add::clicked;//Long ll_newid,i
  40. //String errmsg
  41. //IF dw_edit_mode THEN
  42. // dw_uc.AcceptText()
  43. // IF dw_uc.GetNextModified(0, Primary!) = 0 THEN
  44. // MessageBox(publ_operator,'没有任何修改,不可以保存!')
  45. // RETURN
  46. // END IF
  47. // dw_uc.Object.Name[dw_uc.GetRow()] = Trim(dw_uc.Object.Name[dw_uc.GetRow()])
  48. //
  49. // IF dw_uc.Object.Name[dw_uc.GetRow()] = '' THEN
  50. // MessageBox(publ_operator,'请输入币种名称!')
  51. // RETURN
  52. // END IF
  53. // dw_uc.Object.accsetid[dw_uc.GetRow()] = sys_accsetid
  54. //
  55. //
  56. // IF dw_uc.Object.moneyid[dw_uc.GetRow()] = 0 THEN
  57. // ll_newid = f_sys_scidentity(sys_accsetid,"cw_currency","moneyid",errmsg,FALSE)
  58. // IF ll_newid <= 0 THEN
  59. // MessageBox(publ_operator,errmsg)
  60. // RETURN
  61. // ELSE
  62. // dw_uc.Object.moneyid[dw_uc.GetRow()] = ll_newid
  63. // END IF
  64. // END IF
  65. //END IF
  66. //
  67. //IF dw_edit_mode THEN
  68. // String ls_errmsg
  69. // IF dw_uc.Update() = -1 THEN
  70. // IF Pos(ins_sqlerrtext,"Cannot insert duplicate key row") > 0 THEN
  71. // ls_errmsg = "关键内容重复"
  72. // ELSE
  73. // ls_errmsg = "因为网络或其他原因>"+ins_sqlerrtext
  74. // END IF
  75. // ROLLBACK;
  76. // MessageBox (publ_operator,ls_errmsg+",保存操作失败!",Exclamation!,OK!)
  77. // LS_UPDATE_FLAG = FALSE
  78. // RETURN
  79. // ELSE
  80. // COMMIT;
  81. // FOR i = 1 TO 4
  82. // dw_uc.SetTabOrder ( i, 0 )
  83. // NEXT
  84. // LS_UPDATE_FLAG = TRUE
  85. // END IF
  86. // ins_sqlerrtext = ""
  87. //ELSE
  88. // Long li_row, li_cur_row
  89. // li_cur_row = dw_uc.GetRow()
  90. // li_row = dw_uc.InsertRow (0)
  91. // FOR i = 1 TO 4
  92. // dw_uc.SetTabOrder ( i, i*10 )
  93. // NEXT
  94. // dw_uc.SelectRow(0,FALSE)
  95. // dw_uc.ScrollToRow (li_row)
  96. // dw_uc.SelectRow(li_row,TRUE)
  97. // dw_uc.SetFocus()
  98. // modifyrow_no = li_row
  99. //END IF
  100. //
  101. //dw_edit_mode = NOT dw_edit_mode
  102. //WF_FACE_CHANGE()
  103. //
  104. //
  105. end event
  106. type cb_edit from w_publ_edit_choice`cb_edit within w_currency_ch
  107. boolean visible = false
  108. integer y = 372
  109. boolean enabled = false
  110. end type
  111. event cb_edit::clicked;//long i
  112. //IF dw_edit_mode THEN
  113. // if dw_uc.GetItemStatus(dw_UC.getrow(), 0, Primary!)=NewModified! or dw_uc.GetItemStatus(dw_UC.getrow(), 0, Primary!)=New! then
  114. // dw_UC.deleterow(dw_UC.getrow())
  115. // else
  116. // dw_UC.ReselectRow(dw_UC.getrow())
  117. // end if
  118. // for i=1 to 4
  119. // dw_UC.SetTabOrder ( i, 0 )
  120. // next
  121. // modifyrow_no = 0
  122. //ELSE
  123. // if dw_uc.object.native[dw_uc.getrow()]=1 then
  124. // messagebox(publ_operator,'帐套本位币,不能修改')
  125. // return
  126. // end if
  127. // modifyrow_no = dw_UC.getrow()
  128. // for i=1 to 4
  129. // dw_UC.SetTabOrder ( i, i*10 )
  130. // next
  131. // dw_UC.SetFocus()
  132. //
  133. // dw_UC.selectrow(0,false)
  134. // dw_UC.ScrollToRow (modifyrow_no)
  135. // dw_uc.selectrow(modifyrow_no,true)
  136. //
  137. //END IF
  138. //
  139. //dw_edit_mode= NOT dw_edit_mode
  140. //WF_FACE_CHANGE()
  141. end event
  142. type cb_delet from w_publ_edit_choice`cb_delet within w_currency_ch
  143. boolean visible = false
  144. integer y = 372
  145. boolean enabled = false
  146. end type
  147. event cb_delet::clicked;//IF MessageBox (publ_operator,"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
  148. //RETURN
  149. //END IF
  150. //
  151. //
  152. //IF DW_UC.GETROW()<=0 THEN
  153. // MESSAGEBOX(publ_operator,'没有操作目标记录!')
  154. // RETURN
  155. //END IF
  156. //
  157. //if dw_uc.object.native[dw_uc.getrow()]=1 then
  158. // messagebox(publ_operator,'帐套本位币,不能删除')
  159. // return
  160. //end if
  161. //
  162. //long cnt=0,ls_moneyid
  163. //ls_moneyid=dw_uc.object.moneyid[dw_uc.getrow()]
  164. //select count(moneyid) into :cnt from cw_subject
  165. //where accsetid=:sys_accsetid
  166. // and hswb=1
  167. // and moneyid=:ls_moneyid;
  168. //if sqlca.sqlcode<>0 then
  169. // messagebox(publ_operator,'查询外币是否在往来业务中使用失败,不能删除')
  170. // return
  171. //end if
  172. //
  173. //if cnt>0 then
  174. // messagebox(publ_operator,'该外币已经在往来业务中使用,不能删除')
  175. // return
  176. //end if
  177. //
  178. //dw_uc.SetRedraw (false)
  179. //dw_UC.DeleteRow (0)
  180. //dw_UC.TriggerEvent (rowfocuschanged!)
  181. //
  182. //if dw_UC.Update() = -1 then
  183. // rollback;
  184. // MessageBox (publ_operator,"删除记录操作失败!",Exclamation!,OK!)
  185. //else
  186. // commit;
  187. //end if
  188. //dw_uc.SetRedraw (true)
  189. end event
  190. type cb_choice from w_publ_edit_choice`cb_choice within w_currency_ch
  191. integer x = 165
  192. end type
  193. type dw_uc from w_publ_edit_choice`dw_uc within w_currency_ch
  194. integer width = 1307
  195. integer height = 1344
  196. string dataobject = "dw_currency_ch"
  197. end type
  198. event dw_uc::rowfocuschanged;call super::rowfocuschanged;if currentrow>0 then
  199. this.selectrow(0,false)
  200. this.selectrow(currentrow,true)
  201. end if
  202. end event
  203. event dw_uc::doubleclicked;//cb_1.PostEvent(Clicked!)
  204. end event
  205. type ln_bar from w_publ_edit_choice`ln_bar within w_currency_ch
  206. end type
  207. type ln_bar2 from w_publ_edit_choice`ln_bar2 within w_currency_ch
  208. end type
  209. type r_bar from w_publ_edit_choice`r_bar within w_currency_ch
  210. integer x = 695
  211. end type