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

📄 ar_qry_chginfosaleinvoiceh.pas

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

Interface

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

Type
  TFrm_Ar_Qry_ChgInfoSaleInvoiceH = Class(TFrm_Base_Qry)
    AdoQry_MainCustomerCode: TStringField;
    AdoQry_MainCustomerName: TStringField;
    AdoQry_MainCustomerB: TStringField;
    AdoQry_MainCreateDate: TDateTimeField;
    AdoQry_MainInvoiceNo: TStringField;
    AdoQry_MainTotalTaxAmount: TFloatField;
    AdoQry_MainCurrencyCode: TStringField;
    AdoQry_MainCurrencyName: TStringField;
    AdoQry_MainCurrencyB: TStringField;
    AdoQry_MainExchangeRate: TFloatField;
    AdoQry_MainBank: TStringField;
    AdoQry_MainBankActNo: TStringField;
    AdoQry_MainCreateEmployeeCode: TStringField;
    AdoQry_MainEmployeeName: TStringField;
    AdoQry_MainCreateEmployeeB: TStringField;
    AdoQry_MainEdItEmployeeCode: TStringField;
    AdoQry_MainEmployeeName_1: TStringField;
    AdoQry_MainEdItEmployeeB: TStringField;
    AdoQry_MainEditDate: TDateTimeField;
    AdoQry_MainRemArk: TStringField;
    AdoQry_MainChgType: TStringField;
    AdoQry_MainChgEmployeeCode: TStringField;
    AdoQry_MainEmployeeName_2: TStringField;
    AdoQry_MainChgEmployeeB: TStringField;
    AdoQry_MainChgTime: TDateTimeField;
  private
    { Private declarations }
  public
    { Public declarations }
    procedure InitForm(AdOConnection:TAdOConnection;ReadOnly:Boolean);Override;    
  end;

var
  Frm_Ar_Qry_ChgInfoSaleInvoiceH: TFrm_Ar_Qry_ChgInfoSaleInvoiceH;

implementation
uses Ar_Qry_ChgInfoSaleInvoiceH_C;
{$R *.DFM}
procedure TFrm_Ar_Qry_ChgInfoSaleInvoiceH.InitForm(AdOConnection: TAdOConnection;
  ReadOnly: Boolean);
begin
  inherited;
  SelectFromSql:=' select Sa_SaleInvoiceHistory.CustomerCode,'+
                 ' Customer.CustomerName,'+
                 ' Sa_SaleInvoiceHistory.CustomerCode+'' ''+Customer.CustomerName as CustomerB,'+
                 ' Sa_SaleInvoiceHistory.CreateDate,'+
                 ' Sa_SaleInvoiceHistory.InvoiceNo,'+
                 ' Sa_SaleInvoiceHistory.TotalTaxAmount,'+
                 ' Sa_SaleInvoiceHistory.CurrencyCode,'+
                 ' Currency.CurrencyName,'+
                 ' Sa_SaleInvoiceHistory.CurrencyCode+'' ''+Currency.CurrencyName as CurrencyB,'+
                 ' Sa_SaleInvoiceHistory.ExchangeRate,'+
                 ' Sa_SaleInvoiceHistory.Bank,'+
                 ' Sa_SaleInvoiceHistory.BankActNo,'+
                 ' Sa_SaleInvoiceHistory.CreateEmployeeCode,'+
                 ' E1.EmployeeName,'+
                 ' Sa_SaleInvoiceHistory.CreateEmployeeCode+'' ''+E1.EmployeeName as CreateEmployeeB,'+
                 ' Sa_SaleInvoiceHistory.EdItEmployeeCode,'+
                 ' E2.EmployeeName,'+
                 ' Sa_SaleInvoiceHistory.EdItEmployeeCode+'' ''+E2.EmployeeName as EdItEmployeeB,'+
                 ' Sa_SaleInvoiceHistory.EditDate,'+
                 ' Sa_SaleInvoiceHistory.RemArk,'+
                 ' Sa_SaleInvoiceHistory.ChgType,'+
                 ' Sa_SaleInvoiceHistory.ChgEmployeeCode,'+
                 ' E3.EmployeeName,'+
                 ' Sa_SaleInvoiceHistory.ChgEmployeeCode+'' ''+E3.EmployeeName as ChgEmployeeB ,'+
                 ' Sa_SaleInvoiceHistory.ChgTime'+
         ' from Sa_SaleInvoiceHistory'+
         ' left join  Customer on Sa_SaleInvoiceHistory.CustomerCode=Customer.CustomerCode'+
         ' left join  Currency on Sa_SaleInvoiceHistory.CurrencyCode=Currency.CurrencyCode'+
         ' left join Employee E1 on Sa_SaleInvoiceHistory.CreateEmployeeCode=E1.EmployeeCode'+
         ' left join Employee E2 on Sa_SaleInvoiceHistory.EdItEmployeeCode=E2.EmployeeCode'+
         ' left join Employee E3 on Sa_SaleInvoiceHistory.ChgEmployeeCode=E3.EmployeeCode';



  OrderByFields:=' chgtime,CustomerCode ';
  Frm_Sys_Condition:=TFrm_Ar_Qry_ChgInfoSaleInvoiceH_C.Create(self);
  Act_Filter.Execute;
  conditionuserDefine:=condition;
  Frm_Sys_Condition:=nil;
end;


end.

⌨️ 快捷键说明

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