📄 pm_qry_analyzerpo1.dfm
字号:
inherited Frm_Pm_Qry_AnalyzerPo1: TFrm_Pm_Qry_AnalyzerPo1
Left = 156
Top = 80
Caption = '采购订单执行情况分析'
PixelsPerInch = 96
TextHeight = 12
inherited Pnl_Title: TPanel
Caption = '按供应商--采购订单号--行号--物料代码'
end
inherited Pnl_Head: TPanel
Height = 48
inherited Image1: TImage
Height = 48
end
inherited Lbl_OrderTitle: TLabel
Top = 34
end
inherited Lbl_Condition: TLabel
Width = 24
Caption = '全部'
end
inherited Lbl_Order: TLabel
Top = 34
Width = 246
Caption = '供应商代码 / 采购订单号 / 行号 / 物料代码'
end
end
inherited Pnl_Hint: TPanel
Top = 384
Height = 45
inherited Image4: TImage
Height = 45
end
object Label2: TLabel
Left = 0
Top = 8
Width = 72
Height = 12
Caption = '供应商标识:'
end
object Label1: TLabel
Left = 12
Top = 24
Width = 60
Height = 12
Caption = '物料标识:'
end
object dbtxtItemflag: TDBText
Left = 74
Top = 24
Width = 78
Height = 12
AutoSize = True
DataField = 'Itemflag'
DataSource = DataSource
end
object dbtxtVendorflag: TDBText
Left = 74
Top = 8
Width = 90
Height = 12
AutoSize = True
DataField = 'Vendorflag'
DataSource = DataSource
end
object Label3: TLabel
Left = 560
Top = 8
Width = 48
Height = 12
Caption = '完成率:'
end
object dbtxtFinishrate: TDBText
Left = 604
Top = 7
Width = 90
Height = 12
AutoSize = True
DataField = 'FinishRate'
DataSource = DataSource
end
end
inherited Pnl_Body: TPanel
Top = 105
Height = 279
inherited Image3: TImage
Height = 279
end
inherited DBGridEh: TDBGridEh
Height = 279
FrozenCols = 4
Columns = <
Item
FieldName = 'Vendorflag'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 200
KeyList.Strings = ()
end
Item
FieldName = 'VendorCode'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '供应商代码'
Width = 70
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'VendorName'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '供应商名称'
Width = 137
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'PoNo'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '采购订单号'
Width = 80
KeyList.Strings = ()
end
Item
FieldName = 'POLINENo'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '订单行号'
Width = 53
KeyList.Strings = ()
end
Item
FieldName = 'Itemflag'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 200
KeyList.Strings = ()
end
Item
FieldName = 'ItemCode'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '物料代码'
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'ItemName'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '物料描述'
Width = 200
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'POQTY'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '约定交货量'
Width = 70
KeyList.Strings = ()
end
Item
FieldName = 'PoInQty'
PickList.Strings = ()
Width = 49
KeyList.Strings = ()
end
Item
FieldName = 'POLineDATE'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '约定交货日'
Width = 67
KeyList.Strings = ()
end
Item
FieldName = 'PoType'
PickList.Strings = ()
Width = 50
KeyList.Strings = ()
end
Item
FieldName = 'FinishQty'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '完成数量'
Width = 56
KeyList.Strings = ()
end
Item
FieldName = 'PONoFinishQty'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '未结量'
Width = 45
KeyList.Strings = ()
end
Item
FieldName = 'FinishRate'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '完成率'
Width = 45
KeyList.Strings = ()
end>
end
end
inherited AdoQry_Tmp: TAdoQuery
Left = 285
Top = 251
end
inherited ActionList: TActionList
Left = 104
Top = 248
end
inherited AdoQry_Main: TAdoQuery
ConnectionString =
'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
'User ID=mdrcmrm;Initial Catalog=mdrcmrm;Data Source=NT2'
CurSorType = ctStatic
SQL.Strings = (
'Select Po.PoNo,Po.VendorCode,PoType=case po.poType '
' when 0 then '#39'a'#39
' when 1 then '#39'b'#39
' end,'
' PoLine.*,Item.ItemCode,Po.PoDate,'
' Item.ItemName,Item.UomCode,Uom.UomName,Vendor.Ve' +
'ndorName,Vendorflag=po.VendorCode+'#39' '#39'+Vendor.VendorName,'
' Itemflag=Item.ItemCode+'#39' '#39'+Item.ItemName,'
' Poline.PoQty-Poline.PonoFinishQty as FinishQty,'
' Convert(varchAr,(Poline.PoQty-Poline.PonoFinishQ' +
'ty)/Poline.PoQty*100) +'#39'%'#39' As FinishRate'
' From PoLine'
' Join Item On PoLine.ItemCode=Item.ItemCode'
' Join Po On PoLine.PoNo=Po.PoNo'
' Left Join Vendor On Po.VendorCode=Vendor.VendorC' +
'ode'
' Left Outer Join Uom On Item.UomCode=Uom.UomCode ' +
'where PoLine.PoQty>0')
Left = 344
Top = 225
object AdoQry_MainPoNo: TStringField
FieldName = 'PoNo'
Size = 16
end
object AdoQry_MaInvendorCode: TStringField
FieldName = 'VendorCode'
Size = 12
end
object AdoQry_MainPONO_1: TStringField
FieldName = 'PONO_1'
Size = 16
end
object AdoQry_MainPOLINENo: TIntegerField
FieldName = 'POLINENo'
end
object AdoQry_MainItemCode: TStringField
FieldName = 'ItemCode'
Size = 16
end
object AdoQry_MainPOLineDATE: TDateTimeField
FieldName = 'POLineDATE'
end
object AdoQry_MainPOQTY: TFloatField
FieldName = 'POQTY'
end
object AdoQry_MainPONoFinishQty: TFloatField
FieldName = 'PONoFinishQty'
end
object AdoQry_MainPOREFERENCEDPRICE: TIntegerField
FieldName = 'POREFERENCEDPRICE'
end
object AdoQry_MainPOLINESTATUS: TIntegerField
FieldName = 'POLINESTATUS'
end
object AdoQry_MainPoNoTaxPrice: TFloatField
FieldName = 'PoNoTaxPrice'
end
object AdoQry_MainPONoTaxAmount: TBCDField
FieldName = 'PONoTaxAmount'
Precision = 18
Size = 2
end
object AdoQry_MainPoTaxPrice: TFloatField
FieldName = 'PoTaxPrice'
end
object AdoQry_MainPoTaxAmount: TBCDField
FieldName = 'PoTaxAmount'
Precision = 18
Size = 2
end
object AdoQry_MainPOStArtWorkDate: TDateTimeField
FieldName = 'POStArtWorkDate'
end
object AdoQry_MainPoRealInQty: TFloatField
FieldName = 'PoRealInQty'
end
object AdoQry_MainPoInQty: TFloatField
DisplayLabel = '待检量'
FieldName = 'PoInQty'
end
object AdoQry_MainItemCode_1: TStringField
FieldName = 'ItemCode_1'
Size = 16
end
object AdoQry_MainPoDate: TDateTimeField
FieldName = 'PoDate'
end
object AdoQry_MainItemName: TStringField
FieldName = 'ItemName'
Size = 30
end
object AdoQry_MainUomCode: TStringField
FieldName = 'UomCode'
Size = 4
end
object AdoQry_MainUomName: TStringField
FieldName = 'UomName'
Size = 10
end
object AdoQry_MaInvendorName: TStringField
FieldName = 'VendorName'
Size = 60
end
object AdoQry_MainFinishQty: TFloatField
FieldName = 'FinishQty'
ReadOnly = True
end
object AdoQry_MainFinishRate: TStringField
FieldName = 'FinishRate'
ReadOnly = True
Size = 31
end
object AdoQry_MainPoType: TStringField
DisplayLabel = '订单类型'
DisplayWidth = 8
FieldName = 'PoType'
ReadOnly = True
Size = 8
end
object AdoQry_MaInvendorflag: TStringField
DisplayLabel = '供应商标识'
FieldName = 'Vendorflag'
ReadOnly = True
Size = 73
end
object AdoQry_MainItemflag: TStringField
DisplayLabel = '物料标识'
FieldName = 'Itemflag'
ReadOnly = True
Size = 77
end
end
inherited DataSource: TDataSource
Left = 368
Top = 153
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -