end_warn.~pas

来自「该是一个比较好的图书馆系统,是现在大学生软件课程设计的好模板」· ~PAS 代码 · 共 55 行

~PAS
55
字号
unit end_warn;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, DBGrids, DB, ADODB, StdCtrls, Buttons;

type
  Tendwarn = class(TForm)
    GroupBox1: TGroupBox;
    Label1: TLabel;
    DataSource1: TDataSource;
    ADOQuery1: TADOQuery;
    DBGrid1: TDBGrid;
    Label2: TLabel;
    Edit1: TEdit;
    BitBtn1: TBitBtn;
    procedure FormShow(Sender: TObject);
    //procedure Button1Click(Sender: TObject);
    procedure BitBtn1Click(Sender: TObject);
    //procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  endwarn: Tendwarn;
 // uses account_information;

implementation

uses account_information;

{$R *.dfm}

procedure Tendwarn.FormShow(Sender: TObject);
var data_time:string;
begin
 Edit1.Text:=formatdatetime('yyyy/mm/dd', now);
 data_time:=Edit1.Text;
 adoquery1.Close;
 adoquery1.SQL.Clear;
 adoquery1.SQL.Text:='select [User].Name''姓名'',Book.BookName''书名'',Borrow.Borrow_data''借书时间'',Borrow.End_data''到期时间'' from [User],Borrow,Book where Borrow.UserID=[User].StuID and Borrow.BookID=Book.BookID and UserID='''+account_inf.edit1.text+''' and Borrow.End_data<''2008-5-1''';//'select [User].Name''姓名'',Book.BookName''书名'',Borrow.Borrow_data''借书时间'',Borrow.End_data''到期时间'' from [User],Borrow,Book where Borrow.UserID=[User].StuID and Borrow.BookID=Book.BookID and UserID=''05062302'' and Borrow.End_data<''2008-5-1''';
 adoquery1.Open;
end;
procedure Tendwarn.BitBtn1Click(Sender: TObject);
begin
close;
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?