Am_Ajtzs.~pas
资源名称:挡案管理系统.rar [点击查看]
上传用户:szruida
上传日期:2007-06-01
资源大小:6518k
文件大小:3k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit Am_Ajtzs;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, DB, ImgList, DBCtrlsEh, StdCtrls, DBCtrls, DBLookupEh, Mask,
- Buttons, ExtCtrls;
- type
- TAm_Ajtz = class(TForm)
- Panel2: TPanel;
- Panel1: TPanel;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- Label5: TLabel;
- Label6: TLabel;
- Label7: TLabel;
- Label8: TLabel;
- Label9: TLabel;
- Label10: TLabel;
- Label11: TLabel;
- Label12: TLabel;
- Label13: TLabel;
- Label14: TLabel;
- Label15: TLabel;
- Label16: TLabel;
- Label17: TLabel;
- Label18: TLabel;
- Label19: TLabel;
- Label20: TLabel;
- Label21: TLabel;
- Label22: TLabel;
- Label23: TLabel;
- Label24: TLabel;
- Label25: TLabel;
- DBEdit3: TDBEdit;
- DBEdit4: TDBEdit;
- DBEdit5: TDBEdit;
- DBEdit6: TDBEdit;
- DBEdit9: TDBEdit;
- DBEdit11: TDBEdit;
- DBEdit14: TDBEdit;
- DBEdit16: TDBEdit;
- DBEdit17: TDBEdit;
- DBLookupComboboxEh1: TDBLookupComboboxEh;
- DBLookupComboboxEh2: TDBLookupComboboxEh;
- DBLookupComboboxEh3: TDBLookupComboboxEh;
- DBMemo1: TDBMemo;
- DBMemo2: TDBMemo;
- DBMemo3: TDBMemo;
- DBEditEh1: TDBEditEh;
- DBEditEh3: TDBEditEh;
- DBEditEh4: TDBEditEh;
- DBEditEh5: TDBEditEh;
- DBEditEh2: TDBEditEh;
- DBEditEh6: TDBEditEh;
- ImageList1: TImageList;
- ds_ajgl: TDataSource;
- DBLookupComboboxEh4: TDBLookupComboboxEh;
- SpeedButton1: TSpeedButton;
- DBEditEh7: TDBEditEh;
- SpeedButton2: TSpeedButton;
- SpeedButton3: TSpeedButton;
- procedure QuitClick(Sender: TObject);
- procedure SaveClick(Sender: TObject);
- procedure FormClose(Sender: TObject; var Action: TCloseAction);
- procedure SpeedButton1Click(Sender: TObject);
- procedure SpeedButton2Click(Sender: TObject);
- procedure SpeedButton3Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Am_Ajtz: TAm_Ajtz;
- implementation
- uses DMs, am_ajlb_xzs;
- {$R *.dfm}
- procedure TAm_Ajtz.FormClose(Sender: TObject; var Action: TCloseAction);
- begin
- action:=cafree;
- am_ajtz:=nil;
- end;
- procedure TAm_Ajtz.SpeedButton1Click(Sender: TObject);
- begin
- if am_ajlb_xz=Nil then
- begin
- am_ajlb_xz:=Tam_ajlb_xz.create(application);
- am_ajlb_xz.showmodal;
- end;
- end;
- procedure TAm_Ajtz.SpeedButton2Click(Sender: TObject);
- var s_kwdm,s2,zcg_s:string;
- begin
- zcg_s:=dm.Am_ajgl.fieldbyname('aj_xh').AsString;//取当前序号
- s2:=dm.Am_ajgl.fieldbyname('ajlb_dm').AsString;//当前树节点的案卷类别代码
- dm.am_ajgl.Edit;
- if dm.Am_ajgl.ApplyUpdates(0)=0 then
- begin
- application.MessageBox('案卷调整成功','提示',mb_ok+mb_iconinformation);
- dm.Am_ajgl.Close;
- dm.am_ajgl.CommandText:='select * from am_ajgl';
- dm.am_ajgl.Open;
- dm.V_AJGD.Close;
- dm.V_AJGD.CommandText:='select * from v_Ajgd where ajlb_dm='+''''+s2+''''+'';
- dm.v_ajgd.Open;
- close;
- end
- else
- begin
- application.MessageBox('案卷调整失败','提示',mb_ok+mb_iconinformation);
- exit;
- end;
- end;
- procedure TAm_Ajtz.SpeedButton3Click(Sender: TObject);
- begin
- Close;
- end;
- end.