|
|
|
|
unit u_op_seae_add;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
|
|
|
Dialogs, BusinessSkinForm, bsSkinCtrls, StdCtrls, wwdbdatetimepicker, DB,ADODB;
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
Tfrm_op_seae_add = class(TForm)
|
|
|
|
|
bsBusinessSkinForm1: TbsBusinessSkinForm;
|
|
|
|
|
bsSkinGroupBox1: TbsSkinGroupBox;
|
|
|
|
|
bsSkinCheckRadioBox1: TbsSkinCheckRadioBox;
|
|
|
|
|
bsSkinCheckRadioBox2: TbsSkinCheckRadioBox;
|
|
|
|
|
bsSkinCheckRadioBox3: TbsSkinCheckRadioBox;
|
|
|
|
|
bsSkinCheckRadioBox4: TbsSkinCheckRadioBox;
|
|
|
|
|
bsSkinCheckRadioBox5: TbsSkinCheckRadioBox;
|
|
|
|
|
bsSkinCheckRadioBox6: TbsSkinCheckRadioBox;
|
|
|
|
|
Label1: TLabel;
|
|
|
|
|
wwDBDateTimePicker1: TwwDBDateTimePicker;
|
|
|
|
|
bsSkinButton1: TbsSkinButton;
|
|
|
|
|
bsSkinButton2: TbsSkinButton;
|
|
|
|
|
data1: TDataSource;
|
|
|
|
|
bsSkinButton3: TbsSkinButton;
|
|
|
|
|
bsSkinCheckRadioBox7: TbsSkinCheckRadioBox;
|
|
|
|
|
bsSkinCheckRadioBox8: TbsSkinCheckRadioBox;
|
|
|
|
|
bsSkinButton4: TbsSkinButton;
|
|
|
|
|
OpenDialog1: TOpenDialog;
|
|
|
|
|
procedure bsSkinButton2Click(Sender: TObject);
|
|
|
|
|
procedure bsSkinButton1Click(Sender: TObject);
|
|
|
|
|
procedure FormShow(Sender: TObject);
|
|
|
|
|
procedure bsSkinButton3Click(Sender: TObject);
|
|
|
|
|
procedure bsSkinButton4Click(Sender: TObject);
|
|
|
|
|
private
|
|
|
|
|
{ Private declarations }
|
|
|
|
|
public
|
|
|
|
|
{ Public declarations }
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
var
|
|
|
|
|
frm_op_seae_add: Tfrm_op_seae_add;
|
|
|
|
|
frm_op_seae_add_num:integer;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
uses u_main, u_op_seae, my_sys_function, u_data_share;
|
|
|
|
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_op_seae_add.bsSkinButton2Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
close;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_op_seae_add.bsSkinButton1Click(Sender: TObject);
|
|
|
|
|
var
|
|
|
|
|
i: Integer;
|
|
|
|
|
function GetPortEdiID(Port: String): String;
|
|
|
|
|
var
|
|
|
|
|
aQuery:TADOQuery;
|
|
|
|
|
begin
|
|
|
|
|
aQuery:=CreateAdoQuery;
|
|
|
|
|
try
|
|
|
|
|
with aQuery do begin
|
|
|
|
|
Close;SQL.Clear;
|
|
|
|
|
SQL.Add('Select EDI<44><49><EFBFBD><EFBFBD> from t_code_disport where Ӣ<><D3A2><EFBFBD><EFBFBD>='''+Port+'''');
|
|
|
|
|
Open;
|
|
|
|
|
if not IsEmpty then
|
|
|
|
|
Result:=Trim(FieldByName('EDI<44><49><EFBFBD><EFBFBD>').asstring)
|
|
|
|
|
else
|
|
|
|
|
Result:='CNTAO';
|
|
|
|
|
end;
|
|
|
|
|
finally
|
|
|
|
|
FreeAndNil(aQuery);
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
begin
|
|
|
|
|
if (frm_op_seae_add_num=3) or (frm_op_seae_add_num=2) then
|
|
|
|
|
begin
|
|
|
|
|
data1.DataSet.append;
|
|
|
|
|
for i := 0 to (data1.DataSet.DataSource.DataSet.fieldcount-1) do
|
|
|
|
|
begin
|
|
|
|
|
data1.DataSet[data1.DataSet.DataSource.DataSet.fields[i].FieldName]:=
|
|
|
|
|
data1.DataSet.DataSource.DataSet[data1.DataSet.DataSource.DataSet.fields[i].FieldName];
|
|
|
|
|
end;
|
|
|
|
|
if bsSkinCheckRadioBox1.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox1.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox2.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox2.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox3.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox3.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox4.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox4.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox5.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox5.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox6.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox6.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox7.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox7.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox8.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox8.Caption;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:=get_id;
|
|
|
|
|
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['<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['<27><><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>Ƿ<EFBFBD><C7B7>ɳ<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><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['ҵ<><D2B5>״̬']:='<27><><EFBFBD><EFBFBD>ί<EFBFBD><CEAF>';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>״̬']:='¼<><C2BC>״̬';
|
|
|
|
|
data1.DataSet['ǩ<><C7A9><EFBFBD><EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
|
|
|
|
|
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>']:=WeekofYear(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><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27>ֵ<EFBFBD><D6B5>б<EFBFBD>']:='';
|
|
|
|
|
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27>˵ֹ<CBB5>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>ڻ<EFBFBD>Դ<EFBFBD><D4B4>']:='';
|
|
|
|
|
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><C6B7><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><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['ʵ<><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['ƴ<><C6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>Ʊ<EFBFBD><C6B1>Ʊ';
|
|
|
|
|
data1.DataSet['<27>ѳ<EFBFBD><D1B3><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>Ѷ<EFBFBD><D1B6><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѷ<EFBFBD><D1B7><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѱ<EFBFBD><D1B1><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['FEE2']:=0;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
data1.DataSet.Insert;
|
|
|
|
|
if bsSkinCheckRadioBox1.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox1.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox2.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox2.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox3.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox3.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox4.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox4.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox5.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox5.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox6.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox6.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox7.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox7.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox8.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox8.Caption;
|
|
|
|
|
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=wwDBDateTimePicker1.date;
|
|
|
|
|
data1.DataSet['<27>ܴ<EFBFBD>']:=WeekofYear(wwDBDateTimePicker1.date);
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:=get_id;
|
|
|
|
|
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><DFB2><EFBFBD>']:=employee;
|
|
|
|
|
// data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
|
|
|
|
|
data1.DataSet['<27>ͷ<EFBFBD>Ա']:=employee;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>۲<EFBFBD><DBB2><EFBFBD>']:=department;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=department;
|
|
|
|
|
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD>Դ']:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>˸<EFBFBD>']:=get_parameters_value(14,'QINGDAO,CHINA');
|
|
|
|
|
data1.DataSet['װ<><D7B0><EFBFBD><EFBFBD>']:=get_parameters_value(16,'QINGDAO,CHINA');
|
|
|
|
|
data1.DataSet['װ<>۴<EFBFBD><DBB4><EFBFBD>']:='CNTAO';
|
|
|
|
|
data1.DataSet['<27>ᵥ<EFBFBD><E1B5A5><EFBFBD><EFBFBD>']:=get_parameters_value(20,'THREE');
|
|
|
|
|
data1.DataSet['ǩ<><C7A9><EFBFBD><EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
|
|
|
|
|
|
|
|
|
|
if copy(data1.DataSet.fieldbyname('װ<>˷<EFBFBD>ʽ').asstring,1,4)='ƴ<><C6B4>'then
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(48,'CFS-CFS')
|
|
|
|
|
else
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(21,'CY-CY');
|
|
|
|
|
data1.DataSet['<27><>ͷ']:=get_parameters_value(22,'N/M');
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>ѷ<EFBFBD>ʽ']:=get_parameters_value(23,'FREIGHT PREPAID');
|
|
|
|
|
data1.DataSet['ǩ<><C7A9><EFBFBD>ص<EFBFBD>']:=get_parameters_value(49,'QINGDAO,CHINA');
|
|
|
|
|
data1.DataSet['Ԥ<><D4A4><EFBFBD>ص<EFBFBD>']:=get_parameters_value(50,'QINGDAO,CHINA');
|
|
|
|
|
data1.DataSet['<27><>˰<EFBFBD><CBB0><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['ǩ<><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27>ɳ<EFBFBD><C9B3><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27>Ƿ<EFBFBD><C7B7>ĵ<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><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>Ƿ<EFBFBD><C7B7>ɳ<EFBFBD>']:=0;
|
|
|
|
|
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><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
|
|
|
|
|
data1.DataSet['ƴ<><C6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>Ʊ<EFBFBD><C6B1>Ʊ';
|
|
|
|
|
data1.DataSet['<27>ѳ<EFBFBD><D1B3><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>Ѷ<EFBFBD><D1B6><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѷ<EFBFBD><D1B7><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѱ<EFBFBD><D1B1><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['FEE2']:=0;
|
|
|
|
|
end;
|
|
|
|
|
frm_op_seae.DBEdit8.ReadOnly:=false;
|
|
|
|
|
frm_op_seae.DBEdit9.ReadOnly:=false;
|
|
|
|
|
frm_op_seae.wwDBDateTimePicker2.Enabled:=True;
|
|
|
|
|
frm_op_seae.RxDBLookupCombo1.Enabled:=True;
|
|
|
|
|
|
|
|
|
|
frm_op_seae.wwDBComboBox8.Enabled:=True;
|
|
|
|
|
|
|
|
|
|
if frm_op_seae_add_num=1 then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.Notebook1.PageIndex:=1;
|
|
|
|
|
frm_op_seae.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>';
|
|
|
|
|
end;
|
|
|
|
|
if frm_op_seae_add_num=2 then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.Notebook1.PageIndex:=1;
|
|
|
|
|
frm_op_seae.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʊ';
|
|
|
|
|
end;
|
|
|
|
|
if frm_op_seae_add_num=3 then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.Notebook1.PageIndex:=1;
|
|
|
|
|
frm_op_seae.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʊ';
|
|
|
|
|
frm_op_seae.t_op_seae2.Enabled:=false;
|
|
|
|
|
frm_op_seae.t_op_seae2.DataSet:=frm_op_seae.t_op_seae_fen;
|
|
|
|
|
frm_op_seae.t_op_seae2.Enabled:=true;
|
|
|
|
|
end;
|
|
|
|
|
close;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_op_seae_add.FormShow(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
wwDBDateTimePicker1.Date:=date;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_op_seae_add.bsSkinButton3Click(Sender: TObject);
|
|
|
|
|
var
|
|
|
|
|
afield : variant;
|
|
|
|
|
i: Integer;
|
|
|
|
|
aQuery:TAdoQuery;
|
|
|
|
|
oldbsno,OrgBSNO:string;
|
|
|
|
|
isonlysft:Boolean;
|
|
|
|
|
begin
|
|
|
|
|
isonlysft:=false;
|
|
|
|
|
if data1.DataSet.IsEmpty then
|
|
|
|
|
begin
|
|
|
|
|
showmessage('û<>и<EFBFBD><D0B8><EFBFBD>ĸ<EFBFBD>壬<EFBFBD><E5A3AC><EFBFBD>ܸ<EFBFBD><DCB8><EFBFBD><EFBFBD>½<EFBFBD><C2BD><EFBFBD>');
|
|
|
|
|
exit;
|
|
|
|
|
end;
|
|
|
|
|
if (get_parameters_value(511,'false')='true') then
|
|
|
|
|
isonlysft:=True;
|
|
|
|
|
|
|
|
|
|
oldbsno:=data1.DataSet.FieldByName('<27><><EFBFBD><EFBFBD>').AsString;
|
|
|
|
|
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
|
|
|
|
|
if isonlysft then begin
|
|
|
|
|
if (data1.DataSet.fields[i].FieldName='<27><><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD><CBB4><EFBFBD>') or (data1.DataSet.fields[i].FieldName='<27>ջ<EFBFBD><D5BB>˴<EFBFBD><CBB4><EFBFBD>') or (data1.DataSet.fields[i].FieldName='֪ͨ<CDA8>˴<EFBFBD><CBB4><EFBFBD>')
|
|
|
|
|
or (data1.DataSet.fields[i].FieldName='װ<>˷<EFBFBD>ʽ')or (data1.DataSet.fields[i].FieldName='װ<>۴<EFBFBD><DBB4><EFBFBD>')or (data1.DataSet.fields[i].FieldName='װ<><D7B0><EFBFBD><EFBFBD>')
|
|
|
|
|
or (data1.DataSet.fields[i].FieldName='ǩ<><C7A9><EFBFBD>ص<EFBFBD>')or (data1.DataSet.fields[i].FieldName='Ԥ<><D4A4><EFBFBD>ص<EFBFBD>')or (data1.DataSet.fields[i].FieldName='ί<>е<EFBFBD>λ')
|
|
|
|
|
or (data1.DataSet.fields[i].FieldName='<27><><EFBFBD><EFBFBD>Ա')or (data1.DataSet.fields[i].FieldName='<27><><EFBFBD>߲<EFBFBD><DFB2><EFBFBD>') or (data1.DataSet.fields[i].FieldName='<27><><EFBFBD>䷽ʽ')
|
|
|
|
|
or (data1.DataSet.fields[i].FieldName='<27><><EFBFBD><EFBFBD><EFBFBD>˱<EFBFBD><CBB1><EFBFBD>') or (data1.DataSet.fields[i].FieldName='<27><><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD>һ')
|
|
|
|
|
or (data1.DataSet.fields[i].FieldName='EDI<44><49>ע') or (data1.DataSet.fields[i].FieldName='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>')
|
|
|
|
|
then
|
|
|
|
|
data1.DataSet.fields[i].value := afield[i] ;
|
|
|
|
|
end else
|
|
|
|
|
data1.DataSet.fields[i].value := afield[i] ;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
data1.DataSet['<27>ܴ<EFBFBD>']:=WeekofYear(wwDBDateTimePicker1.date);
|
|
|
|
|
if bsSkinCheckRadioBox1.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox1.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox2.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox2.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox3.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox3.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox4.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox4.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox5.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox5.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox6.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox6.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox7.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox7.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox8.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox8.Caption;
|
|
|
|
|
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
OrgBSNO:=get_id;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:=OrgBSNO;
|
|
|
|
|
// data1.DataSet['<27><><EFBFBD><EFBFBD>']:=get_id;
|
|
|
|
|
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['ƴ<><C6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>Ʊ<EFBFBD><C6B1>Ʊ';
|
|
|
|
|
|
|
|
|
|
//hxt HECHUAN
|
|
|
|
|
if bsSkinCheckRadioBox1.Checked then begin
|
|
|
|
|
if data1.DataSet['<27><>װ<EFBFBD><D7B0>']<>null then begin
|
|
|
|
|
if Pos('R',data1.DataSet['<27><>װ<EFBFBD><D7B0>'])>0 then begin
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
//HXT
|
|
|
|
|
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>˳<EFBFBD><CBB3><EFBFBD>']:='';
|
|
|
|
|
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><CBB0><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['ǩ<><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27>ɳ<EFBFBD><C9B3><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
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><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><DFB2><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>˵ֹ<CBB5>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>ڻ<EFBFBD>Դ<EFBFBD><D4B4>']:='';
|
|
|
|
|
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><C6B7><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><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['ʵ<><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['ƴ<><C6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>Ʊ<EFBFBD><C6B1>Ʊ';
|
|
|
|
|
data1.DataSet['<27>ѳ<EFBFBD><D1B3><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>Ѷ<EFBFBD><D1B6><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѷ<EFBFBD><D1B7><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѱ<EFBFBD><D1B1><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['FEE2']:=0;
|
|
|
|
|
|
|
|
|
|
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data1.DataSet['Ӧ<><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
|
|
|
|
|
data1.DataSet['<27>۵<EFBFBD>״̬']:='';
|
|
|
|
|
data1.DataSet['Ԥ<><D4A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['ETA']:=null;
|
|
|
|
|
data1.DataSet['ATA']:=null;
|
|
|
|
|
data1.DataSet['ETD']:=null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if data1.DataSet.FieldByName('ǩ<><C7A9><EFBFBD><EFBFBD>ʽ').AsString='' then
|
|
|
|
|
// data1.DataSet.FieldByName('ǩ<><C7A9><EFBFBD><EFBFBD>ʽ').AsString:='<27><><EFBFBD><EFBFBD>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
if data1.DataSet.FieldByName('ί<>е<EFBFBD>λ').IsNull or (data1.DataSet.FieldByName('ί<>е<EFBFBD>λ').AsString='') or data1.DataSet.FieldByName('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>').IsNull or (data1.DataSet.FieldByName('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>').AsString='') then begin
|
|
|
|
|
end else begin
|
|
|
|
|
if frm_data_share.t_crm_client.Locate('<27>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>',data1.DataSet.FieldByName('ί<>е<EFBFBD>λ').AsString,[]) then
|
|
|
|
|
if (Trim(frm_data_share.t_crm_client.FieldByName('<27>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>').AsString)='<27><><EFBFBD><EFBFBD>') then begin
|
|
|
|
|
|
|
|
|
|
end else begin
|
|
|
|
|
aQuery:=CreateAdoQuery;
|
|
|
|
|
try
|
|
|
|
|
with aQuery do begin
|
|
|
|
|
Close;sql.Clear;
|
|
|
|
|
sql.Add('Select distinct <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> from t_crm_client_sales where <20>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>='''+data1.DataSet.FieldByName('ί<>е<EFBFBD>λ').AsString+''' and <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>='''+data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']+''' and ״̬=''<27><><EFBFBD><EFBFBD>'' ');
|
|
|
|
|
Open;
|
|
|
|
|
if not IsEmpty then begin
|
|
|
|
|
|
|
|
|
|
end else begin
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
finally
|
|
|
|
|
FreeAndNil(aQuery);
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
}
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>Ա']:='';
|
|
|
|
|
data1.DataSet['<27>ͷ<EFBFBD>Ա']:='';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if copy(data1.DataSet.fieldbyname('װ<>˷<EFBFBD>ʽ').asstring,1,4)='ƴ<><C6B4>'then
|
|
|
|
|
begin
|
|
|
|
|
if not strtobool(get_parameters_value(52,'false')) then
|
|
|
|
|
begin
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>װ']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27>ֵ<EFBFBD><D6B5>б<EFBFBD>']:='';
|
|
|
|
|
end;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
if not strtobool(get_parameters_value(51,'false')) then
|
|
|
|
|
begin
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>װ']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27>ֵ<EFBFBD><D6B5>б<EFBFBD>']:='';
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
aQuery:=CreateAdoQuery;
|
|
|
|
|
try
|
|
|
|
|
With aQuery do begin
|
|
|
|
|
|
|
|
|
|
Close;sql.clear;
|
|
|
|
|
sql.add('insert into T_OP_AMS(<28><><EFBFBD><EFBFBD>,[<5B><><EFBFBD><EFBFBD><EFBFBD>˹<EFBFBD><CBB9>Ҵ<EFBFBD><D2B4><EFBFBD>],[<5B>ջ<EFBFBD><D5BB>˹<EFBFBD><CBB9>Ҵ<EFBFBD><D2B4><EFBFBD>],[֪ͨ<CDA8>˹<EFBFBD><CBB9>Ҵ<EFBFBD><D2B4><EFBFBD>],[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>绰],[֪ͨ<CDA8>˴<EFBFBD><CBB4><EFBFBD>],[֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD>ϵ<EFBFBD>绰],[<5B>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>绰],[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>],[<5B>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>]'
|
|
|
|
|
+',[֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>],[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>],[<5B>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>],[֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>],<2C><><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD><CBB4><EFBFBD>,<2C>ջ<EFBFBD><D5BB>˴<EFBFBD><CBB4><EFBFBD>)'
|
|
|
|
|
+'select '''+OrgBSNO+''',[<5B><><EFBFBD><EFBFBD><EFBFBD>˹<EFBFBD><CBB9>Ҵ<EFBFBD><D2B4><EFBFBD>],[<5B>ջ<EFBFBD><D5BB>˹<EFBFBD><CBB9>Ҵ<EFBFBD><D2B4><EFBFBD>],[֪ͨ<CDA8>˹<EFBFBD><CBB9>Ҵ<EFBFBD><D2B4><EFBFBD>],[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>绰],[֪ͨ<CDA8>˴<EFBFBD><CBB4><EFBFBD>],[֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD>ϵ<EFBFBD>绰],[<5B>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>绰],[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>],[<5B>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>]'
|
|
|
|
|
+',[֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>],[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>],[<5B>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>],[֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>],<2C><><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD><CBB4><EFBFBD>,<2C>ջ<EFBFBD><D5BB>˴<EFBFBD><CBB4><EFBFBD> from T_OP_AMS where <20><><EFBFBD><EFBFBD>='''+oldbsno+'''');
|
|
|
|
|
execsql;
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
finally
|
|
|
|
|
FreeAndNil(aQuery);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
frm_op_seae.DBEdit8.ReadOnly:=false;
|
|
|
|
|
frm_op_seae.DBEdit9.ReadOnly:=false;
|
|
|
|
|
frm_op_seae.wwDBDateTimePicker2.Enabled:=True;
|
|
|
|
|
frm_op_seae.RxDBLookupCombo1.Enabled:=True;
|
|
|
|
|
frm_op_seae.wwDBComboBox8.Enabled:=True;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if frm_op_seae_add_num=1 then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.Notebook1.PageIndex:=1;
|
|
|
|
|
frm_op_seae.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>';
|
|
|
|
|
end;
|
|
|
|
|
if frm_op_seae_add_num=2 then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.Notebook1.PageIndex:=1;
|
|
|
|
|
frm_op_seae.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʊ';
|
|
|
|
|
end;
|
|
|
|
|
if frm_op_seae_add_num=3 then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.Notebook1.PageIndex:=1;
|
|
|
|
|
frm_op_seae.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʊ';
|
|
|
|
|
frm_op_seae.t_op_seae2.Enabled:=false;
|
|
|
|
|
frm_op_seae.t_op_seae2.DataSet:=frm_op_seae.t_op_seae_fen;
|
|
|
|
|
frm_op_seae.t_op_seae2.Enabled:=true;
|
|
|
|
|
end;
|
|
|
|
|
frm_op_seae.bsSkinTabSheet1.Show;
|
|
|
|
|
close;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_op_seae_add.bsSkinButton4Click(Sender: TObject);
|
|
|
|
|
var
|
|
|
|
|
EdiString:TStrings;
|
|
|
|
|
FileNames,bsno:String;
|
|
|
|
|
i: Integer;
|
|
|
|
|
begin
|
|
|
|
|
if (frm_op_seae_add_num=3) or (frm_op_seae_add_num=2) then
|
|
|
|
|
begin
|
|
|
|
|
data1.DataSet.append;
|
|
|
|
|
for i := 0 to (data1.DataSet.DataSource.DataSet.fieldcount-1) do
|
|
|
|
|
begin
|
|
|
|
|
data1.DataSet[data1.DataSet.DataSource.DataSet.fields[i].FieldName]:=
|
|
|
|
|
data1.DataSet.DataSource.DataSet[data1.DataSet.DataSource.DataSet.fields[i].FieldName];
|
|
|
|
|
end;
|
|
|
|
|
if bsSkinCheckRadioBox1.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox1.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox2.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox2.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox3.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox3.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox4.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox4.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox5.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox5.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox6.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox6.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox7.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox7.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox8.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox8.Caption;
|
|
|
|
|
|
|
|
|
|
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:=get_id;;
|
|
|
|
|
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['<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['<27><><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>Ƿ<EFBFBD><C7B7>ɳ<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><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['ҵ<><D2B5>״̬']:='<27><><EFBFBD><EFBFBD>ί<EFBFBD><CEAF>';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>״̬']:='¼<><C2BC>״̬';
|
|
|
|
|
data1.DataSet['ǩ<><C7A9><EFBFBD><EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
|
|
|
|
|
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>']:=WeekofYear(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><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27>ֵ<EFBFBD><D6B5>б<EFBFBD>']:='';
|
|
|
|
|
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27>˵ֹ<CBB5>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>ڻ<EFBFBD>Դ<EFBFBD><D4B4>']:='';
|
|
|
|
|
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><C6B7><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><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['ʵ<><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
data1.DataSet['ƴ<><C6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>Ʊ<EFBFBD><C6B1>Ʊ';
|
|
|
|
|
data1.DataSet['<27>ѳ<EFBFBD><D1B3><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>Ѷ<EFBFBD><D1B6><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѷ<EFBFBD><D1B7><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѱ<EFBFBD><D1B1><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
data1.DataSet.Insert;
|
|
|
|
|
if bsSkinCheckRadioBox1.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox1.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox2.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox2.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox3.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox3.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox4.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox4.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox5.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox5.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox6.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox6.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox7.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox7.Caption;
|
|
|
|
|
if bsSkinCheckRadioBox8.Checked then
|
|
|
|
|
data1.DataSet['װ<>˷<EFBFBD>ʽ']:=bsSkinCheckRadioBox8.Caption;
|
|
|
|
|
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>']:=get_id;;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>']:=wwDBDateTimePicker1.date;
|
|
|
|
|
data1.DataSet['<27>ܴ<EFBFBD>']:=WeekofYear(wwDBDateTimePicker1.date);
|
|
|
|
|
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><DFB2><EFBFBD>']:=employee;
|
|
|
|
|
// data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=employee;
|
|
|
|
|
data1.DataSet['<27>ͷ<EFBFBD>Ա']:=employee;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>۲<EFBFBD><DBB2><EFBFBD>']:=department;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=department;
|
|
|
|
|
data1.DataSet['ҵ<><D2B5><EFBFBD><EFBFBD>Դ']:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>˸<EFBFBD>']:=get_parameters_value(14,'QINGDAO,CHINA');
|
|
|
|
|
data1.DataSet['װ<>۴<EFBFBD><DBB4><EFBFBD>']:='CNTAO';
|
|
|
|
|
data1.DataSet['װ<><D7B0><EFBFBD><EFBFBD>']:=get_parameters_value(16,'QINGDAO,CHINA');
|
|
|
|
|
data1.DataSet['<27>ᵥ<EFBFBD><E1B5A5><EFBFBD><EFBFBD>']:=get_parameters_value(20,'THREE');
|
|
|
|
|
data1.DataSet['ǩ<><C7A9><EFBFBD><EFBFBD>ʽ']:='<27><><EFBFBD><EFBFBD>';
|
|
|
|
|
|
|
|
|
|
if copy(data1.DataSet.fieldbyname('װ<>˷<EFBFBD>ʽ').asstring,1,4)='ƴ<><C6B4>'then
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(48,'CFS-CFS')
|
|
|
|
|
else
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=get_parameters_value(21,'CY-CY');
|
|
|
|
|
data1.DataSet['<27><>ͷ']:=get_parameters_value(22,'N/M');
|
|
|
|
|
data1.DataSet['<27><><EFBFBD>ѷ<EFBFBD>ʽ']:=get_parameters_value(23,'FREIGHT PREPAID');
|
|
|
|
|
data1.DataSet['ǩ<><C7A9><EFBFBD>ص<EFBFBD>']:=get_parameters_value(49,'QINGDAO,CHINA');
|
|
|
|
|
data1.DataSet['Ԥ<><D4A4><EFBFBD>ص<EFBFBD>']:=get_parameters_value(50,'QINGDAO,CHINA');
|
|
|
|
|
data1.DataSet['<27><>˰<EFBFBD><CBB0><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['ǩ<><C7A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27>ɳ<EFBFBD><C9B3><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>']:=null;
|
|
|
|
|
data1.DataSet['<27>Ƿ<EFBFBD><C7B7>ĵ<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><EFBFBD><EFBFBD>ɳ<EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>Ƿ<EFBFBD><C7B7>ɳ<EFBFBD>']:=0;
|
|
|
|
|
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><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD>ƾ֤']:='';
|
|
|
|
|
data1.DataSet['ƴ<><C6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='<27><>Ʊ<EFBFBD><C6B1>Ʊ';
|
|
|
|
|
data1.DataSet['<27>ѳ<EFBFBD><D1B3><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>Ѷ<EFBFBD><D1B6><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѷ<EFBFBD><D1B7><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27>ѱ<EFBFBD><D1B1><EFBFBD>']:=0;
|
|
|
|
|
data1.DataSet['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']:='';
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
EdiString:=TStringList.Create;
|
|
|
|
|
try
|
|
|
|
|
OpenDialog1.Execute;
|
|
|
|
|
FileNames:=OpenDialog1.FileName;
|
|
|
|
|
if FileNames<>'' then begin
|
|
|
|
|
EdiString.LoadFromFile(FileNames);
|
|
|
|
|
NewEdiSEAE(EdiString,data1,wwDBDateTimePicker1.date,true);
|
|
|
|
|
end;
|
|
|
|
|
finally
|
|
|
|
|
FreeAndNil(EdiString);
|
|
|
|
|
end;
|
|
|
|
|
frm_op_seae.DBEdit8.ReadOnly:=false;
|
|
|
|
|
frm_op_seae.DBEdit9.ReadOnly:=false;
|
|
|
|
|
frm_op_seae.wwDBDateTimePicker2.Enabled:=True;
|
|
|
|
|
frm_op_seae.RxDBLookupCombo1.Enabled:=True;
|
|
|
|
|
frm_op_seae.wwDBComboBox8.Enabled:=True;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if frm_op_seae_add_num=1 then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.Notebook1.PageIndex:=1;
|
|
|
|
|
frm_op_seae.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>';
|
|
|
|
|
end;
|
|
|
|
|
if frm_op_seae_add_num=2 then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.Notebook1.PageIndex:=1;
|
|
|
|
|
frm_op_seae.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʊ';
|
|
|
|
|
end;
|
|
|
|
|
if frm_op_seae_add_num=3 then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.Notebook1.PageIndex:=1;
|
|
|
|
|
frm_op_seae.bsSkinButton11.Caption:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʊ';
|
|
|
|
|
frm_op_seae.t_op_seae2.Enabled:=false;
|
|
|
|
|
frm_op_seae.t_op_seae2.DataSet:=frm_op_seae.t_op_seae_fen;
|
|
|
|
|
frm_op_seae.t_op_seae2.Enabled:=true;
|
|
|
|
|
end;
|
|
|
|
|
close;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
end.
|