function TDBS.GetRMBChar(Value : Char; Level : Integer) : String;
var
S : String;
begin
case Value of
'0': S := '零';
'1': S := '壹';
'2': S := '贰';
'3': S := '叁';
'4': S := '肆';
'5': S := '伍';
'6': S := '陆';
'7': S := '柒';
'8': S := '捌';
'9': S := '玖';
end;
case Level of
0: S := S + '分';
1: S := S + '角';
2: S := S + '元';
3: S := S + '拾';
4: S := S + '佰';
5: S := S + '仟';
6: S := S + '萬';
7: S := S + '拾';
8: S := S + '佰';
9: S := S + '仟';
10: S := S + '億';
end;
Result := S;
end;
function TDBS.ChangeToRMB(Value : Extended) : String;
var
I : Integer;
S, S1 : String;
begin
S1 := FormatFloat('#.00', Value);
Delete(S1, Pos('.', S1), 1);
S := '';
for I := Length(S1) downto 1 do
S := GetRMBChar(S1, Length(S1) - I) + S;
S := S + '整(RMB:' + FormatFloat('#.00', Value) + ')';
Result := S;
end;