亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? empedimp.pas

?? Delphi 6分布式開發(fā)例程主要是分布式開發(fā)的源碼
?? PAS
字號(hào):
unit empedimp;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  ActiveX, AxCtrls, EmpE_TLB, DBClient, Db, ComCtrls, ExtCtrls,
  DBCtrls, StdCtrls, Mask, MConnect;

type
  TEmpEditForm = class(TActiveForm, IEmpEditForm)
    Label2: TLabel;
    UpdateButton: TButton;
    UndoButton: TButton;
    QueryButton: TButton;
    DBText1: TDBText;
    FirstName: TDBEdit;
    LastName: TDBEdit;
    PhoneExt: TDBEdit;
    HireDate: TDBEdit;
    Salary: TDBEdit;
    EmpData: TDataSource;
    DBNavigator1: TDBNavigator;
    Employees: TClientDataSet;
    MidasConnection: TDCOMConnection;
    RecInd: TLabel;
    procedure QueryButtonClick(Sender: TObject);
    procedure UpdateButtonClick(Sender: TObject);
    procedure UndoButtonClick(Sender: TObject);
    procedure EmployeesReconcileError(DataSet: TCustomClientDataSet;
     E: EReconcileError; UpdateKind: TUpdateKind; var Action: TReconcileAction);
    procedure EmpDataDataChange(Sender: TObject; Field: TField);
  private
    { Private declarations }
    FEvents: IEmpEditFormEvents;
    procedure ActivateEvent(Sender: TObject);
    procedure ClickEvent(Sender: TObject);
    procedure CreateEvent(Sender: TObject);
    procedure DblClickEvent(Sender: TObject);
    procedure DeactivateEvent(Sender: TObject);
    procedure DestroyEvent(Sender: TObject);
    procedure KeyPressEvent(Sender: TObject; var Key: Char);
    procedure PaintEvent(Sender: TObject);
  protected
    { Protected declarations }
    procedure EventSinkChanged(const EventSink: IUnknown); override;
    procedure Initialize; override;
    function Get_Active: WordBool; safecall;
    function Get_AutoScroll: WordBool; safecall;
    function Get_AxBorderStyle: TxActiveFormBorderStyle; safecall;
    function Get_Caption: WideString; safecall;
    function Get_Color: OLE_Color; safecall;
    function Get_Cursor: Smallint; safecall;
    function Get_DropTarget: WordBool; safecall;
    function Get_Enabled: WordBool; safecall;
    function Get_Font: Font; safecall;
    function Get_HelpFile: WideString; safecall;
    function Get_KeyPreview: WordBool; safecall;
    function Get_PixelsPerInch: Integer; safecall;
    function Get_PrintScale: TxPrintScale; safecall;
    function Get_Scaled: WordBool; safecall;
    function Get_Visible: WordBool; safecall;
    function Get_WindowState: TxWindowState; safecall;
    procedure Set_AutoScroll(Value: WordBool); safecall;
    procedure Set_AxBorderStyle(Value: TxActiveFormBorderStyle); safecall;
    procedure Set_Caption(const Value: WideString); safecall;
    procedure Set_Color(Value: OLE_Color); safecall;
    procedure Set_Cursor(Value: Smallint); safecall;
    procedure Set_DropTarget(Value: WordBool); safecall;
    procedure Set_Enabled(Value: WordBool); safecall;
    procedure Set_Font(const Value: Font); safecall;
    procedure Set_HelpFile(const Value: WideString); safecall;
    procedure Set_KeyPreview(Value: WordBool); safecall;
    procedure Set_PixelsPerInch(Value: Integer); safecall;
    procedure Set_PrintScale(Value: TxPrintScale); safecall;
    procedure Set_Scaled(Value: WordBool); safecall;
    procedure Set_Visible(Value: WordBool); safecall;
    procedure Set_WindowState(Value: TxWindowState); safecall;
  public
    { Public declarations }
  end;

implementation

uses RecError, ComServ;

{$R *.dfm}

{ TEmpEditForm }

procedure TEmpEditForm.EventSinkChanged(const EventSink: IUnknown);
begin
  FEvents := EventSink as IEmpEditFormEvents;
end;

procedure TEmpEditForm.Initialize;
begin
  OnActivate := ActivateEvent;
  OnClick := ClickEvent;
  OnCreate := CreateEvent;
  OnDblClick := DblClickEvent;
  OnDeactivate := DeactivateEvent;
  OnDestroy := DestroyEvent;
  OnKeyPress := KeyPressEvent;
  OnPaint := PaintEvent;
