📄 unitquerystore.pas
字号:
unit UnitQueryStore;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, ADODB, Grids, DBGrids, StdCtrls;
type
TFrmQueryStore = class(TForm)
Label1: TLabel;
cun: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
cmbbxStoreDepartment: TComboBox;
cmbbxBuyDepartment: TComboBox;
edtBuyMan: TEdit;
edtSign: TEdit;
btnQuery: TButton;
DBGrid1: TDBGrid;
ADOStoredProc1: TADOStoredProc;
DataSource1: TDataSource;
edtStoreID: TEdit;
procedure btnQueryClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FrmQueryStore: TFrmQueryStore;
implementation
uses UnitDM;
{$R *.dfm}
procedure TFrmQueryStore.btnQueryClick(Sender: TObject);
begin
ADOStoredProc1.Connection:=DataModule2.ADOConnection1;
ADOStoredProc1.Close;
ADOStoredProc1.ProcedureName:='QueryStore';
ADOStoredProc1.Parameters.Refresh;
ADOStoredProc1.Parameters.ParamByName('@StoreID').Value:=self.edtStoreID.Text;
ADOStoredProc1.Parameters.ParamByName('@StorePlace').Value:=self.cmbbxStoreDepartment.Text;
ADOStoredProc1.Parameters.ParamByName('@BuyDepartment').Value:=self.cmbbxBuyDepartment.Text;
ADOStoredProc1.Parameters.ParamByName('@BuyMan').Value:=self.edtBuyMan.Text;
ADOStoredProc1.Parameters.ParamByName('@Sign').Value:=self.edtSign.Text;
ADOStoredProc1.ExecProc;
ADOStoredProc1.Active:=true;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -