📄 inv_batchjournal.dfm
字号:
inherited Frm_Inv_BatchJournal: TFrm_Inv_BatchJournal
Left = -4
Top = -4
Caption = '批次明细帐'
ClientHeight = 553
ClientWidth = 800
PixelsPerInch = 96
TextHeight = 12
inherited ControlBar: TControlBar
Width = 800
end
inherited Pnl_Title: TPanel
Width = 800
Caption = '批次明细帐'
end
inherited Pnl_Head: TPanel
Width = 800
Height = 36
inherited Lbl_OrderTitle: TLabel
Left = 14
Caption = '排序依据:'
end
inherited Lbl_ConditionTitle: TLabel
Left = 14
end
inherited Lbl_Condition: TLabel
Left = 77
Top = 2
end
inherited Lbl_Order: TLabel
Left = 77
Top = 19
end
end
inherited Pnl_Hint: TPanel
Top = 524
Width = 800
Height = 29
object Label1: TLabel
Left = 16
Top = 11
Width = 60
Height = 12
Caption = '当前物料:'
end
object DBText1: TDBText
Left = 78
Top = 11
Width = 42
Height = 12
AutoSize = True
DataField = 'ItemCode'
DataSource = DataSource
end
end
inherited Pnl_Body: TPanel
Top = 93
Width = 800
Height = 431
inherited DBGridEh: TDBGridEh
Width = 800
Height = 431
OnDblClick = Act_LookExecute
FrozenCols = 3
UseMultiTitle = True
Columns = <
Item
FieldName = 'ItemCode'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '物料标识'
Width = 168
KeyList.Strings = ()
end
Item
FieldName = 'Batchno'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '批次号'
Width = 93
KeyList.Strings = ()
end
Item
FieldName = 'BatchName'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '批次描述'
Width = 139
KeyList.Strings = ()
end
Item
FieldName = 'UomName'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '计量单位'
Width = 30
KeyList.Strings = ()
end
Item
FieldName = 'Batchstatus'
PickList.Strings = (
'打开'
'关闭')
Title.Alignment = taCenter
Title.Caption = '批次状态'
Width = 35
KeyList.Strings = (
'0'
'1')
end
Item
FieldName = 'VendorCode'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '供应商标识'
Width = 240
KeyList.Strings = ()
end
Item
FieldName = 'VendorBatchno'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '供应商批次号'
Width = 77
KeyList.Strings = ()
end
Item
FieldName = 'Firstindate'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '最早入库日期'
Width = 78
KeyList.Strings = ()
end
Item
FieldName = 'Currentindate'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '最近入库日期'
Width = 79
KeyList.Strings = ()
end
Item
FieldName = 'Firstoutdate'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '最早出库日期'
Width = 80
KeyList.Strings = ()
end
Item
FieldName = 'Currentoutdate'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '最近出库日期'
Width = 77
KeyList.Strings = ()
end
Item
FieldName = 'InvQty'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '批次库存'
KeyList.Strings = ()
end>
end
end
inherited AdoQry_Tmp: TAdoQuery
Left = 317
Top = 195
end
inherited ActionList: TActionList
Left = 176
Top = 56
inherited Act_Order: TAction
Enabled = False
Visible = False
end
inherited Act_Look: TAction
Enabled = True
Visible = True
OnExecute = Act_LookExecute
end
end
inherited AdoQry_Main: TAdoQuery
ConnectionString =
'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
'User ID=mdrcmrm;Initial Catalog=mdrcmrm_test_zcw;Data Source=192' +
'.168.0.151;Use procedure for Prepare=1;Auto Translate=True;Packe' +
't Size=4096;Workstation ID=XYB'
CurSorType = ctStatic
SQL.Strings = (
'select Batch.ItemCode+'#39' '#39'+Item.ItemName ItemCode,Batchline.Batch' +
'no'
' ,Batchline.BatchName,Item.UomName,Batch.Backflush,'
' Batchline.usefulCtrl,Batchline.usefuldate,Batchline.b' +
'atchstatus,'
' Batchline.VendorCode+'#39' '#39'+Vendor.VendorName VendorCode' +
','
' Batchline.VendorBatchno,Batchline.BatchlineremArk,'
' Batchline.Firstindate,Currentindate,Firstoutdate,'
' Currentoutdate,BatchInv,BatchCurrentInv.InvQty'
' from Batch join Batchline on Batch.Batchid=Batchline.' +
'Batchid'
' left join (select Batchno,sum(InvQty) in' +
'vqty from BatchCurrentInv group by Batchno) BatchCurrentInv'
' on BatchCurrentInv.Batchno=ba' +
'tchline.Batchno'
' join Vendor on Batchline.VendorCode=Vendor.Vendorco' +
'de'
' join (select Item.*,Uom.UomName from Item join Uom ' +
'on '
' Item.UomCode=Uom.UomCode) Item on Item.ItemCode=bat' +
'ch.ItemCode')
Left = 224
Top = 57
object AdoQry_MainItemCode: TStringField
FieldName = 'ItemCode'
ReadOnly = True
Size = 77
end
object AdoQry_MainBatchno: TStringField
FieldName = 'Batchno'
Size = 16
end
object AdoQry_MainBatchName: TStringField
FieldName = 'BatchName'
Size = 60
end
object AdoQry_MainUomName: TStringField
FieldName = 'UomName'
Size = 10
end
object AdoQry_MainBatchstatus: TIntegerField
FieldName = 'Batchstatus'
end
object AdoQry_MaInvendorCode: TStringField
FieldName = 'VendorCode'
ReadOnly = True
Size = 73
end
object AdoQry_MaInvendorBatchno: TStringField
FieldName = 'VendorBatchno'
end
object AdoQry_MainFirstindate: TDateTimeField
FieldName = 'Firstindate'
end
object AdoQry_MainCurrentindate: TDateTimeField
FieldName = 'Currentindate'
end
object AdoQry_MainFirstoutdate: TDateTimeField
FieldName = 'Firstoutdate'
end
object AdoQry_MainCurrentoutdate: TDateTimeField
FieldName = 'Currentoutdate'
end
object AdoQry_MainInvQty: TFloatField
FieldName = 'InvQty'
end
end
inherited PopuPmenu: TPopuPmenu
Left = 304
end
object AdoQry_tmp1: TAdoQuery
Parameters = <>
Left = 480
Top = 193
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -