📄 worktypemodify.pas
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -