You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

730 lines
22 KiB
Plaintext

11 months ago
unit u_op_seai_close;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, dxExEdtr, DB, ADODB, Grids, Wwdbigrd, Wwdbgrid, RxLookup,
StdCtrls, Mask, DBCtrls, dxDBGrid, dxDBTLCl, dxGrClms, dxTL, dxDBCtrl,
dxCntner, ComCtrls, bsSkinTabs, bsSkinCtrls, XPMenu, Menus,
bsSkinBoxCtrls, bsdbctrls, ExtCtrls;
type
Tfrm_op_seai_close = class(TForm)
bsSkinPanel2: TbsSkinPanel;
bsSkinButton5: TbsSkinButton;
bsSkinButton8: TbsSkinButton;
bsSkinButton10: TbsSkinButton;
bsSkinButton1: TbsSkinButton;
bsSkinButton3: TbsSkinButton;
bsSkinButton4: TbsSkinButton;
bsSkinPageControl1: TbsSkinPageControl;
bsSkinTabSheet1: TbsSkinTabSheet;
bsSkinTabSheet2: TbsSkinTabSheet;
wwDBGrid1: TwwDBGrid;
wwDBGrid2: TwwDBGrid;
t_ch_accept: TADOQuery;
t_ch_accept1: TDataSource;
t_ch_pay: TADOQuery;
t_ch_pay1: TDataSource;
dxDBGrid1: TdxDBGrid;
dxDBGrid1Column1: TdxDBGridMaskColumn;
dxDBGrid1Column2: TdxDBGridMaskColumn;
dxDBGrid1Column3: TdxDBGridMaskColumn;
dxDBGrid1Column4: TdxDBGridMaskColumn;
dxDBGrid1Column5: TdxDBGridMaskColumn;
dxDBGrid1Column6: TdxDBGridMaskColumn;
dxDBGrid1Column7: TdxDBGridMaskColumn;
dxDBGrid1Column8: TdxDBGridDateColumn;
dxDBGrid1Column9: TdxDBGridDateColumn;
dxDBGrid1Column10: TdxDBGridMaskColumn;
dxDBGrid1Column11: TdxDBGridMaskColumn;
dxDBGrid1Column12: TdxDBGridMaskColumn;
dxDBGrid1Column13: TdxDBGridMaskColumn;
dxDBGrid1Column14: TdxDBGridMaskColumn;
dxDBGrid1Column15: TdxDBGridMaskColumn;
dxDBGrid1Column16: TdxDBGridMaskColumn;
dxDBGrid1Column17: TdxDBGridMaskColumn;
dxDBGrid1Column18: TdxDBGridMaskColumn;
dxDBGrid11: TdxDBGridMaskColumn;
dxDBGrid12: TdxDBGridMaskColumn;
dxDBGrid13: TdxDBGridMaskColumn;
dxDBGrid14: TdxDBGridMaskColumn;
dxDBGrid15: TdxDBGridMaskColumn;
dxDBGrid16: TdxDBGridMaskColumn;
dxDBGrid17: TdxDBGridMaskColumn;
dxDBGrid18: TdxDBGridMaskColumn;
dxDBGrid19: TdxDBGridMaskColumn;
dxDBGrid110: TdxDBGridMaskColumn;
dxDBGrid1Column39: TdxDBGridMaskColumn;
dxDBGrid1TEU: TdxDBGridMaskColumn;
dxDBGrid1Column41: TdxDBGridMaskColumn;
dxDBGrid1Column42: TdxDBGridMaskColumn;
dxDBGrid1Column43: TdxDBGridMaskColumn;
dxDBGrid1Column44: TdxDBGridColumn;
dxDBGrid1Column45: TdxDBGridColumn;
dxDBGrid1Column46: TdxDBGridMaskColumn;
dxDBGrid1Column47: TdxDBGridMaskColumn;
dxDBGrid1Column48: TdxDBGridDateColumn;
dxDBGrid1Column49: TdxDBGridMaskColumn;
dxDBGrid1Column50: TdxDBGridMaskColumn;
dxDBGrid1Column51: TdxDBGridMaskColumn;
dxDBGrid1Column52: TdxDBGridMaskColumn;
dxDBGrid1Column53: TdxDBGridMaskColumn;
dxDBGrid1Column54: TdxDBGridMaskColumn;
dxDBGrid1Column55: TdxDBGridMaskColumn;
dxDBGrid1Column56: TdxDBGridMaskColumn;
dxDBGrid1Column57: TdxDBGridMaskColumn;
t_op_seai1: TDataSource;
bsSkinPanel1: TbsSkinPanel;
Label1: TLabel;
Label19: TLabel;
Label2: TLabel;
Label17: TLabel;
Label3: TLabel;
Label37: TLabel;
Label5: TLabel;
Label38: TLabel;
Label4: TLabel;
Label6: TLabel;
DBEdit1: TDBEdit;
RxDBLookupCombo12: TRxDBLookupCombo;
DBEdit2: TDBEdit;
RxDBLookupCombo13: TRxDBLookupCombo;
DBEdit3: TDBEdit;
DBEdit8: TDBEdit;
DBEdit4: TDBEdit;
DBEdit9: TDBEdit;
RxDBLookupCombo1: TRxDBLookupCombo;
RxDBLookupCombo2: TRxDBLookupCombo;
bsSkinButton7: TbsSkinButton;
bsSkinButton6: TbsSkinButton;
dxDBGrid1Column58: TdxDBGridColumn;
dxDBGrid1Column59: TdxDBGridColumn;
PopupMenu2: TPopupMenu;
N10: TMenuItem;
N11: TMenuItem;
N14: TMenuItem;
N13: TMenuItem;
N12: TMenuItem;
N15: TMenuItem;
N16: TMenuItem;
XPMenu1: TXPMenu;
t_op_seai: TADOStoredProc;
Panel2: TPanel;
bsSkinStdLabel4: TbsSkinStdLabel;
bsSkinStdLabel2: TbsSkinStdLabel;
bsSkinStdLabel3: TbsSkinStdLabel;
bsSkinStdLabel1: TbsSkinStdLabel;
bsSkinStdLabel5: TbsSkinStdLabel;
bsSkinStdLabel6: TbsSkinStdLabel;
bsSkinStdLabel7: TbsSkinStdLabel;
bsSkinStdLabel8: TbsSkinStdLabel;
bsSkinStdLabel9: TbsSkinStdLabel;
bsSkinStdLabel10: TbsSkinStdLabel;
bsSkinDBEdit6: TbsSkinDBEdit;
bsSkinDBEdit4: TbsSkinDBEdit;
bsSkinDBEdit1: TbsSkinDBEdit;
bsSkinDBEdit3: TbsSkinDBEdit;
bsSkinDBEdit5: TbsSkinDBEdit;
bsSkinDBEdit2: TbsSkinDBEdit;
bsSkinDBEdit8: TbsSkinDBEdit;
bsSkinDBEdit7: TbsSkinDBEdit;
bsSkinDBEdit9: TbsSkinDBEdit;
bsSkinDBEdit10: TbsSkinDBEdit;
t_op_gain: TADOQuery;
t_op_gain1: TDataSource;
bsSkinButton2: TbsSkinButton;
PopupMenu3: TPopupMenu;
N37: TMenuItem;
N38: TMenuItem;
N1: TMenuItem;
N2: TMenuItem;
N4: TMenuItem;
N3: TMenuItem;
N17: TMenuItem;
N18: TMenuItem;
N34: TMenuItem;
N35: TMenuItem;
N36: TMenuItem;
N5: TMenuItem;
N6: TMenuItem;
bsSkinTabSheet3: TbsSkinTabSheet;
bsSkinPanel3: TbsSkinPanel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
Label10: TLabel;
Label11: TLabel;
Label12: TLabel;
Label13: TLabel;
Label14: TLabel;
Label15: TLabel;
Label16: TLabel;
Label65: TLabel;
DBEdit5: TDBEdit;
DBEdit6: TDBEdit;
DBEdit7: TDBEdit;
DBEdit10: TDBEdit;
DBEdit11: TDBEdit;
DBEdit12: TDBEdit;
DBEdit26: TDBEdit;
DBEdit28: TDBEdit;
DBEdit29: TDBEdit;
DBEdit30: TDBEdit;
DBEdit31: TDBEdit;
Label122: TLabel;
DBMemo33: TDBMemo;
Label121: TLabel;
DBMemo34: TDBMemo;
Label123: TLabel;
DBMemo35: TDBMemo;
Label52: TLabel;
DBEdit81: TDBEdit;
Label54: TLabel;
DBEdit47: TDBEdit;
Label53: TLabel;
DBEdit27: TDBEdit;
Label55: TLabel;
DBMemo1: TDBMemo;
Label56: TLabel;
DBMemo2: TDBMemo;
Label57: TLabel;
DBMemo3: TDBMemo;
Label58: TLabel;
DBMemo4: TDBMemo;
Label125: TLabel;
DBEdit32: TDBEdit;
Label124: TLabel;
DBEdit33: TDBEdit;
Label29: TLabel;
DBEdit19: TDBEdit;
Label30: TLabel;
DBEdit20: TDBEdit;
Label31: TLabel;
DBEdit21: TDBEdit;
Label32: TLabel;
DBEdit48: TDBEdit;
Label33: TLabel;
DBEdit46: TDBEdit;
Label34: TLabel;
DBEdit45: TDBEdit;
Label35: TLabel;
DBEdit44: TDBEdit;
Label51: TLabel;
DBEdit82: TDBEdit;
Label36: TLabel;
DBEdit22: TDBEdit;
Label39: TLabel;
DBEdit23: TDBEdit;
Label40: TLabel;
DBEdit37: TDBEdit;
Label41: TLabel;
DBEdit38: TDBEdit;
Label49: TLabel;
DBEdit83: TDBEdit;
Label50: TLabel;
DBEdit25: TDBEdit;
Label126: TLabel;
DBEdit63: TDBEdit;
Label42: TLabel;
DBEdit34: TDBEdit;
Label43: TLabel;
DBEdit35: TDBEdit;
Label44: TLabel;
DBEdit24: TDBEdit;
Label45: TLabel;
DBEdit36: TDBEdit;
Label73: TLabel;
DBEdit39: TDBEdit;
Label46: TLabel;
DBEdit40: TDBEdit;
Label47: TLabel;
DBEdit41: TDBEdit;
Label48: TLabel;
DBEdit42: TDBEdit;
Label164: TLabel;
DBEdit43: TDBEdit;
N7: TMenuItem;
N8: TMenuItem;
N9: TMenuItem;
N19: TMenuItem;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure bsSkinButton5Click(Sender: TObject);
procedure FormResize(Sender: TObject);
procedure FormShow(Sender: TObject);
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 bsSkinButton10Click(Sender: TObject);
procedure dxDBGrid1DblClick(Sender: TObject);
procedure wwDBGrid1DrawDataCell(Sender: TObject; const Rect: TRect;
Field: TField; State: TGridDrawState);
procedure wwDBGrid2DrawDataCell(Sender: TObject; const Rect: TRect;
Field: TField; State: TGridDrawState);
procedure bsSkinButton3Click(Sender: TObject);
procedure bsSkinButton1Click(Sender: TObject);
procedure bsSkinButton4Click(Sender: TObject);
procedure bsSkinButton8Click(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 bsSkinButton7Click(Sender: TObject);
procedure bsSkinButton6Click(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 Panel2Resize(Sender: TObject);
procedure bsSkinButton2Click(Sender: TObject);
procedure N37Click(Sender: TObject);
procedure N17Click(Sender: TObject);
procedure N34Click(Sender: TObject);
procedure N36Click(Sender: TObject);
procedure N1Click(Sender: TObject);
procedure N4Click(Sender: TObject);
procedure N5Click(Sender: TObject);
procedure N7Click(Sender: TObject);
procedure N19Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_op_seai_close: Tfrm_op_seai_close;
implementation
uses u_main,u_op_close_select, u_op_close_all,
u_op_open_select, u_op_open_all, my_sys_function;
{$R *.dfm}
procedure Tfrm_op_seai_close.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
savereggrid(dxdbgrid1,caption);
frm_op_seai_close.Hide;
frm_op_seai_close.ManualFloat(frm_op_seai_close.BoundsRect );
frm_main.freeTabs('frm_op_seai_close');
action:=cafree;
frm_op_seai_close:=nil;
end;
procedure Tfrm_op_seai_close.bsSkinButton5Click(Sender: TObject);
begin
close;
end;
procedure Tfrm_op_seai_close.FormResize(Sender: TObject);
var
i:integer;
begin
i:=round(bsSkinPanel2.Width/9);
bsSkinButton7.Width:=i;
bsSkinButton6.Width:=i;
bsSkinButton10.Width:=i;
bsSkinButton3.Width:=i;
bsSkinButton1.Width:=i;
bsSkinButton4.Width:=i;
bsSkinButton8.Width:=i;
bsSkinButton2.Width:=i;
wwDBGrid1.Height:=round((bsSkinTabSheet2.Height-bsSkinPanel1.Height-Panel2.Height)/2);
end;
procedure Tfrm_op_seai_close.FormShow(Sender: TObject);
begin
{ t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai where ҵ<><D2B5>״̬<>'+''''+'ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'+''''
+' or <20><><EFBFBD><EFBFBD>״̬<>'+''''+'<27><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>'+''''
+default_sort(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.open; }
loadreggrid(dxdbgrid1,true,caption);
end;
procedure Tfrm_op_seai_close.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_op_seai_close.bsSkinButton10Click(Sender: TObject);
begin
query_seai(4,'no');
end;
procedure Tfrm_op_seai_close.dxDBGrid1DblClick(Sender: TObject);
begin
bsSkinTabSheet2.show;
end;
procedure Tfrm_op_seai_close.wwDBGrid1DrawDataCell(Sender: TObject;
const Rect: TRect; Field: TField; State: TGridDrawState);
begin
fee_color(t_ch_accept,wwDBGrid1,Rect,Field);
end;
procedure Tfrm_op_seai_close.wwDBGrid2DrawDataCell(Sender: TObject;
const Rect: TRect; Field: TField; State: TGridDrawState);
begin
fee_color(t_ch_pay,wwDBGrid2,Rect,Field);
end;
procedure Tfrm_op_seai_close.bsSkinButton3Click(Sender: TObject);
begin
if t_op_seai.IsEmpty then
exit;
if (t_op_seai.fieldbyname('ҵ<><D2B5>״̬').asstring='ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
and(t_op_seai.fieldbyname('<27><><EFBFBD><EFBFBD>״̬').asstring='<27><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>')then
begin
showmessage('<27>Բ<EFBFBD><D4B2><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ҵ<EFBFBD>񡢷<EFBFBD><F1A1A2B7>ö<EFBFBD><C3B6>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD>ܲ<EFBFBD><DCB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
exit;
end;
try
frm_op_close_select:=tfrm_op_close_select.Create(self);
close_select_num:=2;
if if_open('061') and if_open('147') then
begin
frm_op_close_select.bsSkinCheckRadioBox3.Checked:=true;
end
else if if_open('061') then
begin
frm_op_close_select.bsSkinCheckRadioBox1.Checked:=true;
frm_op_close_select.bsSkinCheckRadioBox2.Enabled:=false;
frm_op_close_select.bsSkinCheckRadioBox3.Enabled:=false;
end
else if if_open('147') then
begin
frm_op_close_select.bsSkinCheckRadioBox2.Checked:=true;
frm_op_close_select.bsSkinCheckRadioBox1.Enabled:=false;
frm_op_close_select.bsSkinCheckRadioBox3.Enabled:=false;
end;
frm_op_close_select.yewu.DataSet:=t_op_seai;
frm_op_close_select.accept.DataSet:=t_ch_accept;
frm_op_close_select.pay.DataSet:=t_ch_pay;
frm_op_close_select.ShowModal;
finally
frm_op_close_select.Free;
end;
end;
procedure Tfrm_op_seai_close.bsSkinButton1Click(Sender: TObject);
begin
if t_op_seai.IsEmpty then
exit;
if (t_op_seai.fieldbyname('ҵ<><D2B5>״̬').asstring='ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
and(t_op_seai.fieldbyname('<27><><EFBFBD><EFBFBD>״̬').asstring='<27><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>')then
begin
showmessage('<27>Բ<EFBFBD><D4B2><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ҵ<EFBFBD>񡢷<EFBFBD><F1A1A2B7>ö<EFBFBD><C3B6>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD>ܲ<EFBFBD><DCB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
exit;
end;
try
frm_op_close_all:=tfrm_op_close_all.Create(self);
if if_open('061') and if_open('147') then
begin
frm_op_close_all.bsSkinCheckRadioBox3.Checked:=true;
end
else if if_open('061') then
begin
frm_op_close_all.bsSkinCheckRadioBox1.Checked:=true;
frm_op_close_all.bsSkinCheckRadioBox2.Enabled:=false;
frm_op_close_all.bsSkinCheckRadioBox3.Enabled:=false;
end
else if if_open('147') then
begin
frm_op_close_all.bsSkinCheckRadioBox2.Checked:=true;
frm_op_close_all.bsSkinCheckRadioBox1.Enabled:=false;
frm_op_close_all.bsSkinCheckRadioBox3.Enabled:=false;
end;
frm_op_close_all.yewu.DataSet:=t_op_seai;
frm_op_close_all.accept.DataSet:=t_ch_accept;
frm_op_close_all.pay.DataSet:=t_ch_pay;
frm_op_close_all.ShowModal;
finally
frm_op_close_all.Free;
end;
end;
procedure Tfrm_op_seai_close.bsSkinButton4Click(Sender: TObject);
begin
if t_op_seai.IsEmpty then
exit;
if (t_op_seai.fieldbyname('ҵ<><D2B5>״̬').asstring<>'ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
and(t_op_seai.fieldbyname('<27><><EFBFBD><EFBFBD>״̬').asstring<>'<27><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>')then
begin
showmessage('<27>Բ<EFBFBD><D4B2><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ҵ<EFBFBD>񡢷<EFBFBD><F1A1A2B7>ö<EFBFBD>û<EFBFBD>з<EFBFBD><D0B7>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD>ܲ<EFBFBD><DCB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
exit;
end;
try
frm_op_open_select:=tfrm_op_open_select.Create(self);
open_select_num:=2;
if if_open('061') and if_open('147') then
begin
frm_op_open_select.bsSkinCheckRadioBox3.Checked:=true;
end
else if if_open('061') then
begin
frm_op_open_select.bsSkinCheckRadioBox1.Checked:=true;
frm_op_open_select.bsSkinCheckRadioBox2.Enabled:=false;
frm_op_open_select.bsSkinCheckRadioBox3.Enabled:=false;
end
else if if_open('147') then
begin
frm_op_open_select.bsSkinCheckRadioBox2.Checked:=true;
frm_op_open_select.bsSkinCheckRadioBox1.Enabled:=false;
frm_op_open_select.bsSkinCheckRadioBox3.Enabled:=false;
end;
frm_op_open_select.yewu.DataSet:=t_op_seai;
frm_op_open_select.accept.DataSet:=t_ch_accept;
frm_op_open_select.pay.DataSet:=t_ch_pay;
frm_op_open_select.ShowModal;
finally
frm_op_open_select.Free;
end;
end;
procedure Tfrm_op_seai_close.bsSkinButton8Click(Sender: TObject);
begin
if t_op_seai.IsEmpty then
exit;
if (t_op_seai.fieldbyname('ҵ<><D2B5>״̬').asstring<>'ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
and(t_op_seai.fieldbyname('<27><><EFBFBD><EFBFBD>״̬').asstring<>'<27><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD>')then
begin
showmessage('<27>Բ<EFBFBD><D4B2><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ҵ<EFBFBD>񡢷<EFBFBD><F1A1A2B7>ö<EFBFBD>û<EFBFBD>з<EFBFBD><D0B7>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD>ܲ<EFBFBD><DCB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
exit;
end;
try
frm_op_open_all:=tfrm_op_open_all.Create(self);
if if_open('061') and if_open('147') then
begin
frm_op_open_all.bsSkinCheckRadioBox3.Checked:=true;
end
else if if_open('061') then
begin
frm_op_open_all.bsSkinCheckRadioBox1.Checked:=true;
frm_op_open_all.bsSkinCheckRadioBox2.Enabled:=false;
frm_op_open_all.bsSkinCheckRadioBox3.Enabled:=false;
end
else if if_open('147') then
begin
frm_op_open_all.bsSkinCheckRadioBox2.Checked:=true;
frm_op_open_all.bsSkinCheckRadioBox1.Enabled:=false;
frm_op_open_all.bsSkinCheckRadioBox3.Enabled:=false;
end;
frm_op_open_all.yewu.DataSet:=t_op_seai;
frm_op_open_all.accept.DataSet:=t_ch_accept;
frm_op_open_all.pay.DataSet:=t_ch_pay;
frm_op_open_all.ShowModal;
finally
frm_op_open_all.Free;
end;
end;
procedure Tfrm_op_seai_close.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_op_seai_close.bsSkinButton7Click(Sender: TObject);
begin
if not t_op_seai.Bof then
t_op_seai.Prior;
end;
procedure Tfrm_op_seai_close.bsSkinButton6Click(Sender: TObject);
begin
if not t_op_seai.eof then
t_op_seai.next;
end;
procedure Tfrm_op_seai_close.N10Click(Sender: TObject);
begin
update_grid_view_no(dxdbgrid1);
end;
procedure Tfrm_op_seai_close.N14Click(Sender: TObject);
begin
update_grid_view_all(dxdbgrid1);
end;
procedure Tfrm_op_seai_close.N12Click(Sender: TObject);
begin
update_grid(dxdbgrid1,38);
end;
procedure Tfrm_op_seai_close.N16Click(Sender: TObject);
begin
grid_save_xls(dxdbgrid1);
end;
procedure Tfrm_op_seai_close.dxDBGrid1ColumnSorting(Sender: TObject;
Column: TdxDBTreeListColumn; var Allow: Boolean);
begin
Column_sort_pro(Column,t_op_seai,'ҵ<><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
end;
procedure Tfrm_op_seai_close.Panel2Resize(Sender: TObject);
var
i:integer;
begin
i:=round((Panel2.Width-196)/10);
bsSkinDBEdit1.Width:=i;
bsSkinDBEdit2.Width:=i;
bsSkinDBEdit3.Width:=i;
bsSkinDBEdit4.Width:=i;
bsSkinDBEdit5.Width:=i;
bsSkinDBEdit6.Width:=i;
bsSkinDBEdit7.Width:=i;
bsSkinDBEdit8.Width:=i;
bsSkinDBEdit9.Width:=i;
end;
procedure Tfrm_op_seai_close.bsSkinButton2Click(Sender: TObject);
var
Pnt:Tpoint;
begin
Pnt:=bsSkinButton2.ClientToScreen(Point(0,bsSkinButton2.Height));
PopupMenu3.Popup(Pnt.x,Pnt.y);
end;
procedure Tfrm_op_seai_close.N37Click(Sender: TObject);
begin
t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai where '
+' <20><><EFBFBD><EFBFBD> in (select distinct <20><><EFBFBD><EFBFBD> from t_op_state where <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><>1) '
+default_sort(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.OPEN;
end;
procedure Tfrm_op_seai_close.N17Click(Sender: TObject);
begin
t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai where '
+' <20><><EFBFBD><EFBFBD> in (select distinct <20><><EFBFBD><EFBFBD> from t_ch_fee where <20><><EFBFBD><EFBFBD>״̬='
+''''+'¼<><C2BC>״̬'+''''+') '
+default_sort(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.OPEN;
end;
procedure Tfrm_op_seai_close.N34Click(Sender: TObject);
begin
t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai where '
+' <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(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.OPEN;
end;
procedure Tfrm_op_seai_close.N36Click(Sender: TObject);
begin
t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai where '
+' <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(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.OPEN;
end;
procedure Tfrm_op_seai_close.N1Click(Sender: TObject);
begin
t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai where '
+' <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(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.OPEN;
end;
procedure Tfrm_op_seai_close.N4Click(Sender: TObject);
begin
t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai where '
+' <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(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.OPEN;
end;
procedure Tfrm_op_seai_close.N5Click(Sender: TObject);
begin
t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai '
+' where <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>״̬ in ('
+''''+'<27><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>'+''''+','+''''+'<27><>ֹ<EFBFBD>޸<EFBFBD>'+''''+','+''''+'<27><>ֹɾ<D6B9><C9BE>'+''''
+','+''''+'<27><><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD>'+''''+','+''''+'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'+''''+')) '
+' and <20><><EFBFBD><EFBFBD> not in (select distinct <20><><EFBFBD><EFBFBD> from t_ch_fee where <20><><EFBFBD><EFBFBD>״̬ not in ('
+''''+'<27><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>'+''''+','+''''+'<27><>ֹ<EFBFBD>޸<EFBFBD>'+''''+','+''''+'<27><>ֹɾ<D6B9><C9BE>'+''''
+','+''''+'<27><><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD>'+''''+','+''''+'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'+''''+')) '
+default_sort(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.OPEN;
end;
procedure Tfrm_op_seai_close.N7Click(Sender: TObject);
begin
t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai where '
+' <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(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.OPEN;
end;
procedure Tfrm_op_seai_close.N19Click(Sender: TObject);
begin
t_op_seai.Close;
t_op_seai.Parameters.ParamByName('SQLStr').value:='select * from t_op_seai where '
+' <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(54,'t_op_seai','','desc');
t_op_seai.open;
t_ch_accept.open;
t_ch_pay.open;
t_op_gain.OPEN;
end;
end.