📄 mrp_qry_newmrpinfo.dfm
字号:
inherited Frm_Mrp_Qry_NewMrpInfo: TFrm_Mrp_Qry_NewMrpInfo
Left = 65
Top = 90
Caption = '生产建议查询'
PixelsPerInch = 96
TextHeight = 12
inherited Pnl_Title: TPanel
Caption = '生产建议查询'
end
inherited Pnl_Head: TPanel
Height = 103
inherited Image1: TImage
Height = 103
end
inherited Lbl_OrderTitle: TLabel
Top = 85
end
inherited Lbl_ConditionTitle: TLabel
Top = 70
end
inherited Lbl_Condition: TLabel
Top = 70
end
inherited Lbl_Order: TLabel
Top = 85
Width = 114
Caption = '物料代码/约定交货日'
end
object btn_Item: TButton
Left = 16
Top = 2
Width = 92
Height = 25
Caption = '物料主文件联查'
TabOrder = 0
OnClick = btn_ItemClick
end
object btn_ite_Item: TButton
Left = 16
Top = 34
Width = 92
Height = 25
Caption = '父项物料反查'
TabOrder = 1
OnClick = btn_ite_ItemClick
end
object btn_Order: TButton
Left = 170
Top = 2
Width = 92
Height = 25
Caption = '订单联查'
TabOrder = 2
OnClick = btn_OrderClick
end
object Button1: TButton
Left = 336
Top = 2
Width = 92
Height = 25
Caption = '父项需求追溯'
TabOrder = 3
OnClick = Button1Click
end
object btn_uPMrp: TButton
Left = 336
Top = 34
Width = 92
Height = 25
Caption = 'Mrp竖式报表'
TabOrder = 4
OnClick = btn_uPMrpClick
end
object btn_OblongMrp: TButton
Left = 506
Top = 34
Width = 92
Height = 25
Caption = 'Mrp横式报表'
TabOrder = 5
OnClick = btn_OblongMrpClick
end
object Button2: TButton
Left = 506
Top = 2
Width = 92
Height = 25
Caption = '关闭订单'
TabOrder = 6
OnClick = Button2Click
end
object Button3: TButton
Left = 170
Top = 34
Width = 92
Height = 25
Caption = '多层Bom反查'
TabOrder = 7
OnClick = Button3Click
end
object Button4: TButton
Left = 664
Top = 2
Width = 89
Height = 25
Caption = '重排订单'
TabOrder = 8
OnClick = Button4Click
end
end
inherited Pnl_Hint: TPanel
Top = 396
Height = 33
inherited Image4: TImage
Height = 33
end
object Label2: TLabel
Left = 445
Top = 2
Width = 60
Height = 12
Caption = '物料标识:'
end
object DBText2: TDBText
Left = 507
Top = 2
Width = 42
Height = 12
AutoSize = True
DataField = 'ItemFlag'
DataSource = DataSource
end
object Label3: TLabel
Left = 313
Top = 3
Width = 72
Height = 12
Caption = '约定交货日:'
end
object DBText3: TDBText
Left = 385
Top = 3
Width = 42
Height = 12
AutoSize = True
DataField = 'SSDate'
DataSource = DataSource
end
object Label1: TLabel
Left = 169
Top = 4
Width = 72
Height = 12
Caption = '约定交货量:'
end
object DBText1: TDBText
Left = 242
Top = 4
Width = 42
Height = 12
AutoSize = True
DataField = 'Sysqty'
DataSource = DataSource
end
object Label4: TLabel
Left = 5
Top = 2
Width = 72
Height = 12
Caption = '计划员标识:'
end
object DBText4: TDBText
Left = 76
Top = 2
Width = 49
Height = 14
DataField = 'EmployeeFlag'
DataSource = DataSource
end
object Label5: TLabel
Left = 5
Top = 19
Width = 6
Height = 12
end
end
inherited Pnl_Body: TPanel
Top = 160
Height = 236
inherited Image3: TImage
Height = 236
end
inherited DBGridEh: TDBGridEh
Height = 236
OnDblClick = Act_LookExecute
FrozenCols = 5
Columns = <
Item
FieldName = 'EmployeeCode'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '计划员代码'
Width = 60
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'EmployeeName'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '计划员姓名'
Width = 60
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'EmployeeFlag'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '计划员标识'
Width = 100
KeyList.Strings = ()
end
Item
FieldName = 'DeptCode'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '部门代码'
Width = 50
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'DeptName'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '部门名称'
Width = 90
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'DeptFlag'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '部门标识'
Width = 100
KeyList.Strings = ()
end
Item
FieldName = 'ItemCode'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '物料代码'
Width = 90
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'ItemName'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '物料描述'
Width = 200
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'ItemFlag'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '物料标识'
Width = 200
KeyList.Strings = ()
end
Item
Alignment = taCenter
FieldName = 'UomName'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '计量单位'
Width = 55
KeyList.Strings = ()
end
Item
Alignment = taCenter
FieldName = 'SSName'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '建议信息'
Width = 80
KeyList.Strings = ()
end
Item
FieldName = 'Sysqty'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '系统建议量 '
Width = 78
KeyList.Strings = ()
end
Item
FieldName = 'tMpssreMainqty'
PickList.Strings = ()
Title.Caption = '系统建议余量'
Width = 74
KeyList.Strings = ()
end
Item
FieldName = 'DueDate'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '约定开工日'
Width = 70
KeyList.Strings = ()
end
Item
Alignment = tArightJustify
FieldName = 'SSDate'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '约定交货日'
Width = 70
KeyList.Strings = ()
end
Item
FieldName = 'moqty'
PickList.Strings = ()
KeyList.Strings = ()
end
Item
Alignment = tArightJustify
FieldName = 'OrderNo'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '生产订单号'
Width = 77
KeyList.Strings = ()
end
Item
FieldName = 'OrderLineNo'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '订单行号'
Width = 55
KeyList.Strings = ()
end
Item
FieldName = 'OrderLineStatus'
PickList.Strings = (
'1 系统建议'
'5 准备'
'6 下达'
'7 关闭'
'8 永久关闭')
Title.Alignment = taCenter
Title.Caption = '行状态'
Width = 46
KeyList.Strings = (
'1'
'5'
'6'
'7'
'8')
end>
end
end
inherited AdoQry_Tmp: TAdoQuery
Left = 354
Top = 211
end
inherited ActionList: TActionList
Left = 188
Top = 176
inherited Act_Look: TAction
Caption = '供需反查'
Enabled = True
Hint = '供需反查'
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_B;Data Source=ZHENGJIArO' +
'NG'
CurSorType = ctStatic
SQL.Strings = (
'Select SS.*,Item.ItemName,UomName,Dept.DeptName,'
' MoLine.moqty,'
'Item.ItemCode+'#39' '#39'+Item.ItemName As ItemFlag,'
'Item.PmCode,'
'Dept.DeptCode+'#39' '#39'+Dept.DeptName As DeptFlag,'
'tMpssreMainqty=convert(float,0),'
'canuseonhand=convert(float,0),'
'Sysqty=ss.ssqty'
'From SS'
'join MoLine on ss.Orderno=MoLine.mono'
' and ss.Orderlineno=MoLine.MoLineno'
'Join Item On SS.ItemCode=Item.ItemCode'
'Left Outer Join Uom On '
'Item.UomCode=Uom.UomCode'
'Left Outer Join Dept On SS.DeptVendorCode=Dept.DeptCode'
' Where SScheck=0'
' Order by SS.DeptVendorCode,Ss.ItemCode,SS.SSDate')
Left = 262
Top = 243
object AdoQry_MainSSId: TAutoIncField
FieldName = 'SSId'
Origin = '#tMpssInfoResultQry'
ReadOnly = True
end
object AdoQry_MainItemCode: TStringField
FieldName = 'ItemCode'
Origin = '#tMpssInfoResultQry'
Size = 16
end
object AdoQry_MainSSSysInfoFlag: TIntegerField
FieldName = 'SSSysInfoFlag'
Origin = '#tMpssInfoResultQry'
end
object AdoQry_MaInOrderNo: TStringField
FieldName = 'OrderNo'
Origin = '#tMpssInfoResultQry'
Size = 16
end
object AdoQry_MaInOrderLineNo: TIntegerField
FieldName = 'OrderLineNo'
Origin = '#tMpssInfoResultQry'
end
object AdoQry_MainSSDate: TDateTimeField
FieldName = 'SSDate'
Origin = '#tMpssInfoResultQry'
DisplayFormat = 'yyyy.mm.dd'
end
object AdoQry_MainSSQty: TFloatField
FieldName = 'SSQty'
Origin = '#tMpssInfoResultQry'
DisplayFormat = '#,##0'
end
object AdoQry_MainSScheck: TIntegerField
FieldName = 'SScheck'
Origin = '#tMpssInfoResultQry'
end
object AdoQry_MainItemName: TStringField
FieldName = 'ItemName'
Origin = '#tMpssInfoResultQry'
Size = 60
end
object AdoQry_MainUomName: TStringField
FieldName = 'UomName'
Origin = '#tMpssInfoResultQry'
Size = 10
end
object AdoQry_MainDeptName: TStringField
FieldName = 'DeptName'
Origin = '#tMpssInfoResultQry'
Size = 40
end
object AdoQry_MaInOrderLineStatus: TIntegerField
FieldName = 'OrderLineStatus'
Origin = '#tMpssInfoResultQry'
end
object AdoQry_MainItemFlag: TStringField
FieldName = 'ItemFlag'
Origin = '#tMpssInfoResultQry'
ReadOnly = True
Size = 77
end
object AdoQry_MainDeptFlag: TStringField
FieldName = 'DeptFlag'
Origin = '#tMpssInfoResultQry'
ReadOnly = True
Size = 49
end
object AdoQry_MainDeptVendorCode: TStringField
FieldName = 'DeptVendorCode'
Origin = '#tMpssInfoResultQry'
Size = 30
end
object AdoQry_MainSSName: TStringField
FieldName = 'SSName'
Origin = '#tMpssInfoResultQry'
Size = 30
end
object AdoQry_MainEmployeeCode: TStringField
FieldName = 'EmployeeCode'
Origin = '#tMpssInfoResultQry'
Size = 30
end
object AdoQry_MainEmployeeName: TStringField
FieldName = 'EmployeeName'
Origin = '#tMpssInfoResultQry'
Size = 30
end
object AdoQry_MainEmployeeFlag: TStringField
FieldName = 'EmployeeFlag'
Origin = '#tMpssInfoResultQry'
Size = 30
end
object AdoQry_MainDueDate: TDateTimeField
FieldName = 'DueDate'
Origin = '#tMpssInfoResultQry'
end
object AdoQry_MainMnldTime: TFloatField
FieldName = 'MnldTime'
end
object AdoQry_MainReMainQty: TFloatField
FieldName = 'ReMainQty'
Origin = '#tMpssInfoResultQry'
end
object AdoQry_MaintMpssreMainqty: TFloatField
FieldName = 'tMpssreMainqty'
Origin = '#tMpssInfoResultQry'
ReadOnly = True
end
object AdoQry_MainPmCode: TIntegerField
FieldName = 'PmCode'
end
object AdoQry_MainSysqty: TFloatField
FieldName = 'Sysqty'
Origin = '#tMpssInfoResultQry'
end
object AdoQry_Mainmoqty: TFloatField
DisplayLabel = '约定交货量'
FieldName = 'moqty'
Origin = '#tMpssInfoResultQry'
end
object AdoQry_Maincanuseonhand: TFloatField
FieldName = 'canuseonhand'
ReadOnly = True
end
object AdoQry_MainRealReleaseDate: TDateTimeField
FieldName = 'RealReleaseDate'
end
end
inherited DataSource: TDataSource
OnDataChange = DataSourceDataChange
Left = 370
Top = 133
end
inherited PopuPmenu: TPopuPmenu
Left = 248
Top = 185
end
object AdOCommand: TAdOCommand
CommandTimeout = 0
Parameters = <>
Left = 160
Top = 234
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -