⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mrp_qry_analyzercapacity1.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Mrp_Qry_AnalyzerCapacity1: TFrm_Mrp_Qry_AnalyzerCapacity1
  Left = 9
  Top = 115
  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 = 72
      Caption = '工作中心代码'
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 384
    Height = 45
    object dbtxtwcflag: TDBText
      Left = 113
      Top = 8
      Width = 66
      Height = 12
      AutoSize = True
      DataField = 'wcflag'
      DataSource = DataSource
    end
    object dbtxtItemflag: TDBText
      Left = 112
      Top = 24
      Width = 78
      Height = 12
      AutoSize = True
      DataField = 'Itemflag'
      DataSource = DataSource
    end
    object Label1: TLabel
      Left = 24
      Top = 24
      Width = 84
      Height = 12
      Caption = '当前物料标识:'
    end
    object Label2: TLabel
      Left = 0
      Top = 8
      Width = 108
      Height = 12
      Caption = '当前工作中心标识:'
    end
    object Label3: TLabel
      Left = 484
      Top = 8
      Width = 72
      Height = 12
      Caption = '超能力比率:'
    end
    object Label4: TLabel
      Left = 496
      Top = 24
      Width = 60
      Height = 12
      Caption = '计划类型:'
    end
    object dbtxtMpsType: TDBText
      Left = 560
      Top = 24
      Width = 72
      Height = 12
      AutoSize = True
      DataField = 'MpsType'
      DataSource = DataSource
    end
    object dbtxtOverCapacityrate: TDBText
      Left = 561
      Top = 8
      Width = 126
      Height = 12
      AutoSize = True
      DataField = 'OverCapacityrate'
      DataSource = DataSource
    end
  end
  inherited Pnl_Body: TPanel
    Height = 287
    inherited DBGridEh: TDBGridEh
      Height = 287
      FrozenCols = 3
      Columns = <
        Item
          FieldName = 'wcflag'
          PickList.Strings = ()
          Width = 200
          KeyList.Strings = ()
        end
        Item
          FieldName = 'WcCode'
          PickList.Strings = ()
          Width = 79
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'WCName'
          PickList.Strings = ()
          Width = 88
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'modate'
          PickList.Strings = ()
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MoLinedate'
          PickList.Strings = ()
          Width = 78
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'mono'
          PickList.Strings = ()
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MoLineno'
          PickList.Strings = ()
          Title.Caption = '订单行号'
          Width = 53
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Itemflag'
          PickList.Strings = ()
          Width = 200
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemCode'
          PickList.Strings = ()
          Width = 90
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemName'
          PickList.Strings = ()
          Width = 200
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'moqty'
          PickList.Strings = ()
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'mohours'
          PickList.Strings = ()
          Width = 51
          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 = 67
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MpsType'
          PickList.Strings = ()
          KeyList.Strings = ()
        end>
    end
  end
  inherited ActionList: TActionList
    Left = 224
    Top = 168
  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=cAp.ItemCode+'#39' '#39'+it2.ItemName,'
      '        --  mol.ItemCode,'
      '          It2.ItemName,'
      '          OverCapacity=cAp.mohours-it1.Capacityhours,'
      '          OverCapacityrate=convert(varchAr,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 it2(nolock)'
      'where cAp.wcCode*=it1.ItemCode'
      ' ')
    Left = 328
    Top = 217
    object AdoQry_MainWcCode: TStringField
      DisplayLabel = '工作中心代码'
      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
      DisplayLabel = '工作中心名称'
      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
      DisplayLabel = '工作中心标识'
      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
  inherited DataSource: TDataSource
    Left = 368
    Top = 137
  end
  inherited PopuPmenu: TPopuPmenu
    Left = 280
    Top = 145
  end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -