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.
116 lines
3.2 KiB
Plaintext
116 lines
3.2 KiB
Plaintext
unit u_op_acceptcode;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, StdCtrls, wwdbdatetimepicker, bsSkinCtrls, BusinessSkinForm, DB,
|
|
RxLookup;
|
|
|
|
type
|
|
Tfrm_op_acceptcode = class(TForm)
|
|
bsBusinessSkinForm1: TbsBusinessSkinForm;
|
|
bsSkinButton1: TbsSkinButton;
|
|
bsSkinButton5: TbsSkinButton;
|
|
DataSource1: TDataSource;
|
|
bsSkinButton2: TbsSkinButton;
|
|
Label126: TLabel;
|
|
RxDBLookupCombo19: TRxDBLookupCombo;
|
|
procedure bsSkinButton5Click(Sender: TObject);
|
|
procedure bsSkinButton1Click(Sender: TObject);
|
|
procedure FormShow(Sender: TObject);
|
|
procedure bsSkinButton2Click(Sender: TObject);
|
|
procedure RxDBLookupCombo19Enter(Sender: TObject);
|
|
procedure RxDBLookupCombo19Exit(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
BSTYPE:string;
|
|
end;
|
|
|
|
var
|
|
frm_op_acceptcode: Tfrm_op_acceptcode;
|
|
|
|
implementation
|
|
|
|
uses my_sys_function, u_op_railway_shencode;
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure Tfrm_op_acceptcode.bsSkinButton5Click(Sender: TObject);
|
|
begin
|
|
close;
|
|
end;
|
|
|
|
procedure Tfrm_op_acceptcode.bsSkinButton1Click(Sender: TObject);
|
|
var
|
|
i:Integer;
|
|
begin
|
|
if RxDBLookupCombo19.DisplayValue='' then
|
|
begin
|
|
showmessage('请输入受理代理!!');
|
|
exit;
|
|
end;
|
|
try
|
|
frm_op_railwayctn_shencode.t_op_railway.DisableControls;
|
|
|
|
for i:=0 to frm_op_railwayctn_shencode.dxDBGrid2.SelectedCount-1 do
|
|
begin
|
|
frm_op_railwayctn_shencode.t_op_railway.GotoBookmark(pointer(frm_op_railwayctn_shencode.dxDBGrid2.selectedrows[i]));
|
|
if frm_op_railwayctn_shencode.t_op_railway.FieldByName('代码状态').AsString='申请代码' then begin
|
|
frm_op_railwayctn_shencode.t_op_railway.edit;
|
|
frm_op_railwayctn_shencode.t_op_railway.fieldbyname('代码状态').asstring:='受理申请';
|
|
frm_op_railwayctn_shencode.t_op_railway.fieldbyname('代理').asstring:=RxDBLookupCombo19.DisplayValue;
|
|
frm_op_railwayctn_shencode.t_op_railway.post;
|
|
end;
|
|
end;
|
|
finally
|
|
frm_op_railwayctn_shencode.t_op_railway.EnableControls;
|
|
end;
|
|
|
|
close;
|
|
end;
|
|
|
|
procedure Tfrm_op_acceptcode.FormShow(Sender: TObject);
|
|
begin
|
|
// wwDBDateTimePicker1.MinDate:=Logininfo.endday+1;
|
|
end;
|
|
|
|
procedure Tfrm_op_acceptcode.bsSkinButton2Click(Sender: TObject);
|
|
var
|
|
i:Integer;
|
|
begin
|
|
|
|
try
|
|
frm_op_railwayctn_shencode.t_op_railway.DisableControls;
|
|
|
|
for i:=0 to frm_op_railwayctn_shencode.dxDBGrid2.SelectedCount-1 do
|
|
begin
|
|
frm_op_railwayctn_shencode.t_op_railway.GotoBookmark(pointer(frm_op_railwayctn_shencode.dxDBGrid2.selectedrows[i]));
|
|
if frm_op_railwayctn_shencode.t_op_railway.fieldbyname('代码状态').asstring='受理申请' then begin
|
|
frm_op_railwayctn_shencode.t_op_railway.edit;
|
|
frm_op_railwayctn_shencode.t_op_railway.fieldbyname('代码状态').asstring:='申请代码';
|
|
frm_op_railwayctn_shencode.t_op_railway.post;
|
|
end;
|
|
|
|
end;
|
|
finally
|
|
frm_op_railwayctn_shencode.t_op_railway.EnableControls;
|
|
end;
|
|
|
|
close;
|
|
end;
|
|
|
|
procedure Tfrm_op_acceptcode.RxDBLookupCombo19Enter(Sender: TObject);
|
|
begin
|
|
RxLookupComboEnter(TRxDBLookupCombo(Sender));
|
|
end;
|
|
|
|
procedure Tfrm_op_acceptcode.RxDBLookupCombo19Exit(Sender: TObject);
|
|
begin
|
|
RxLookupComboExit(TRxDBLookupCombo(Sender));
|
|
end;
|
|
|
|
end.
|