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

📄 f_cost_active_id.pas

📁 ERP成本管理系统DELPHI ERP成本核算系统常常要设计含有如下车间
💻 PAS
字号:
unit f_cost_active_id;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ExtCtrls, DB, ADODB;

type
  Tw_cost_active_id = class(TForm)
    Panel1: TPanel;
    Label2: TLabel;
    BitBtn3: TBitBtn;
    BitBtn4: TBitBtn;
    ComboBox1: TComboBox;
    ado_cost_active: TADOQuery;
    ado_cost_activecost_active_id: TStringField;
    ado_cost_activecost_active_name: TStringField;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  w_cost_active_id: Tw_cost_active_id;

implementation

{$R *.dfm}

procedure Tw_cost_active_id.FormCreate(Sender: TObject);
begin
   ado_cost_active.Close;
   ado_cost_active.SQL.Clear;
   ado_cost_active.SQL.Add('select * from cost_active');
   ado_cost_active.Open;
   ado_cost_active.First;
while not  ado_cost_active.eof do
 begin
  combobox1.items.add(trim( ado_cost_active.fieldbyname('cost_active_id').asString)+'  ---  '+trim( ado_cost_active.fieldbyname('cost_active_name').asString));
   ado_cost_active.next;
 end;
end;
end.

⌨️ 快捷键说明

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