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

📄 pm_enter_newfreepoh.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Pm_Enter_NewFreePoH: TFrm_Pm_Enter_NewFreePoH
  Left = 65
  Top = 83
  Caption = '独立采购订单准备'
  ClientWidth = 730
  Position = poDefault
  Windowstate = wsMaximized
  OnDestroy = FormDestroy
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    Width = 730
    inherited ToolBar: TToolBar
      inherited TlBtn_Look: TToolButton
        Enabled = False
        Visible = False
      end
    end
  end
  inherited Pnl_Title: TPanel
    Width = 730
    Caption = '独立采购订单准备'
    inherited Image2: TImage
      Width = 730
    end
  end
  inherited Pnl_Head: TPanel
    Width = 730
    inherited Image1: TImage
      Width = 730
    end
    inherited Lbl_Condition: TLabel
      Width = 90
      Caption = '订单行未全下达 '
    end
    inherited Lbl_Order: TLabel
      Width = 126
      Caption = '采购员代码/采购订单号'
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 416
    Width = 730
    Height = 25
    inherited Image4: TImage
      Width = 730
      Height = 25
    end
    object Label1: TLabel
      Left = 16
      Top = 8
      Width = 72
      Height = 12
      Caption = '采购订单号:'
    end
    object DBText1: TDBText
      Left = 85
      Top = 7
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'PONO'
      DataSource = DataSource
    end
    object Label3: TLabel
      Left = 227
      Top = 8
      Width = 60
      Height = 12
      Caption = '下单日期:'
    end
    object DBText2: TDBText
      Left = 289
      Top = 7
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'PODate'
      DataSource = DataSource
    end
    object Label5: TLabel
      Left = 418
      Top = 8
      Width = 72
      Height = 12
      Caption = '供应商标识:'
    end
    object Lbl_VendorFlag: TLabel
      Left = 487
      Top = 8
      Width = 6
      Height = 12
    end
  end
  inherited Pnl_Body: TPanel
    Width = 730
    Height = 319
    inherited Image3: TImage
      Width = 730
      Height = 319
    end
    inherited DBGridEh: TDBGridEh
      Width = 730
      Height = 319
      FrozenCols = 6
      Columns = <
        Item
          FieldName = 'EmployeeCode'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '采购员代码'
          Width = 75
          KeyList.Strings = ()
        end
        Item
          FieldName = 'EmployeeName'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '采购员姓名'
          Width = 80
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PONO'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '采购订单号'
          Width = 80
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PcNo'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '采购合同号'
          Width = 80
          KeyList.Strings = ()
        end
        Item
          Alignment = taLeftJustify
          FieldName = 'POType'
          PickList.Strings = (
            '普通采购'
            '委外加工'
            '进口采购')
          Title.Alignment = taCenter
          Title.Caption = '订单类型'
          Width = 65
          KeyList.Strings = (
            '0'
            '1'
            '2')
        end
        Item
          Alignment = tArightJustify
          FieldName = 'PODate'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '下单日期'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'VendorCode'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '供应商代码'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'VendorName'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '供应商名称'
          Width = 150
          KeyList.Strings = ()
        end
        Item
          FieldName = 'CurrencyName'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '货币名称'
          Width = 50
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POTAXRATE_PERCENT'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '税率'
          Width = 35
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PORemArk'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '备注'
          Width = 150
          KeyList.Strings = ()
        end>
    end
  end
  inherited AdoQry_Tmp: TAdoQuery
    Left = 533
    Top = 179
  end
  inherited AdoQry_Head: 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 Po.*,Vendor.VendorName, Currency. CurrencyName,'
      '                     Employee.EmployeeName '
      '                 From Po '
      '                      Left Outer Join Currency '
      
        '                           On Po.CurrencyCode= Currency. Currenc' +
        'yCode'
      
        '                      And  GetDate()-15<=PoDate And PoDate<=GetD' +
        'ate()+15'
      '                      Left Outer Join Employee '
      
        '                           On Po.EmployeeCode= Employee.Employee' +
        'Code'
      '                      Left Outer Join Vendor '
      '                           On Po.VendorCode=Vendor.VendorCode'
      '')
    object AdoQry_HeadPONO: TStringField
      FieldName = 'PONO'
      Origin = 'Po'
      Size = 16
    end
    object AdoQry_HeadVendorCode: TStringField
      FieldName = 'VendorCode'
      Origin = 'Po'
      Size = 12
    end
    object AdoQry_HeadPOType: TIntegerField
      FieldName = 'POType'
      Origin = 'Po'
    end
    object AdoQry_HeadPODate: TDateTimeField
      FieldName = 'PODate'
      Origin = 'Po'
      DisplayFormat = 'yyyy.mm.dd'
    end
    object AdoQry_HeadPOTAXRATE_PERCENT: TIntegerField
      FieldName = 'POTAXRATE_PERCENT'
      Origin = 'Po'
    end
    object AdoQry_HeadCURRENCYCode: TStringField
      FieldName = 'CURRENCYCode'
      Origin = 'Po'
      Size = 2
    end
    object AdoQry_HeadEmployeeCode: TStringField
      FieldName = 'EmployeeCode'
      Origin = 'Po'
      Size = 30
    end
    object AdoQry_HeadPORemArk: TStringField
      FieldName = 'PORemArk'
      Origin = 'Po'
      Size = 150
    end
    object AdoQry_HeadPoSpecial: TIntegerField
      FieldName = 'PoSpecial'
      Origin = 'Po'
    end
    object AdoQry_HeadPcNo: TStringField
      FieldName = 'PcNo'
      Origin = 'po'
      Size = 16
    end
    object AdoQry_HeadVendorName: TStringField
      FieldName = 'VendorName'
      Origin = 'Vendor'
      Size = 60
    end
    object AdoQry_HeadCurrencyName: TStringField
      FieldName = 'CurrencyName'
      Origin = 'currency'
      Size = 30
    end
    object AdoQry_HeadEmployeeName: TStringField
      FieldName = 'EmployeeName'
      Origin = 'Employee'
      Size = 60
    end
    object AdoQry_HeadCreateEmpolyeeCode: TStringField
      FieldName = 'CreateEmpolyeeCode'
      Size = 30
    end
  end
  inherited DataSource: TDataSource
    OnDataChange = DataSourceDataChange
    Top = 233
  end
  object DataSource1: TDataSource
    DataSet = AdoQry_Head
    OnDataChange = DataSourceDataChange
    Left = 352
    Top = 233
  end
  object DataSource2: TDataSource
    DataSet = AdoQry_Head
    OnDataChange = DataSourceDataChange
    Left = 456
    Top = 193
  end
end

⌨️ 快捷键说明

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