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

📄 gl_qry_accountbook2.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Gl_Qry_AccountBook2: TFrm_Gl_Qry_AccountBook2
  Left = 187
  Top = 109
  Caption = '明细分类账'
  PixelsPerInch = 96
  TextHeight = 12
  inherited Pnl_Title: TPanel
    Caption = '明细分类账'
  end
  inherited Pnl_Head: TPanel
    Height = 62
    inherited Image1: TImage
      Height = 62
    end
    inherited Lbl_OrderTitle: TLabel
      Top = 22
    end
    inherited Lbl_Order: TLabel
      Top = 22
      Width = 24
      Caption = '日期'
    end
    object Label1: TLabel
      Left = 17
      Top = 41
      Width = 84
      Height = 12
      Caption = '选择科目代码:'
      TransParent = True
    end
    object edt_kmCode: TLinkEdit
      Left = 100
      Top = 38
      Width = 80
      Height = 20
      LinkStyle = lsEllipsis
      TabOrder = 0
      OnButtonClick = edt_kmCodeButtonClick
      OnExit = edt_kmCodeExit
      OnKeyDown = edt_kmCodeKeyDown
    end
    object edt_kmName: TEdit
      Left = 181
      Top = 38
      Width = 121
      Height = 20
      Enabled = False
      TabOrder = 1
    end
  end
  inherited Pnl_Body: TPanel
    Top = 119
    Height = 284
    inherited Image3: TImage
      Height = 284
    end
    inherited DBGridEh: TDBGridEh
      Height = 284
      FrozenCols = 1
      Columns = <
        Item
          FieldName = 'Credencedate'
          PickList.Strings = ()
          Width = 96
          KeyList.Strings = ()
        end
        Item
          FieldName = 'CredenceCodeno'
          PickList.Strings = ()
          Width = 59
          KeyList.Strings = ()
        end
        Item
          FieldName = 'docketName'
          PickList.Strings = ()
          Width = 111
          KeyList.Strings = ()
        end
        Item
          FieldName = 'kmCode'
          PickList.Strings = ()
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'kmName'
          PickList.Strings = ()
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'kmflag'
          PickList.Strings = ()
          Width = 100
          KeyList.Strings = ()
        end
        Item
          FieldName = 'debitBalance'
          PickList.Strings = ()
          KeyList.Strings = ()
        end
        Item
          FieldName = 'creditBalance'
          PickList.Strings = ()
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Balancedirection'
          PickList.Strings = (
            '   '
            '1 借方'
            '2 贷方')
          KeyList.Strings = (
            '0'
            '1'
            '2')
        end
        Item
          FieldName = 'Balance'
          PickList.Strings = ()
          Width = 56
          KeyList.Strings = ()
        end>
    end
  end
  inherited ActionList: TActionList
    Left = 208
    Top = 208
  end
  inherited AdoQry_Main: TAdoQuery
    ConnectionString = 
      'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
      'User ID=mdrcmrm;Initial Catalog=mdysjmrm;Data Source=192.168.0.1' +
      '51;Use procedure for Prepare=1;Auto Translate=True;Packet Size=4' +
      '096;Workstation ID=XYB'
    SQL.Strings = (
      'select convert(varchAr,t1.Credencedate,102) as Credencedate,'
      
        '       t1.Characterno+'#39'_'#39'+convert(varchAr,t1.Credenceno) as cred' +
        'enceCodeno,'
      '       t2.docketName,'
      '       t2.kmCode,'
      '       t3.kmName,'
      '       t2.kmCode+'#39' '#39'+t3.kmName as kmflag,'
      
        '       sum(case t3.fcurrecycalculate when 0 then debitAmount els' +
        'e fdebitAmount end)  as debitBalance,'
      
        '       sum(case t3.fcurrecycalculate when 0 then creditAmount el' +
        'se fcreditAmount end)  as creditBalance,'
      '       t3.kmproperty as Balancedirection,'
      '       convert(float,0) as Balance'
      'from  Gl_Credenceline t2'
      'join Gl_Credence t1 on t2.Credenceid=t1.Credenceid'
      
        'left join Gl_AccountSubject t3 on t2.kmCode=t3.kmCode           ' +
        '  '
      'group by t1.Credencedate,t1.Characterno,t1.Credenceno,'
      't2.docketName,t2.kmCode,t3.kmName,t3.kmproperty')
    Left = 184
    Top = 257
    object AdoQry_MaindocketName: TStringField
      DisplayLabel = '摘要'
      FieldName = 'docketName'
      Origin = '#ress'
      Size = 60
    end
    object AdoQry_MainkmCode: TStringField
      DisplayLabel = '对反科目代码'
      FieldName = 'kmCode'
      Origin = '#ress'
      Size = 15
    end
    object AdoQry_MainkmName: TStringField
      DisplayLabel = '对反科目名称'
      FieldName = 'kmName'
      Origin = '#ress'
      Size = 40
    end
    object AdoQry_MainBalance: TFloatField
      DisplayLabel = '余额'
      FieldName = 'Balance'
      Origin = '#ress'
      ReadOnly = True
    end
    object AdoQry_Mainkmflag: TStringField
      DisplayLabel = '对反科目'
      FieldName = 'kmflag'
      Origin = '#ress'
      ReadOnly = True
      Size = 56
    end
    object AdoQry_MainCredenceCodeno: TStringField
      DisplayLabel = '凭证字号'
      FieldName = 'CredenceCodeno'
      Origin = '#ress'
      ReadOnly = True
      Size = 33
    end
    object AdoQry_MainBalancedirection: TIntegerField
      DisplayLabel = '余额方向'
      FieldName = 'Balancedirection'
      Origin = '#ress'
    end
    object AdoQry_MaindebitBalance: TFloatField
      DisplayLabel = '借方金额'
      FieldName = 'debitBalance'
      Origin = '#ress'
      ReadOnly = True
    end
    object AdoQry_MaincreditBalance: TFloatField
      DisplayLabel = '贷方金额'
      FieldName = 'creditBalance'
      Origin = '#ress'
      ReadOnly = True
    end
    object AdoQry_MainCredencedate: TStringField
      DisplayLabel = '日期'
      FieldName = 'Credencedate'
      Origin = '#ress'
      ReadOnly = True
      Size = 30
    end
  end
  inherited DataSource: TDataSource
    Left = 336
    Top = 145
  end
  object AdoQry_tmp1: TAdoQuery
    Parameters = <>
    Left = 288
    Top = 271
  end
end

⌨️ 快捷键说明

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