2017-10-09 16:17:12 +02:00
|
|
|
|
// ***************************************************************************
|
2017-05-18 00:02:22 +02:00
|
|
|
|
//
|
|
|
|
|
// Delphi MVC Framework
|
|
|
|
|
//
|
2022-01-04 15:44:47 +01:00
|
|
|
|
// Copyright (c) 2010-2022 Daniele Teti and the DMVCFramework Team
|
2017-05-18 00:02:22 +02:00
|
|
|
|
//
|
|
|
|
|
// https://github.com/danieleteti/delphimvcframework
|
|
|
|
|
//
|
|
|
|
|
// Collaborators with this file: Ezequiel Juliano Müller (ezequieljuliano@gmail.com)
|
|
|
|
|
//
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
//
|
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
//
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
//
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
|
2016-11-27 23:17:20 +01:00
|
|
|
|
unit MyDataModuleU;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
2019-03-10 16:29:18 +01:00
|
|
|
|
System.SysUtils,
|
|
|
|
|
System.Classes,
|
|
|
|
|
FireDAC.Stan.Intf,
|
|
|
|
|
FireDAC.Stan.Option,
|
|
|
|
|
FireDAC.Stan.Error,
|
|
|
|
|
FireDAC.UI.Intf,
|
|
|
|
|
FireDAC.Phys.Intf,
|
|
|
|
|
FireDAC.Stan.Def,
|
|
|
|
|
FireDAC.Stan.Pool,
|
|
|
|
|
FireDAC.Stan.Async,
|
|
|
|
|
FireDAC.Phys,
|
|
|
|
|
FireDAC.Phys.FB,
|
|
|
|
|
FireDAC.Phys.FBDef,
|
|
|
|
|
FireDAC.Stan.Param,
|
|
|
|
|
FireDAC.DatS,
|
|
|
|
|
FireDAC.DApt.Intf,
|
|
|
|
|
FireDAC.DApt,
|
|
|
|
|
FireDAC.Phys.IBBase,
|
|
|
|
|
Data.DB,
|
|
|
|
|
FireDAC.Comp.DataSet,
|
|
|
|
|
FireDAC.Comp.Client,
|
|
|
|
|
FireDAC.ConsoleUI.Wait,
|
2017-05-17 22:32:45 +02:00
|
|
|
|
FireDAC.Comp.UI,
|
|
|
|
|
MVCFramework.Serializer.Commons;
|
2016-11-27 23:17:20 +01:00
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
TMyDataModule = class(TDataModule)
|
|
|
|
|
FDConnection1: TFDConnection;
|
|
|
|
|
qryCustomers: TFDQuery;
|
|
|
|
|
FDPhysFBDriverLink1: TFDPhysFBDriverLink;
|
|
|
|
|
qryCountry: TFDQuery;
|
2017-04-20 23:48:50 +02:00
|
|
|
|
FDGUIxWaitCursor1: TFDGUIxWaitCursor;
|
2017-05-17 22:32:45 +02:00
|
|
|
|
qryCustomersCUST_NO: TIntegerField;
|
|
|
|
|
qryCustomersCUSTOMER: TStringField;
|
|
|
|
|
qryCustomersCONTACT_FIRST: TStringField;
|
|
|
|
|
qryCustomersCONTACT_LAST: TStringField;
|
|
|
|
|
qryCustomersPHONE_NO: TStringField;
|
|
|
|
|
qryCustomersADDRESS_LINE1: TStringField;
|
|
|
|
|
qryCustomersADDRESS_LINE2: TStringField;
|
|
|
|
|
qryCustomersCITY: TStringField;
|
|
|
|
|
qryCustomersSTATE_PROVINCE: TStringField;
|
|
|
|
|
qryCustomersCOUNTRY: TStringField;
|
|
|
|
|
qryCustomersPOSTAL_CODE: TStringField;
|
|
|
|
|
qryCustomersON_HOLD: TStringField;
|
2016-11-27 23:17:20 +01:00
|
|
|
|
private
|
|
|
|
|
{ Private declarations }
|
|
|
|
|
public
|
|
|
|
|
{ Public declarations }
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
{%CLASSGROUP 'Vcl.Controls.TControl'}
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
|
|
end.
|