end;

function TEmpEditForm.Get_Active: WordBool;
begin
  Result := Active;
end;

function TEmpEditForm.Get_AutoScroll: WordBool;
begin
  Result := AutoScroll;
end;

function TEmpEditForm.Get_AxBorderStyle: TxActiveFormBorderStyle;
begin
  Result := Ord(AxBorderStyle);
end;

function TEmpEditForm.Get_Caption: WideString;
begin
  Result := WideString(Caption);
end;

function TEmpEditForm.Get_Color: OLE_COLOR;
begin
  Result := Color;
end;

function TEmpEditForm.Get_Cursor: Smallint;
begin
  Result := Smallint(Cursor);
end;

function TEmpEditForm.Get_DropTarget: WordBool;
begin
  Result := DropTarget;
end;

function TEmpEditForm.Get_Enabled: WordBool;
begin
  Result := Enabled;
end;

function TEmpEditForm.Get_Font: Font;
begin
  GetOleFont(Font, Result);
end;

function TEmpEditForm.Get_HelpFile: WideString;
begin
  Result := WideString(HelpFile);
end;

function TEmpEditForm.Get_KeyPreview: WordBool;
begin
  Result := KeyPreview;
end;

function TEmpEditForm.Get_PixelsPerInch: Integer;
begin
  Result := PixelsPerInch;
end;

function TEmpEditForm.Get_PrintScale: TxPrintScale;
begin
  Result := Ord(PrintScale);
end;

function TEmpEditForm.Get_Scaled: WordBool;
begin
  Result := Scaled;
end;

function TEmpEditForm.Get_Visible: WordBool;
begin
  Result := Visible;
end;

function TEmpEditForm.Get_WindowState: TxWindowState;
begin
  Result := Ord(WindowState);
end;

procedure TEmpEditForm.Set_AutoScroll(Value: WordBool);
begin
  AutoScroll := Value;
end;

procedure TEmpEditForm.Set_AxBorderStyle(Value: TxActiveFormBorderStyle);
begin
  AxBorderStyle := TActiveFormBorderStyle(Value);
end;

procedure TEmpEditForm.Set_Caption(const Value: WideString);
begin
  Caption := TCaption(Value);
end;

procedure TEmpEditForm.Set_Color(Value: OLE_COLOR);
begin
  Color := Value;
end;

procedure TEmpEditForm.Set_Cursor(Value: Smallint);
begin
  Cursor := TCursor(Value);
end;

procedure TEmpEditForm.Set_DropTarget(Value: WordBool);
begin
  DropTarget := Value;
end;

procedure TEmpEditForm.Set_Enabled(Value: WordBool);
begin
  Enabled := Value;
end;

procedure TEmpEditForm.Set_Font(const Value: Font);
begin
  SetOleFont(Font, Value);
end;

procedure TEmpEditForm.Set_HelpFile(const Value: WideString);
begin
  HelpFile := String(Value);
end;

procedure TEmpEditForm.Set_KeyPreview(Value: WordBool);
begin
  KeyPreview := Value;
end;

procedure TEmpEditForm.Set_PixelsPerInch(Value: Integer);
begin
  PixelsPerInch := Value;
end;

procedure TEmpEditForm.Set_PrintScale(Value: TxPrintScale);
begin
  PrintScale := TPrintScale(Value);
end;

procedure TEmpEditForm.Set_Scaled(Value: WordBool);
begin
  Scaled := Value;
end;

procedure TEmpEditForm.Set_Visible(Value: WordBool);
begin
  Visible := Value;
end;

procedure TEmpEditForm.Set_WindowState(Value: TxWindowState);
begin
  WindowState := TWindowState(Value);
end;

procedure TEmpEditForm.ActivateEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnActivate;
end;

procedure TEmpEditForm.ClickEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnClick;
end;

procedure TEmpEditForm.CreateEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnCreate;
end;

procedure TEmpEditForm.DblClickEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnDblClick;
end;

procedure TEmpEditForm.DeactivateEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnDeactivate;
end;

procedure TEmpEditForm.DestroyEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnDestroy;
end;

procedure TEmpEditForm.KeyPressEvent(Sender: TObject; var Key: Char);
var
  TempKey: Smallint;
begin
  TempKey := Smallint(Key);
  if FEvents <> nil then FEvents.OnKeyPress(TempKey);
  Key := Char(TempKey);
end;

