⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 monthmoneyfindformunit.pas

📁 人事管理系统帮助人们管理复杂的关系
💻 PAS
字号:
unit MonthMoneyFindFormUnit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TMonthMoneyFindForm = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    CBMonth: TComboBox;
    Label5: TLabel;
    Button1: TButton;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  MonthMoneyFindForm: TMonthMoneyFindForm;

implementation

uses DataMUnit, MoneyReportUnit;

{$R *.dfm}

procedure TMonthMoneyFindForm.Button1Click(Sender: TObject);
begin

  if DataM.ADOGZ.Active = true then
    DataM.ADOGZ.Close;
  DataM.ADOGZ.SQL.Clear;

  if CBMonth.Text = '全年' then
    DataM.ADOGZ.SQL.Text:='select * from FGZ'
  else
    DataM.ADOGZ.SQL.Text:='select * from FGZ where 工资月份 = ''' + CBmonth.Text + '''';

  DataM.ADOGZ.Prepared;
  DataM.ADOGZ.Open;

  MoneyReportForm.QuickRep1.Preview;

end;

procedure TMonthMoneyFindForm.Button2Click(Sender: TObject);
begin
  MonthMoneyFindForm.Close;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -