📄 gl_qry_accountbook4.dfm
字号:
inherited Frm_Gl_Qry_AccountBook4: TFrm_Gl_Qry_AccountBook4
Left = 50
Top = 119
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 = 4
UseMultiTitle = True
Columns = <
Item
FieldName = 'Credencedate'
PickList.Strings = ()
Width = 98
KeyList.Strings = ()
end
Item
FieldName = 'CredenceCodeno'
PickList.Strings = ()
Width = 65
KeyList.Strings = ()
end
Item
FieldName = 'currencyflag'
PickList.Strings = ()
Width = 75
KeyList.Strings = ()
end
Item
FieldName = 'rate'
PickList.Strings = ()
Width = 51
KeyList.Strings = ()
end
Item
FieldName = 'jAmount'
PickList.Strings = ()
KeyList.Strings = ()
end
Item
FieldName = 'jfPrice'
PickList.Strings = ()
Width = 87
KeyList.Strings = ()
end
Item
FieldName = 'jPrice'
PickList.Strings = ()
Width = 99
KeyList.Strings = ()
end
Item
FieldName = 'fdebitBalance'
PickList.Strings = ()
Width = 85
KeyList.Strings = ()
end
Item
FieldName = 'debitBalance'
PickList.Strings = ()
Width = 97
KeyList.Strings = ()
end
Item
FieldName = 'dAmount'
PickList.Strings = ()
KeyList.Strings = ()
end
Item
FieldName = 'dfPrice'
PickList.Strings = ()
Width = 85
KeyList.Strings = ()
end
Item
FieldName = 'dPrice'
PickList.Strings = ()
Width = 94
KeyList.Strings = ()
end
Item
FieldName = 'fcreditBalance'
PickList.Strings = ()
Width = 82
KeyList.Strings = ()
end
Item
FieldName = 'creditBalance'
PickList.Strings = ()
Width = 99
KeyList.Strings = ()
end
Item
FieldName = 'Balancedirection'
PickList.Strings = (
'1 借方'
'2 贷方')
Width = 57
KeyList.Strings = (
'1'
'2')
end
Item
FieldName = 'endAmount'
PickList.Strings = ()
KeyList.Strings = ()
end
Item
FieldName = 'endfPrice'
PickList.Strings = ()
Width = 84
KeyList.Strings = ()
end
Item
FieldName = 'endPrice'
PickList.Strings = ()
Width = 96
KeyList.Strings = ()
end
Item
FieldName = 'endfBalance'
PickList.Strings = ()
Width = 92
KeyList.Strings = ()
end
Item
FieldName = 'endBalance'
PickList.Strings = ()
Width = 94
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'
CurSorType = ctStatic
SQL.Strings = (
'select t1.Credenceid, '
' t2.Gl_Credencelineno as Credencelineno,'
' 0 as flag,'
' convert(varchAr,t1.Credencedate,102 ) as cred' +
'encedate, '
' t1.Characterno+'#39'_'#39'+convert(varchAr,t1.credenc' +
'eno) as CredenceCodeno, '
' t1.tallyflag, '
' t2.docketName, '
' t2.kmCode, '
' t3.kmName, '
' t2.kmCode+'#39' '#39'+t3.kmName as kmflag, '
' case when t2.debitAmount<>0 then t2.Amount el' +
'se 0 end as jAmount,'
' case when t2.creditAmount<>0 then t2.Amount e' +
'lse 0 end as dAmount,'
' case when t2.debitAmount<>0 then (case when t' +
'3.fcurrecycalculate=1 then t2.Price*t2.fCurrencyRate'
' else t2.Price '
' end)'
' else 0 end as jPrice,'
' case when t2.creditAmount<>0 then (case when ' +
't3.fcurrecycalculate=1 then t2.Price*t2.fCurrencyRate'
' else t2.Price '
' end)'
' else 0 end as dPrice,'
' case when t2.debitAmount<>0 then ( case when ' +
't3.fcurrecycalculate=1 then t2.Price else 0 '
' end )'
' else 0 end as jfPrice,'
' case when t2.creditAmount<>0 then ( case when' +
' t3.fcurrecycalculate=1 then t2.Price else 0 '
' end) else 0 end as dfPrice,'
' t2.debitAmount as debitBalance, '
' t2.creditAmount as creditBalance, '
' t3.fcurrecycalculate,'
' t3.fcurrecy as currencyCode, '
' currency.currencyName,'
' t3.fcurrecy+'#39' '#39'+currency.currencyName as curr' +
'encyflag, '
' t2.fCurrencyRate as rate, '
' t2.fdebitAmount as fdebitBalance, '
' t2.fcreditAmount as fcreditBalance, '
' 0 as Balancedirection, '
' convert(float,0) as endAmount,'
' convert(float,0) as endfPrice,'
' convert(float,0) as endPrice,'
' convert(float,0) as endBalance ,'
' convert(float,0) as endfBalance '
' -- into #tmpCredence '
' from Gl_Credenceline t2 '
' join Gl_Credence t1 on t2.Credenceid=t1.Credenceid ' +
' '
' and t1.Credencedate between '#39'2001.11.01 '#39' and '#39'2001' +
'.12.03'#39
' -- +iifstring(include=1,'#39' and t1.tallyflag in(0,1) '#39',' +
'iifstring(include=2,'#39' and t1.tallyflag=1'#39','#39' '#39'))'
' join Gl_AccountSubject t3 on t2.kmCode=t3.kmCode '
' left join Gl_AccountSubjectBalance t4 on t3.kmid=t4.' +
'kmid '
' left join currency on t3.fcurrecy=currency.currencyc' +
'ode')
Left = 184
Top = 257
object AdoQry_MainCredenceCodeno: TStringField
DisplayLabel = '凭证字号'
FieldName = 'CredenceCodeno'
Origin = '#ress'
ReadOnly = True
Size = 33
end
object AdoQry_MainjAmount: TFloatField
DisplayLabel = '借方|数量'
FieldName = 'jAmount'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MaindAmount: TFloatField
DisplayLabel = '贷方|数量'
FieldName = 'dAmount'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MainjPrice: TFloatField
DisplayLabel = '借方|单价(本位币)'
FieldName = 'jPrice'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MaindPrice: TFloatField
DisplayLabel = '贷方|单价(本位币)'
FieldName = 'dPrice'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MainjfPrice: TFloatField
DisplayLabel = '借方|单价(原币)'
FieldName = 'jfPrice'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MaindfPrice: TFloatField
DisplayLabel = '贷方|单价(原币)'
FieldName = 'dfPrice'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_Mainrate: TFloatField
DisplayLabel = '汇率'
FieldName = 'rate'
Origin = '#ress'
end
object AdoQry_MainBalancedirection: TIntegerField
DisplayLabel = '余额方向'
FieldName = 'Balancedirection'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MainendAmount: TFloatField
DisplayLabel = '余额|数量'
FieldName = 'endAmount'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MainendfPrice: TFloatField
DisplayLabel = '余额|单价(原币)'
FieldName = 'endfPrice'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MainendPrice: TFloatField
DisplayLabel = '余额|单价(本位币)'
FieldName = 'endPrice'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MainendBalance: TFloatField
DisplayLabel = '余额|金额(本位币)'
FieldName = 'endBalance'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MainendfBalance: TFloatField
DisplayLabel = '余额|金额(原币)'
FieldName = 'endfBalance'
Origin = '#ress'
ReadOnly = True
end
object AdoQry_MaindebitBalance: TFloatField
DisplayLabel = '借方|金额(本位币)'
FieldName = 'debitBalance'
Origin = '#ress'
end
object AdoQry_MaincreditBalance: TFloatField
DisplayLabel = '贷方|金额(本位币)'
FieldName = 'creditBalance'
Origin = '#ress'
end
object AdoQry_MainfdebitBalance: TFloatField
DisplayLabel = '借方|金额(原币)'
FieldName = 'fdebitBalance'
Origin = '#ress'
end
object AdoQry_MainfcreditBalance: TFloatField
DisplayLabel = '贷方|金额(原币)'
FieldName = 'fcreditBalance'
Origin = '#ress'
end
object AdoQry_Maincurrencyflag: TStringField
DisplayLabel = '货币标识'
FieldName = 'currencyflag'
Origin = '#ress'
ReadOnly = True
Size = 33
end
object AdoQry_MainCredencedate: TStringField
DisplayLabel = '日期'
FieldName = 'Credencedate'
Origin = '#ress'
ReadOnly = True
Size = 30
end
end
inherited DataSource: TDataSource
Left = 336
Top = 249
end
inherited PopuPmenu: TPopuPmenu
Left = 248
Top = 249
end
object AdoQry_tmp1: TAdoQuery
Parameters = <>
Left = 288
Top = 271
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -