📄 addstinfo.pas
字号:
unit AddStInfo;
interface
uses
System.Drawing, System.Collections, System.ComponentModel,
System.Windows.Forms, System.Data;
type
FrmAddStInfo = class(System.Windows.Forms.Form)
{$REGION 'Designer Managed Code'}
strict private
/// <summary>
/// Required designer variable.
/// </summary>
Components: System.ComponentModel.Container;
ErrorProvider1: System.Windows.Forms.ErrorProvider;
Label1: System.Windows.Forms.Label;
TxtStID: System.Windows.Forms.TextBox;
Label2: System.Windows.Forms.Label;
TxtName: System.Windows.Forms.TextBox;
Label3: System.Windows.Forms.Label;
TxtBornDate: System.Windows.Forms.TextBox;
ComboSex: System.Windows.Forms.ComboBox;
Label4: System.Windows.Forms.Label;
Label5: System.Windows.Forms.Label;
ComboClassNo: System.Windows.Forms.ComboBox;
Label6: System.Windows.Forms.Label;
TxtTel: System.Windows.Forms.TextBox;
Label7: System.Windows.Forms.Label;
TxtInDate: System.Windows.Forms.TextBox;
Label8: System.Windows.Forms.Label;
TxtAddress: System.Windows.Forms.TextBox;
Label9: System.Windows.Forms.Label;
TxtComment: System.Windows.Forms.TextBox;
Button1: System.Windows.Forms.Button;
Button2: 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;
procedure FrmAddStInfo_Load(sender: System.Object; e: System.EventArgs);
{$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(FrmAddStInfo))]
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 FrmAddStInfo.InitializeComponent;
begin
Self.ErrorProvider1 := System.Windows.Forms.ErrorProvider.Create;
Self.Label1 := System.Windows.Forms.Label.Create;
Self.TxtStID := System.Windows.Forms.TextBox.Create;
Self.Label2 := System.Windows.Forms.Label.Create;
Self.TxtName := System.Windows.Forms.TextBox.Create;
Self.Label3 := System.Windows.Forms.Label.Create;
Self.TxtBornDate := System.Windows.Forms.TextBox.Create;
Self.ComboSex := System.Windows.Forms.ComboBox.Create;
Self.Label5 := System.Windows.Forms.Label.Create;
Self.ComboClassNo := System.Windows.Forms.ComboBox.Create;
Self.Label6 := System.Windows.Forms.Label.Create;
Self.TxtTel := System.Windows.Forms.TextBox.Create;
Self.Label4 := System.Windows.Forms.Label.Create;
Self.Label7 := System.Windows.Forms.Label.Create;
Self.TxtInDate := System.Windows.Forms.TextBox.Create;
Self.Label8 := System.Windows.Forms.Label.Create;
Self.TxtAddress := System.Windows.Forms.TextBox.Create;
Self.Label9 := System.Windows.Forms.Label.Create;
Self.TxtComment := System.Windows.Forms.TextBox.Create;
Self.Button1 := System.Windows.Forms.Button.Create;
Self.Button2 := System.Windows.Forms.Button.Create;
Self.SuspendLayout;
//
// ErrorProvider1
//
Self.ErrorProvider1.ContainerControl := Self;
//
// 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;
//
// TxtStID
//
Self.TxtStID.Location := System.Drawing.Point.Create(64, 24);
Self.TxtStID.Name := 'TxtStID';
Self.TxtStID.TabIndex := 1;
Self.TxtStID.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;
//
// TxtName
//
Self.TxtName.Location := System.Drawing.Point.Create(240, 24);
Self.TxtName.Name := 'TxtName';
Self.TxtName.TabIndex := 3;
Self.TxtName.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;
//
// TxtBornDate
//
Self.TxtBornDate.Location := System.Drawing.Point.Create(240, 64);
Self.TxtBornDate.Name := 'TxtBornDate';
Self.TxtBornDate.TabIndex := 5;
Self.TxtBornDate.Text := '';
//
// ComboSex
//
Self.ComboSex.Location := System.Drawing.Point.Create(64, 64);
Self.ComboSex.Name := 'ComboSex';
Self.ComboSex.Size := System.Drawing.Size.Create(88, 20);
Self.ComboSex.TabIndex := 6;
//
// Label5
//
Self.Label5.Location := System.Drawing.Point.Create(8, 104);
Self.Label5.Name := 'Label5';
Self.Label5.Size := System.Drawing.Size.Create(64, 23);
Self.Label5.TabIndex := 8;
Self.Label5.Text := '班级';
Self.Label5.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
//
// ComboClassNo
//
Self.ComboClassNo.Location := System.Drawing.Point.Create(64, 104);
Self.ComboClassNo.Name := 'ComboClassNo';
Self.ComboClassNo.Size := System.Drawing.Size.Create(88, 20);
Self.ComboClassNo.TabIndex := 9;
//
// Label6
//
Self.Label6.Location := System.Drawing.Point.Create(176, 104);
Self.Label6.Name := 'Label6';
Self.Label6.Size := System.Drawing.Size.Create(64, 23);
Self.Label6.TabIndex := 10;
Self.Label6.Text := '联系电话';
Self.Label6.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
//
// TxtTel
//
Self.TxtTel.Location := System.Drawing.Point.Create(240, 104);
Self.TxtTel.Name := 'TxtTel';
Self.TxtTel.TabIndex := 11;
Self.TxtTel.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 := 12;
Self.Label4.Text := '出生日期';
Self.Label4.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
//
// Label7
//
Self.Label7.Location := System.Drawing.Point.Create(8, 144);
Self.Label7.Name := 'Label7';
Self.Label7.Size := System.Drawing.Size.Create(64, 23);
Self.Label7.TabIndex := 13;
Self.Label7.Text := '入校时间';
Self.Label7.TextAlign := System.Drawing.ContentAlignment.MiddleLeft;
//
// TxtInDate
//
Self.TxtInDate.Location := System.Drawing.Point.Create(64, 144);
Self.TxtInDate.Name := 'TxtInDate';
Self.TxtInDate.TabIndex := 14;
Self.TxtInDate.Text := '';
//
// Label8
//
Self.Label8.Location := System.Drawing.Point.Create(176, 144);
Self.Label8.Name := 'Label8';
Self.Label8.Size := System.Drawing.Size.Create(64, 23);
Self.Label8.TabIndex := 15;
Self.Label8.Text := '家庭住址';
Self.Label8.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
//
// TxtAddress
//
Self.TxtAddress.Location := System.Drawing.Point.Create(240, 144);
Self.TxtAddress.Name := 'TxtAddress';
Self.TxtAddress.TabIndex := 16;
Self.TxtAddress.Text := '';
//
// Label9
//
Self.Label9.Location := System.Drawing.Point.Create(8, 184);
Self.Label9.Name := 'Label9';
Self.Label9.Size := System.Drawing.Size.Create(64, 23);
Self.Label9.TabIndex := 17;
Self.Label9.Text := '备注';
Self.Label9.TextAlign := System.Drawing.ContentAlignment.MiddleCenter;
//
// TxtComment
//
Self.TxtComment.Location := System.Drawing.Point.Create(64, 184);
Self.TxtComment.Name := 'TxtComment';
Self.TxtComment.Size := System.Drawing.Size.Create(184, 21);
Self.TxtComment.TabIndex := 18;
Self.TxtComment.Text := '';
//
// Button1
//
Self.Button1.Location := System.Drawing.Point.Create(48, 224);
Self.Button1.Name := 'Button1';
Self.Button1.TabIndex := 19;
Self.Button1.Text := '确认添加';
//
// Button2
//
Self.Button2.Location := System.Drawing.Point.Create(224, 224);
Self.Button2.Name := 'Button2';
Self.Button2.TabIndex := 20;
Self.Button2.Text := '取消添加';
//
// FrmAddStInfo
//
Self.AutoScaleBaseSize := System.Drawing.Size.Create(6, 14);
Self.ClientSize := System.Drawing.Size.Create(368, 266);
Self.Controls.Add(Self.Button2);
Self.Controls.Add(Self.Button1);
Self.Controls.Add(Self.TxtComment);
Self.Controls.Add(Self.Label9);
Self.Controls.Add(Self.TxtAddress);
Self.Controls.Add(Self.Label8);
Self.Controls.Add(Self.TxtInDate);
Self.Controls.Add(Self.Label7);
Self.Controls.Add(Self.Label4);
Self.Controls.Add(Self.TxtTel);
Self.Controls.Add(Self.Label6);
Self.Controls.Add(Self.ComboClassNo);
Self.Controls.Add(Self.Label5);
Self.Controls.Add(Self.ComboSex);
Self.Controls.Add(Self.TxtBornDate);
Self.Controls.Add(Self.Label3);
Self.Controls.Add(Self.TxtName);
Self.Controls.Add(Self.Label2);
Self.Controls.Add(Self.TxtStID);
Self.Controls.Add(Self.Label1);
Self.Name := 'FrmAddStInfo';
Self.Text := '添加学籍信息';
Include(Self.Load, Self.FrmAddStInfo_Load);
Self.ResumeLayout(False);
end;
{$ENDREGION}
procedure FrmAddStInfo.Dispose(Disposing: Boolean);
begin
if Disposing then
begin
if Components <> nil then
Components.Dispose();
end;
inherited Dispose(Disposing);
end;
constructor FrmAddStInfo.Create;
begin
inherited Create;
//
// Required for Windows Form Designer support
//
InitializeComponent;
//
// TODO: Add any constructor code after InitializeComponent call
//
end;
procedure FrmAddStInfo.FrmAddStInfo_Load(sender: System.Object; e: System.EventArgs);
begin
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -