f_get_dcflag.srf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. $PBExportHeader$f_get_dcflag.srf
  2. global type f_get_dcflag from function_object
  3. end type
  4. forward prototypes
  5. global function integer f_get_dcflag (string arg_subid, ref string arg_msg)
  6. end prototypes
  7. global function integer f_get_dcflag (string arg_subid, ref string arg_msg);//====================================================================
  8. // Subroutine: f_get_dcflag()
  9. //--------------------------------------------------------------------
  10. // Description:查询会计科目余额方向
  11. //--------------------------------------------------------------------
  12. // Arguments:
  13. // string arg_subid
  14. // string arg_msg
  15. //--------------------------------------------------------------------
  16. // Returns: (None)
  17. //--------------------------------------------------------------------
  18. // Author: yyx Date: 2004.11.09
  19. //--------------------------------------------------------------------
  20. // Modify History:
  21. //
  22. //====================================================================
  23. int rslt_dcflag
  24. select dcflag into :rslt_dcflag from cw_subject
  25. where accsetid = :sys_accsetid
  26. and subid =:arg_subid;
  27. if sqlca.sqlcode <> 0 then
  28. arg_msg = '查询会计科目:'+arg_subid+'余额方向失败'
  29. rslt_dcflag = -1
  30. end if
  31. return rslt_dcflag
  32. end function