am_ajjss.~pas
上传用户:szruida
上传日期:2007-06-01
资源大小:6518k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit am_ajjss;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5.   Dialogs, ComCtrls, ImgList, ToolWin, ExtCtrls, Grids, DBGridEh, DB,
  6.   DBClient, XPBarMenu;
  7. type
  8.   Tam_ajjs = class(TForm)
  9.     CoolBar1: TCoolBar;
  10.     ImageList1: TImageList;
  11.     ToolBar1: TToolBar;
  12.     Add1: TToolButton;
  13.     xiugai: TToolButton;
  14.     dele1: TToolButton;
  15.     Panel1: TPanel;
  16.     DBGridEh1: TDBGridEh;
  17.     ClientDataSet1: TClientDataSet;
  18.     DataSource1: TDataSource;
  19.     StatusBar1: TStatusBar;
  20.     XPBarMenu1: TXPBarMenu;
  21.     procedure dele1Click(Sender: TObject);
  22.     procedure FormClose(Sender: TObject; var Action: TCloseAction);
  23.     procedure Add1Click(Sender: TObject);
  24.     procedure FormShow(Sender: TObject);
  25.     procedure xiugaiClick(Sender: TObject);
  26.   private
  27.     { Private declarations }
  28.   public
  29.     { Public declarations }
  30.   end;
  31. var
  32.   am_ajjs: Tam_ajjs;
  33. implementation
  34. uses sb_azjl_cxs, Am_Ajjs_Ps;
  35. {$R *.dfm}
  36. procedure Tam_ajjs.dele1Click(Sender: TObject);
  37. begin
  38.  close;
  39. end;
  40. procedure Tam_ajjs.FormClose(Sender: TObject; var Action: TCloseAction);
  41. begin
  42.  Clientdataset1.Active:=false;
  43.  action:=cafree;
  44.  am_ajjs:=nil;
  45. end;
  46. procedure Tam_ajjs.Add1Click(Sender: TObject);
  47. begin
  48.  if am_ajcx=nil then
  49.   begin
  50.     am_ajcx:=Tam_ajcx.create(self);
  51.     am_ajcx.show;
  52.   end;
  53. end;
  54. procedure Tam_ajjs.FormShow(Sender: TObject);
  55. begin
  56.  //statusbar1.Panels[0].Width:=am_ajjs.Width-6;
  57. end;
  58. procedure Tam_ajjs.xiugaiClick(Sender: TObject);
  59. begin
  60.   Am_Ajjs_P:=TAm_Ajjs_P.create(application);
  61.   Am_Ajjs_P.QuickRep1.Preview;
  62. end;
  63. end.