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

📄 unitgdzcquery.pas

📁 这是一个SQL的物资管理系统 这是一个SQL的物资管理系统
💻 PAS
字号:
unit UnitGdzcQuery;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, DBGrids, StdCtrls, DB, ADODB;

type
  TFrmGdzcQuery = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    cmbbxStorePlace: TComboBox;
    cmbbxDepartment: TComboBox;
    cmbbxCustomer: TComboBox;
    edtBuyMan: TEdit;
    edtUserMan: TEdit;
    btnQuery: TButton;
    DBGrid1: TDBGrid;
    ADOStoredProc1: TADOStoredProc;
    DataSource1: TDataSource;
    procedure btnQueryClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FrmGdzcQuery: TFrmGdzcQuery;

implementation

uses UnitDM;

{$R *.dfm}

procedure TFrmGdzcQuery.btnQueryClick(Sender: TObject);
begin

  ADOStoredProc1.Connection:=DataModule2.ADOConnection1;
  ADOStoredProc1.Close;
  ADOStoredProc1.ProcedureName:='QueryGdzc';
  ADOStoredProc1.Parameters.Refresh;

  ADOStoredProc1.Parameters.ParamByName('@storeplace').Value:=self.cmbbxStorePlace.Text;
  ADOStoredProc1.Parameters.ParamByName('@department').Value:=self.cmbbxDepartment.Text;
  ADOStoredProc1.Parameters.ParamByName('@username').Value:=self.edtUserMan.Text;
  ADOStoredProc1.Parameters.ParamByName('@buyman').Value:=self.edtBuyMan.Text;
  ADOStoredProc1.Parameters.ParamByName('@customer').Value:=self.cmbbxCustomer.Text;

  ADOStoredProc1.ExecProc;
  ADOStoredProc1.Active:=true;

end;

end.

⌨️ 快捷键说明

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