addresult.pas

来自「《Delphi 2005数据库系统开发与应用》源代码」· PAS 代码 · 共 188 行

PAS
188
字号
unit AddResult;

interface

uses
  System.Drawing, System.Collections, System.ComponentModel,
  System.Windows.Forms, System.Data;

type
  FrmAddResult = class(System.Windows.Forms.Form)
  {$REGION 'Designer Managed Code'}
  strict private
    /// <summary>
    /// Required designer variable.
    /// </summary>
    Components: System.ComponentModel.Container;
    Label1: System.Windows.Forms.Label;
    TxtTestDate: System.Windows.Forms.TextBox;
    Label2: System.Windows.Forms.Label;
    TxtStID: System.Windows.Forms.TextBox;
    Label3: System.Windows.Forms.Label;
    TxtCourseNo: System.Windows.Forms.TextBox;
    Label4: System.Windows.Forms.Label;
    TxtResult: System.Windows.Forms.TextBox;
    BtOK: System.Windows.Forms.Button;
    BtCancel: System.Windows.Forms.Button;
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    procedure InitializeComponent;
  {$ENDREGION}
  strict protected
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    procedure Dispose(Disposing: Boolean); override;
  private
    { Private Declarations }
  public
    constructor Create;
  end;

  [assembly: RuntimeRequiredAttribute(TypeOf(FrmAddResult))]

implementation

{$REGION 'Windows Form Designer generated code'}
/// <summary>
/// Required method for Designer support -- do not modify
/// the contents of this method with the code editor.
/// </summary>
procedure FrmAddResult.InitializeComponent;
begin
  Self.Label1 := System.Windows.Forms.Label.Create;
  Self.TxtTestDate := System.Windows.Forms.TextBox.Create;
  Self.Label2 := System.Windows.Forms.Label.Create;
  Self.TxtStID := System.Windows.Forms.TextBox.Create;
  Self.Label3 := System.Windows.Forms.Label.Create;
  Self.TxtCourseNo := System.Windows.Forms.TextBox.Create;
  Self.Label4 := System.Windows.Forms.Label.Create;
  Self.TxtResult := System.Windows.Forms.TextBox.Create;
  Self.BtOK := System.Windows.Forms.Button.Create;
  Self.BtCancel := System.Windows.Forms.Button.Create;
  Self.SuspendLayout;
  // 
  // Label1
  // 
  Self.Label1.Location := System.Drawing.Point.Create(8, 24);
  Self.Label1.Name := 'Label1';
  Self.Label1.Size := System.Drawing.Size.Create(64, 23);
  Self.Label1.TabIndex := 0;
  Self.Label1.Text := '考试时间';
  Self.Label1.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
  // 
  // TxtTestDate
  // 
  Self.TxtTestDate.Location := System.Drawing.Point.Create(72, 24);
  Self.TxtTestDate.Name := 'TxtTestDate';
  Self.TxtTestDate.TabIndex := 1;
  Self.TxtTestDate.Text := '';
  // 
  // Label2
  // 
  Self.Label2.Location := System.Drawing.Point.Create(176, 24);
  Self.Label2.Name := 'Label2';
  Self.Label2.Size := System.Drawing.Size.Create(64, 23);
  Self.Label2.TabIndex := 2;
  Self.Label2.Text := '学号';
  Self.Label2.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
  // 
  // TxtStID
  // 
  Self.TxtStID.Location := System.Drawing.Point.Create(240, 24);
  Self.TxtStID.Name := 'TxtStID';
  Self.TxtStID.TabIndex := 3;
  Self.TxtStID.Text := '';
  // 
  // Label3
  // 
  Self.Label3.Location := System.Drawing.Point.Create(8, 64);
  Self.Label3.Name := 'Label3';
  Self.Label3.Size := System.Drawing.Size.Create(64, 23);
  Self.Label3.TabIndex := 4;
  Self.Label3.Text := '课程编号';
  Self.Label3.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
  // 
  // TxtCourseNo
  // 
  Self.TxtCourseNo.Location := System.Drawing.Point.Create(72, 64);
  Self.TxtCourseNo.Name := 'TxtCourseNo';
  Self.TxtCourseNo.TabIndex := 5;
  Self.TxtCourseNo.Text := '';
  // 
  // Label4
  // 
  Self.Label4.Location := System.Drawing.Point.Create(176, 64);
  Self.Label4.Name := 'Label4';
  Self.Label4.Size := System.Drawing.Size.Create(64, 23);
  Self.Label4.TabIndex := 6;
  Self.Label4.Text := '分数';
  Self.Label4.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
  // 
  // TxtResult
  // 
  Self.TxtResult.Location := System.Drawing.Point.Create(240, 64);
  Self.TxtResult.Name := 'TxtResult';
  Self.TxtResult.TabIndex := 7;
  Self.TxtResult.Text := '';
  // 
  // BtOK
  // 
  Self.BtOK.Location := System.Drawing.Point.Create(64, 104);
  Self.BtOK.Name := 'BtOK';
  Self.BtOK.TabIndex := 8;
  Self.BtOK.Text := '确认添加';
  // 
  // BtCancel
  // 
  Self.BtCancel.Location := System.Drawing.Point.Create(208, 104);
  Self.BtCancel.Name := 'BtCancel';
  Self.BtCancel.TabIndex := 9;
  Self.BtCancel.Text := '取消添加';
  // 
  // FrmAddResult
  // 
  Self.AutoScaleBaseSize := System.Drawing.Size.Create(6, 14);
  Self.ClientSize := System.Drawing.Size.Create(360, 142);
  Self.Controls.Add(Self.BtCancel);
  Self.Controls.Add(Self.BtOK);
  Self.Controls.Add(Self.TxtResult);
  Self.Controls.Add(Self.Label4);
  Self.Controls.Add(Self.TxtCourseNo);
  Self.Controls.Add(Self.Label3);
  Self.Controls.Add(Self.TxtStID);
  Self.Controls.Add(Self.Label2);
  Self.Controls.Add(Self.TxtTestDate);
  Self.Controls.Add(Self.Label1);
  Self.Name := 'FrmAddResult';
  Self.Text := '添加成绩信息';
  Self.ResumeLayout(False);
end;
{$ENDREGION}

procedure FrmAddResult.Dispose(Disposing: Boolean);
begin
  if Disposing then
  begin
    if Components <> nil then
      Components.Dispose();
  end;
  inherited Dispose(Disposing);
end;

constructor FrmAddResult.Create;
begin
  inherited Create;
  //
  // Required for Windows Form Designer support
  //
  InitializeComponent;
  //
  // TODO: Add any constructor code after InitializeComponent call
  //
end;

end.

⌨️ 快捷键说明

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