📄 inv_opoutsale_b.dfm
字号:
inherited Frm_Inv_OpOutSale_B: TFrm_Inv_OpOutSale_B
Left = -55
Top = 119
Caption = ''
ClientHeight = 495
Windowstate = wsMaximized
PixelsPerInch = 96
TextHeight = 12
inherited ControlBar: TControlBar
inherited ToolBar: TToolBar
inherited TlBtn_Locate: TToolButton
Action = Act_None
Visible = False
end
inherited ToolButton5: TToolButton
Visible = False
end
inherited ToolButton7: TToolButton
Action = Act_Copy
end
inherited TlBtn_Modify: TToolButton
Hint = '修改'
Action = Act_auto
end
inherited ToolButton6: TToolButton
Enabled = False
Visible = False
end
end
end
inherited Pnl_Title: TPanel
Height = 43
end
inherited Pnl_Head: TPanel
Top = 73
Height = 73
object Label2: TLabel
Left = 24
Top = 11
Width = 36
Height = 12
Caption = '仓库:'
end
object Label5: TLabel
Left = 216
Top = 11
Width = 36
Height = 12
Caption = '货位:'
end
object Label9: TLabel
Left = 408
Top = 11
Width = 72
Height = 12
Caption = '采购订单号:'
end
object Label10: TLabel
Left = 606
Top = 34
Width = 36
Height = 12
Caption = '日期:'
end
object Label4: TLabel
Left = 24
Top = 55
Width = 36
Height = 12
Caption = '备注:'
end
object Label1: TLabel
Left = 11
Top = 33
Width = 48
Height = 12
Caption = '供应商:'
end
object Lbl_VendorCodeName: TLabel
Left = 56
Top = 33
Width = 6
Height = 12
end
object Lbl_PoNo: TLabel
Left = 485
Top = 11
Width = 6
Height = 12
end
object Label7: TLabel
Left = 594
Top = 11
Width = 48
Height = 12
Caption = '单据号:'
end
object Label8: TLabel
Left = 408
Top = 32
Width = 54
Height = 12
Caption = '税率(%):'
end
object lbl_taxpercent: TLabel
Left = 465
Top = 31
Width = 6
Height = 12
end
object Cmbx_WhCodeName: TComboBox
Left = 57
Top = 4
Width = 121
Height = 20
Style = csDropDownList
ItemHeight = 12
TabOrder = 0
OnChange = Cmbx_WhCodeNameChange
OnExit = Cmbx_WhCodeNameExit
end
object Cmbx_Position: TComboBox
Left = 249
Top = 4
Width = 121
Height = 20
Style = csDropDownList
ItemHeight = 12
TabOrder = 1
OnChange = Cmbx_PositionChange
OnExit = Cmbx_PositionExit
end
object Medt_Date: TMaskEdit
Left = 639
Top = 27
Width = 76
Height = 20
EditMask = '9999.99.99;1;_'
MaxLength = 10
TabOrder = 2
Text = ' . . '
OnExit = Medt_DateExit
end
object Edt_Memo: TEdit
Left = 57
Top = 50
Width = 625
Height = 20
TabOrder = 3
end
object Edt_BillNo: TEdit
Left = 639
Top = 4
Width = 105
Height = 20
ReadOnly = True
TabOrder = 4
end
end
inherited Pnl_Hint: TPanel
Top = 469
object Label3: TLabel
Left = 8
Top = 8
Width = 120
Height = 12
Caption = '当前订单行物料描述:'
end
object Label6: TLabel
Left = 392
Top = 8
Width = 96
Height = 12
Caption = '当前行物料描述:'
end
object Lbl_PoItemName: TLabel
Left = 134
Top = 9
Width = 6
Height = 12
end
object DBText1: TDBText
Left = 492
Top = 7
Width = 42
Height = 12
AutoSize = True
DataField = 'ItemName'
DataSource = DataSource
end
end
inherited Pnl_Body: TPanel
Top = 146
Height = 323
inherited DBGridEh: TDBGridEh
Height = 323
ReadOnly = False
OnDblClick = nil
OnEnter = DBGridEhEnter
OnKeyDown = DBGridEhKeyDown
Columns = <
Item
FieldName = 'PoLIneNo'
PickList.Strings = ()
ReadOnly = True
Title.Alignment = taCenter
Title.Caption = '订单行'
Width = 44
KeyList.Strings = ()
end
Item
FieldName = 'ItemCode'
PickList.Strings = ()
ReadOnly = True
Title.Alignment = taCenter
Title.Caption = '物料代码'
Width = 125
KeyList.Strings = ()
end
Item
FieldName = 'ItemName'
PickList.Strings = ()
ReadOnly = True
Title.Alignment = taCenter
Title.Caption = '物料描述'
Width = 250
KeyList.Strings = ()
end
Item
FieldName = 'UomName'
PickList.Strings = ()
ReadOnly = True
Title.Alignment = taCenter
Title.Caption = '单位'
Width = 27
KeyList.Strings = ()
end
Item
FieldName = 'PoCtrlQty'
PickList.Strings = ()
ReadOnly = True
Title.Alignment = taCenter
Title.Caption = '限额数量'
Width = 53
KeyList.Strings = ()
end
Item
FieldName = 'PoRealQty'
PickList.Strings = ()
ReadOnly = True
Title.Alignment = taCenter
Title.Caption = '累计销售数量'
Width = 76
KeyList.Strings = ()
end
Item
FieldName = 'UseableStore'
PickList.Strings = ()
ReadOnly = True
Title.Alignment = taCenter
Title.Caption = '可用库存'
Width = 57
KeyList.Strings = ()
end
Item
FieldName = 'POOutQty'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '本次销售数量'
Width = 74
KeyList.Strings = ()
end
Item
FieldName = 'sp2Price'
PickList.Strings = ()
Title.Caption = '含税价'
KeyList.Strings = ()
end
Item
FieldName = 'taxAmount'
PickList.Strings = ()
Title.Caption = '含税金额'
KeyList.Strings = ()
end
Item
FieldName = 'sp2notaxPrice'
PickList.Strings = ()
ReadOnly = True
Title.Caption = '未税价'
KeyList.Strings = ()
end
Item
FieldName = 'notaxAmount'
PickList.Strings = ()
Title.Caption = '未税金额'
KeyList.Strings = ()
end
Item
FieldName = 'BatchNo'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '批次号'
KeyList.Strings = ()
end
Item
FieldName = 'BomQty'
PickList.Strings = ()
ReadOnly = True
Title.Alignment = taCenter
Title.Caption = '定额'
Width = 55
KeyList.Strings = ()
end
Item
FieldName = 'BomScrAp_Percent'
PickList.Strings = ()
ReadOnly = True
Title.Alignment = taCenter
Title.Caption = '损耗'
Width = 69
KeyList.Strings = ()
end
Item
FieldName = 'BillLineRemArk'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '备注'
Width = 171
KeyList.Strings = ()
end
Item
FieldName = 'usestyle'
PickList.Strings = (
'发料'
'销售')
Title.Alignment = taCenter
Title.Caption = '用料方式'
Width = 55
KeyList.Strings = (
'0'
'1')
end>
end
end
inherited AdoQry_Tmp: TAdoQuery
Top = 211
end
inherited ActionList: TActionList
Left = 192
Top = 224
inherited Act_New: TAction
Enabled = True
end
inherited Act_Modify: TAction
Hint = '修改'
ShortCut = 119
end
inherited Act_Copy: TAction
Enabled = False
Visible = False
end
inherited Act_auto: TAction
ShortCut = 0
OnExecute = Act_autoExecute
end
end
inherited AdoQry_Body: TAdoQuery
AutoCalcFields = False
ConnectionString =
'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
'User ID=mdrcmrm;Initial Catalog=mdrcmrm_B;Data Source=192.168.0.' +
'151'
Filtered = True
AfterOpen = nil
BeforePost = AdoQry_BodyBeforePost
AfterScroll = AdoQry_BodyAfterScroll
OnCalcFields = AdoQry_BodyCalcFields
Prepared = True
SQL.Strings = (
'select op.pono,'
' Op.PoLIneNo,'
' Op.ItemCode,'
' Item.ItemName,'
' Uom.UomName,'
' Op.PoCtrlQty,'
' Op.PoRealQty,'
' Op.POOutQty,'
' SalePrice2.sp2Price,'
' SalePrice2.sp2notaxPrice,'
' BatchLine.BatchNo,'
' c.OnHandInv as UseableStore,'
' op.BillLineRemArk,'
' op.BomQty,'
' op.ite_ItemCode,'
' Bom.usestyle,'
' op.ItemListid,'
' op.BomScrAp_Percent'
' from OpItemList OP'
' right join CurrentInv c'
' on (c.whCode='#39'01'#39') and'
' (c.WhPositionCode='#39'0101'#39') and'
' (c.OnHandInv>0) and'
' (c.ItemCode=op.ItemCode)'
' left join SalePrice2 on customerCode='#39'00000010'#39' '
' and SalePrice2.ItemCode=op.ItemCode '
' and getdate() between SalePrice2.sp2stArtdate and s' +
'alePrice2.sp2enddate '
' left Join Item'
' on Item.ItemCode=Op.ItemCode join'
' Uom on Uom.UomCode=Item.UomCode and Op.PoNo='#39'P0106001' +
'2'#39' and'
' Op.PoCtrlQty>0'
' Left Join Batch '
' on Batch.ItemCode=op.ItemCode '
' Left Join Bom '
' on Bom.ItemCode=op.ItemCode '
' Left Join BatchLine '
' On BatchLine.Batchid=Batch.Batchid '
'Order by Op.PoLineNo')
Left = 296
Top = 209
object AdoQry_Bodypono: TStringField
FieldName = 'pono'
Size = 16
end
object AdoQry_BodyPoLIneNo: TIntegerField
FieldName = 'PoLIneNo'
Origin = 'OP'
end
object AdoQry_BodyItemCode: TStringField
FieldName = 'ItemCode'
Origin = 'OP'
Size = 16
end
object AdoQry_BodyItemName: TStringField
FieldName = 'ItemName'
Origin = 'Item'
Size = 60
end
object AdoQry_BodyUomName: TStringField
FieldName = 'UomName'
Origin = 'Uom'
Size = 10
end
object AdoQry_BodyPoCtrlQty: TFloatField
FieldName = 'PoCtrlQty'
Origin = 'Op'
end
object AdoQry_BodyPoRealQty: TFloatField
FieldName = 'PoRealQty'
Origin = 'Op'
end
object AdoQry_BodyPOOutQty: TFloatField
FieldName = 'POOutQty'
Origin = 'Op'
end
object AdoQry_BodyUseableStore: TFloatField
FieldName = 'UseableStore'
end
object AdoQry_BodyBillLineRemArk: TStringField
FieldName = 'BillLineRemArk'
Size = 250
end
object AdoQry_BodyBomQty: TFloatField
FieldName = 'BomQty'
end
object AdoQry_BodyBomScrAp_Percent: TFloatField
FieldName = 'BomScrAp_Percent'
end
object AdoQry_Bodyite_ItemCode: TStringField
FieldName = 'ite_ItemCode'
Size = 16
end
object AdoQry_BodyItemListid: TAutoIncField
FieldName = 'ItemListid'
ReadOnly = True
end
object AdoQry_BodyBatchNo: TStringField
FieldName = 'BatchNo'
Size = 16
end
object AdoQry_Bodyusestyle: TIntegerField
FieldName = 'usestyle'
end
object AdoQry_Bodysp2Price: TFloatField
FieldName = 'sp2Price'
end
object AdoQry_Bodysp2notaxPrice: TFloatField
FieldName = 'sp2notaxPrice'
DisplayFormat = '#0.######'
end
object AdoQry_BodytaxAmount: TFloatField
FieldKind = fkCalculated
FieldName = 'taxAmount'
DisplayFormat = '#0.##'
Calculated = True
end
object AdoQry_BodynotaxAmount: TFloatField
FieldKind = fkCalculated
FieldName = 'notaxAmount'
DisplayFormat = '#0.##'
Calculated = True
end
end
inherited DataSource: TDataSource
Left = 336
Top = 217
end
inherited ExtPrintReport: TExtPrintReport
Left = 136
Top = 249
end
object AdoQry_Tmp2: TAdoQuery
Parameters = <>
Left = 448
Top = 233
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -