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

📄 mrp_qry_analyzercapacity_d.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Mrp_Qry_AnalyzerCapacity_D: TFrm_Mrp_Qry_AnalyzerCapacity_D
  Left = 96
  Top = 22
  Caption = '能力需求计划表(日/周/月)'
  OnDestroy = FormDestroy
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    inherited ToolBar: TToolBar
      inherited TlBtn_Look: TToolButton
        Visible = False
      end
      inherited TlBtn_Filter: TToolButton
        Visible = False
      end
      inherited TlBtn_Locate: TToolButton
        Visible = False
      end
      inherited TlBtn_Order: TToolButton
        Visible = False
      end
      inherited ToolButton2: 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
      Width = 24
      Caption = '全部'
    end
    inherited Lbl_Order: TLabel
      Width = 48
      Caption = '完工日期'
      Visible = False
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 402
    Height = 39
    object Label2: TLabel
      Left = 12
      Top = 8
      Width = 96
      Height = 12
      Caption = '当前生产订单号:'
    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
    object dbtxtItemflag: TDBText
      Left = 112
      Top = 22
      Width = 78
      Height = 12
      AutoSize = True
      DataField = 'Itemflag'
      DataSource = DataSource
    end
    object Label1: TLabel
      Left = 24
      Top = 22
      Width = 84
      Height = 12
      Caption = '当前物料标识:'
    end
  end
  inherited Pnl_Body: TPanel
    Height = 305
    inherited DBGridEh: TDBGridEh
      Height = 305
      FrozenCols = 4
      Columns = <
        Item
          FieldName = 'MoLinedate'
          PickList.Strings = ()
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'mono'
          PickList.Strings = ()
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MoLineno'
          PickList.Strings = ()
          Title.Caption = '订单行号'
          Width = 52
          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 = 55
          KeyList.Strings = ()
        end
        Item
          FieldName = 'mohours'
          PickList.Strings = ()
          Width = 52
          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 = 62
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MpsType'
          PickList.Strings = ()
          KeyList.Strings = ()
        end>
    end
  end
  inherited AdoQry_Head: TAdoQuery
    ConnectionString = 
      'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
      'User ID=mdrcmrm;Initial Catalog=mdrcmrm;Data Source=NT2;Use Proc' +
      'edure for Prepare=1;Auto Translate=True;Packet Size=4096;Worksta' +
      'tion ID=XYB'
    CurSorType = ctStatic
    SQL.Strings = (
      ' Select   CAp.WcCode,'
      '                      cAp.mono,'
      '                      cAp.MoLineno,'
      '                      mol.MoLinedate,'
      '                      mol.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,'
      '                      mol.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')
    Top = 121
    object AdoQry_HeadWcCode: TStringField
      FieldName = 'WcCode'
      Origin = '#tmp2'
      Size = 16
    end
    object AdoQry_Headmono: TStringField
      DisplayLabel = '生产订单号'
      FieldName = 'mono'
      Origin = '#tmp2'
      Size = 16
    end
    object AdoQry_HeadMoLineno: TIntegerField
      DisplayLabel = '行号'
      FieldName = 'MoLineno'
      Origin = '#tmp2'
    end
    object AdoQry_HeadMoLinedate: TDateTimeField
      DisplayLabel = '完工日期'
      FieldName = 'MoLinedate'
      Origin = '#tmp2'
    end
    object AdoQry_Headmoqty: TFloatField
      DisplayLabel = '加工数量'
      FieldName = 'moqty'
      Origin = '#tmp2'
    end
    object AdoQry_Headmohours: TFloatField
      DisplayLabel = '需求工时'
      FieldName = 'mohours'
      Origin = '#tmp2'
    end
    object AdoQry_HeadMpsType: TStringField
      DisplayLabel = '计划类型'
      FieldName = 'MpsType'
      Origin = '#tmp2'
      Size = 8
    end
    object AdoQry_HeadWCName: TStringField
      FieldName = 'WCName'
      Origin = '#tmp2'
      Size = 60
    end
    object AdoQry_HeadItemCode: TStringField
      DisplayLabel = '物料代码'
      FieldName = 'ItemCode'
      Origin = '#tmp2'
      Size = 16
    end
    object AdoQry_HeadItemName: TStringField
      DisplayLabel = '物料描述'
      FieldName = 'ItemName'
      Origin = '#tmp2'
      Size = 30
    end
    object AdoQry_HeadOverCapacity: TFloatField
      DisplayLabel = '超能力工时'
      FieldName = 'OverCapacity'
      Origin = '#tmp2'
      ReadOnly = True
    end
    object AdoQry_HeadOverCapacityrate: TStringField
      DisplayLabel = '超能力比率'
      FieldName = 'OverCapacityrate'
      Origin = '#tmp2'
      ReadOnly = True
      Size = 31
    end
    object AdoQry_Headwcflag: TStringField
      FieldName = 'wcflag'
      ReadOnly = True
      Size = 77
    end
    object AdoQry_HeadItemflag: TStringField
      DisplayLabel = '物料标识'
      FieldName = 'Itemflag'
      ReadOnly = True
      Size = 77
    end
    object AdoQry_HeadCapacityhours: TFloatField
      DisplayLabel = '额定能力'
      FieldName = 'Capacityhours'
    end
  end
end

⌨️ 快捷键说明

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