|
|
|
|
unit u_ch_fee_se;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
|
|
|
Dialogs, u_fee, Menus, Grids, DBGrids, DB, ADODB,IniFiles;
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
Tfrm_ch_fee_sea = class(TForm)
|
|
|
|
|
fra_fee1: Tfra_fee;
|
|
|
|
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
|
|
|
|
procedure FormShow(Sender: TObject);
|
|
|
|
|
procedure fra_fee1bsSkinButton1Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1bsSkinButton11Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1bsSkinButton9Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1N31Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1N127Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1bsSkinButton14Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1bsSkinButton12Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1bsSkinButton6Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1bsSkinButton5Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1DBEdit48Change(Sender: TObject);
|
|
|
|
|
procedure fra_fee1Memo1Change(Sender: TObject);
|
|
|
|
|
procedure fra_fee1bsSkinDBEdit17Change(Sender: TObject);
|
|
|
|
|
procedure fra_fee1N55Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1N7Click(Sender: TObject);
|
|
|
|
|
procedure fra_fee1bsSkinButton10Click(Sender: TObject);
|
|
|
|
|
private
|
|
|
|
|
{ Private declarations }
|
|
|
|
|
public
|
|
|
|
|
{ Public declarations }
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
var
|
|
|
|
|
frm_ch_fee_sea: Tfrm_ch_fee_sea;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
uses my_sys_function, u_op_seae, u_data_share, u_main, u_sys_progress;
|
|
|
|
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.FormClose(Sender: TObject;
|
|
|
|
|
var Action: TCloseAction);
|
|
|
|
|
begin
|
|
|
|
|
savewwgrid(fra_fee1.wwDBGrid1,'<27><><EFBFBD>˳<EFBFBD><CBB3><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
savewwgrid(fra_fee1.wwDBGrid2,'<27><><EFBFBD>˳<EFBFBD><CBB3><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
frm_ch_fee_sea.Hide;
|
|
|
|
|
frm_ch_fee_sea.ManualFloat(frm_ch_fee_sea.BoundsRect );
|
|
|
|
|
action:=cafree;
|
|
|
|
|
frm_ch_fee_sea:=nil;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.FormShow(Sender: TObject);
|
|
|
|
|
var inifile1:Tinifile;
|
|
|
|
|
begin
|
|
|
|
|
try
|
|
|
|
|
if not ASSIGNED(frm_sys_progress) then
|
|
|
|
|
frm_sys_progress:=tfrm_sys_progress.Create(self);
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ⱥ<C8BA><F2A1A3A1><EFBFBD>';
|
|
|
|
|
frm_sys_progress.Show;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.MaxValue:=23;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.MinValue:=0;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=0;
|
|
|
|
|
frm_sys_progress.Update;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD>б<EFBFBD>';
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1; //1
|
|
|
|
|
loadwwgrid(fra_fee1.wwDBGrid1,'<27><><EFBFBD>˳<EFBFBD><CBB3><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD>б<EFBFBD>';
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1; //2
|
|
|
|
|
loadwwgrid(fra_fee1.wwDBGrid2,'<27><><EFBFBD>˳<EFBFBD><CBB3><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1; //3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fra_fee1.edit_type.text:='1';
|
|
|
|
|
fra_fee1.edit_data.text:='0001';
|
|
|
|
|
fra_fee1.edit_report.text:='<27><><EFBFBD>˳<EFBFBD><CBB3><EFBFBD>';
|
|
|
|
|
fra_fee1.t_ch_accept.DataSource:=frm_op_seae.t_op_seae2;
|
|
|
|
|
if strtobool(get_parameters_value(150,'false')) then
|
|
|
|
|
fra_fee1.bsSkinPanel3.Visible:=true;
|
|
|
|
|
fra_fee1.DBEdit48.DataSource:=frm_op_seae.t_op_seae2;
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1; //4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if if_open('293') then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_accept.DataSource:=frm_op_seae.t_op_seae2;
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='Ӧ<><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1; //5
|
|
|
|
|
|
|
|
|
|
if (strtobool(get_parameters_value(153,'false'))=true) then
|
|
|
|
|
begin
|
|
|
|
|
if (strtobool(get_parameters_value(64,'false'))=true) and (if_open('206')=false) then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_accept.close;
|
|
|
|
|
fra_fee1.t_ch_accept.SQL.Clear;
|
|
|
|
|
fra_fee1.t_ch_accept.SQL.Add('select top 200 * from t_ch_fee where <20><><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+'<27><>'+''''+' and <20><><EFBFBD><EFBFBD>=:<3A><><EFBFBD><EFBFBD> and (¼<><C2BC><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+employee+''''+' or (¼<><C2BC><EFBFBD><EFBFBD><>'+''''+employee+''''
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD><>1) ) and '+open_data('7000','¼<><C2BC><EFBFBD><EFBFBD>','no','no','no','no')
|
|
|
|
|
+' order by ˳<><CBB3>,CH_ID');
|
|
|
|
|
end else begin
|
|
|
|
|
fra_fee1.t_ch_accept.close;
|
|
|
|
|
fra_fee1.t_ch_accept.SQL.Clear;
|
|
|
|
|
fra_fee1.t_ch_accept.SQL.Add('select top 200 * from t_ch_fee where <20><><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+'<27><>'+''''+' and <20><><EFBFBD><EFBFBD>=:<3A><><EFBFBD><EFBFBD> and '
|
|
|
|
|
+open_data('7000','¼<><C2BC><EFBFBD><EFBFBD>','no','no','no','no')
|
|
|
|
|
+' order by ˳<><CBB3>,CH_ID');
|
|
|
|
|
end;
|
|
|
|
|
fra_fee1.t_ch_accept.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1; //6
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
if (strtobool(get_parameters_value(64,'false'))=true) and (if_open('206')=false) then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_accept.close;
|
|
|
|
|
fra_fee1.t_ch_accept.SQL.Clear;
|
|
|
|
|
fra_fee1.t_ch_accept.SQL.Add('select top 200 * from t_ch_fee where <20><><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+'<27><>'+''''+' and <20><><EFBFBD><EFBFBD>=:<3A><><EFBFBD><EFBFBD> and (¼<><C2BC><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+employee+''''+' or (¼<><C2BC><EFBFBD><EFBFBD><>'+''''+employee+''''
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD><>1) ) order by ˳<><CBB3>,CH_ID');
|
|
|
|
|
end;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1; //6
|
|
|
|
|
fra_fee1.t_ch_accept.open;
|
|
|
|
|
end;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1; //7
|
|
|
|
|
fra_fee1.a_shen_delete.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
fra_fee1.a_shen_modify_old.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
fra_fee1.a_shen_modify_new.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
fra_fee1.Panel3.visible:=true;
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
frm_ch_fee_sea.fra_fee1.Panel3.visible:=false;
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
|
|
|
|
|
if if_open('294') then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_pay.DataSource:=frm_op_seae.t_op_seae2;
|
|
|
|
|
if (strtobool(get_parameters_value(153,'false'))=true) then begin
|
|
|
|
|
if (strtobool(get_parameters_value(64,'false'))=true) and (if_open('206')=false) then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_pay.close;
|
|
|
|
|
fra_fee1.t_ch_pay.SQL.Clear;
|
|
|
|
|
fra_fee1.t_ch_pay.SQL.Add('select top 200 * from t_ch_fee where <20><><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+'<27><>'+''''+' and <20><><EFBFBD><EFBFBD>=:<3A><><EFBFBD><EFBFBD> and (¼<><C2BC><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+employee+''''+' or (¼<><C2BC><EFBFBD><EFBFBD><>'+''''+employee+''''
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD><>1) ) and '+open_data('7000','¼<><C2BC><EFBFBD><EFBFBD>','no','no','no','no')
|
|
|
|
|
+' order by ˳<><CBB3>,CH_ID');
|
|
|
|
|
end else begin
|
|
|
|
|
fra_fee1.t_ch_pay.close;
|
|
|
|
|
fra_fee1.t_ch_pay.SQL.Clear;
|
|
|
|
|
fra_fee1.t_ch_pay.SQL.Add('select top 200 * from t_ch_fee where <20><><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+'<27><>'+''''+' and <20><><EFBFBD><EFBFBD>=:<3A><><EFBFBD><EFBFBD> and '
|
|
|
|
|
+open_data('7000','¼<><C2BC><EFBFBD><EFBFBD>','no','no','no','no')
|
|
|
|
|
+' order by ˳<><CBB3>,CH_ID');
|
|
|
|
|
end;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
fra_fee1.t_ch_pay.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
end else begin
|
|
|
|
|
if (strtobool(get_parameters_value(64,'false'))=true) and (if_open('206')=false) then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_pay.close;
|
|
|
|
|
fra_fee1.t_ch_pay.SQL.Clear;
|
|
|
|
|
fra_fee1.t_ch_pay.SQL.Add('select top 200 * from t_ch_fee where <20><><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+'<27><>'+''''+' and <20><><EFBFBD><EFBFBD>=:<3A><><EFBFBD><EFBFBD> and (¼<><C2BC><EFBFBD><EFBFBD>='
|
|
|
|
|
+''''+employee+''''+' or (¼<><C2BC><EFBFBD><EFBFBD><>'+''''+employee+''''
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD><>1) ) order by ˳<><CBB3>,CH_ID');
|
|
|
|
|
end;
|
|
|
|
|
fra_fee1.t_ch_pay.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
fra_fee1.p_shen_delete.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
fra_fee1.p_shen_modify_old.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD><EFBFBD><EFBFBD>ľ<DEB8><C4BE><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
fra_fee1.p_shen_modify_new.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
fra_fee1.Panel1.visible:=true;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD>غϼ<D8BA><CFBC><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
fra_fee1.Panel1.visible:=false;
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
|
|
|
|
|
if fra_fee1.Panel1.visible and
|
|
|
|
|
fra_fee1.Panel3.visible then
|
|
|
|
|
begin
|
|
|
|
|
if if_open('226') then
|
|
|
|
|
fra_fee1.Panel8.Visible:=true
|
|
|
|
|
else
|
|
|
|
|
fra_fee1.Panel8.Visible:=false;
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
|
|
|
|
|
fra_fee1.t_op_gain.DataSource:=frm_op_seae.t_op_seae2;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
fra_fee1.t_op_gain.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
|
|
|
|
|
fra_fee1.DBEdit43.DataSource:=frm_op_seae.t_op_seae2;
|
|
|
|
|
fra_fee1.t_op_gain_main.DataSource:=frm_op_seae.t_op_seae2;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
fra_fee1.t_op_gain_main.open;
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.Value:=frm_sys_progress.bsSkinGauge1.Value+1;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.Panel8.Visible:=false;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if strtobool(get_parameters_value(190,'false')) then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.bsSkinButton20.Visible:=true;
|
|
|
|
|
fra_fee1.bsSkinButton21.Visible:=true;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.bsSkinButton20.Visible:=False;
|
|
|
|
|
fra_fee1.bsSkinButton21.Visible:=False;
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
frm_sys_progress.bsSkinGauge1.ProgressText:='<27><><EFBFBD>ؿͻ<D8BF><CDBB><EFBFBD><EFBFBD><EFBFBD>';
|
|
|
|
|
frm_data_share.t_crm_client.requery;
|
|
|
|
|
frm_data_share.t_code_currency.requery;
|
|
|
|
|
|
|
|
|
|
inifile1:=Tinifile.Create(ExtractFilePath(application.ExeName)+'main.ini');
|
|
|
|
|
|
|
|
|
|
if strtoint(get_parameters_value(197,'0'))<>0 then
|
|
|
|
|
fra_fee1.bsSkinComboBox1.ItemIndex:=strtoint(get_parameters_value(197,'0'))-1
|
|
|
|
|
else fra_fee1.bsSkinComboBox1.ItemIndex:=inifile1.ReadInteger('FEE','FEEVAT',0);
|
|
|
|
|
|
|
|
|
|
// fra_fee1.bsSkinComboBox1.ItemIndex:=inifile1.ReadInteger('FEE','FEEVAT',0);
|
|
|
|
|
|
|
|
|
|
finally
|
|
|
|
|
frm_sys_progress.close;
|
|
|
|
|
frm_sys_progress:=nil;
|
|
|
|
|
inifile1.free;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1bsSkinButton1Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
if strtobool(get_parameters_value(307,'false')) then
|
|
|
|
|
begin
|
|
|
|
|
if (trim(frm_op_seae.t_op_seae2.DataSet.FieldByName('ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>').AsString)='<27><><EFBFBD>ĵ<EFBFBD>')
|
|
|
|
|
and (frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString<>'<27><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>') then
|
|
|
|
|
begin
|
|
|
|
|
if frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString='<27>ύ<EFBFBD><E1BDBB><EFBFBD><EFBFBD>' then
|
|
|
|
|
begin
|
|
|
|
|
showmessage('<27>Ѿ<EFBFBD><D1BE>ύ<EFBFBD><E1BDBB><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
exit;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
if MessageDlg('<27><><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ύ<EFBFBD><E1BDBB><EFBFBD>˲ſ<CBB2><C5BF><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C>Ƿ<EFBFBD><C7B7>ύ',mtWarning,[mbYes,mbNo],0)=mrYes then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.t_op_seae2.DataSet.Edit;
|
|
|
|
|
frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString:='<27>ύ<EFBFBD><E1BDBB><EFBFBD><EFBFBD>';
|
|
|
|
|
frm_op_seae.t_op_seae2.DataSet.Post;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
showmessage('<27><><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>,<2C><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
exit;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
if strtobool(get_parameters_value(307,'false')) then
|
|
|
|
|
begin
|
|
|
|
|
if (trim(frm_op_seae.t_op_seae2.DataSet.FieldByName('ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>').AsString)='<27><><EFBFBD>ĵ<EFBFBD>')
|
|
|
|
|
and (frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString='<27><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>') then
|
|
|
|
|
begin
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
if (trim(frm_op_seae.t_op_seae2.DataSet.FieldByName('ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>').AsString)='<27><><EFBFBD>ĵ<EFBFBD>')
|
|
|
|
|
and (frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString<>'<27><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>') then
|
|
|
|
|
begin
|
|
|
|
|
showmessage('û<><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>,<2C><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
exit;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fra_fee1.bsSkinButton1Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1bsSkinButton11Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.bsSkinButton11Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1bsSkinButton9Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.bsSkinButton9Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1N31Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.N31Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1N127Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.N127Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1bsSkinButton14Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.bsSkinButton14Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1bsSkinButton12Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.bsSkinButton12Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1bsSkinButton6Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.bsSkinButton6Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1bsSkinButton5Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.bsSkinButton5Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1DBEdit48Change(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.DBEdit48Change(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1Memo1Change(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
// fra_fee1.fra_fee1Memo1Change(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1bsSkinDBEdit17Change(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
///
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1N55Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.N53Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1N7Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.N7Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_sea.fra_fee1bsSkinButton10Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
if strtobool(get_parameters_value(307,'false')) then
|
|
|
|
|
begin
|
|
|
|
|
if (trim(frm_op_seae.t_op_seae2.DataSet.FieldByName('ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>').AsString)='<27><><EFBFBD>ĵ<EFBFBD>')
|
|
|
|
|
and (frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString<>'<27><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>') then
|
|
|
|
|
begin
|
|
|
|
|
if frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString='<27>ύ<EFBFBD><E1BDBB><EFBFBD><EFBFBD>' then
|
|
|
|
|
begin
|
|
|
|
|
showmessage('<27>Ѿ<EFBFBD><D1BE>ύ<EFBFBD><E1BDBB><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
exit;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
if MessageDlg('<27><><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ύ<EFBFBD><E1BDBB><EFBFBD>˲ſ<CBB2><C5BF><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C>Ƿ<EFBFBD><C7B7>ύ',mtWarning,[mbYes,mbNo],0)=mrYes then
|
|
|
|
|
begin
|
|
|
|
|
frm_op_seae.t_op_seae2.DataSet.Edit;
|
|
|
|
|
frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString:='<27>ύ<EFBFBD><E1BDBB><EFBFBD><EFBFBD>';
|
|
|
|
|
frm_op_seae.t_op_seae2.DataSet.Post;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
showmessage('<27><><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>,<2C><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
exit;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
if strtobool(get_parameters_value(307,'false')) then
|
|
|
|
|
begin
|
|
|
|
|
if (trim(frm_op_seae.t_op_seae2.DataSet.FieldByName('ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>').AsString)='<27><><EFBFBD>ĵ<EFBFBD>')
|
|
|
|
|
and (frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString='<27><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>') then
|
|
|
|
|
begin
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
if (trim(frm_op_seae.t_op_seae2.DataSet.FieldByName('ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>').AsString)='<27><><EFBFBD>ĵ<EFBFBD>')
|
|
|
|
|
and (frm_op_seae.t_op_seae2.DataSet.FieldByName('<27><><EFBFBD>ĵ<EFBFBD>״̬').AsString<>'<27><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>') then
|
|
|
|
|
begin
|
|
|
|
|
showmessage('û<><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>,<2C><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
exit;
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fra_fee1.bsSkinButton10Click(Sender);
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
end.
|