f_group_count.srf 603 B

12345678910111213141516171819202122232425262728293031323334
  1. $PBExportHeader$f_group_count.srf
  2. global type f_group_count from function_object
  3. end type
  4. forward prototypes
  5. global function string f_group_count (long arg_groupid)
  6. end prototypes
  7. global function string f_group_count (long arg_groupid);string ls_rnt
  8. long ll_group,ll_other
  9. select count(*) into :ll_group from u_rep_groupmx where groupid=:arg_groupid and reltype=2;
  10. select count(*) into :ll_other from u_rep_groupmx where groupid=:arg_groupid and reltype<>2;
  11. ls_rnt="包含分组数" + string(ll_group) + "个;" + "企业数" + string(ll_other) + "个"
  12. return ls_rnt
  13. end function