procedure TEmpEditForm.PaintEvent(Sender: TObject);
begin
  if FEvents <> nil then FEvents.OnPaint;
end;

{ ========================================================================== }

procedure TEmpEditForm.QueryButtonClick(Sender: TObject);
begin

{ Get data from the server.  The number of records returned is dependent on
  the PacketRecords property of TClientDataSet.  If PacketRecords is set
  to -1 then all records are returned.  Otherwise, as the user scrolls
  through the data, additional records are returned in separate data packets. }

  Employees.Close;
  Employees.Open;

end;

procedure TEmpEditForm.UpdateButtonClick(Sender: TObject);
begin

{ Apply any edits.  The parameter indicates the number of errors which
  are allowed before the updating is aborted.  A value of -1 indicates that
  all successful updates be applied regardless of the number of errors. }

  Employees.ApplyUpdates(-1);

end;

procedure TEmpEditForm.UndoButtonClick(Sender: TObject);
begin

{ Here we demonstrate a new feature in TClientDataSet, the ability to undo
  changes in reverse order.  The parameter indicates if the cursor should
  be repositioned to the record association with the change. }


  Employees.UndoLastChange(True);

end;

procedure TEmpEditForm.EmployeesReconcileError(DataSet: TCustomClientDataSet;
  E: EReconcileError; UpdateKind: TUpdateKind; var Action: TReconcileAction);
begin

{ This is the event handler which is called when there are errors during the
  update process.  To demonstrate, you can create an error by running two
  copies of this application and modifying the same record in each one.
  Here we use the standard reconcile error dialog from the object repository. }

  Action := HandleReconcileError(DataSet, UpdateKind, E);
end;

procedure TEmpEditForm.EmpDataDataChange(Sender: TObject; Field: TField);
begin

{ This code is used to update the status bar to show the number of records
  that have been retrieved an our relative position with the dataset. }

  with Employees do
    if Active then
      RecInd.Caption := Format(' %d of %d', [RecNo, RecordCount]);

end;
initialization
  TActiveFormFactory.Create(
    ComServer,
    TActiveFormControl,
    TEmpEditForm,
    Class_EmpEditForm,
    1,
    '',
    OLEMISC_SIMPLEFRAME or OLEMISC_ACTSLIKELABEL);
