|
|
|
|
unit u_op_seai_apply_add;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
|
|
|
Dialogs, DB, BusinessSkinForm, StdCtrls, wwdbdatetimepicker, bsSkinCtrls;
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
Tfrm_op_seai_apply_add = class(TForm)
|
|
|
|
|
Label1: TLabel;
|
|
|
|
|
bsSkinButton1: TbsSkinButton;
|
|
|
|
|
bsSkinButton2: TbsSkinButton;
|
|
|
|
|
wwDBDateTimePicker1: TwwDBDateTimePicker;
|
|
|
|
|
bsSkinButton3: TbsSkinButton;
|
|
|
|
|
bsBusinessSkinForm1: TbsBusinessSkinForm;
|
|
|
|
|
data1: TDataSource;
|
|
|
|
|
procedure bsSkinButton2Click(Sender: TObject);
|
|
|
|
|
procedure FormShow(Sender: TObject);
|
|
|
|
|
procedure bsSkinButton1Click(Sender: TObject);
|
|
|
|
|
procedure bsSkinButton3Click(Sender: TObject);
|
|
|
|
|
private
|
|
|
|
|
{ Private declarations }
|
|
|
|
|
public
|
|
|
|
|
{ Public declarations }
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
var
|
|
|
|
|
frm_op_seai_apply_add: Tfrm_op_seai_apply_add;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
uses u_op_seai_apply, my_sys_function, u_main;
|
|
|
|
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_op_seai_apply_add.bsSkinButton2Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
close;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_op_seai_apply_add.FormShow(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
wwDBDateTimePicker1.Date:=date;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_op_seai_apply_add.bsSkinButton1Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
with frm_op_seai_apply do
|
|
|
|
|
begin
|
|
|
|
|
t_op_seai.insert;
|
|
|
|
|
if bsSkinButton11.Caption='<27>༭<EFBFBD><EFBFBD>' then
|
|
|
|
|
begin
|
|
|
|
|
Notebook1.PageIndex:=1;
|
|
|
|
|
bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>';
|
|
|
|
|
end;
|
|
|
|
|
t_op_seai['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=date;
|
|
|
|
|
t_op_seai['<27>ܴ<EFBFBD>']:=WeekofYear(date);
|
|
|
|
|
t_op_seai['<27><><EFBFBD><EFBFBD>']:=0;
|
|
|
|
|
t_op_seai['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
|
|
|
|
|
t_op_seai['¼<><C2BC><EFBFBD><EFBFBD>']:=employee;
|
|
|
|
|
t_op_seai['¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=date;
|
|
|
|
|
t_op_seai['<27><><EFBFBD><EFBFBD>Ա']:=employee;
|
|
|
|
|
t_op_seai['<27><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>']:=employee;
|
|
|
|
|
t_op_seai['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
|
|
|
|
|
t_op_seai['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
|
|
|
|
|
t_op_seai['<27>ͷ<EFBFBD>Ա']:=employee;
|
|
|
|
|
t_op_seai['ж<><D0B6><EFBFBD><EFBFBD>']:=get_parameters_value(17,'QINGDAO,CHINA');
|
|
|
|
|
t_op_seai['ҵ<><D2B5><EFBFBD><EFBFBD>Դ']:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
t_op_seai['<27><><EFBFBD>۲<EFBFBD><DBB2><EFBFBD>']:=department;
|
|
|
|
|
t_op_seai['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=department;
|
|
|
|
|
t_op_seai['װ<>˷<EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
|
|
|
|
|
end;
|
|
|
|
|
close;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_op_seai_apply_add.bsSkinButton3Click(Sender: TObject);
|
|
|
|
|
var
|
|
|
|
|
afield : variant;
|
|
|
|
|
i: Integer;
|
|
|
|
|
begin
|
|
|
|
|
if data1.DataSet.IsEmpty then
|
|
|
|
|
begin
|
|
|
|
|
showmessage('û<>и<EFBFBD><D0B8><EFBFBD>ĸ<EFBFBD>壬<EFBFBD><E5A3AC><EFBFBD>ܸ<EFBFBD><DCB8><EFBFBD><EFBFBD>½<EFBFBD><C2BD><EFBFBD>');
|
|
|
|
|
exit;
|
|
|
|
|
end;
|
|
|
|
|
afield := vararraycreate([0,data1.DataSet.fieldcount-1],varvariant);
|
|
|
|
|
for i := 0 to (data1.DataSet.fieldcount-1) do
|
|
|
|
|
begin
|
|
|
|
|
afield[i] :=data1.DataSet.fields[i].value ;
|
|
|
|
|
end;
|
|
|
|
|
data1.DataSet.append;
|
|
|
|
|
for i := 0 to (data1.DataSet.fieldcount-1) do
|
|
|
|
|
begin
|
|
|
|
|
data1.DataSet.fields[i].value := afield[i] ;
|
|
|
|
|
end;
|
|
|
|
|
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>1']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>2']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>3']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>4']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>5']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>6']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>7']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>8']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>9']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>10']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27><>TEU']:=0;
|
|
|
|
|
data1.DataSet['<27><>װ<EFBFBD><D7B0>']:='';
|
|
|
|
|
//data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д']:='';
|
|
|
|
|
data1.DataSet['<27>Ʒѱ<C6B7>']:='';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data1.DataSet['ҵ<><D2B5>״̬']:='<27><><EFBFBD><EFBFBD>ί<EFBFBD><CEAF>';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>״̬']:='¼<><C2BC>״̬';
|
|
|
|
|
data1.DataSet['¼<><C2BC><EFBFBD><EFBFBD>']:=employee;
|
|
|
|
|
data1.DataSet['¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=date;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>Ա']:=employee;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>']:=employee;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=wwDBDateTimePicker1.date;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>ĺ<EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27>ɽ<EFBFBD><C9BD><EFBFBD>ʽ']:='';
|
|
|
|
|
data1.DataSet['<27>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>쵥<EFBFBD><ECB5A5>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>']:=null;
|
|
|
|
|
data1.DataSet['ʵ<><CAB5>ʱ<EFBFBD><CAB1>']:=null;
|
|
|
|
|
data1.DataSet['Ѭ<><D1AC>ʱ<EFBFBD><CAB1>']:=null;
|
|
|
|
|
data1.DataSet['<27><>֤ʱ<D6A4><CAB1>']:=null;
|
|
|
|
|
data1.DataSet['<27>ܴ<EFBFBD>']:=WeekofYear(wwDBDateTimePicker1.date);
|
|
|
|
|
data1.DataSet['ж<><D0B6><EFBFBD><EFBFBD>']:=get_parameters_value(17,'QINGDAO,CHINA');
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
|
|
|
|
|
|
|
|
|
|
frm_op_seai_apply.notebook1.pageindex:=1;
|
|
|
|
|
frm_op_seai_apply.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>';
|
|
|
|
|
close;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
end.
|