unit bom_edit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, Buttons, ExtCtrls, Grids, DBGrids,ADODB, DB;
type
Tbomedit = class(TForm)
Panel1: TPanel;
Shape1: TShape;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Edit3: TEdit;
Edit2: TEdit;
edit1: TEdit;
Label4: TLabel;
Edit4: TEdit;
DateTimePicker1: TDateTimePicker;
DateTimePicker2: TDateTimePicker;
Memo1: TMemo;
Label7: TLabel;
Label5: TLabel;
Label6: TLabel;
GroupBox1: TGroupBox;
Label8: TLabel;
edit5: TEdit;
Label9: TLabel;
Edit6: TEdit;
Label10: TLabel;
Edit7: TEdit;
Label11: TLabel;
Edit8: TEdit;
Label12: TLabel;
Edit9: TEdit;
Label13: TLabel;
Edit10: TEdit;
Label14: TLabel;
Edit11: TEdit;
Label15: TLabel;
jl: TDateTimePicker;
sxr: TDateTimePicker;
Label16: TLabel;
GroupBox2: TGroupBox;
SpeedButton1: TSpeedButton;
SpeedButton2: TSpeedButton;
ADODataSet1: TADODataSet;
DataSource1: TDataSource;
Label17: TLabel;
Edit12: TEdit;
ADOCommand1: TADOCommand;
StringGrid1: TStringGrid;
procedure SpeedButton2Click(Sender: TObject);
procedure SpeedButton5Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure edit1KeyPress(Sender: TObject; var Key: Char);
procedure DBGrid1CellClick(Column: TColumn);
procedure Edit6KeyPress(Sender: TObject; var Key: Char);
procedure SpeedButton1Click(Sender: TObject);
procedure SpeedButton3Click(Sender: TObject);
procedure StringGrid1Click(Sender: TObject);
procedure Edit9KeyPress(Sender: TObject; var Key: Char);
procedure jlKeyPress(Sender: TObject; var Key: Char);
procedure sxrKeyPress(Sender: TObject; var Key: Char);
procedure Edit11KeyPress(Sender: TObject; var Key: Char);
procedure Edit10KeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
function data_edit(sql_edit:string):boolean;
function chongfu_xh(int1:integer):integer;
function chongfu_lh(str1:string):integer;
function lh_exit(str1:string):integer;
end;