unit u_rp_zou_seai; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, XPMenu, Menus, DB, ADODB, bsSkinCtrls, TeEngine, Series, TeeProcs, Chart, DbChart, ComCtrls, bsSkinTabs, ExtCtrls,teeprevi, dxExEdtr, dxDBGrid, dxTL, dxDBCtrl, dxCntner; type Tfrm_rp_zou_seai = class(TForm) PopupMenu1: TPopupMenu; N11: TMenuItem; N4: TMenuItem; N5: TMenuItem; N1: TMenuItem; N2: TMenuItem; XPMenu1: TXPMenu; bsSkinPanel2: TbsSkinPanel; bsSkinButton10: TbsSkinButton; bsSkinButton9: TbsSkinButton; bsSkinButton5: TbsSkinButton; bsSkinCheckRadioBox1: TbsSkinCheckRadioBox; bsSkinCheckRadioBox2: TbsSkinCheckRadioBox; p_lirun: TADOStoredProc; p_lirun1: TDataSource; Panel1: TPanel; Panel2: TPanel; DBChart3: TDBChart; Series1: TLineSeries; DBChart1: TDBChart; LineSeries2: TLineSeries; DBChart2: TDBChart; LineSeries1: TLineSeries; dxDBGrid1: TdxDBGrid; dxDBGrid1Column1: TdxDBGridMaskColumn; dxDBGrid1Column2: TdxDBGridColumn; dxDBGrid1TEU: TdxDBGridColumn; dxDBGrid1Column4: TdxDBGridColumn; bsSkinButton1: TbsSkinButton; SaveDialog1: TSaveDialog; procedure bsSkinButton5Click(Sender: TObject); procedure FormClose(Sender: TObject; var Action: TCloseAction); procedure bsSkinButton10Click(Sender: TObject); procedure bsSkinButton9Click(Sender: TObject); procedure N11Click(Sender: TObject); procedure N5Click(Sender: TObject); procedure N2Click(Sender: TObject); procedure Panel2Resize(Sender: TObject); procedure bsSkinPanel2Resize(Sender: TObject); procedure bsSkinButton1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var frm_rp_zou_seai: Tfrm_rp_zou_seai; implementation uses my_sys_function, u_main; {$R *.dfm} procedure Tfrm_rp_zou_seai.bsSkinButton5Click(Sender: TObject); begin close; end; procedure Tfrm_rp_zou_seai.FormClose(Sender: TObject; var Action: TCloseAction); begin frm_rp_zou_seai.Hide; frm_rp_zou_seai.ManualFloat(frm_rp_zou_seai.BoundsRect ); frm_main.freeTabs('frm_rp_zou_seai'); action:=cafree; frm_rp_zou_seai:=nil; end; procedure Tfrm_rp_zou_seai.bsSkinButton10Click(Sender: TObject); begin query_seai(7,'0037'); end; procedure Tfrm_rp_zou_seai.bsSkinButton9Click(Sender: TObject); var Pnt:Tpoint; begin Pnt:=bsSkinButton9.ClientToScreen(Point(0,bsSkinButton9.Height)); PopupMenu1.Popup(Pnt.x,Pnt.y); end; procedure Tfrm_rp_zou_seai.N11Click(Sender: TObject); begin chartpreview(frm_rp_zou_seai,dbchart1); end; procedure Tfrm_rp_zou_seai.N5Click(Sender: TObject); begin chartpreview(frm_rp_zou_seai,dbchart2); end; procedure Tfrm_rp_zou_seai.N2Click(Sender: TObject); begin chartpreview(frm_rp_zou_seai,dbchart3); end; procedure Tfrm_rp_zou_seai.Panel2Resize(Sender: TObject); var i:integer; begin i:=round((Panel2.Height)/3); DBChart3.Height:=i; DBChart1.Height:=i; end; procedure Tfrm_rp_zou_seai.bsSkinPanel2Resize(Sender: TObject); var i:integer; begin i:=round(bsSkinPanel2.width/6); bsSkinCheckRadioBox2.width:=i; bsSkinCheckRadioBox1.width:=i; bsSkinButton10.width:=i; bsSkinButton9.width:=i; bsSkinButton1.width:=i; end; procedure Tfrm_rp_zou_seai.bsSkinButton1Click(Sender: TObject); begin if SaveDialog1.Execute then frm_rp_zou_seai.GetFormImage.SaveToFile(SaveDialog1.FileName+'.bmp'); end; end.