am_gdaj_cxs.pas
资源名称:挡案管理系统.rar [点击查看]
上传用户:szruida
上传日期:2007-06-01
资源大小:6518k
文件大小:2k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit am_gdaj_cxs;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, XPBarMenu, DB, DBClient, ImgList, ComCtrls, Grids, DBGridEh,
- ExtCtrls, ToolWin;
- type
- Tam_gdaj_cx = class(TForm)
- CoolBar1: TCoolBar;
- ToolBar1: TToolBar;
- Add1: TToolButton;
- xiugai: TToolButton;
- dele1: TToolButton;
- Panel1: TPanel;
- DBGridEh1: TDBGridEh;
- StatusBar1: TStatusBar;
- ImageList1: TImageList;
- DataSource1: TDataSource;
- XPBarMenu1: TXPBarMenu;
- ClientDataSet1: TClientDataSet;
- procedure Add1Click(Sender: TObject);
- procedure dele1Click(Sender: TObject);
- procedure xiugaiClick(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- procedure FormClose(Sender: TObject; var Action: TCloseAction);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- am_gdaj_cx: Tam_gdaj_cx;
- implementation
- uses Am_GdAjCxs, Am_Gdaj_ps, DMs, Am_Gdjs_Ps;
- {$R *.dfm}
- procedure Tam_gdaj_cx.Add1Click(Sender: TObject);
- begin
- am_gdajcx:=TAm_gdajcx.create(application);
- am_gdajcx.showmodal;
- end;
- procedure Tam_gdaj_cx.dele1Click(Sender: TObject);
- begin
- Close;
- end;
- procedure Tam_gdaj_cx.xiugaiClick(Sender: TObject);
- begin
- am_gdjs_P:=Tam_gdjs_P.create(application);
- am_gdjs_P.quickrep1.preview;
- end;
- procedure Tam_gdaj_cx.FormCreate(Sender: TObject);
- begin
- //dm.v_ajgd.active:=true;
- Clientdataset1.Active:=false;
- end;
- procedure Tam_gdaj_cx.FormClose(Sender: TObject; var Action: TCloseAction);
- begin
- action:=cafree;
- am_gdaj_cx:=nil;
- // dm.V_AJGD.Active:=false;
- Clientdataset1.Active:=true;
- end;
- end.