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.

601 lines
24 KiB
Plaintext

11 months ago
unit u_op_seae_apply_add;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, BusinessSkinForm, StdCtrls, wwdbdatetimepicker, bsSkinCtrls,
Menus,ComObj;
type
Tfrm_op_seae_apply_add = class(TForm)
Label1: TLabel;
bsSkinButton1: TbsSkinButton;
bsSkinButton2: TbsSkinButton;
wwDBDateTimePicker1: TwwDBDateTimePicker;
bsSkinButton3: TbsSkinButton;
bsBusinessSkinForm1: TbsBusinessSkinForm;
data1: TDataSource;
PopupMenu1: TPopupMenu;
N1: TMenuItem;
N2: TMenuItem;
N3: TMenuItem;
bsSkinButton4: TbsSkinButton;
OpenDialog1: TOpenDialog;
procedure bsSkinButton2Click(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure bsSkinButton3Click(Sender: TObject);
procedure bsSkinButton1Click(Sender: TObject);
procedure N1Click(Sender: TObject);
procedure bsSkinButton4Click(Sender: TObject);
procedure N3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_op_seae_apply_add: Tfrm_op_seae_apply_add;
seae_apply_add_total:boolean=false;
implementation
uses u_op_seae_apply, my_sys_function, u_main, u_data_share, u_op_apply;
{$R *.dfm}
procedure Tfrm_op_seae_apply_add.bsSkinButton2Click(Sender: TObject);
begin
close;
end;
procedure Tfrm_op_seae_apply_add.FormShow(Sender: TObject);
begin
// wwDBDateTimePicker1.MinDate:=Logininfo.endday+1;
wwDBDateTimePicker1.Date:=date;
end;
procedure Tfrm_op_seae_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['<27>ܴ<EFBFBD>']:=WeekofYear(wwDBDateTimePicker1.date);
data1.DataSet['װ<>˷<EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>ͨ<EFBFBD><CDA8>';
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
if not (Trim(frm_data_share.t_sys_noset.fieldbyname('<27><><EFBFBD>Ź<EFBFBD><C5B9><EFBFBD>').Asstring)='<27>ֶ<EFBFBD><D6B6>༭') then
data1.DataSet['ί<>б<EFBFBD><D0B1><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['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
data1.DataSet['<27><><EFBFBD><EFBFBD>Ա']:='';
data1.DataSet['<27><><EFBFBD>ص<EFBFBD><D8B5><EFBFBD>']:='';
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
data1.DataSet['<27>ֲ<EFBFBD><D6B2><EFBFBD>']:='';
data1.DataSet['<27>Ƿ<EFBFBD><C7B7><EFBFBD>˰']:=0;
data1.DataSet['<27><>˰<EFBFBD><CBB0><EFBFBD><EFBFBD>']:=null;
data1.DataSet['<27>Ƿ<EFBFBD>ͨ<EFBFBD><CDA8>']:=0;
data1.DataSet['ͨ<><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
data1.DataSet['Σ<><CEA3>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>']:='';
data1.DataSet['Σ<><CEA3>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>']:=null;
data1.DataSet['<27><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>']:='';
data1.DataSet['<27>¶ȵ<C2B6>λ']:='';
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʶ']:='';
data1.DataSet['<27><><EFBFBD>̿<EFBFBD><CCBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
data1.DataSet['<27><><EFBFBD≯ۿ<CCB8>']:='';
data1.DataSet['<27><><EFBFBD>̴<EFBFBD><CCB4><EFBFBD>']:='';
data1.DataSet['<27><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD>']:='';
data1.DataSet['<27><><EFBFBD>ŷ<EFBFBD><C5B7><EFBFBD>']:='';
data1.DataSet['<27><>ע']:='';
data1.DataSet['<27>ֵ<EFBFBD><D6B5>б<EFBFBD>']:='';
data1.DataSet['<27><>Ʊ<EFBFBD><C6B1>']:='';
data1.DataSet['<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>']:='';
data1.DataSet['<27>Ƿ<EFBFBD>ǩ<EFBFBD><C7A9>']:=0;
data1.DataSet['ǩ<><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
data1.DataSet['<27>Ƿ<EFBFBD><C7B7>ɳ<EFBFBD>']:=0;
data1.DataSet['<27>ɳ<EFBFBD><C9B3><EFBFBD><EFBFBD><EFBFBD>']:=null;
data1.DataSet['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
data1.DataSet['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
data1.DataSet['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
data1.DataSet['½<><C2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=0;
data1.DataSet['<27>Ƿ<EFBFBD><C7B7><EFBFBD>˰']:=0;
data1.DataSet['<27>Ƿ<EFBFBD>ͨ<EFBFBD><CDA8>']:=0;
data1.DataSet['<27>Ƿ<EFBFBD>ǩ<EFBFBD><C7A9>']:=0;
data1.DataSet['<27>Ƿ<EFBFBD><C7B7>˲<EFBFBD>']:=0;
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><D6B2><EFBFBD><EFBFBD><EFBFBD>']:=subComp;
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><EFBFBD>']:=0;
data1.DataSet['<27><><EFBFBD><EFBFBD>']:='';
data1.DataSet['<27>ܼ<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;
if not seae_apply_add_total then begin
frm_op_seae_apply.Notebook1.PageIndex:=1;
frm_op_seae_apply.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>';
end;
close;
end;
procedure Tfrm_op_seae_apply_add.bsSkinButton1Click(Sender: TObject);
begin
if not seae_apply_add_total then begin
with frm_op_seae_apply do
begin
t_op_seae.insert;
if bsSkinButton11.Caption='<27><EFBFBD>޸<EFBFBD>' then
begin
Notebook1.PageIndex:=1;
bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>';
end;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=date;
t_op_seae['<27>ܴ<EFBFBD>']:=WeekofYear(date);
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD>']:=employee;
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=date;
t_op_seae['<27>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD>']:=subComp;
t_op_seae['<27><><EFBFBD><EFBFBD>Ա']:=employee;
// t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
// t_op_seae['<27><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>']:=employee;
// t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27>ͷ<EFBFBD>Ա']:=employee;
// t_op_seae['<27><><EFBFBD>۲<EFBFBD><DBB2><EFBFBD>']:=department;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=department;
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD>Դ']:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
t_op_seae['<27><><EFBFBD>˸<EFBFBD>']:=get_parameters_value(14,'QINGDAO,CHINA');
t_op_seae['װ<><D7B0><EFBFBD><EFBFBD>']:=get_parameters_value(16,'QINGDAO,CHINA');
t_op_seae['<27><EFBFBD><E1B5A5><EFBFBD><EFBFBD>']:=get_parameters_value(20,'THREE');
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(21,'CY-CY');
t_op_seae['<27><>ͷ']:=get_parameters_value(22,'N/M');
t_op_seae['<27><><EFBFBD>ѷ<EFBFBD>ʽ']:=get_parameters_value(23,'FREIGHT PREPAID');
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD>˰']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ͨ<EFBFBD><CDA8>']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ǩ<EFBFBD><C7A9>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>˲<EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['½<><C2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
t_op_seae['װ<>˷<EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>ͨ<EFBFBD><CDA8>';
end;
end else begin
with frm_op_apply do
begin
t_op_seae.insert;
if bsSkinButton11.Caption='<27><EFBFBD>޸<EFBFBD>' then
begin
Notebook1.PageIndex:=1;
bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>';
end;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=date;
t_op_seae['<27>ܴ<EFBFBD>']:=WeekofYear(date);
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD>']:=employee;
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=date;
t_op_seae['<27>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD>']:=subComp;
t_op_seae['<27><><EFBFBD><EFBFBD>Ա']:=employee;
// t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
// t_op_seae['<27><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>']:=employee;
// t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27>ͷ<EFBFBD>Ա']:=employee;
// t_op_seae['<27><><EFBFBD>۲<EFBFBD><DBB2><EFBFBD>']:=department;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=department;
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD>Դ']:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
t_op_seae['<27><><EFBFBD>˸<EFBFBD>']:=get_parameters_value(14,'QINGDAO,CHINA');
t_op_seae['װ<><D7B0><EFBFBD><EFBFBD>']:=get_parameters_value(16,'QINGDAO,CHINA');
t_op_seae['<27><EFBFBD><E1B5A5><EFBFBD><EFBFBD>']:=get_parameters_value(20,'THREE');
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(21,'CY-CY');
t_op_seae['<27><>ͷ']:=get_parameters_value(22,'N/M');
t_op_seae['<27><><EFBFBD>ѷ<EFBFBD>ʽ']:=get_parameters_value(23,'FREIGHT PREPAID');
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD>˰']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ͨ<EFBFBD><CDA8>']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ǩ<EFBFBD><C7A9>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>˲<EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['½<><C2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
t_op_seae['װ<>˷<EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>ͨ<EFBFBD><CDA8>';
end;
end;
close;
end;
procedure Tfrm_op_seae_apply_add.N1Click(Sender: TObject);
var
Ext,adate,bsno,corp,vslvoy:String;
ExcelTemplet:Variant;
i,j:integer;
M,D,Y:Word;
imp:boolean;
begin
{
if OpenDialog1.Execute then
begin
Ext:=lowercase(ExtractFileExt(OpenDialog1.FileName));
if Ext='.xls' then begin
ExcelTemplet:= CreateOleObject('Excel.Application');
try
ExcelTemplet.Workbooks.Open(OpenDialog1.FileName);
I:=3;
imp:=true;
while VartoStr(ExcelTemplet.ActiveSheet.Cells[I,2].Value)<>'' do begin
corp:=VartoStr(ExcelTemplet.ActiveSheet.Cells[I,10].Value);
if not frm_data_share.t_crm_client_all.Locate('<27>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>',corp,[]) then begin
MessageDlg('<27>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>:'+corp+' ϵͳ<CFB5>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD>Ӵ˿ͻ<CBBF><CDBB><EFBFBD>',mtWarning,[mbYes],0);
imp:=false;
end;
i:=i+1;
end;
if imp then begin
I:=3;
while VartoStr(ExcelTemplet.ActiveSheet.Cells[I,2].Value)<>'' do begin
aDate:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,2].Value);
M:=StrToInt(COPY(adate,1,pos('.',adate)-1));
D:=StrToInt(COPY(adate,pos('.',adate)+1,length(adate)-pos('.',adate)));
Y:=strtoint(formatdatetime('YYYY',date));
corp:=VartoStr(ExcelTemplet.ActiveSheet.Cells[I,1].Value);
if not seae_apply_add_total then begin
with frm_op_seae_apply do
begin
t_op_seae.insert;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=date;
t_op_seae['<27>ܴ<EFBFBD>']:=WeekofYear(date);
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD>']:=employee;
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=date;
t_op_seae['<27>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD>']:=subComp;
t_op_seae['<27><><EFBFBD><EFBFBD>Ա']:=employee;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>']:=employee;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27>ͷ<EFBFBD>Ա']:=employee;
t_op_seae['<27><><EFBFBD>۲<EFBFBD><DBB2><EFBFBD>']:=department;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=department;
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD>Դ']:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
t_op_seae['<27><><EFBFBD>˸<EFBFBD>']:=get_parameters_value(14,'QINGDAO,CHINA');
t_op_seae['װ<><D7B0><EFBFBD><EFBFBD>']:=get_parameters_value(16,'QINGDAO,CHINA');
t_op_seae['<27><EFBFBD><E1B5A5><EFBFBD><EFBFBD>']:=get_parameters_value(20,'THREE');
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(21,'CY-CY');
t_op_seae['<27><>ͷ']:=get_parameters_value(22,'N/M');
t_op_seae['<27><><EFBFBD>ѷ<EFBFBD>ʽ']:=get_parameters_value(23,'FREIGHT PREPAID');
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD>˰']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ͨ<EFBFBD><CDA8>']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ǩ<EFBFBD><C7A9>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD>˰']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>˲<EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['½<><C2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
t_op_seae['װ<>˷<EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>ͨ<EFBFBD><CDA8>';
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['ͨ<><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['<27><>Ӫ<EFBFBD><D3AA>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,3].Value);
vslvoy:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,4].Value);
if pos('/',VSLVOY)>0 then begin
t_op_seae['<27><><EFBFBD><EFBFBD>']:=COPY(VSLVOY,1,pos('/',VSLVOY)-1);
t_op_seae['<27><><EFBFBD><EFBFBD>']:=COPY(VSLVOY,pos('/',VSLVOY)+1,length(VSLVOY)-pos('/',VSLVOY));
end else
t_op_seae['<27><><EFBFBD><EFBFBD>']:=VSLVOY;
t_op_seae['<27><><EFBFBD><EFBFBD><E1B5A5>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,5].Value);
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,7].Value);
t_op_seae['<27>ɽ<EFBFBD><C9BD><EFBFBD>ʽ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,8].Value);
t_op_seae['<27><><EFBFBD>ص<EFBFBD><D8B5><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,9].Value);
t_op_seae['ί<>е<EFBFBD>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,10].Value);
t_op_seae['<27><><EFBFBD>ر<EFBFBD>ע']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,11].Value);
t_op_seae.post;
end;
end else begin
with frm_op_apply do
begin
t_op_seae.insert;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=date;
t_op_seae['<27>ܴ<EFBFBD>']:=WeekofYear(date);
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD>']:=employee;
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=date;
t_op_seae['<27>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD>']:=subComp;
t_op_seae['<27><><EFBFBD><EFBFBD>Ա']:=employee;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>']:=employee;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27>ͷ<EFBFBD>Ա']:=employee;
t_op_seae['<27><><EFBFBD>۲<EFBFBD><DBB2><EFBFBD>']:=department;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=department;
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD>Դ']:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
t_op_seae['<27><><EFBFBD>˸<EFBFBD>']:=get_parameters_value(14,'QINGDAO,CHINA');
t_op_seae['װ<><D7B0><EFBFBD><EFBFBD>']:=get_parameters_value(16,'QINGDAO,CHINA');
t_op_seae['<27><EFBFBD><E1B5A5><EFBFBD><EFBFBD>']:=get_parameters_value(20,'THREE');
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(21,'CY-CY');
t_op_seae['<27><>ͷ']:=get_parameters_value(22,'N/M');
t_op_seae['<27><><EFBFBD>ѷ<EFBFBD>ʽ']:=get_parameters_value(23,'FREIGHT PREPAID');
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD>˰']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ͨ<EFBFBD><CDA8>']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ǩ<EFBFBD><C7A9>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>˲<EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['½<><C2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
t_op_seae['װ<>˷<EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>ͨ<EFBFBD><CDA8>';
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['ͨ<><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['<27><>Ӫ<EFBFBD><D3AA>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,3].Value);
vslvoy:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,4].Value);
if pos('/',VSLVOY)>0 then begin
t_op_seae['<27><><EFBFBD><EFBFBD>']:=COPY(VSLVOY,1,pos('/',VSLVOY)-1);
t_op_seae['<27><><EFBFBD><EFBFBD>']:=COPY(VSLVOY,pos('/',VSLVOY)+1,length(VSLVOY)-pos('/',VSLVOY));
end else
t_op_seae['<27><><EFBFBD><EFBFBD>']:=VSLVOY;
t_op_seae['<27><><EFBFBD><EFBFBD><E1B5A5>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,5].Value);
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,7].Value);
t_op_seae['<27>ɽ<EFBFBD><C9BD><EFBFBD>ʽ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,8].Value);
t_op_seae['<27><><EFBFBD>ص<EFBFBD><D8B5><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,9].Value);
t_op_seae['ί<>е<EFBFBD>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,10].Value);
t_op_seae['<27><><EFBFBD>ر<EFBFBD>ע']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,11].Value);
t_op_seae.post;
end;
end;
i:=i+1;
end;
end;
finally
ExcelTemplet.DisplayAlerts := false;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
ExcelTemplet.Quit;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>
end;
end;
end;
MessageDlg('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD>', mtConfirmation, [mbYes],0);
end;
procedure Tfrm_op_seae_apply_add.bsSkinButton4Click(Sender: TObject);
var
Pnt:Tpoint;
begin
Pnt:=bsSkinButton4.ClientToScreen(Point(0,bsSkinButton4.Height));
PopupMenu1.Popup(Pnt.x,Pnt.y);
end;
procedure Tfrm_op_seae_apply_add.N3Click(Sender: TObject);
var
Ext,adate,bsno,corp:String;
ExcelTemplet:Variant;
i,j:integer;
M,D,Y:Word;
imp:boolean;
begin
if OpenDialog1.Execute then begin
Ext:=lowercase(ExtractFileExt(OpenDialog1.FileName));
if Ext='.xls' then begin
ExcelTemplet:= CreateOleObject('Excel.Application');
try
ExcelTemplet.Workbooks.Open(OpenDialog1.FileName);
I:=3;
imp:=true;
while VartoStr(ExcelTemplet.ActiveSheet.Cells[I,2].Value)<>'' do begin
corp:=VartoStr(ExcelTemplet.ActiveSheet.Cells[I,13].Value);
if not frm_data_share.t_crm_client_all.Locate('<27>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>',corp,[]) then begin
MessageDlg('<27>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>:'+corp+' ϵͳ<CFB5>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD>Ӵ˿ͻ<CBBF><CDBB><EFBFBD>',mtWarning,[mbYes],0);
imp:=false;
end;
i:=i+1;
end;
if imp then begin
I:=3;
while VartoStr(ExcelTemplet.ActiveSheet.Cells[I,2].Value)<>'' do begin
aDate:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,2].Value);
M:=StrToInt(COPY(adate,1,pos('.',adate)-1));
D:=StrToInt(COPY(adate,pos('.',adate)+1,length(adate)-pos('.',adate)));
Y:=strtoint(formatdatetime('YYYY',date));
corp:=VartoStr(ExcelTemplet.ActiveSheet.Cells[I,10].Value);
if not seae_apply_add_total then begin
with frm_op_seae_apply do
begin
t_op_seae.insert;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=date;
t_op_seae['<27>ܴ<EFBFBD>']:=WeekofYear(date);
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD>']:=employee;
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=date;
t_op_seae['<27>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD>']:=subComp;
t_op_seae['<27><><EFBFBD><EFBFBD>Ա']:=employee;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>']:=employee;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27>ͷ<EFBFBD>Ա']:=employee;
t_op_seae['<27><><EFBFBD>۲<EFBFBD><DBB2><EFBFBD>']:=department;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=department;
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD>Դ']:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
t_op_seae['<27><><EFBFBD>˸<EFBFBD>']:=get_parameters_value(14,'QINGDAO,CHINA');
t_op_seae['װ<><D7B0><EFBFBD><EFBFBD>']:=get_parameters_value(16,'QINGDAO,CHINA');
t_op_seae['<27><EFBFBD><E1B5A5><EFBFBD><EFBFBD>']:=get_parameters_value(20,'THREE');
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(21,'CY-CY');
t_op_seae['<27><>ͷ']:=get_parameters_value(22,'N/M');
t_op_seae['<27><><EFBFBD>ѷ<EFBFBD>ʽ']:=get_parameters_value(23,'FREIGHT PREPAID');
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD>˰']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ͨ<EFBFBD><CDA8>']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ǩ<EFBFBD><C7A9>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>˲<EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['½<><C2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
t_op_seae['װ<>˷<EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>ͨ<EFBFBD><CDA8>';
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['ͨ<><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['<27><>Ӫ<EFBFBD><D3AA>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,3].Value);
t_op_seae['<27>˵ֹ<CBB5>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,4].Value);
t_op_seae['<27><><EFBFBD><EFBFBD><ECB5A5>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,5].Value);
t_op_seae['<27><><EFBFBD><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,6].Value);
t_op_seae['<27><><EFBFBD><EFBFBD><E1B5A5>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,7].Value);
t_op_seae['<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,8].Value);
t_op_seae['<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,9].Value);
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,10].Value);
t_op_seae['<27>ܼ<EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,11].Value);
t_op_seae['ί<>е<EFBFBD>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,13].Value);
t_op_seae.post;
end;
end else begin
with frm_op_apply do
begin
t_op_seae.insert;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=date;
t_op_seae['<27>ܴ<EFBFBD>']:=WeekofYear(date);
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD>']:=employee;
t_op_seae['¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=date;
t_op_seae['<27>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD>']:=subComp;
t_op_seae['<27><><EFBFBD><EFBFBD>Ա']:=employee;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>']:=employee;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
t_op_seae['<27>ͷ<EFBFBD>Ա']:=employee;
t_op_seae['<27><><EFBFBD>۲<EFBFBD><DBB2><EFBFBD>']:=department;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=department;
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD>Դ']:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
t_op_seae['<27><><EFBFBD>˸<EFBFBD>']:=get_parameters_value(14,'QINGDAO,CHINA');
t_op_seae['װ<><D7B0><EFBFBD><EFBFBD>']:=get_parameters_value(16,'QINGDAO,CHINA');
t_op_seae['<27><EFBFBD><E1B5A5><EFBFBD><EFBFBD>']:=get_parameters_value(20,'THREE');
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(21,'CY-CY');
t_op_seae['<27><>ͷ']:=get_parameters_value(22,'N/M');
t_op_seae['<27><><EFBFBD>ѷ<EFBFBD>ʽ']:=get_parameters_value(23,'FREIGHT PREPAID');
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD>˰']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ͨ<EFBFBD><CDA8>']:=0;
t_op_seae['<27>Ƿ<EFBFBD>ǩ<EFBFBD><C7A9>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>ɳ<EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27>Ƿ<EFBFBD><C7B7>˲<EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['Ӧ<><D3A6>½<EFBFBD><C2BD>']:=0;
t_op_seae['½<><C2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>']:=0;
t_op_seae['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
t_op_seae['װ<>˷<EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
t_op_seae['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>ͨ<EFBFBD><CDA8>';
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['ͨ<><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=EncodeDate(Y,M,D);
t_op_seae['<27><>Ӫ<EFBFBD><D3AA>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,3].Value);
t_op_seae['<27>˵ֹ<CBB5>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,4].Value);
t_op_seae['<27><><EFBFBD><EFBFBD><ECB5A5>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,5].Value);
t_op_seae['<27><><EFBFBD><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,6].Value);
t_op_seae['<27><><EFBFBD><EFBFBD><E1B5A5>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,7].Value);
t_op_seae['<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,8].Value);
t_op_seae['<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,9].Value);
t_op_seae['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,10].Value);
t_op_seae['<27>ܼ<EFBFBD>']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,11].Value);
t_op_seae['ί<>е<EFBFBD>λ']:=VarTostr(ExcelTemplet.ActiveSheet.Cells[i,13].Value);
t_op_seae.post;
end;
end;
i:=i+1;
end;
end;
finally
ExcelTemplet.DisplayAlerts := false;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
ExcelTemplet.Quit;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>
end;
end;
end;
MessageDlg('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD>', mtConfirmation, [mbYes],0);
end;
end.