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.
101 lines
2.7 KiB
Plaintext
101 lines
2.7 KiB
Plaintext
unit u_op_shendate;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, StdCtrls, wwdbdatetimepicker, bsSkinCtrls, BusinessSkinForm, DB;
|
|
|
|
type
|
|
Tfrm_op_shendate = class(TForm)
|
|
Label1: TLabel;
|
|
wwDBDateTimePicker1: TwwDBDateTimePicker;
|
|
bsBusinessSkinForm1: TbsBusinessSkinForm;
|
|
bsSkinButton1: TbsSkinButton;
|
|
bsSkinButton5: TbsSkinButton;
|
|
DataSource1: TDataSource;
|
|
bsSkinButton2: TbsSkinButton;
|
|
procedure bsSkinButton5Click(Sender: TObject);
|
|
procedure bsSkinButton1Click(Sender: TObject);
|
|
procedure FormShow(Sender: TObject);
|
|
procedure bsSkinButton2Click(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
BSTYPE:string;
|
|
end;
|
|
|
|
var
|
|
frm_op_shendate: Tfrm_op_shendate;
|
|
|
|
implementation
|
|
|
|
uses my_sys_function, u_op_railway_shencode;
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure Tfrm_op_shendate.bsSkinButton5Click(Sender: TObject);
|
|
begin
|
|
close;
|
|
end;
|
|
|
|
procedure Tfrm_op_shendate.bsSkinButton1Click(Sender: TObject);
|
|
var
|
|
i:Integer;
|
|
begin
|
|
if wwDBDateTimePicker1.text='' 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]));
|
|
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('申请代码时间').asdatetime:=wwDBDateTimePicker1.date;
|
|
frm_op_railwayctn_shencode.t_op_railway.post;
|
|
|
|
end;
|
|
finally
|
|
frm_op_railwayctn_shencode.t_op_railway.EnableControls;
|
|
end;
|
|
|
|
close;
|
|
end;
|
|
|
|
procedure Tfrm_op_shendate.FormShow(Sender: TObject);
|
|
begin
|
|
// wwDBDateTimePicker1.MinDate:=Logininfo.endday+1;
|
|
end;
|
|
|
|
procedure Tfrm_op_shendate.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]));
|
|
frm_op_railwayctn_shencode.t_op_railway.edit;
|
|
frm_op_railwayctn_shencode.t_op_railway.fieldbyname('代码状态').asstring:='未申请代码';
|
|
frm_op_railwayctn_shencode.t_op_railway['申请代码时间']:=null;
|
|
frm_op_railwayctn_shencode.t_op_railway.post;
|
|
|
|
end;
|
|
finally
|
|
frm_op_railwayctn_shencode.t_op_railway.EnableControls;
|
|
end;
|
|
|
|
close;
|
|
end;
|
|
|
|
end.
|