|
|
|
|
unit u_ch_fee_airi_sales;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
|
|
|
Dialogs, dxExEdtr, DB, ADODB, dxDBTLCl, dxGrClms, u_fee, wwdbedit,
|
|
|
|
|
Wwdotdot, Wwdbcomb, wwdbdatetimepicker, bsSkinCtrls, StdCtrls, DBCtrls,
|
|
|
|
|
RxLookup, Mask, dxDBGrid, dxTL, dxDBCtrl, dxCntner, ComCtrls, bsSkinTabs,
|
|
|
|
|
XPMenu, Menus;
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
Tfrm_ch_fee_airi_sales = class(TForm)
|
|
|
|
|
bsSkinPanel2: TbsSkinPanel;
|
|
|
|
|
bsSkinButton5: TbsSkinButton;
|
|
|
|
|
bsSkinButton6: TbsSkinButton;
|
|
|
|
|
bsSkinButton7: TbsSkinButton;
|
|
|
|
|
bsSkinButton10: TbsSkinButton;
|
|
|
|
|
bsSkinButton11: TbsSkinButton;
|
|
|
|
|
t_op_state: TADOQuery;
|
|
|
|
|
t_op_state1: TDataSource;
|
|
|
|
|
t_op_airi1: TDataSource;
|
|
|
|
|
bsSkinPageControl1: TbsSkinPageControl;
|
|
|
|
|
bsSkinTabSheet1: TbsSkinTabSheet;
|
|
|
|
|
bsSkinTabSheet2: TbsSkinTabSheet;
|
|
|
|
|
bsSkinTabSheet3: TbsSkinTabSheet;
|
|
|
|
|
bsSkinTabSheet4: TbsSkinTabSheet;
|
|
|
|
|
bsSkinPanel1: TbsSkinPanel;
|
|
|
|
|
Label1: TLabel;
|
|
|
|
|
Label19: TLabel;
|
|
|
|
|
Label2: TLabel;
|
|
|
|
|
Label17: TLabel;
|
|
|
|
|
Label3: TLabel;
|
|
|
|
|
Label37: TLabel;
|
|
|
|
|
Label5: TLabel;
|
|
|
|
|
Label38: TLabel;
|
|
|
|
|
Label4: TLabel;
|
|
|
|
|
Label36: TLabel;
|
|
|
|
|
DBEdit1: TDBEdit;
|
|
|
|
|
RxDBLookupCombo12: TRxDBLookupCombo;
|
|
|
|
|
DBEdit2: TDBEdit;
|
|
|
|
|
RxDBLookupCombo13: TRxDBLookupCombo;
|
|
|
|
|
DBEdit3: TDBEdit;
|
|
|
|
|
DBEdit8: TDBEdit;
|
|
|
|
|
DBEdit4: TDBEdit;
|
|
|
|
|
DBEdit9: TDBEdit;
|
|
|
|
|
RxDBLookupCombo1: TRxDBLookupCombo;
|
|
|
|
|
DBEdit7: TDBEdit;
|
|
|
|
|
dxDBGrid2: TdxDBGrid;
|
|
|
|
|
dxDBGrid2Column1: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid2Column2: TdxDBGridCheckColumn;
|
|
|
|
|
dxDBGrid2Column4: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid2Column3: TdxDBGridDateColumn;
|
|
|
|
|
dxDBGrid2Column6: TdxDBGridColumn;
|
|
|
|
|
dxDBGrid2Column7: TdxDBGridColumn;
|
|
|
|
|
dxDBGrid2Column5: TdxDBGridMaskColumn;
|
|
|
|
|
fra_fee1: Tfra_fee;
|
|
|
|
|
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;
|
|
|
|
|
DBEdit13: TDBEdit;
|
|
|
|
|
RxDBLookupCombo4: TRxDBLookupCombo;
|
|
|
|
|
DBEdit14: TDBEdit;
|
|
|
|
|
Label25: TLabel;
|
|
|
|
|
wwDBDateTimePicker2: TwwDBDateTimePicker;
|
|
|
|
|
Label16: TLabel;
|
|
|
|
|
wwDBDateTimePicker1: TwwDBDateTimePicker;
|
|
|
|
|
Label18: TLabel;
|
|
|
|
|
DBEdit15: TDBEdit;
|
|
|
|
|
Label85: TLabel;
|
|
|
|
|
DBEdit20: TDBEdit;
|
|
|
|
|
Label86: TLabel;
|
|
|
|
|
DBEdit19: TDBEdit;
|
|
|
|
|
RxDBLookupCombo6: TRxDBLookupCombo;
|
|
|
|
|
Label20: TLabel;
|
|
|
|
|
RxDBLookupCombo8: TRxDBLookupCombo;
|
|
|
|
|
Label23: TLabel;
|
|
|
|
|
Label111: TLabel;
|
|
|
|
|
DBMemo19: TDBMemo;
|
|
|
|
|
DBMemo18: TDBMemo;
|
|
|
|
|
RxDBLookupCombo7: TRxDBLookupCombo;
|
|
|
|
|
RxDBLookupCombo5: TRxDBLookupCombo;
|
|
|
|
|
Label21: TLabel;
|
|
|
|
|
Label22: TLabel;
|
|
|
|
|
RxDBLookupCombo11: TRxDBLookupCombo;
|
|
|
|
|
DBEdit16: TDBEdit;
|
|
|
|
|
Label24: TLabel;
|
|
|
|
|
Label164: TLabel;
|
|
|
|
|
Label110: TLabel;
|
|
|
|
|
DBEdit31: TDBEdit;
|
|
|
|
|
DBEdit17: TDBEdit;
|
|
|
|
|
DBEdit30: TDBEdit;
|
|
|
|
|
DBMemo17: TDBMemo;
|
|
|
|
|
Label96: TLabel;
|
|
|
|
|
Label109: TLabel;
|
|
|
|
|
Label26: TLabel;
|
|
|
|
|
dxDBGrid1: TdxDBGrid;
|
|
|
|
|
dxDBGrid1Column1: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column2: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column3: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column10: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column4: TdxDBGridDateColumn;
|
|
|
|
|
dxDBGrid1Column5: TdxDBGridDateColumn;
|
|
|
|
|
dxDBGrid1Column6: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column7: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column8: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column9: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column11: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column12: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column13: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column14: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column15: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column16: TdxDBGridDateColumn;
|
|
|
|
|
dxDBGrid1Column17: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column18: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column19: TdxDBGridColumn;
|
|
|
|
|
dxDBGrid1Column20: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column21: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column22: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column23: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column24: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column26: TdxDBGridMaskColumn;
|
|
|
|
|
dxDBGrid1Column25: TdxDBGridDateColumn;
|
|
|
|
|
Label27: TLabel;
|
|
|
|
|
dxDBGrid1Column27: TdxDBGridColumn;
|
|
|
|
|
DBEdit18: TDBEdit;
|
|
|
|
|
Label65: TLabel;
|
|
|
|
|
DBEdit12: TDBEdit;
|
|
|
|
|
bsSkinButton1: TbsSkinButton;
|
|
|
|
|
PopupMenu2: TPopupMenu;
|
|
|
|
|
N10: TMenuItem;
|
|
|
|
|
N11: TMenuItem;
|
|
|
|
|
N14: TMenuItem;
|
|
|
|
|
N13: TMenuItem;
|
|
|
|
|
N12: TMenuItem;
|
|
|
|
|
N15: TMenuItem;
|
|
|
|
|
N16: TMenuItem;
|
|
|
|
|
XPMenu1: TXPMenu;
|
|
|
|
|
t_op_airi: TADOStoredProc;
|
|
|
|
|
PopupMenu3: TPopupMenu;
|
|
|
|
|
N37: TMenuItem;
|
|
|
|
|
N38: TMenuItem;
|
|
|
|
|
N17: TMenuItem;
|
|
|
|
|
N18: TMenuItem;
|
|
|
|
|
N34: TMenuItem;
|
|
|
|
|
N35: TMenuItem;
|
|
|
|
|
N36: TMenuItem;
|
|
|
|
|
N1: TMenuItem;
|
|
|
|
|
N2: TMenuItem;
|
|
|
|
|
N3: TMenuItem;
|
|
|
|
|
N4: TMenuItem;
|
|
|
|
|
N5: TMenuItem;
|
|
|
|
|
N6: TMenuItem;
|
|
|
|
|
N7: TMenuItem;
|
|
|
|
|
N8: TMenuItem;
|
|
|
|
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
|
|
|
|
procedure bsSkinButton5Click(Sender: TObject);
|
|
|
|
|
procedure FormShow(Sender: TObject);
|
|
|
|
|
procedure bsSkinButton11Click(Sender: TObject);
|
|
|
|
|
procedure dxDBGrid1DblClick(Sender: TObject);
|
|
|
|
|
procedure bsSkinButton7Click(Sender: TObject);
|
|
|
|
|
procedure bsSkinButton6Click(Sender: TObject);
|
|
|
|
|
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 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_airi_sales: Tfrm_ch_fee_airi_sales;
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
uses u_main, my_sys_function, u_data_share;
|
|
|
|
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.FormClose(Sender: TObject;
|
|
|
|
|
var Action: TCloseAction);
|
|
|
|
|
begin
|
|
|
|
|
savereggrid(dxdbgrid1,caption);
|
|
|
|
|
savewwgrid(fra_fee1.wwDBGrid1,'<27><><EFBFBD>˽<EFBFBD><CBBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
savewwgrid(fra_fee1.wwDBGrid2,'<27><><EFBFBD>˽<EFBFBD><CBBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
frm_ch_fee_airi_sales.Hide;
|
|
|
|
|
frm_ch_fee_airi_sales.ManualFloat(frm_ch_fee_airi_sales.BoundsRect );
|
|
|
|
|
frm_main.freeTabs('frm_ch_fee_airi_sales');
|
|
|
|
|
action:=cafree;
|
|
|
|
|
frm_ch_fee_airi_sales:=nil;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.bsSkinButton5Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
close;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.FormShow(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_state.close;
|
|
|
|
|
t_op_airi.Close;
|
|
|
|
|
t_op_airi.Parameters.ParamByName('SQLStr').value:='select * from t_op_airi where '
|
|
|
|
|
+' SUBSTRING(CONVERT(char(15),<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,111),1,7)='''+FormatDateTime('YYYY',Date)+'/'+FormatDateTime('MM',Date)+''' and '
|
|
|
|
|
+'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>='+''''+employee+''''
|
|
|
|
|
+default_sort(56,'t_op_airi','','desc');
|
|
|
|
|
t_op_airi.open;
|
|
|
|
|
t_op_state.open;
|
|
|
|
|
|
|
|
|
|
loadreggrid(dxdbgrid1,false,caption);
|
|
|
|
|
|
|
|
|
|
bsSkinButton7.Width:=round(bsSkinPanel2.Width/6);
|
|
|
|
|
bsSkinButton6.Width:=round(bsSkinPanel2.Width/6);
|
|
|
|
|
bsSkinButton1.Width:=round(bsSkinPanel2.Width/6);
|
|
|
|
|
bsSkinButton10.Width:=round(bsSkinPanel2.Width/6);
|
|
|
|
|
bsSkinButton11.Width:=round(bsSkinPanel2.Width/6);
|
|
|
|
|
loadwwgrid(fra_fee1.wwDBGrid1,'<27><><EFBFBD>˽<EFBFBD><CBBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
loadwwgrid(fra_fee1.wwDBGrid2,'<27><><EFBFBD>˽<EFBFBD><CBBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>');
|
|
|
|
|
fra_fee1.edit_type.text:='4';
|
|
|
|
|
fra_fee1.edit_data.text:='0024';
|
|
|
|
|
fra_fee1.edit_report.text:='<27><><EFBFBD>˽<EFBFBD><CBBD><EFBFBD>';
|
|
|
|
|
fra_fee1.t_ch_accept.DataSource:=t_op_airi1;
|
|
|
|
|
if strtobool(get_parameters_value(150,'false')) then
|
|
|
|
|
fra_fee1.bsSkinPanel3.Visible:=true;
|
|
|
|
|
fra_fee1.DBEdit48.DataSource:=t_op_airi1;
|
|
|
|
|
|
|
|
|
|
if if_open('299') then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_accept.DataSource:=t_op_airi1;
|
|
|
|
|
if (strtobool(get_parameters_value(64,'false'))=true) and (if_open('209')=false) then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_accept.close;
|
|
|
|
|
fra_fee1.t_ch_accept.SQL.Clear;
|
|
|
|
|
fra_fee1.t_ch_accept.SQL.Add('select * 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_accept.open;
|
|
|
|
|
fra_fee1.a_shen_delete.open;
|
|
|
|
|
fra_fee1.a_shen_modify_old.open;
|
|
|
|
|
fra_fee1.a_shen_modify_new.open;
|
|
|
|
|
fra_fee1.Panel3.visible:=true;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.Panel3.visible:=false;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
if if_open('300') then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_pay.DataSource:=t_op_airi1;
|
|
|
|
|
if (strtobool(get_parameters_value(64,'false'))=true) and (if_open('209')=false) then
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.t_ch_pay.close;
|
|
|
|
|
fra_fee1.t_ch_pay.SQL.Clear;
|
|
|
|
|
fra_fee1.t_ch_pay.SQL.Add('select * 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;
|
|
|
|
|
fra_fee1.p_shen_delete.open;
|
|
|
|
|
fra_fee1.p_shen_modify_old.open;
|
|
|
|
|
fra_fee1.p_shen_modify_new.open;
|
|
|
|
|
fra_fee1.Panel1.visible:=true;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.Panel1.visible:=false;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
if fra_fee1.Panel1.visible and
|
|
|
|
|
fra_fee1.Panel3.visible then
|
|
|
|
|
begin
|
|
|
|
|
if if_open('229') then begin
|
|
|
|
|
fra_fee1.Panel8.Visible:=true;
|
|
|
|
|
fra_fee1.Panel8.Height:=20;
|
|
|
|
|
end else
|
|
|
|
|
fra_fee1.Panel8.Visible:=false;
|
|
|
|
|
|
|
|
|
|
fra_fee1.t_op_gain.DataSource:=t_op_airi1;
|
|
|
|
|
fra_fee1.t_op_gain.open;
|
|
|
|
|
|
|
|
|
|
fra_fee1.Panel9.Visible:=false;
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
begin
|
|
|
|
|
fra_fee1.Panel8.Visible:=false;
|
|
|
|
|
end;
|
|
|
|
|
frm_data_share.t_crm_client.requery;
|
|
|
|
|
frm_data_share.t_code_currency.requery;
|
|
|
|
|
if G_ZWCHK='TRUE' then
|
|
|
|
|
begin
|
|
|
|
|
bsSkinButton11.Visible:=false ;
|
|
|
|
|
bsSkinTabSheet3.TabVisible:=false ;
|
|
|
|
|
end ;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.bsSkinButton11Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
bsSkinTabSheet3.Show;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.dxDBGrid1DblClick(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
bsSkinTabSheet2.Show;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.bsSkinButton7Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
if not t_op_airi.Bof then
|
|
|
|
|
t_op_airi.Prior;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.bsSkinButton6Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
if not t_op_airi.eof then
|
|
|
|
|
t_op_airi.next;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.bsSkinButton10Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
query_airi(2,'0024');
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.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><CBBD><EFBFBD>',ANode.Strings[dxDBGrid1Column2.Index]);
|
|
|
|
|
AFont.Color:=clblack;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.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_airi_sales.N10Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
update_grid_view_no(dxdbgrid1);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N14Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
update_grid_view_all(dxdbgrid1);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N12Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
update_grid(dxdbgrid1,60);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N16Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
grid_save_xls(dxdbgrid1);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.dxDBGrid1ColumnSorting(Sender: TObject;
|
|
|
|
|
Column: TdxDBTreeListColumn; var Allow: Boolean);
|
|
|
|
|
begin
|
|
|
|
|
Column_sort_pro(Column,t_op_airi,'ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.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_airi_sales.N37Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airi.Close;
|
|
|
|
|
t_op_airi.Parameters.ParamByName('SQLStr').value:='select * from t_op_airi where '
|
|
|
|
|
+open_data('0024','<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) '
|
|
|
|
|
+default_sort(56,'t_op_airi','','desc');
|
|
|
|
|
t_op_airi.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N17Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airi.Close;
|
|
|
|
|
t_op_airi.Parameters.ParamByName('SQLStr').value:='select * from t_op_airi where '
|
|
|
|
|
+open_data('0024','<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>״̬'+''''+') '
|
|
|
|
|
+default_sort(56,'t_op_airi','','desc');
|
|
|
|
|
t_op_airi.open
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N34Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airi.Close;
|
|
|
|
|
t_op_airi.Parameters.ParamByName('SQLStr').value:='select * from t_op_airi where '
|
|
|
|
|
+open_data('0024','<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>'+''''+')) '
|
|
|
|
|
+default_sort(56,'t_op_airi','','desc');
|
|
|
|
|
t_op_airi.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N36Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airi.Close;
|
|
|
|
|
t_op_airi.Parameters.ParamByName('SQLStr').value:='select * from t_op_airi where '
|
|
|
|
|
+open_data('0024','<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>'+''''+')) '
|
|
|
|
|
+default_sort(56,'t_op_airi','','desc');
|
|
|
|
|
t_op_airi.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N2Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airi.Close;
|
|
|
|
|
t_op_airi.Parameters.ParamByName('SQLStr').value:='select * from t_op_airi where '
|
|
|
|
|
+open_data('0024','<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><>'+''''+')'
|
|
|
|
|
+default_sort(56,'t_op_airi','','desc');
|
|
|
|
|
t_op_airi.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N4Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airi.Close;
|
|
|
|
|
t_op_airi.Parameters.ParamByName('SQLStr').value:='select * from t_op_airi where '
|
|
|
|
|
+open_data('0024','<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><>'+''''+')'
|
|
|
|
|
+default_sort(56,'t_op_airi','','desc');
|
|
|
|
|
t_op_airi.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N5Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airi.Close;
|
|
|
|
|
t_op_airi.Parameters.ParamByName('SQLStr').value:='select * from t_op_airi where '
|
|
|
|
|
+open_data('0024','<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 )'
|
|
|
|
|
+default_sort(56,'t_op_airi','','desc');
|
|
|
|
|
t_op_airi.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure Tfrm_ch_fee_airi_sales.N8Click(Sender: TObject);
|
|
|
|
|
begin
|
|
|
|
|
t_op_airi.Close;
|
|
|
|
|
t_op_airi.Parameters.ParamByName('SQLStr').value:='select * from t_op_airi where '
|
|
|
|
|
+open_data('0024','<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>'+''''+')'
|
|
|
|
|
+default_sort(56,'t_op_airi','','desc');
|
|
|
|
|
t_op_airi.open;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
end.
|