📄 f_product_item_id.pas
字号:
unit f_product_item_id;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, DB, ADODB;
type
Tw_product_item_id = class(TForm)
Panel1: TPanel;
Label2: TLabel;
BitBtn3: TBitBtn;
BitBtn4: TBitBtn;
ComboBox1: TComboBox;
ado_produce_item: TADOQuery;
ado_produce_itemproduct_item_id: TStringField;
ado_produce_itemproduct_item_name: TStringField;
procedure FormCreate(Sender: TObject);
procedure BitBtn3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
w_product_item_id: Tw_product_item_id;
implementation
{$R *.dfm}
procedure Tw_product_item_id.FormCreate(Sender: TObject);
begin
ado_produce_item.Close;
ado_produce_item.SQL.Clear;
ado_produce_item.SQL.Add('select * from product_item');
ado_produce_item.Open;
ado_produce_item.First;
while not ado_produce_item.eof do
begin
combobox1.items.add(trim(ado_produce_item.fieldbyname('product_item_id').asString)+' --- '+trim(ado_produce_item.fieldbyname('product_item_name').asString));
ado_produce_item.next;
end;
end;
procedure Tw_product_item_id.BitBtn3Click(Sender: TObject);
begin
close;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -