mrp_qry_freemo.dfm
来自「一个MRPII系统源代码版本」· DFM 代码 · 共 293 行
DFM
293 行
inherited Frm_Mrp_Qry_FreeMo: TFrm_Mrp_Qry_FreeMo
Left = 40
Top = 94
Caption = '独立生产订单列表查询'
PixelsPerInch = 96
TextHeight = 12
inherited Pnl_Title: TPanel
Caption = '独立生产订单列表查询'
end
inherited Pnl_Head: TPanel
inherited Lbl_Condition: TLabel
Width = 24
Caption = '全部'
end
inherited Lbl_Order: TLabel
Width = 114
Caption = '生产订单号/物料代码'
end
end
inherited Pnl_Hint: TPanel
Top = 389
Height = 40
object dbtxtDeptName: TDBText
Left = 120
Top = 8
Width = 78
Height = 12
AutoSize = True
DataField = 'Deptflag'
DataSource = DataSource
end
object dbtxtItemflag: TDBText
Left = 120
Top = 24
Width = 78
Height = 12
AutoSize = True
DataField = 'Itemflag'
DataSource = DataSource
end
object Label1: TLabel
Left = 36
Top = 24
Width = 84
Height = 12
Caption = '当前物料标识:'
end
object Label2: TLabel
Left = 12
Top = 8
Width = 108
Height = 12
Caption = '当前受单部门标识:'
end
end
inherited Pnl_Body: TPanel
Height = 292
inherited DBGridEh: TDBGridEh
Height = 292
FrozenCols = 4
Columns = <
Item
FieldName = 'DeptCode'
PickList.Strings = ()
Title.Alignment = taCenter
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'Deptflag'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 130
KeyList.Strings = ()
end
Item
FieldName = 'DeptName'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 90
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'Modate'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 70
KeyList.Strings = ()
end
Item
FieldName = 'mono'
PickList.Strings = ()
Title.Alignment = taCenter
KeyList.Strings = ()
end
Item
FieldName = 'MoLineno'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '订单行号'
Width = 52
KeyList.Strings = ()
end
Item
FieldName = 'MoLinestatus'
PickList.Strings = ()
Title.Alignment = taCenter
KeyList.Strings = ()
end
Item
FieldName = 'Itemflag'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 200
KeyList.Strings = ()
end
Item
FieldName = 'ItemCode'
PickList.Strings = ()
Title.Alignment = taCenter
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'ItemName'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 200
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'Moqty'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 75
KeyList.Strings = ()
end
Item
FieldName = 'MoStArtWorkDate'
PickList.Strings = ()
Title.Alignment = taCenter
Title.Caption = '约定开工日'
Width = 78
KeyList.Strings = ()
end
Item
FieldName = 'MoLinedate'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 70
KeyList.Strings = ()
end
Item
FieldName = 'MoNoFinishQTY'
PickList.Strings = ()
Title.Alignment = taCenter
Width = 45
KeyList.Strings = ()
end>
end
end
inherited ActionList: TActionList
Top = 192
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 Mo.Modate,Item.ItemName,Uom.UomName,mo.DeptCode,Dept.Dept' +
'Name,'
' MoLine.mono,MoLine.MoLineno,MoLine.Item' +
'Code,MoLine.MoLinedate,MoLine.MoStArtWorkDate,MoLine.Moqty,'
' MoLine.MoNoFinishQTY,'
' Itemflag=MoLine.ItemCode+'#39' '#39'+Item.Itemn' +
'ame,'
' Deptflag=mo.DeptCode+'#39' '#39'+Dept.DeptName,'
' MoLinestatus= case MoLinestatus when 5' +
' then '#39'5 准备'#39' when 6 then '#39'6 下达'#39
' when 7 then '#39'7 关闭'#39' end'
' From MoLine'
' Join Mo On MoLine.MoNo=Mo.MoNo'
' Join Item On MoLine.ItemCode=Item.ItemCode'
' join Uom on Item.UomCode=Uom.UomCode'
' Left Outer Join Dept On Mo.DeptCode=Dept.D' +
'eptCode')
Top = 145
object AdoQry_MainModate: TDateTimeField
DisplayLabel = '下单日期'
FieldName = 'Modate'
Origin = 'mo'
ReadOnly = True
end
object AdoQry_MainItemName: TStringField
DisplayLabel = '物料描述'
FieldName = 'ItemName'
Origin = 'Item'
ReadOnly = True
Size = 30
end
object AdoQry_MainUomName: TStringField
DisplayLabel = '单位'
FieldName = 'UomName'
ReadOnly = True
Size = 10
end
object AdoQry_MainDeptName: TStringField
DisplayLabel = '受单部门名称'
FieldName = 'DeptName'
Origin = 'Dept'
ReadOnly = True
Size = 12
end
object AdoQry_Mainmono: TStringField
DisplayLabel = '生产订单号'
FieldName = 'mono'
Origin = 'MoLine'
ReadOnly = True
Size = 16
end
object AdoQry_MainMoLineno: TIntegerField
DisplayLabel = '行号'
FieldName = 'MoLineno'
Origin = 'MoLine'
ReadOnly = True
end
object AdoQry_MainItemCode: TStringField
DisplayLabel = '物料代码'
FieldName = 'ItemCode'
Origin = 'Item'
ReadOnly = True
Size = 16
end
object AdoQry_MainMoLinedate: TDateTimeField
DisplayLabel = '约定交货日'
FieldName = 'MoLinedate'
Origin = 'MoLine'
ReadOnly = True
end
object AdoQry_MainMoqty: TFloatField
DisplayLabel = '约定交货量'
FieldName = 'Moqty'
Origin = 'MoLine'
ReadOnly = True
end
object AdoQry_MainMoNoFinishQTY: TFloatField
DisplayLabel = '未结量'
FieldName = 'MoNoFinishQTY'
Origin = 'MoLine'
ReadOnly = True
end
object AdoQry_MainMoLinestatus: TStringField
DisplayLabel = '行状态'
FieldName = 'MoLinestatus'
Origin = 'MoLine'
ReadOnly = True
Size = 6
end
object AdoQry_MainItemflag: TStringField
DisplayLabel = '物料标识'
FieldName = 'Itemflag'
ReadOnly = True
Size = 77
end
object AdoQry_MainDeptflag: TStringField
DisplayLabel = '受单部门标识'
FieldName = 'Deptflag'
ReadOnly = True
Size = 49
end
object AdoQry_MainDeptCode: TStringField
DisplayLabel = '受单部门代码'
FieldName = 'DeptCode'
Origin = 'mo'
Size = 8
end
object AdoQry_MainMoStArtWorkDate: TDateTimeField
FieldName = 'MoStArtWorkDate'
end
end
inherited PopuPmenu: TPopuPmenu
Left = 224
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?