|
procedure TGZHZMXB.Button1Click(Sender: TObject);
var bm,n,y,s2:string;
rs:integer;
jbgz,jbjj,xj,jk,sk,sk1,slouble;
date:TDate;
year,month,d2,d3:integer;
begin
bm := ''; //部门
rs := 0; //人数
jbgz :=0; //基本工资
jbjj :=0; //基本奖金
xj :=0; //小计
jk :=0; //基险个扣
sk :=0; //失扣
sk1 :=0; //税扣
sl :=0; //实领
date:=business.Data.SysSrv.SysService.Time;
month := Business.System.DateUtils.MonthOf(date);
s2 := sysutils.IntToStr(month);
d2 := sysutils.StrToInt(s2);
datasetbroker2.DataSet.First;
while not datasetbroker2.DataSet.Eof do
begin
if(datasetbroker2.DataSet.FieldByName('y').AsFloat = d2) then
begin
y := datasetbroker2.DataSet.FieldByName('y').AsString;
datasetbroker1.DataSet.Insert;
datasetbroker1.DataSet.FieldByName('y').Value := y;
datasetbroker1.DataSet.Post;
end;
datasetbroker2.DataSet.Next;
end;
datasetbroker1.DataSet.ApplyUpdates(false);
datasetbroker1.DataSet.Refresh;
/////////////////////////////////////////////////////
end;
数据集刷新之后 对当前窗体进行刷新 请问如何实现 |
|