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

📄 ar_qry_chginfosaleinvoice.pas

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

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_ChgInfoSaleInvoice = Class(TFrm_Base_Qry)
    AdoQry_MainInvoiceNo: TStringField;
    AdoQry_MainShipNo: TStringField;
    AdoQry_MainShipLineNo: TIntegerField;
    AdoQry_MainItemCode: TStringField;
    Item: TStringField;
    AdoQry_MainUomName: TStringField;
    AdoQry_MainShipQty: TFloatField;
    AdoQry_MainTaxPrice: TFloatField;
    AdoQry_MainTaxAmount: TFloatField;
    AdoQry_MainDiSCountRate: TFloatField;
    AdoQry_MainDiSCountAmount: TFloatField;
    AdoQry_MainChgEmployeeCode: TStringField;
    AdoQry_MainEmployeeName: TStringField;
    AdoQry_MainChgEmployeeB: TStringField;
    AdoQry_MainChgTime: TDateTimeField;
    AdoQry_MainChgType: TStringField;
  private
    { Private declarations }
  public
    { Public declarations }
    procedure InitForm(AdOConnection:TAdOConnection;ReadOnly:Boolean);Override;
  end;

var
  Frm_Ar_Qry_ChgInfoSaleInvoice: TFrm_Ar_Qry_ChgInfoSaleInvoice;

implementation
uses Ar_Qry_ChgInfoSaleInvoice_C;
{$R *.DFM}

procedure TFrm_Ar_Qry_ChgInfoSaleInvoice.InitForm(AdOConnection: TAdOConnection;
  ReadOnly: Boolean);
begin
  inherited;
  SelectFromSql:=' select Sa_SaleInvoiceLineHistory.InvoiceNo,'+
                 ' Sa_SaleInvoiceLineHistory.ShipNo,'+
                 ' Sa_SaleInvoiceLineHistory.ShipLineNo,'+
                 ' Sa_SaleInvoiceLineHistory.ItemCode,'+
                 ' Item.ItemName,'+
                 ' Uom.UomName,'+
                 ' Sa_SaleInvoiceLineHistory.ShipQty,'+
                 ' Sa_SaleInvoiceLineHistory.TaxPrice,'+
                 ' Sa_SaleInvoiceLineHistory.TaxAmount,'+
                 ' Sa_SaleInvoiceLineHistory.DiSCountRate,'+
                 ' Sa_SaleInvoiceLineHistory.DiSCountAmount,'+
                 ' Sa_SaleInvoiceLineHistory.ChgEmployeeCode,'+
                 ' Employee.EmployeeName,'+
                 ' Sa_SaleInvoiceLineHistory.ChgEmployeeCode+'' ''+Employee.EmployeeName as ChgEmployeeB,'+
                 ' Sa_SaleInvoiceLineHistory.ChgType,'+
                 ' Sa_SaleInvoiceLineHistory.ChgTime'+
         ' from Sa_SaleInvoiceLineHistory'+
         ' left join Item on Sa_SaleInvoiceLineHistory.ItemCode=Item.ItemCode'+
         ' left join Uom on Item.UomCode=Uom.UomCode'+
         ' left join Employee on Sa_SaleInvoiceLineHistory.ChgEmployeeCode=Employee.EmployeeCode';

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

end.

⌨️ 快捷键说明

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