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

📄 msbrunits.pas

📁 详细的ERP设计资料
💻 PAS
字号:
unit MSBrUnits;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, WSStandardBrowse, DB, ActnList, ToolWin, ComCtrls, Grids,
  DBGrids, QLDBGrid, ADODB,WSEdit, ExtCtrls, Menus;

type
  TMSBrUnitForm = class(TWSStandardBrowseForm)
    tblMSBrUnt: TADODataSet;
    ToolButton1: TToolButton;
    ToolButton2: TToolButton;
    ToolButton3: TToolButton;
    ToolButton4: TToolButton;
    ToolButton5: TToolButton;
    ToolButton6: TToolButton;
    ToolButton7: TToolButton;
    ToolButton8: TToolButton;
    ToolButton9: TToolButton;
    ToolButton10: TToolButton;
    ToolButton11: TToolButton;
    tblMSBrUntID: TAutoIncField;
    tblMSBrUntName: TStringField;
    tblMSBrUntGoalUnitID: TIntegerField;
    tblMSBrUntIsGoalUnit: TBooleanField;
    tblMSBrUntRecordState: TStringField;
    ADOTable1: TADOTable;
    tblMSBrUntGoaLName: TStringField;
    ToolButton12: TToolButton;
    tblMSBrUntCreateDate: TDateTimeField;
    tblMSBrUntCreateUserID: TIntegerField;
    tblMSBrUntExchangeRate: TBCDField;
    ToolButton13: TToolButton;
    procedure tblMSBrUntIsGoalUnitGetText(Sender: TField; var Text: String;
      DisplayText: Boolean);
    procedure AddNewActionExecute(Sender: TObject);
    procedure EditActionExecute(Sender: TObject);
    procedure DeleteActionExecute(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  protected
      function CreateEditForm: TWSEditForm; override;
  end;

var
  MSBrUnitForm: TMSBrUnitForm;

implementation

uses CommonDM, MSEdUnit;

{$R *.dfm}
function TMSBrUnitForm.CreateEditForm: TWSEditForm;
begin
     Result := TMSEdUnitForm.Create(Application);
end;

procedure TMSBrUnitForm.tblMSBrUntIsGoalUnitGetText(Sender: TField;
  var Text: String; DisplayText: Boolean);
begin
  inherited;
if sender.Value
then text:='是'
else text:='否'
end;

procedure TMSBrUnitForm.AddNewActionExecute(Sender: TObject);
begin
  inherited;
  ADOTable1.Requery();
  tblMSBrUnt.Close;
  tblMSBrUnt.Open;
end;

procedure TMSBrUnitForm.EditActionExecute(Sender: TObject);
begin
  inherited;
  ADOTable1.Requery();
  tblMSBrUnt.Close;
  tblMSBrUnt.Open;
end;

procedure TMSBrUnitForm.DeleteActionExecute(Sender: TObject);
begin
  inherited;
  ADOTable1.Requery();
  tblMSBrUnt.Close;
  tblMSBrUnt.Open;
end;

end.

⌨️ 快捷键说明

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