worktypemodify.pas
来自「三層源碼,DELPHI寫的三層源碼,三層源碼,」· PAS 代码 · 共 69 行
PAS
69 行
unit worktypemodify;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, xpButton;
type
Tworktype_modify = class(TForm)
xpButton2: TxpButton;
xpButton3: TxpButton;
Bevel1: TBevel;
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
ComboBox1: TComboBox;
procedure FormShow(Sender: TObject);
procedure xpButton3Click(Sender: TObject);
procedure FormPaint(Sender: TObject);
procedure xpButton2Click(Sender: TObject);
private
procedure showinfo;
{ Private declarations }
public
localstr:string;
{ Public declarations }
end;
var
worktype_modify: Tworktype_modify;
implementation
uses sldata;
{$R *.DFM}
procedure Tworktype_modify.showinfo;
begin
sl_data.getworktypeinfo(localstr,combobox1);
end;
procedure Tworktype_modify.FormShow(Sender: TObject);
begin
edit1.text:=localstr;
combobox1.clear;
sl_data.getdeptlist(combobox1.items);
combobox1.itemindex:=0;
if localstr<>'' then showinfo;
end;
procedure Tworktype_modify.xpButton3Click(Sender: TObject);
begin
close;
end;
procedure Tworktype_modify.FormPaint(Sender: TObject);
begin
sl_data.formonpaint(self);
end;
procedure Tworktype_modify.xpButton2Click(Sender: TObject);
begin
if edit1.text<>'' then
if sl_data.modifyworktype(edit1.text,combobox1.text,localstr) then close;
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?