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

📄 ar_qry_chginfoeachinvoice.pas

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

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_ChgInfoEachInvoice = Class(TFrm_Base_Qry)
    AdoQry_MainInvoiceNo: TStringField;
    AdoQry_MainTotalAmount: TFloatField;
    AdoQry_MainReMainTotalAmount: TFloatField;
    AdoQry_MainThiSCancelAmount: TFloatField;
    AdoQry_MainChgType: TStringField;
    AdoQry_MainChgEmployeeCode: TStringField;
    AdoQry_MainEmployeeName: 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_ChgInfoEachInvoice: TFrm_Ar_Qry_ChgInfoEachInvoice;

implementation
uses Ar_Qry_ChgInfoEachInvoice_C;
{$R *.DFM}

procedure TFrm_Ar_Qry_ChgInfoEachInvoice.InitForm(AdOConnection: TAdOConnection;
  ReadOnly: Boolean);
begin
  inherited;
  SelectFromSql:=' select Sa_EachInvoiceLineHistory.InvoiceNo,'+
                 ' Sa_EachInvoiceLineHistory.TotalAmount,'+
                 ' Sa_EachInvoiceLineHistory.ReMainTotalAmount,'+
                 ' Sa_EachInvoiceLineHistory.ThiSCancelAmount,'+
                 ' Sa_EachInvoiceLineHistory.ChgType,'+
                 ' Sa_EachInvoiceLineHistory.ChgEmployeeCode,'+
                 ' Employee.EmployeeName,'+
                 ' Sa_EachInvoiceLineHistory.ChgEmployeeCode+'' ''+Employee.EmployeeName as ChgEmployeeB,'+
                 ' Sa_EachInvoiceLineHistory.ChgTime'+
         ' from Sa_EachInvoiceLineHistory'+
         ' left join Employee on Sa_EachInvoiceLineHistory.ChgEmployeeCode=Employee.EmployeeCode';

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

end.

⌨️ 快捷键说明

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