5,388
社区成员
发帖
与我相关
我的任务
分享
try
id:=cxGrid1BandedTableView1.Controller.FocusedColumn.Index;
for i:=0 to cxGrid2DBBandedTableView1.Controller.SelectedRecordCount-1 do begin
if not dmMain.ADOQy.IsEmpty then begin
cxGrid2DBBandedTableView1.DataController.SetValue(cxGrid2DBBandedTableView1.DataController.Controller.SelectedRecords[i].RecordIndex,AItem.Index,AItem.EditValue);
end;
end;
ADOSp_Roster.EnableControls;
cxGrid2DBBandedTableView1.EndUpdate;
FreeAndNil(frm);
except
end;
var
iLoop:Integer;
begin
inherited;
cxGrid2.BeginUpdate;
cxGrid2DBTableView1.BeginUpdate;
for iLoop:=0 to cxGrid2DBTableView1.DataController.GetSelectedCount -1 do
begin
cxGrid2DBTableView1.Controller.FocusedRow:=cxGrid2DBTableView1.Controller.SelectedRows[iLoop];
adoq_JB.Edit;
adoq_JB.FieldByName('JBRQ').AsString:=FormatDateTime('yyyy/mm/dd',DT);
adoq_JB.FieldByName('KSSJ').AsString:=FormatDateTime('hh:mm:ss',DtKSSJ);
adoq_JB.FieldByName('JSSJ').AsString:=FormatDateTime('hh:mm:ss',DtJSSJ);
adoq_JB.FieldByName('JBSS').AsString:=FormatDateTime('hh:mm:ss',FlGZSS);
adoq_JB.FieldByName('JBYY').AsString:=StrJBYY;
adoq_JB.FieldByName('JBDD').AsString:=StrID;
adoq_JB.FieldByName('STATUS').AsString:=StrJBLX;
adoq_JB.Post;
end;
cxGrid2DBTableView1.EndUpdate;
cxGrid2.EndUpdate;