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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? empedimp.~pas

?? Delphi 6分布式開發例程主要是分布式開發的源碼
?? ~PAS
字號:
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.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人资源网| 日韩理论在线观看| 一二三区精品视频| 欧美三片在线视频观看| 亚洲图片一区二区| 制服丝袜日韩国产| 一区二区三区日本| 日韩欧美综合一区| 99久久综合精品| 亚洲福利视频一区| 久久精品人人做人人爽97| jizzjizzjizz欧美| 日日夜夜一区二区| 中文字幕av资源一区| 95精品视频在线| 美国av一区二区| 亚洲欧美一区二区三区极速播放| 欧美日韩一区小说| aaa欧美色吧激情视频| 日韩中文字幕麻豆| 亚洲免费av网站| 久久久噜噜噜久久中文字幕色伊伊| 男人的j进女人的j一区| 亚洲一区二区三区自拍| 亚洲国产经典视频| 精品国产乱码久久久久久图片 | 国产精品毛片高清在线完整版 | 色综合久久久久久久| 精品在线免费视频| 奇米一区二区三区av| 午夜婷婷国产麻豆精品| 亚洲va天堂va国产va久| 《视频一区视频二区| 国产女人aaa级久久久级 | 在线精品视频一区二区三四| 国产寡妇亲子伦一区二区| 九九九精品视频| 国产一区二区三区香蕉| 国产麻豆精品久久一二三| 免费人成黄页网站在线一区二区| 亚洲国产裸拍裸体视频在线观看乱了| 亚洲欧洲精品一区二区三区| 中文子幕无线码一区tr| 欧美日韩国产一级片| 欧美三级一区二区| 日韩你懂的在线观看| 久久久久久久久久久久久夜| 国产精品色哟哟| 午夜日韩在线观看| 极品美女销魂一区二区三区| 国产91精品精华液一区二区三区| 欧洲av一区二区嗯嗯嗯啊| 亚洲国产岛国毛片在线| 欧美成人性福生活免费看| 国产精品免费免费| 日韩av在线播放中文字幕| 成人爱爱电影网址| 日韩视频一区在线观看| 亚洲精品久久嫩草网站秘色| 激情综合色播激情啊| 色综合av在线| 欧美国产激情二区三区| 免费观看成人av| 欧美精品一二三| 亚洲欧美日韩一区| 99九九99九九九视频精品| 欧美一级一级性生活免费录像| 亚洲男帅同性gay1069| 国产福利不卡视频| 久久久亚洲高清| 国产精品一区二区在线看| 精品噜噜噜噜久久久久久久久试看| 亚洲男女一区二区三区| 91麻豆高清视频| 亚洲自拍偷拍综合| 欧洲激情一区二区| 日韩精品1区2区3区| 欧美日本韩国一区| 男人操女人的视频在线观看欧美| 欧美乱妇15p| 日本中文字幕一区二区有限公司| 这里是久久伊人| 六月丁香婷婷久久| 久久久精品国产99久久精品芒果 | 777午夜精品视频在线播放| 一区二区三区中文字幕| 欧美一级精品在线| 成人黄色国产精品网站大全在线免费观看| 26uuu亚洲| 一本一道综合狠狠老| 日本成人在线不卡视频| 国产精品久久久久久久久免费桃花| 99在线精品免费| 麻豆久久久久久| 国产精品国模大尺度视频| 欧美一区二区三区四区高清| 精品一区二区在线免费观看| 亚洲欧美激情小说另类| 欧美一区二区成人6969| heyzo一本久久综合| 七七婷婷婷婷精品国产| 一区在线中文字幕| 日韩精品中文字幕在线不卡尤物| 成人福利电影精品一区二区在线观看| 亚洲另类春色校园小说| 欧美成人精品福利| 欧美日韩情趣电影| 欧美在线影院一区二区| 国产**成人网毛片九色| 久久成人久久鬼色| 日本va欧美va精品| 视频一区视频二区中文| 亚洲一区二区三区四区五区黄| 国产欧美一区二区三区在线老狼| 欧美成人精品福利| 日韩精品一区二区三区老鸭窝 | 成人免费视频一区二区| 国产精品自在在线| 国产高清亚洲一区| 成人小视频免费在线观看| 国产麻豆视频一区二区| 国产一区二区0| 成人午夜免费电影| 日本精品一级二级| 欧美日韩视频第一区| 日韩一区二区三区三四区视频在线观看| 色天天综合色天天久久| 色欧美88888久久久久久影院| 成人91在线观看| 在线成人高清不卡| 国产嫩草影院久久久久| 日韩毛片在线免费观看| 一区二区三区欧美在线观看| 三级不卡在线观看| 国产精品亚洲综合一区在线观看| 不卡的电影网站| 91精品在线观看入口| 国产精品人成在线观看免费| 欧美激情一二三区| 伦理电影国产精品| 色综合天天视频在线观看| 精品国产污网站| 亚洲午夜久久久久| 国产suv精品一区二区三区| 在线国产亚洲欧美| 国产日韩欧美一区二区三区乱码 | 欧美一级免费观看| 亚洲精品大片www| 成人免费高清视频在线观看| 欧美日韩国产精品成人| 国产精品沙发午睡系列990531| 午夜精品福利视频网站 | 99久久er热在这里只有精品15| 日韩一区二区在线观看视频 | 久久亚洲春色中文字幕久久久| 亚洲精品视频在线观看免费| 成人国产视频在线观看| 精品国产乱码久久久久久图片| 午夜婷婷国产麻豆精品| 欧美私人免费视频| 亚洲人成影院在线观看| 99久久伊人久久99| 亚洲欧美一区二区在线观看| 久久av资源站| 久久综合狠狠综合久久综合88| 国产又黄又大久久| 中文字幕一区av| 91福利视频网站| 久草这里只有精品视频| 久久精品一区二区| 91麻豆精品在线观看| 亚洲第一精品在线| 久久夜色精品国产欧美乱极品| 国产91精品露脸国语对白| 综合欧美一区二区三区| 欧美日韩dvd在线观看| 久久91精品久久久久久秒播 | 亚洲欧洲无码一区二区三区| 99久久久久免费精品国产 | 日韩亚洲欧美高清| 国产一区二区三区免费| 国产精品美女久久久久久久久久久| 91蜜桃在线免费视频| 另类专区欧美蜜桃臀第一页| 国产精品色噜噜| 久久久99久久| 日韩一卡二卡三卡国产欧美| www.色综合.com| 国产91露脸合集magnet | 国产精品免费看片| 精品国产91久久久久久久妲己| 欧美在线视频日韩| 波波电影院一区二区三区| 精品一区二区三区在线观看 | 精品噜噜噜噜久久久久久久久试看| 99久久精品情趣| 岛国av在线一区| 国内精品久久久久影院色| 免费国产亚洲视频| 麻豆国产91在线播放|