📄 mrp_qry_uprightmrp_d_mpsandmo.dfm
字号:
inherited Frm_Mrp_Qry_UpRightMrp_D_MpsAndMo: TFrm_Mrp_Qry_UpRightMrp_D_MpsAndMo
Left = 53
Top = 64
Caption = '主生产计划对应表'
ClientHeight = 457
ClientWidth = 716
PixelsPerInch = 96
TextHeight = 12
inherited ControlBar: TControlBar
Width = 716
inherited ToolBar: TToolBar
inherited TlBtn_Filter: TToolButton
Visible = False
end
inherited TlBtn_Locate: TToolButton
Visible = False
end
inherited TlBtn_Order: TToolButton
Visible = False
end
end
end
inherited Pnl_Title: TPanel
Width = 716
Caption = '主生产计划对应表'
end
inherited Pnl_Head: TPanel
Width = 716
Height = 0
inherited Lbl_Condition: TLabel
Width = 24
Caption = '全部'
end
inherited Lbl_Order: TLabel
Width = 78
Caption = '月份/物料代码'
end
end
inherited Pnl_Hint: TPanel
Top = 431
Width = 716
end
inherited Pnl_Body: TPanel
Top = 57
Width = 716
Height = 181
Align = alTop
inherited DBGridEh: TDBGridEh
Width = 716
Height = 181
FrozenCols = 1
Columns = <
Item
FieldName = 'MpsMonth'
PickList.Strings = ()
KeyList.Strings = ()
end
Item
FieldName = 'Itemflag'
PickList.Strings = ()
Width = 144
KeyList.Strings = ()
end
Item
FieldName = 'UomName'
PickList.Strings = ()
Title.Caption = '单位'
Width = 30
KeyList.Strings = ()
end
Item
FieldName = 'Mpsstatus'
PickList.Strings = (
'2 准备'
'3 下达'
'4 关闭')
Width = 50
KeyList.Strings = (
'2'
'3'
'4')
end
Item
FieldName = 'Bomqty'
PickList.Strings = ()
Width = 38
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'ScrAprate'
PickList.Strings = ()
Width = 43
Visible = False
KeyList.Strings = ()
end
Item
FieldName = 'DueDate'
PickList.Strings = ()
Width = 67
KeyList.Strings = ()
end
Item
FieldName = 'Mpsqty'
PickList.Strings = ()
Title.Caption = '生产订货量'
KeyList.Strings = ()
end
Item
FieldName = 'Mpsdate'
PickList.Strings = ()
Title.Caption = '需用日期'
Width = 65
KeyList.Strings = ()
end
Item
FieldName = 'MpsremArk'
PickList.Strings = ()
Width = 100
KeyList.Strings = ()
end>
end
end
object Panel1: TPanel [5]
Left = 0
Top = 238
Width = 716
Height = 193
Align = alClient
TabOrder = 5
object Panel2: TPanel
Left = 1
Top = 1
Width = 714
Height = 23
Align = alTop
BevelOuter = bvNone
Caption = '父项需求对应表'
Font.ChArset = GB2312_CHArSET
Font.Color = clWindowText
Font.Height = -14
Font.Name = '宋体'
Font.Style = []
ParentFont = False
TabOrder = 0
end
object DBGridEh1: TDBGridEh
Left = 1
Top = 24
Width = 714
Height = 168
Align = alClient
DataSource = DataSource1
Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
PopuPmenu = PopuPmenu
ReadOnly = True
TabOrder = 1
TitleFont.ChArset = GB2312_CHArSET
TitleFont.Color = clWindowText
TitleFont.Height = -12
TitleFont.Name = '宋体'
TitleFont.Style = []
OnDrawDataCell = DBGridEhDrawDataCell
FrozenCols = 4
OnGetCellParams = DBGridEhGetCellParams
Columns = <
Item
FieldName = 'Itemflag'
Width = 184
end
Item
FieldName = 'UomName'
Width = 31
end
Item
FieldName = 'Bomqty'
Width = 52
end
Item
FieldName = 'ScrAprate'
Width = 67
end
Item
FieldName = 'OrderNo'
Title.Caption = '订单号'
Width = 71
end
Item
FieldName = 'OrderLineno'
Width = 52
end
Item
FieldName = 'OrderLineStatus'
PickList.Strings = (
'5 准备'
'6 下达'
'7 关闭'
'8 永久关闭')
Width = 47
KeyList.Strings = (
'5'
'6'
'7'
'8')
end
Item
FieldName = 'DueDate'
Width = 74
end
Item
FieldName = 'Mrpqty'
end
Item
FieldName = 'ReleaseDate'
Width = 73
end>
end
end
inherited AdoQry_Tmp: TAdoQuery
Left = 181
Top = 115
end
inherited ActionList: TActionList
Left = 168
Top = 168
end
inherited AdoQry_Main: TAdoQuery
ConnectionString =
'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
'User ID=mdrcmrm;Initial Catalog=mdrcmrm_B;Data Source=192.168.0.' +
'151;Use procedure for Prepare=1;Auto Translate=True;Packet Size=' +
'4096;Workstation ID=XYB'
CurSorType = ctStatic
SQL.Strings = (
'select MrpResult.*,UomName,Bomqty=convert(float,0),'
' Mpsstatus=0,MpsremArk='#39'dsffffffffffffffffffffffffffffffffffff' +
'dsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss' +
'ssssssssssssss'#39','
' MpsMonth='#39'fdssssssssdsf'#39','
' ScrAprate='#39'000gfddddddddfdg'#39','
' Mps.Mpsdate,'
' Mps.Mpsqty,'
' Itemflag=MrpResult.ItemCode+'#39' '#39'+Item.ItemName'
' from MrpResult,Item,Uom,Mps'
'where MrpResult.ItemCode=Item.ItemCode'
' and Uom.UomCode=Item.UomCode'
' and MrpResult.releasedate=Mps.Mpsdate'
' ')
Left = 344
Top = 177
object AdoQry_MainItemCode: TStringField
FieldName = 'ItemCode'
Size = 16
end
object AdoQry_MainDueDate: TDateTimeField
DisplayLabel = '约定开工日'
FieldName = 'DueDate'
end
object AdoQry_MainReleaseDate: TDateTimeField
DisplayLabel = '约定交货日'
FieldName = 'ReleaseDate'
end
object AdoQry_MaInOrderNo: TStringField
FieldName = 'OrderNo'
Size = 16
end
object AdoQry_MainGrossQty: TFloatField
DisplayLabel = '约定交货量'
FieldName = 'GrossQty'
end
object AdoQry_MaInOrderQty: TFloatField
FieldName = 'OrderQty'
end
object AdoQry_MainOnHand: TFloatField
FieldName = 'OnHand'
end
object AdoQry_MainCanUseOnHand: TFloatField
FieldName = 'CanUseOnHand'
end
object AdoQry_MainNetQty: TFloatField
FieldName = 'NetQty'
end
object AdoQry_MainOrdinal: TIntegerField
FieldName = 'Ordinal'
end
object AdoQry_MainSSCode: TIntegerField
FieldName = 'SSCode'
end
object AdoQry_MainPmCode: TIntegerField
FieldName = 'PmCode'
end
object AdoQry_MaInOrderLineStatus: TIntegerField
FieldName = 'OrderLineStatus'
end
object AdoQry_MaInOrderLineno: TIntegerField
FieldName = 'OrderLineno'
end
object AdoQry_Mainpegging: TStringField
FieldName = 'pegging'
end
object AdoQry_Mainoncheck: TFloatField
FieldName = 'oncheck'
end
object AdoQry_MainItemflag: TStringField
DisplayLabel = '物料标识'
FieldName = 'Itemflag'
ReadOnly = True
Size = 77
end
object AdoQry_MainUomName: TStringField
DisplayLabel = '计量单位'
FieldName = 'UomName'
Size = 10
end
object AdoQry_MainBomqty: TFloatField
DisplayLabel = '定额'
FieldName = 'Bomqty'
ReadOnly = True
end
object AdoQry_MainScrAprate: TStringField
DisplayLabel = '损耗率'
FieldName = 'ScrAprate'
ReadOnly = True
Size = 16
end
object AdoQry_MainMpsstatus: TIntegerField
DisplayLabel = '行状态'
FieldName = 'Mpsstatus'
ReadOnly = True
end
object AdoQry_MainMpsremArk: TStringField
DisplayLabel = '备注'
FieldName = 'MpsremArk'
ReadOnly = True
Size = 116
end
object AdoQry_MainMpsMonth: TStringField
DisplayLabel = '月份'
FieldName = 'MpsMonth'
ReadOnly = True
Size = 13
end
object AdoQry_MainMpsdate: TDateTimeField
FieldName = 'Mpsdate'
end
object AdoQry_MainMpsqty: TFloatField
FieldName = 'Mpsqty'
end
end
inherited ExtPrintReport: TExtPrintReport
Left = 240
Top = 185
end
inherited PopuPmenu: TPopuPmenu
Left = 304
Top = 137
end
object AdoQuery1: TAdoQuery
ConnectionString =
'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
'User ID=mdrcmrm;Initial Catalog=mdrcmrm_B;Data Source=192.168.0.' +
'151;Use procedure for Prepare=1;Auto Translate=True;Packet Size=' +
'4096;Workstation ID=XYB'
CurSorType = ctStatic
LockType = ltBatchOptimistic
AfterOpen = AdoQueryAfterOpen
EnableBCD = False
Parameters = <>
SQL.Strings = (
'select MrpResult.*,'
' Bom.Bomqty,'
' ScrAprate='#39'dfssssssssdfsfddsfds'#39','
' Mrpqty=case ordinal'
' when 2 then Orderqty'
' when 5 then netqty'
' end,'
' Itemflag=MrpResult.ItemCode+'#39' '#39'+Item.ItemName,'
' Item.Qclt,Item.Preparelt,'
' Uom.UomName'
'from MrpResult,Uom,Item,Bom'
'where MrpResult.ItemCode=Item.ItemCode'
' and Item.UomCode*=Uom.UomCode'
' and (ordinal=2 or ordinal=5)'
' and MrpResult.ItemCode=Bom.ite_ItemCode'
'')
Left = 232
Top = 281
object StringField1: TStringField
FieldName = 'ItemCode'
Size = 16
end
object DateTimeField1: TDateTimeField
DisplayLabel = '约定开工日'
FieldName = 'DueDate'
end
object DateTimeField2: TDateTimeField
DisplayLabel = '约定交货日'
FieldName = 'ReleaseDate'
end
object StringField2: TStringField
DisplayLabel = '生产订单号'
FieldName = 'OrderNo'
Size = 16
end
object FloatField1: TFloatField
FieldName = 'GrossQty'
end
object FloatField2: TFloatField
DisplayLabel = '约定交货量'
FieldName = 'OrderQty'
end
object FloatField3: TFloatField
FieldName = 'OnHand'
end
object FloatField4: TFloatField
FieldName = 'CanUseOnHand'
end
object FloatField5: TFloatField
DisplayLabel = '约定交货量'
FieldName = 'NetQty'
end
object IntegerField1: TIntegerField
FieldName = 'Ordinal'
end
object IntegerField2: TIntegerField
FieldName = 'SSCode'
end
object IntegerField3: TIntegerField
FieldName = 'PmCode'
end
object IntegerField4: TIntegerField
DisplayLabel = '行状态'
FieldName = 'OrderLineStatus'
end
object IntegerField5: TIntegerField
DisplayLabel = '订单行号'
FieldName = 'OrderLineno'
end
object StringField3: TStringField
FieldName = 'pegging'
end
object FloatField6: TFloatField
FieldName = 'oncheck'
end
object FloatField7: TFloatField
DisplayLabel = '子项定额'
FieldName = 'Bomqty'
end
object StringField4: TStringField
DisplayLabel = '子项损耗率'
FieldName = 'ScrAprate'
ReadOnly = True
end
object AdoQry_MainMrpqty: TFloatField
DisplayLabel = '约定交货量'
FieldName = 'Mrpqty'
ReadOnly = True
end
object StringField5: TStringField
DisplayLabel = '物料标识'
FieldName = 'Itemflag'
ReadOnly = True
Size = 77
end
object StringField6: TStringField
DisplayLabel = '单位'
FieldName = 'UomName'
Size = 10
end
object AdoQry_MainQclt: TIntegerField
FieldName = 'Qclt'
end
object AdoQry_MainPreparelt: TIntegerField
FieldName = 'Preparelt'
end
end
object DataSource1: TDataSource
DataSet = AdoQuery1
Left = 296
Top = 310
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -