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

📄 ar_enter_eachinvoiceh.pas

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

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  Base_Entry_Head, Menus, Db, ActnList, AdODB, Grids, DBGridEh, StdCtrls,
  ExtCtrls, ComCtrls, ToolWin, jpeg, ExtPrintReport;

Type
  TFrm_Ar_Enter_EachInvoiceH = Class(TFrm_Base_Entry_Head)
    AdoQry_HeadInvoiceNo: TStringField;
    AdoQry_HeadCancelTotalAmount: TFloatField;
    AdoQry_HeadRemArk: TStringField;
    AdoQry_HeadCreateDate: TDateTimeField;
    AdoQry_HeadCreateEmployeeCode: TStringField;
    AdoQry_HeadEditDate: TDateTimeField;
    AdoQry_HeadEdItEmployeeCode: TStringField;
    AdoQry_HeadcustomerCode: TStringField;
    AdoQry_HeadcustomerName: TStringField;
    AdoQry_HeadTotaltaxAmount: TFloatField;
    AdoQry_HeadcurrencyCode: TStringField;
    AdoQry_HeadcurrencyName: TStringField;
    AdoQry_HeadExchangeRate: TFloatField;
    AdoQry_HeadEmployeeName: TStringField;
    AdoQry_HeadEachInvoiceNo: TStringField;
    procedure FormDestroy(Sender: TObject);
  private
    { Private declarations }
  public
    procedure InitForm(AdOConnection:TAdOConnection;ReadOnly:Boolean);Override;
    { Public declarations }
  end;

var
  Frm_Ar_Enter_EachInvoiceH: TFrm_Ar_Enter_EachInvoiceH;

implementation

uses  Ar_Enter_EachInvoice;

{$R *.DFM}

procedure TFrm_Ar_Enter_EachInvoiceH.InitForm(AdOConnection:TAdOConnection;ReadOnly:Boolean);
begin
  Application.ProcessMessages;
  inherited;
  If (ReadOnly) Then
  begin
    Act_New.Enabled:=False;
    Act_New.Visible:=False;
    Act_Modify.Enabled:=False;
    Act_Modify.Visible:=False;
    Pnl_Title.Caption:='兰字发票--红字发票对冲查询';
    Frm_Ar_Enter_EachInvoiceH.Caption:='兰字发票--红字发票对冲查询';
  end
  Else
  begin
    Pnl_Title.Caption:='兰字发票--红字发票对冲';
    Frm_Ar_Enter_EachInvoiceH.Caption:='兰字发票--红字发票对冲';
  end;
  SelectFromSql:= 'select sa_EachInvoice.*, '
                  +'         sa_SaleInvoice.customerCode,'
                  +'         customer.customerName,       '
                  +'         sa_SaleInvoice.TotaltaxAmount,'
                  +'         sa_SaleInvoice.currencyCode,   '
                  +'         currency.currencyName,          '
                  +'         sa_SaleInvoice.ExchangeRate,     '
                  +'         Employee.EmployeeName             '
                  +'  from  sa_EachInvoice                     '
                  +'  join  sa_SaleInvoice on sa_EachInvoice.Invoiceno=sa_SaleInvoice.Invoiceno'
                  +'  left join customer on sa_SaleInvoice.customerCode=customer.customerCode'
                  +'  left join currency on sa_SaleInvoice.currencyCode=currency.currencyCode '
                  +'  left join Employee on sa_EachInvoice.CreateEmployeeCode=Employee.EmployeeCode   ';
  Condition:='sa_EachInvoice.Createdate>= '+quotedstr(formatdatetime('yyyy.mm.dd',date-30));
  OrderByFields:='customerCode,createDate,InvoiceNo';
  GetData;
  lbl_Condition.Caption:='对冲日期>='+formatdatetime('yyyy.mm.dd',date-30);
  Frm_Entry_Body:=TFrm_Ar_Enter_EachInvoice.Create(Application);
end;


procedure TFrm_Ar_Enter_EachInvoiceH.FormDestroy(Sender: TObject);
begin
  inherited;
  Frm_Ar_Enter_EachInvoiceH:=Nil;
end;

end.

⌨️ 快捷键说明

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