You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.3 KiB
Plaintext

unit u_code_holiday;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
BusinessSkinForm, bsSkinCtrls, ExtCtrls, dxExEdtr, dxCntner, dxTL,
dxDBCtrl, dxDBGrid, dxDBTLCl, dxGrClms, DB, ADODB,Dialogs;
type
Tfrm_code_holiday = class(TForm)
Panel1: TPanel;
bsSkinButton1: TbsSkinButton;
bsSkinButton2: TbsSkinButton;
bsSkinButton4: TbsSkinButton;
bsSkinButton3: TbsSkinButton;
bsSkinButton5: TbsSkinButton;
bsBusinessSkinForm1: TbsBusinessSkinForm;
t_code_holiday1: TDataSource;
t_code_holiday: TADOQuery;
bsSkinGroupBox1: TbsSkinGroupBox;
dxDBGrid1: TdxDBGrid;
dxDBGrid1Column1: TdxDBGridMaskColumn;
dxDBGrid1Column3: TdxDBGridDateColumn;
dxDBGrid1Column2: TdxDBGridDateColumn;
dxDBGrid1Column4: TdxDBGridColumn;
dxDBGrid1Column5: TdxDBGridColumn;
dxDBGrid1Column6: TdxDBGridColumn;
procedure FormShow(Sender: TObject);
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
procedure bsSkinButton5Click(Sender: TObject);
procedure bsSkinButton3Click(Sender: TObject);
procedure bsSkinButton2Click(Sender: TObject);
procedure bsSkinButton4Click(Sender: TObject);
procedure bsSkinButton1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
procedure Upbsrate(bsno:string);
end;
var
frm_code_holiday: Tfrm_code_holiday;
implementation
uses u_data_share, my_sys_function, u_main, u_sys_progress;
{$R *.dfm}
procedure Tfrm_code_holiday.FormShow(Sender: TObject);
begin
if not t_code_holiday.Active then
t_code_holiday.Open;
end;
procedure Tfrm_code_holiday.FormCloseQuery(Sender: TObject;
var CanClose: Boolean);
begin
CanClose:=frm_close_query(t_code_holiday);
end;
procedure Tfrm_code_holiday.bsSkinButton5Click(Sender: TObject);
begin
close;
end;
procedure Tfrm_code_holiday.bsSkinButton3Click(Sender: TObject);
begin
table_cancel(t_code_holiday);
end;
procedure Tfrm_code_holiday.bsSkinButton2Click(Sender: TObject);
begin
table_post(t_code_holiday);
end;
procedure Tfrm_code_holiday.bsSkinButton4Click(Sender: TObject);
begin
table_delete(t_code_holiday);
end;
procedure Tfrm_code_holiday.bsSkinButton1Click(Sender: TObject);
begin
t_code_holiday.Insert;
end;
procedure Tfrm_code_holiday.Upbsrate(bsno:string);
begin
end;
end.