The begin
Inherited;
If qryDetail. IsEmpty then Exit;
If not (qryDetail. State in [dsEdit dsInsert]) then qryDetail. Edit;
If qryDetail. FieldByName (' sStatus) AsString='Y' then
The begin
QryDetail. FieldByName (' sUserID). AsVariant:=null;
QryDetail. FieldByName (' sStatus). AsString:='N';
QryDetail. FieldByName (' sOrderNo). AsVariant:=null;
QryDetail. FieldByName (' sOrderNo1). AsVariant:=null;
The end;
QryDetail. Post;
The end; This is the code of Delphi, please put this code into c #
CodePudding user response:
Using tools Dephi2CSCodePudding user response:
QryDetail with c # component data sets, the judgment, has a corresponding methodCodePudding user response:
This is not difficult, the key is qryDetail matter of data setsCodePudding user response: