📄 ufmtodaydb.pas
字号:
unit ufmtodaydb;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, QRCtrls, QuickRpt, DB, DBTables, ExtCtrls, QRExport, StdCtrls;
type
Tfmtodaydb = class(TForm)
QuickRep1: TQuickRep;
QRBand3: TQRBand;
QRBand2: TQRBand;
QRShape1: TQRShape;
QRShape2: TQRShape;
QRLabel1: TQRLabel;
QRLabel2: TQRLabel;
QRLabel3: TQRLabel;
QRLabel4: TQRLabel;
QRLabel5: TQRLabel;
QRLabel6: TQRLabel;
QRLabel7: TQRLabel;
QRDBText1: TQRDBText;
QRDBText2: TQRDBText;
QRDBText3: TQRDBText;
QRDBText4: TQRDBText;
QRDBText5: TQRDBText;
QRDBText7: TQRDBText;
QRShape9: TQRShape;
QRShape10: TQRShape;
QRShape11: TQRShape;
QRShape12: TQRShape;
QRShape13: TQRShape;
QRShape14: TQRShape;
QRLabel8: TQRLabel;
QRExpr1: TQRExpr;
QRExpr2: TQRExpr;
QRExpr3: TQRExpr;
QRShape15: TQRShape;
QRShape16: TQRShape;
QRShape18: TQRShape;
QRShape19: TQRShape;
QRBand4: TQRBand;
QRSysData1: TQRSysData;
QRSysData2: TQRSysData;
Query1: TQuery;
TitleBand1: TQRBand;
QRLabel9: TQRLabel;
QRGroup1: TQRGroup;
QRShape3: TQRShape;
QRShape4: TQRShape;
QRShape5: TQRShape;
QRShape6: TQRShape;
QRShape7: TQRShape;
QRShape8: TQRShape;
QRLabel11: TQRLabel;
QRShape17: TQRShape;
QRDBText8: TQRDBText;
QRShape21: TQRShape;
QRShape22: TQRShape;
QRShape23: TQRShape;
QRLabel12: TQRLabel;
QRDBText9: TQRDBText;
QRDBText6: TQRDBText;
QRSysData3: TQRSysData;
Query2: TQuery;
UpdateSQL1: TUpdateSQL;
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
fmtodaydb: Tfmtodaydb;
implementation
uses ufmspotgoodsjc, udm_user;
{$R *.dfm}
procedure Tfmtodaydb.FormActivate(Sender: TObject);
begin
query2.Close;
query2.sql.Clear;
query2.sql.add('select * from operatedb where agroup<>'''+fmuser.strgroup+'''');
query2.open;
if query2.RecordCount>0 then
begin
updatesql1.DatabaseName:=query1.DatabaseName;
updatesql1.DeleteSQL.Clear;
updatesql1.DeleteSQL.Add('delete from operatedb where agroup<>'''+fmuser.strgroup+'''');
updatesql1.ExecSQL(ukDelete);
end;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -