|
|
|
|
unit u_ch_fee_check_airtruck;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
|
|
|
Dialogs, dxExEdtr, DB, ADODB, dxDBTLCl, dxGrClms, StdCtrls, DBCtrls,
|
|
|
|
|
RxLookup, wwdbdatetimepicker, bsSkinCtrls, Mask, u_fee_check, ComCtrls,
|
|
|
|
|
bsSkinTabs, dxDBGrid, dxTL, dxDBCtrl, dxCntner, XPMenu, Menus, wwdblook,
|
|
|
|
|
wwdbedit, Wwdotdot, Wwdbcomb,inifiles;
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
Tfrm_ch_fee_check_airtruck = class(TForm)
|
|
|
|
|
bsSkinPanel1: TbsSkinPanel;
|
|
|
|
|
bsSkinPanel2: TbsSkinPanel;
|
|
|
|
|
bsSkinButton10: TbsSkinButton;
|
|
|
|
|
t_op_state: TADOQuery;
|
|
|
|
|
t_op_state1: TDataSource;
|
|
|
|
|
t_op_airtruck1: TDataSource;
|
|
|
|
|
bsSkinPageControl1: TbsSkinPageControl;
|
|
|
|
|
bsSkinTabSheet1: TbsSkinTabSheet;
|
|
|
|
|
bsSkinTabSheet2: TbsSkinTabSheet;
|
|
|
|
|
bsSkinTabSheet3: TbsSkinTabSheet;
|
|
|
|
|
fra_fee_check1: Tfra_fee_check;
|
|
|
|
|
dxDBGrid1: TdxDBGrid;
|
|
|
|
|
dxDBGrid1Column1: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column2: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column3: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column10: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column4: TdxDBGridDateColumn;
|
|
|
|
|
dxDBGrid1Column5: TdxDBGridDateColumn;
|
|
|
|
|
dxDBGrid1Column6: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column7: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column8: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column13: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column14: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column17: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column18: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column19: TdxDBGridColumn;
|
|
|
|
|
dxDBGrid1Column21: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column22: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column23: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column24: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column26: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column25: TdxDBGridDateColumn;
|
|
|
|
|
dxDBGrid2: TdxDBGrid;
|
|
|
|
|
dxDBGrid2Column1: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid2Column2: TdxDBGridCheckColumn;
|
|
|
|
|
dxDBGrid2Column4: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid2Column3: TdxDBGridDateColumn;
|
|
|
|
|
dxDBGrid2Column6: TdxDBGridColumn;
|
|
|
|
|
dxDBGrid2Column7: TdxDBGridColumn;
|
|
|
|
|
dxDBGrid2Column5: TdxDBGridMaskColumn;
|
|
|
|
|
bsSkinPanel3: TbsSkinPanel;
|
|
|
|
|
Label6: TLabel;
|
|
|
|
|
Label7: TLabel;
|
|
|
|
|
Label8: TLabel;
|
|
|
|
|
Label9: TLabel;
|
|
|
|
|
Label10: TLabel;
|
|
|
|
|
Label11: TLabel;
|
|
|
|
|
Label12: TLabel;
|
|
|
|
|
Label13: TLabel;
|
|
|
|
|
Label14: TLabel;
|
|
|
|
|
Label15: TLabel;
|
|
|
|
|
DBEdit5: TDBEdit;
|
|
|
|
|
RxDBLookupCombo2: TRxDBLookupCombo;
|
|
|
|
|
DBEdit6: TDBEdit;
|
|
|
|
|
RxDBLookupCombo3: TRxDBLookupCombo;
|
|
|
|
|
DBEdit10: TDBEdit;
|
|
|
|
|
DBEdit11: TDBEdit;
|
|
|
|
|
dbedtt: TDBEdit;
|
|
|
|
|
RxDBLookupCombo4: TRxDBLookupCombo;
|
|
|
|
|
DBEdit14: TDBEdit;
|
|
|
|
|
dxDBGrid1Column27: TdxDBGridColumn;
|
|
|
|
|
DBEdit18: TDBEdit;
|
|
|
|
|
Label65: TLabel;
|
|
|
|
|
DBEdit4: TDBEdit;
|
|
|
|
|
bsSkinButton7: TbsSkinButton;
|
|
|
|
|
bsSkinButton5: TbsSkinButton;
|
|
|
|
|
PopupMenu2: TPopupMenu;
|
|
|
|
|
N10: TMenuItem;
|
|
|
|
|
N11: TMenuItem;
|
|
|
|
|
N14: TMenuItem;
|
|
|
|
|
N13: TMenuItem;
|
|
|
|
|
N12: TMenuItem;
|
|
|
|
|
N15: TMenuItem;
|
|
|
|
|
N16: TMenuItem;
|
|
|
|
|
XPMenu1: TXPMenu;
|
|
|
|
|
bsSkinButton1: TbsSkinButton;
|
|
|
|
|
PopupMenu3: TPopupMenu;
|
|
|
|
|
N37: TMenuItem;
|
|
|
|
|
N38: TMenuItem;
|
|
|
|
|
N17: TMenuItem;
|
|
|
|
|
N18: TMenuItem;
|
|
|
|
|
N34: TMenuItem;
|
|
|
|
|
N35: TMenuItem;
|
|
|
|
|
N36: TMenuItem;
|
|
|
|
|
t_op_airtruck: TADOStoredProc;
|
|
|
|
|
N1: TMenuItem;
|
|
|
|
|
N2: TMenuItem;
|
|
|
|
|
N3: TMenuItem;
|
|
|
|
|
N4: TMenuItem;
|
|
|
|
|
N5: TMenuItem;
|
|
|
|
|
N6: TMenuItem;
|
|
|
|
|
N7: TMenuItem;
|
|
|
|
|
N8: TMenuItem;
|
|
|
|
|
Label85: TLabel;
|
|
|
|
|
Label86: TLabel;
|
|
|
|
|
Label1: TLabel;
|
|
|
|
|
Label96: TLabel;
|
|
|
|
|
Label97: TLabel;
|
|
|
|
|
Label25: TLabel;
|
|
|
|
|
Label2: TLabel;
|
|
|
|
|
Label164: TLabel;
|
|
|
|
|
Label23: TLabel;
|
|
|
|
|
Label110: TLabel;
|
|
|
|
|
Label111: TLabel;
|
|
|
|
|
Label3: TLabel;
|
|
|
|
|
Label19: TLabel;
|
|
|
|
|
Label27: TLabel;
|
|
|
|
|
Label42: TLabel;
|
|
|
|
|
Label34: TLabel;
|
|
|
|
|
Label35: TLabel;
|
|
|
|
|
Label39: TLabel;
|
|
|
|
|
RxDBLookupCombo7: TRxDBLookupCombo;
|
|
|
|
|
DBEdit30: TDBEdit;
|
|
|
|
|
DBEdit31: TDBEdit;
|
|
|
|
|
wwDBDateTimePicker2: TwwDBDateTimePicker;
|
|
|
|
|
wwDBDateTimePicker1: TwwDBDateTimePicker;
|
|
|
|
|
RxDBLookupCombo11: TRxDBLookupCombo;
|
|
|
|
|
RxDBLookupCombo8: TRxDBLookupCombo;
|
|
|
|
|
DBMemo18: TDBMemo;
|
|
|
|
|
DBMemo19: TDBMemo;
|
|
|
|
|
wwDBComboBox3: TwwDBComboBox;
|
|
|
|
|
RxDBLookupCombo12: TRxDBLookupCombo;
|
|
|
|
|
RxDBLookupCombo29: TRxDBLookupCombo;
|
|
|
|
|
RxDBLookupCombo30: TRxDBLookupCombo;
|
|
|
|
|
wwDBLookupCombo52: TwwDBLookupCombo;
|
|
|
|
|
wwDBLookupCombo1: TwwDBLookupCombo;
|
|
|
|
|
RxDBLookupCombo16: TRxDBLookupCombo;
|
|
|
|
|
DBMemo3: TDBMemo;
|
|
|
|
|
RxDBLookupCombo17: TRxDBLookupCombo;
|
|
|
|
|
DBMemo4: TDBMemo;
|
|
|
|
|
RxDBLookupCombo18: TRxDBLookupCombo;
|
|
|
|
|
DBMemo5: TDBMemo;
|
|
|
|
|
dxDBGrid1Column28: TdxDBGridColumn;
|
|
|
|
|
procedure FormShow(Sender: TObject);
|
|
|
|
|
procedure bsSkinButton5Click(Sender: TObject);
|
|
|
|
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
|
|
|
|
procedure bsSkinButton10Click(Sender: TObject);
|
|
|
|
|
procedure dxDBGrid1Column2CustomDraw(Sender: TObject; ACanvas: TCanvas;
|
|
|
|
|
ARect: TRect; ANode: TdxTreeListNode; AColumn: TdxDBTreeListColumn;
|
|
|
|
|
const AText: String; AFont: TFont; var AColor: TColor; ASelected,
|
|
|
|
|
AFocused: Boolean; var ADone: Boolean);
|
|
|
|
|
procedure dxDBGrid1Column3CustomDraw(Sender: TObject; ACanvas: TCanvas;
|
|
|
|
|
ARect: TRect; ANode: TdxTreeListNode; AColumn: TdxDBTreeListColumn;
|
|
|
|
|
const AText: String; AFont: TFont; var AColor: TColor; ASelected,
|
|
|
|
|
AFocused: Boolean; var ADone: Boolean);
|
|
|
|
|
procedure bsSkinButton7Click(Sender: TObject);
|
|
|
|
|
procedure N10Click(Sender: TObject);
|
|
|
|
|
procedure N14Click(Sender: TObject);
|
|
|
|
|
procedure N12Click(Sender: TObject);
|
|
|
|
|
procedure N16Click(Sender: TObject);
|
|
|
|
|
procedure dxDBGrid1ColumnSorting(Sender: TObject;
|
|
|
|
|
Column: TdxDBTreeListColumn; var Allow: Boolean);
|
|
|
|
|
procedure bsSkinButton1Click(Sender: TObject);
|
|
|
|
|
procedure N37Click(Sender: TObject);
|
|
|
|
|
procedure N17Click(Sender: TObject);
|
|
|
|
|
procedure N34Click(Sender: TObject);
|
|
|
|
|
procedure N36Click(Sender: TObject);
|
|
|
|
|
procedure N2Click(Sender: TObject);
|
|
|
|
|
procedure N4Click(Sender: TObject);
|
|
|
|
|
procedure N5Click(Sender: TObject);
|
|
|
|
|
procedure N8Click(Sender: TObject);
|
|
|
|
|
private
|
|
|
|
|
{ Private declarations }
|
|
|
|
|
public
|
|
|
|
|
{ Public declarations }
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
var
|
|
|
|
|
frm_ch_fee_check_airtruck: Tfrm_ch_fee_check_airtruck;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
uses u_main, my_sys_function;
|
|
|
|
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.FormShow(Sender: TObject);
|
|
|
|
|
var
|
|
|
|
|
inifile1:Tinifile;
|
|
|
|
|
|
|
|
|
|
begin
|
|
|
|
|
t_op_state.close;
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0013','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','no','no','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> in (select <20><><EFBFBD><EFBFBD> from v_fee_check_airtruck) '
|
|
|
|
|
+' order by ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ';
|
|
|
|
|
t_op_airtruck.open;
|
|
|
|
|
t_op_state.open;
|
|
|
|
|
|
|
|
|
|
loadreggrid(dxdbgrid1,false,caption);
|
|
|
|
|
loadwwgrid(fra_fee_check1.wwDBGrid1,'<27><><EFBFBD>ܳ<EFBFBD><DCB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
loadwwgrid(fra_fee_check1.wwDBGrid2,'<27><><EFBFBD>ܳ<EFBFBD><DCB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
bsSkinPageControl1.Align:=alClient;
|
|
|
|
|
fra_fee_check1.limited_str.text:='0013';
|
|
|
|
|
fra_fee_check1.chk_accept.Text:='FALSE';
|
|
|
|
|
fra_fee_check1.chk_pay.text:='FALSE';
|
|
|
|
|
fra_fee_check1.ywlb.Text:='<27><><EFBFBD>ܳ<EFBFBD>' ;
|
|
|
|
|
|
|
|
|
|
if if_open('077') then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee_check1.t_ch_accept.DataSource:=t_op_airtruck1;
|
|
|
|
|
fra_fee_check1.t_ch_accept.open;
|
|
|
|
|
fra_fee_check1.a_shen_delete.open;
|
|
|
|
|
fra_fee_check1.a_shen_modify_old.open;
|
|
|
|
|
fra_fee_check1.a_shen_modify_new.open;
|
|
|
|
|
fra_fee_check1.bsSkinPanel3.visible:=true;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
fra_fee_check1.bsSkinPanel3.visible:=false;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
if if_open('078') then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee_check1.t_ch_pay.DataSource:=t_op_airtruck1;
|
|
|
|
|
fra_fee_check1.t_ch_pay.open;
|
|
|
|
|
fra_fee_check1.p_shen_delete.open;
|
|
|
|
|
fra_fee_check1.p_shen_modify_old.open;
|
|
|
|
|
fra_fee_check1.p_shen_modify_new.open;
|
|
|
|
|
fra_fee_check1.bsSkinPanel5.visible:=true;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
fra_fee_check1.bsSkinPanel5.visible:=false;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
if fra_fee_check1.bsSkinPanel3.visible and
|
|
|
|
|
fra_fee_check1.bsSkinPanel5.visible then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee_check1.Panel3.Visible:=true;
|
|
|
|
|
fra_fee_check1.t_op_gain.DataSource:=t_op_airtruck1;
|
|
|
|
|
fra_fee_check1.t_op_gain.open;
|
|
|
|
|
fra_fee_check1.bsSkinPanel9.Visible:=false;
|
|
|
|
|
fra_fee_check1.Panel3.Height:=20;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
fra_fee_check1.Panel3.Visible:=false;
|
|
|
|
|
end;
|
|
|
|
|
if strtobool(get_parameters_value(150,'false')) then
|
|
|
|
|
fra_fee_check1.bsSkinPanel10.Visible:=true
|
|
|
|
|
else fra_fee_check1.bsSkinPanel10.Visible:=False;
|
|
|
|
|
|
|
|
|
|
inifile1:=Tinifile.Create(ExtractFilePath(application.ExeName)+'main.ini');
|
|
|
|
|
if strtoint(get_parameters_value(197,'0'))<>0 then
|
|
|
|
|
fra_fee_check1.bsSkinComboBox1.ItemIndex:=strtoint(get_parameters_value(197,'0'))-1
|
|
|
|
|
else fra_fee_check1.bsSkinComboBox1.ItemIndex:=inifile1.ReadInteger('FEE','FEEVAT',0);
|
|
|
|
|
inifile1.Free;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.bsSkinButton5Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
close;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.FormClose(Sender: TObject;
|
|
|
|
|
var Action: TCloseAction);
|
|
|
|
|
begin
|
|
|
|
|
savereggrid(dxdbgrid1,caption);
|
|
|
|
|
savewwgrid(fra_fee_check1.wwDBGrid1,'<27><><EFBFBD>ܳ<EFBFBD><DCB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
savewwgrid(fra_fee_check1.wwDBGrid2,'<27><><EFBFBD>ܳ<EFBFBD><DCB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
frm_ch_fee_check_airtruck.Hide;
|
|
|
|
|
frm_ch_fee_check_airtruck.ManualFloat(frm_ch_fee_check_airtruck.BoundsRect );
|
|
|
|
|
frm_main.freeTabs('frm_ch_fee_check_airtruck');
|
|
|
|
|
action:=cafree;
|
|
|
|
|
frm_ch_fee_check_airtruck:=nil;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.bsSkinButton10Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
query_airtruck(3,'0014');
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.dxDBGrid1Column2CustomDraw(
|
|
|
|
|
Sender: TObject; ACanvas: TCanvas; ARect: TRect; ANode: TdxTreeListNode;
|
|
|
|
|
AColumn: TdxDBTreeListColumn; const AText: String; AFont: TFont;
|
|
|
|
|
var AColor: TColor; ASelected, AFocused: Boolean; var ADone: Boolean);
|
|
|
|
|
begin
|
|
|
|
|
AColor:=dxgrid_color('<27><><EFBFBD>ܳ<EFBFBD>',ANode.Strings[dxDBGrid1Column2.Index]);
|
|
|
|
|
AFont.Color:=clblack;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.dxDBGrid1Column3CustomDraw(
|
|
|
|
|
Sender: TObject; ACanvas: TCanvas; ARect: TRect; ANode: TdxTreeListNode;
|
|
|
|
|
AColumn: TdxDBTreeListColumn; const AText: String; AFont: TFont;
|
|
|
|
|
var AColor: TColor; ASelected, AFocused: Boolean; var ADone: Boolean);
|
|
|
|
|
begin
|
|
|
|
|
AColor:=dxgrid_color_fee(ANode.strings[dxDBGrid1Column3.Index]);
|
|
|
|
|
AFont.Color:=clblack;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.bsSkinButton7Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0014','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','no','no','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> in (select <20><><EFBFBD><EFBFBD> from v_fee_check_airtruck) ';
|
|
|
|
|
t_op_airtruck.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N10Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
update_grid_view_no(dxdbgrid1);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N14Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
update_grid_view_all(dxdbgrid1);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N12Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
update_grid(dxdbgrid1,61);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N16Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
grid_save_xls(dxdbgrid1);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.dxDBGrid1ColumnSorting(Sender: TObject;
|
|
|
|
|
Column: TdxDBTreeListColumn; var Allow: Boolean);
|
|
|
|
|
begin
|
|
|
|
|
Column_sort_pro(Column,t_op_airtruck,'ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.bsSkinButton1Click(Sender: TObject);
|
|
|
|
|
var
|
|
|
|
|
Pnt:Tpoint;
|
|
|
|
|
begin
|
|
|
|
|
Pnt:=bsSkinButton1.ClientToScreen(Point(0,bsSkinButton1.Height));
|
|
|
|
|
PopupMenu3.Popup(Pnt.x,Pnt.y);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N37Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0014','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>Ա','<27>ͷ<EFBFBD>Ա','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> in (select distinct <20><><EFBFBD><EFBFBD> from t_op_state where <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><>1) ';
|
|
|
|
|
t_op_airtruck.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N17Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0014','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>Ա','<27>ͷ<EFBFBD>Ա','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> in (select distinct <20><><EFBFBD><EFBFBD> from t_ch_fee where <20><><EFBFBD><EFBFBD>״̬='
|
|
|
|
|
+''''+'¼<><C2BC>״̬'+''''+') ';
|
|
|
|
|
t_op_airtruck.open
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N34Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0014','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>Ա','<27>ͷ<EFBFBD>Ա','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> in (select distinct <20><><EFBFBD><EFBFBD> from t_ch_fee where <20><><EFBFBD><EFBFBD>״̬ in ('
|
|
|
|
|
+''''+'<27><><EFBFBD><EFBFBD><EFBFBD>ύ'+''''+','+''''+'<27><>ֹ<EFBFBD><EFBFBD>'+''''+','+''''+'<27><>ֹɾ<D6B9><C9BE>'+''''+')) ';
|
|
|
|
|
t_op_airtruck.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N36Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0014','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>Ա','<27>ͷ<EFBFBD>Ա','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> in (select distinct <20><><EFBFBD><EFBFBD> from t_ch_fee where <20><><EFBFBD><EFBFBD>״̬ in ('
|
|
|
|
|
+''''+'<27>ύ<EFBFBD><E1BDBB><EFBFBD><EFBFBD>'+''''+','+''''+'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'+''''+','+''''+'<27><><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE>'+''''+')) ';
|
|
|
|
|
t_op_airtruck.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N2Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0014','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>Ա','<27>ͷ<EFBFBD>Ա','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD>״̬<>'+''''+'<27><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>'+''''
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> not in (select distinct <20><><EFBFBD><EFBFBD> from t_ch_fee where <20><><EFBFBD><EFBFBD>='+''''+'<27><>'+''''+')';
|
|
|
|
|
t_op_airtruck.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N4Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0014','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>Ա','<27>ͷ<EFBFBD>Ա','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD>״̬<>'+''''+'<27><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>'+''''
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> not in (select distinct <20><><EFBFBD><EFBFBD> from t_ch_fee where <20><><EFBFBD><EFBFBD>='+''''+'<27><>'+''''+')';
|
|
|
|
|
t_op_airtruck.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N5Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0014','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>Ա','<27>ͷ<EFBFBD>Ա','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD>״̬<>'+''''+'<27><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>'+''''
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> not in (select distinct <20><><EFBFBD><EFBFBD> from t_ch_fee )';
|
|
|
|
|
t_op_airtruck.open;
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_check_airtruck.N8Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
|
|
|
|
|
t_op_airtruck.Close;
|
|
|
|
|
t_op_airtruck.Parameters.ParamByName('SQLStr').value:='select * from t_op_airtruck where '
|
|
|
|
|
+open_data('0014','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<27><><EFBFBD><EFBFBD>Ա','<27>ͷ<EFBFBD>Ա','no','no')
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD>״̬<>'+''''+'<27><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>'+''''
|
|
|
|
|
+' and <20><><EFBFBD><EFBFBD> in (select distinct <20><><EFBFBD><EFBFBD> from t_ch_fee where <20><><EFBFBD><EFBFBD>״̬<>'+''''+'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'+''''+')';
|
|
|
|
|
t_op_airtruck.open;
|
|
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
end.
|