📄 mrp_qry_graphanalyzercapacity_d.dfm
字号:
inherited Frm_Mrp_Qry_GraphAnalyzerCapacity_D: TFrm_Mrp_Qry_GraphAnalyzerCapacity_D
Left = 72
Top = 76
Caption = '能力需求计划表(日/周/月)图表查询'
PixelsPerInch = 96
TextHeight = 12
inherited ControlBar: TControlBar
inherited ToolBar: TToolBar
inherited TlBtn_Filter: TToolButton
Visible = False
end
inherited TlBtn_Locate: TToolButton
Visible = False
end
inherited TlBtn_Order: TToolButton
Visible = False
end
inherited TlBtn_SetColumn: TToolButton
Visible = False
end
end
end
inherited Pnl_Title: TPanel
Caption = '对当前工作中心超能力负荷进行分析'
end
inherited Pnl_Head: TPanel
inherited Lbl_OrderTitle: TLabel
Visible = False
end
inherited Lbl_ConditionTitle: TLabel
Visible = False
end
inherited Lbl_Condition: TLabel
Left = 21
end
inherited Lbl_Order: TLabel
Width = 48
Caption = '完工日期'
Visible = False
end
end
inherited Pnl_Hint: TPanel
Top = 392
Height = 37
object Label2: TLabel
Left = 12
Top = 8
Width = 96
Height = 12
Caption = '当前生产订单号:'
end
object Label1: TLabel
Left = 24
Top = 22
Width = 84
Height = 12
Caption = '当前物料标识:'
end
object dbtxtItemflag: TDBText
Left = 112
Top = 22
Width = 78
Height = 12
AutoSize = True
DataField = 'Itemflag'
DataSource = DataSource
end
object dbtxtmono: TDBText
Left = 113
Top = 8
Width = 54
Height = 12
AutoSize = True
DataField = 'mono'
DataSource = DataSource
end
object Label3: TLabel
Left = 460
Top = 9
Width = 72
Height = 12
Caption = '超能力比率:'
end
object dbtxtOverCapacityrate: TDBText
Left = 537
Top = 9
Width = 126
Height = 12
AutoSize = True
DataField = 'OverCapacityrate'
DataSource = DataSource
end
object dbtxtMpsType: TDBText
Left = 536
Top = 22
Width = 72
Height = 12
AutoSize = True
DataField = 'MpsType'
DataSource = DataSource
end
object Label4: TLabel
Left = 472
Top = 23
Width = 60
Height = 12
Caption = '计划类型:'
end
end
inherited Pnl_Body: TPanel
Height = 295
inherited DBGridEh: TDBGridEh
Height = 295
FrozenCols = 4
Columns = <
Item
FieldName = 'modate'
PickList.Strings = ()
KeyList.Strings = ()
end
Item
FieldName = 'MoLinedate'
PickList.Strings = ()
Width = 70
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'mono'
PickList.Strings = ()
KeyList.Strings = ()
end
Item
FieldName = 'MoLineno'
PickList.Strings = ()
Title.Caption = '订单行号'
Width = 50
KeyList.Strings = ()
end
Item
FieldName = 'Itemflag'
PickList.Strings = ()
Width = 200
KeyList.Strings = ()
end
Item
FieldName = 'ItemCode'
PickList.Strings = ()
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'ItemName'
PickList.Strings = ()
Width = 200
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'moqty'
PickList.Strings = ()
Width = 75
KeyList.Strings = ()
end
Item
FieldName = 'mohours'
PickList.Strings = ()
Width = 54
KeyList.Strings = ()
end
Item
FieldName = 'Capacityhours'
PickList.Strings = ()
KeyList.Strings = ()
end
Item
FieldName = 'OverCapacity'
PickList.Strings = ()
KeyList.Strings = ()
end
Item
FieldName = 'OverCapacityrate'
PickList.Strings = ()
Width = 71
KeyList.Strings = ()
end
Item
FieldName = 'MpsType'
PickList.Strings = ()
KeyList.Strings = ()
end>
end
end
inherited ActionList: TActionList
Left = 176
Top = 176
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 CAp.WcCode,'
' cAp.mono,'
' cAp.MoLineno,'
' cAp.modate,'
' cAp.moqty,'
' cAp.mohours,'
' it1.Capacityhours,'
' cAp.MpsType,'
' It1.ItemName As WCName,'
' wcflag=cAp.wcCode+'#39' '#39'+it1.ItemName,'
' Itemflag=mol.ItemCode+'#39' '#39'+it2.ItemName,'
' cAp.ItemCode,'
' It2.ItemName,'
' OverCapacity=cAp.mohours-it1.Capacityhours' +
','
' OverCapacityrate=convert(varchAr,convert(d' +
'ecimal(12,2),case cAp.mohours'
' when 0 then -100'
' else (cAp.mohours-it1.Capacityhours' +
')*100/cAp.mohours'
' end ))+'#39'%'#39
' From Capacity CAp(nolock),Item it1(nolock),Item i' +
't2(nolock),MoLine mol(nolock)'
' where cAp.wcCode*=it1.ItemCode'
' and cAp.mono=mol.mono'
' -- and cAp.MoLineno=mol.MoLineno'
' -- and mol.ItemCode=it2.ItemCode'
'')
Left = 296
Top = 129
object AdoQry_MainWcCode: TStringField
FieldName = 'WcCode'
Size = 16
end
object AdoQry_Mainmono: TStringField
DisplayLabel = '生产订单号'
FieldName = 'mono'
Size = 16
end
object AdoQry_MainMoLineno: TIntegerField
DisplayLabel = '行号'
FieldName = 'MoLineno'
end
object AdoQry_Mainmoqty: TFloatField
DisplayLabel = '加工数量'
FieldName = 'moqty'
end
object AdoQry_Mainmohours: TFloatField
DisplayLabel = '需求工时'
FieldName = 'mohours'
end
object AdoQry_MainMpsType: TStringField
DisplayLabel = '计划类型'
FieldName = 'MpsType'
Size = 8
end
object AdoQry_MainWCName: TStringField
FieldName = 'WCName'
Size = 60
end
object AdoQry_MainItemCode: TStringField
DisplayLabel = '物料代码'
FieldName = 'ItemCode'
Size = 16
end
object AdoQry_MainItemName: TStringField
DisplayLabel = '物料描述'
FieldName = 'ItemName'
Size = 30
end
object AdoQry_MainOverCapacity: TFloatField
DisplayLabel = '超能力工时'
FieldName = 'OverCapacity'
ReadOnly = True
end
object AdoQry_MainOverCapacityrate: TStringField
DisplayLabel = '超能力比率'
FieldName = 'OverCapacityrate'
ReadOnly = True
Size = 31
end
object AdoQry_Mainwcflag: TStringField
FieldName = 'wcflag'
ReadOnly = True
Size = 77
end
object AdoQry_MainItemflag: TStringField
DisplayLabel = '物料标识'
FieldName = 'Itemflag'
ReadOnly = True
Size = 77
end
object AdoQry_MainCapacityhours: TFloatField
DisplayLabel = '额定能力'
FieldName = 'Capacityhours'
end
object AdoQry_Mainmodate: TDateTimeField
DisplayLabel = '完工日期'
FieldName = 'modate'
end
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -