⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ar_enter_saleinvoice3_c.pas

📁 一个MRPII系统源代码版本
💻 PAS
字号:
unit Ar_Enter_SaleInvoice3_C;

Interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  Base_Condition, Db, AdODB, StdCtrls, Mask, ExtEdit, linkedit;

Type
  TFrm_Ar_Enter_SaleInvoice3_C = Class(TFrm_Base_Condition)
    Edt_ShipNoStArt: TEdit;
    Edt_ShipNoend: TEdit;
    Label1: TLabel;
    Label2: TLabel;
    Label5: TLabel;
    Lab_CoustomerName: TLabel;
    Extedt_CustomerCode: TLinkEdit;
    procedure FormShow(Sender: TObject);
    procedure btn_okClick(Sender: TObject);
    procedure btn_CancelClick(Sender: TObject);
    procedure Extedt_CustomerCodeExit(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Frm_Ar_Enter_SaleInvoice3_C: TFrm_Ar_Enter_SaleInvoice3_C;

implementation

uses Ar_Enter_SaleInvoice3_C1,Sys_Global;

{$R *.DFM}

procedure TFrm_Ar_Enter_SaleInvoice3_C.FormShow(Sender: TObject);
begin
  inherited;
  ExtEdt_CustomerCode.SetFocus;
  Edt_ShipNoend.Text :='ZZZZZZ';
end;

procedure TFrm_Ar_Enter_SaleInvoice3_C.btn_okClick(Sender: TObject);
begin
  inherited;
  Frm_Ar_Enter_SaleInvoice3_C1.CustomerCode:=ExtEdt_CustomerCode.text;
  Frm_Ar_Enter_SaleInvoice3_C1.CustomerName:=Lab_CoustomerName.Caption;
  Frm_Ar_Enter_SaleInvoice3_C1.ShipNoStArt:=Edt_ShipNoStArt.Text;
  Frm_Ar_Enter_SaleInvoice3_C1.ShipNoend:=Edt_ShipNoend.Text;
  self.ModalResult:=mrOk;
end;

procedure TFrm_Ar_Enter_SaleInvoice3_C.btn_CancelClick(Sender: TObject);
begin
  inherited;
  Frm_Ar_Enter_SaleInvoice3_C1.Close;
end;

procedure TFrm_Ar_Enter_SaleInvoice3_C.Extedt_CustomerCodeExit(
  Sender: TObject);
begin
  inherited;
  if activecontrol.Name='btn_Cancel' then
  exit;
  Executesql(AdoQry_tmp,'select * from customer where customerCode='+quotedstr(Trim(Extedt_CustomerCode.text)),0);
  if AdoQry_tmp.RecordCount=0 then
    begin
     DispInfo('客户代码输入错误!',1);
     Extedt_CustomerCode.SetFocus;
     abort;
    end;
  lab_CoustomerName.Caption:=AdoQry_tmp.fieldbyname('customerName').asstring;

end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -