f_depart.pas
上传用户:lcqxtx
上传日期:2013-02-15
资源大小:530k
文件大小:1k
- unit f_depart;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, DB, StdCtrls, Mask, DBCtrls, ADODB, ExtCtrls;
- type
- Tw_depart = class(TForm)
- Panel1: TPanel;
- DBNavigator1: TDBNavigator;
- ADOQuery1: TADOQuery;
- ADOQuery1depart_id: TStringField;
- ADOQuery1depart_name: TStringField;
- Label1: TLabel;
- DBEdit1: TDBEdit;
- DataSource1: TDataSource;
- Label2: TLabel;
- Label3: TLabel;
- DBEdit2: TDBEdit;
- procedure FormClose(Sender: TObject; var Action: TCloseAction);
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- w_depart: Tw_depart;
- implementation
- uses f_main;
- {$R *.dfm}
- procedure Tw_depart.FormClose(Sender: TObject; var Action: TCloseAction);
- begin
- w_main.Enabled:=true;
- end;
- procedure Tw_depart.FormCreate(Sender: TObject);
- begin
- w_main.Enabled:=false;
- end;
- end.