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.

70 lines
1.8 KiB
Plaintext

unit u_op_state_add;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, dxExEdtr, DB, BusinessSkinForm, dxDBTLCl, dxGrClms, bsSkinCtrls,
dxTL, dxDBCtrl, dxDBGrid, dxCntner;
type
Tfrm_op_state_add = class(TForm)
bsSkinGroupBox2: TbsSkinGroupBox;
bsSkinPanel2: TbsSkinPanel;
bsSkinButton6: TbsSkinButton;
bsSkinButton5: TbsSkinButton;
bsBusinessSkinForm1: TbsBusinessSkinForm;
DataSource1: TDataSource;
dxDBGrid2: TdxDBGrid;
dxDBGrid2Column4: TdxDBGridColumn;
dxDBGrid2Column1: TdxDBGridMaskColumn;
dxDBGrid2Column2: TdxDBGridMaskColumn;
dxDBGrid2Column3: TdxDBGridDateColumn;
dxDBGrid3: TdxDBGrid;
dxDBGrid3Column1: TdxDBGridMaskColumn;
dxDBGrid3Column2: TdxDBGridColumn;
procedure bsSkinButton6Click(Sender: TObject);
procedure bsSkinButton5Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_op_state_add: Tfrm_op_state_add;
implementation
uses u_data_share, u_main;
{$R *.dfm}
procedure Tfrm_op_state_add.bsSkinButton6Click(Sender: TObject);
begin
if frm_data_share.t_code_state_project_de.isempty then
exit;
try
modify_all:=true;
frm_data_share.t_code_state_project_de.first;
while not frm_data_share.t_code_state_project_de.eof do
begin
DataSource1.DataSet.insert;
DataSource1.DataSet['业务状态']:=frm_data_share.t_code_state_project_de['状态名称'];
DataSource1.DataSet['顺序']:=frm_data_share.t_code_state_project_de['顺序'];
DataSource1.DataSet.post;
frm_data_share.t_code_state_project_de.next;
end;
finally
modify_all:=false;
end;
close;
end;
procedure Tfrm_op_state_add.bsSkinButton5Click(Sender: TObject);
begin
close;
end;
end.