|
在自动编号中 ,参照 业务系统中 流水号参数组 的代码,
unit FKYWCSZ;
interface
uses
Business.System, Business.Model,CommonUtils;
type
TFKYWCSZ = class(TBizParamGroup)
ParamGDH: TBizParam;
procedure BizParamGroupCreate(Sender: TObject);
private
{private declarations}
public
{public declarations}
end;
implementation
procedure TFKYWCSZ.BizParamGroupCreate(Sender: TObject);
var
lTempStr: string;
begin
Value := TCommonUtils.GetAutoIncreaseID(Self.Context,
TBizParam(Sender).ID, TBizParam(Sender).DisplayName);
{ 可根据需要定制Value的格式 }
lTempStr := TCommonUtils.StrToRightLenStr(Variants.VarToStr(Value), '0', 9);
Value := 'CMRS' + lTempStr;
end;
end.
提示[错误]Biz:\FKYJJGJXT\FKYGJ\FKYWCSZ.ParamGroup.pas(6, 35): 找不到命名空间“CommonUtils”(是否缺少 程序集引用?) |
|