|
发表于 2007-6-27 10:02:44
|
显示全部楼层
过程参数定义如下:
prm_PersonNo IN VARCHAR2,
prm_ExcuteDate IN DATE,
prm_Salary IN NUMBER,
prm_SIInfo IN VARCHAR2,
prm_PensionBase OUT NUMBER,
prm_MedicBase OUT NUMBER,
prm_UnemployBase OUT NUMBER,
prm_AccidentBase OUT NUMBER,
prm_BearingBase OUT NUMBER,
prm_AppCode OUT NUMBER,
prm_ErrorMsg OUT VARCHAR2
---------------------------------------------------------------------------
程序调用代码(aac001是个人编号字段,verchar2类型;aac040是工资字段,number类型)
StoredProc1.Params.ParamByName('prm_PersonNo').AsString:= datasetbroker1.DataSet.FieldByName('aac001').AsString;
StoredProc1.Params.ParamByName('prm_ExcuteDate').AsDateTime:= SysSrv.SysService.Time;
StoredProc1.Params.ParamByName('prm_Salary').AsFloat:= datasetbroker1.DataSet.FieldByName('aac040').AsFloat;
StoredProc1.Params.ParamByName('prm_SIInfo').AsString:= '00100';:
StoredProc1.Execute;
jfjs := StoredProc1.Params.ParamByName('prm_MedicBase').AsFloat; |
|