end.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合色狠狠天天综合色| 91偷拍与自偷拍精品| 国产喂奶挤奶一区二区三区| 久久国产精品99精品国产| 国产欧美一区二区精品久导航 | 国产精品不卡在线观看| 欧美性色欧美a在线播放| 麻豆精品国产91久久久久久| 国产欧美日本一区视频| 欧美成人a∨高清免费观看| 欧美亚洲动漫精品| 99久久综合99久久综合网站| 国产在线麻豆精品观看| 奇米四色…亚洲| 洋洋成人永久网站入口| 国产精品久久免费看| 国产偷国产偷亚洲高清人白洁 | 日韩福利电影在线| 亚洲视频 欧洲视频| 日本一区二区高清| 国产亚洲欧美日韩在线一区| 日韩欧美一区电影| 欧美一区二区三区四区五区| 欧美性生活久久| 在线视频一区二区三区| 91影视在线播放| av激情亚洲男人天堂| 国产超碰在线一区| 国产一区美女在线| 国产综合成人久久大片91| 日韩国产欧美在线视频| 日日摸夜夜添夜夜添国产精品| 亚洲激情综合网| 一区二区三区中文在线| 一区二区三区在线观看视频| 亚洲日本在线天堂| 亚洲视频图片小说| 一区二区三区电影在线播| 亚洲黄色小说网站| 亚洲一卡二卡三卡四卡五卡| 亚洲综合色网站| 洋洋av久久久久久久一区| 亚洲一区二区美女| 日韩av一二三| 秋霞av亚洲一区二区三| 久久99国产精品麻豆| 久久国产精品99久久人人澡| 精品一区二区在线播放| 国产盗摄女厕一区二区三区 | 欧美伦理电影网| 欧美军同video69gay| 日韩欧美在线一区二区三区| 日韩午夜激情av| 久久久久久久久久久99999| 久久精品亚洲国产奇米99| 国产精品天美传媒| 丝袜亚洲另类欧美综合| 免费观看久久久4p| 国产盗摄一区二区三区| 91首页免费视频| 欧美日韩高清一区二区三区| 日韩一级大片在线观看| 久久久久成人黄色影片| 最近日韩中文字幕| 日韩国产精品久久久久久亚洲| 精品制服美女丁香| av电影天堂一区二区在线| 欧美日韩一区成人| 久久九九全国免费| 亚洲影院在线观看| 蜜桃精品在线观看| 丁香婷婷综合网| 欧美日精品一区视频| www精品美女久久久tv| 亚洲另类在线一区| 精品一区二区在线播放| 一本一道综合狠狠老| 日韩一区二区三区免费看| 国产校园另类小说区| 亚洲综合色噜噜狠狠| 激情综合色丁香一区二区| 99久久精品一区| 日韩美女视频在线| 日韩一区有码在线| 麻豆精品久久精品色综合| 色综合久久综合网97色综合 | 99久久久无码国产精品| 欧美女孩性生活视频| 久久久久久夜精品精品免费| 亚洲精选免费视频| 精品一区二区三区视频在线观看| 成人av午夜电影| 日韩一区二区三区在线| 综合av第一页| 久久精品国产秦先生| 91传媒视频在线播放| 久久精品免费在线观看| 丝袜亚洲另类欧美| 91丨porny丨首页| 久久美女高清视频| 日本不卡一区二区三区| 在线影院国内精品| 日本一区二区三级电影在线观看| 日日夜夜免费精品视频| 一本一本大道香蕉久在线精品| 久久一日本道色综合| 日产欧产美韩系列久久99| 91福利区一区二区三区| 中文字幕 久热精品 视频在线| 久久99久久精品欧美| 欧美日本一区二区| 亚洲综合色成人| 91伊人久久大香线蕉| 中文成人综合网| 国产精品538一区二区在线| 日韩一级片在线观看| 亚洲福利电影网| 在线视频综合导航| 亚洲精品视频在线观看免费 | 成人一区二区三区中文字幕| 日韩精品一区二区三区视频 | 天天色天天操综合| 欧洲人成人精品| 亚洲精品老司机| www.亚洲精品| 国产精品久久久久aaaa樱花| 高清日韩电视剧大全免费| 久久久av毛片精品| 久久se这里有精品| 日韩三级.com| 久久爱www久久做| 精品国产伦一区二区三区免费| 日韩国产欧美在线视频| 日韩一区二区三免费高清| 视频一区视频二区中文| 91麻豆精品国产无毒不卡在线观看| 亚洲午夜影视影院在线观看| 欧美中文字幕一区| 亚洲影视在线观看| 欧美精品在欧美一区二区少妇| 亚洲成人777| 欧美一区二区三区影视| 久久69国产一区二区蜜臀| 欧美成人一区二区| 国产盗摄视频一区二区三区| 国产精品污www在线观看| 91丨九色丨黑人外教| 亚洲图片欧美综合| 欧美精品v日韩精品v韩国精品v| 婷婷成人激情在线网| 欧美一级高清大全免费观看| 国内精品写真在线观看| 欧美激情一区二区三区在线| 不卡一卡二卡三乱码免费网站| 最新久久zyz资源站| 欧美视频在线一区二区三区| 蜜臀国产一区二区三区在线播放 | 欧美日韩aaaaa| 热久久久久久久| 国产婷婷一区二区| 91免费视频观看| 天天综合色天天| 国产婷婷一区二区| 亚洲女与黑人做爰| 欧美日韩三级一区二区| 日韩不卡免费视频| 久久亚洲免费视频| aaa欧美色吧激情视频| 亚洲午夜精品一区二区三区他趣| 777午夜精品免费视频| 国产精品夜夜嗨| 一区二区三区蜜桃| 欧美tickle裸体挠脚心vk| 成人h精品动漫一区二区三区| 一区二区三区四区在线播放| 欧美一区二区不卡视频| 北岛玲一区二区三区四区| 日韩高清国产一区在线| 欧美激情一区二区| 欧美日韩性生活| 国产成人精品一区二| 亚洲国产成人va在线观看天堂| 久久亚洲综合色一区二区三区| 91福利在线免费观看| 久久精品国产精品亚洲综合| 亚洲乱码中文字幕| 日韩精品一区在线观看| 91香蕉视频污在线| 韩国v欧美v日本v亚洲v| 亚洲一二三四在线观看| 久久久国产精品麻豆| 欧美日韩大陆一区二区| 成人黄色av网站在线| 免费成人美女在线观看| 亚洲精品美腿丝袜| 国产精品午夜春色av| 欧美一区二区三区人| 色综合久久中文综合久久97 | 亚洲亚洲精品在线观看| 国产精品美女久久久久aⅴ|