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

📄 unit5.~pas

📁 商品销售管理系统
💻 ~PAS
字号:
unit Unit5;

interface

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

type
  TForm5 = class(TForm)
    GroupBox1: TGroupBox;
    Label1: TLabel;
    Label2: TLabel;
    Edit1: TEdit;
    Edit2: TEdit;
    Label3: TLabel;
    Edit3: TEdit;
    Label4: TLabel;
    Edit4: TEdit;
    Label5: TLabel;
    Edit5: TEdit;
    ComboBox1: TComboBox;
    ComboBox2: TComboBox;
    ComboBox3: TComboBox;
    Label6: TLabel;
    Label7: TLabel;
    Label8: TLabel;
    Memo1: TMemo;
    Label9: TLabel;
    Button1: TButton;
    Button2: TButton;
    Table1: TTable;
    Button3: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form5: TForm5;

implementation

uses Unit3;

{$R *.dfm}

procedure TForm5.Button1Click(Sender: TObject);
begin
   begin
  if  edit1.Text=''  then edit1.Text:='暂无记录';
  if  edit2.Text=''  then edit2.Text:='暂无记录';
  if  edit3.Text=''  then edit3.Text:='暂无记录';
  if  edit4.Text=''  then edit4.Text:='暂无记录';
  if  combobox1.Text='' then combobox1.Text:='暂无记录';
  if  combobox2.Text='' then combobox2.Text:='暂无记录';
  if  combobox3.Text='' then combobox3.Text:='暂无记录';
  if  Memo1.text='' then Memo1.Text:='暂无记录';
  table1.Open;
  table1.AppendRecord([edit1.text,edit2.text,combobox1.text,combobox2.text,
  combobox3.text,edit3.Text,edit4.text,edit5.text,memo1.text]);
  showmessage('提交完毕!');


end;
end;

procedure TForm5.Button3Click(Sender: TObject);
begin
edit1.Text:='';
edit2.Text:='';
edit3.Text:='';
edit4.Text:='';
edit5.Text:='';
combobox1.Text:='';
combobox2.Text:='';
combobox3.text:='';
memo1.text:='';
end;

procedure TForm5.Button2Click(Sender: TObject);
begin
form5.Close;
form3.show;

end;

end.

⌨️ 快捷键说明

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