📄 ˪-i㦥
字号:
VERSION 5.00
Begin VB.Form Note_FrmNoteEndorse
BorderStyle = 3 'Fixed Dialog
Caption = "应收票据背书"
ClientHeight = 4725
ClientLeft = 45
ClientTop = 330
ClientWidth = 5940
HelpContextID = 20403
Icon = "应收票据_背书.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4725
ScaleWidth = 5940
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.Frame Frame1
Caption = "背书方式"
Height = 975
Index = 1
Left = 4020
TabIndex = 13
Top = 240
Width = 1725
Begin VB.OptionButton OptType
Caption = "冲销应付帐款"
Height = 255
Index = 0
Left = 210
TabIndex = 11
Top = 270
Value = -1 'True
Width = 1455
End
Begin VB.OptionButton OptType
Caption = "其它"
Height = 255
Index = 1
Left = 240
TabIndex = 12
Top = 570
Width = 735
End
End
Begin VB.Frame Frame1
Height = 4215
Index = 0
Left = 60
TabIndex = 15
Top = 30
Width = 5805
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 3
Left = 3660
Picture = "应收票据_背书.frx":1042
Style = 1 'Graphical
TabIndex = 26
Top = 1560
Visible = 0 'False
Width = 300
End
Begin VB.TextBox LrText
Height = 300
Index = 5
Left = 1260
TabIndex = 5
Text = "5"
Top = 2370
Width = 2415
End
Begin VB.TextBox LrText
Height = 300
Index = 2
Left = 1260
TabIndex = 2
Text = "2"
Top = 1140
Width = 2415
End
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 7
Left = 3660
Picture = "应收票据_背书.frx":13CC
Style = 1 'Graphical
TabIndex = 16
Top = 3210
Visible = 0 'False
Width = 300
End
Begin VB.TextBox LrText
Height = 300
Index = 7
Left = 1260
TabIndex = 7
Text = "7"
Top = 3210
Width = 2415
End
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 4
Left = 4530
Picture = "应收票据_背书.frx":1756
Style = 1 'Graphical
TabIndex = 14
Top = 1950
Visible = 0 'False
Width = 300
End
Begin VB.TextBox LrText
Height = 300
Index = 8
Left = 1260
TabIndex = 8
Text = "8"
Top = 3630
Width = 3285
End
Begin VB.TextBox LrText
Height = 300
Index = 4
Left = 1260
TabIndex = 4
Text = "4"
Top = 1950
Width = 3285
End
Begin VB.TextBox LrText
Enabled = 0 'False
Height = 300
Index = 1
Left = 1260
TabIndex = 1
Text = "1"
Top = 690
Width = 2415
End
Begin VB.TextBox LrText
Height = 300
Index = 6
Left = 1260
TabIndex = 6
Text = "6"
Top = 2790
Width = 2415
End
Begin VB.TextBox LrText
Enabled = 0 'False
Height = 300
Index = 0
Left = 1260
TabIndex = 0
Text = "0"
Top = 270
Width = 2415
End
Begin VB.TextBox LrText
Height = 300
Index = 3
Left = 1260
TabIndex = 3
Text = "3"
Top = 1560
Width = 2415
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "背书日期:"
Height = 195
Index = 0
Left = 270
TabIndex = 25
Top = 1620
Width = 765
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "票面金额:"
Height = 195
Index = 11
Left = 270
TabIndex = 24
Top = 750
Width = 765
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "票据编号:"
Height = 195
Index = 2
Left = 270
TabIndex = 23
Top = 330
Width = 765
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "背书金额:"
Height = 195
Index = 1
Left = 270
TabIndex = 22
Top = 2850
Width = 765
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "被背书单位:"
Height = 195
Index = 3
Left = 270
TabIndex = 21
Top = 2040
Width = 945
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "摘要:"
Height = 195
Index = 4
Left = 270
TabIndex = 20
Top = 3690
Width = 405
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "背书科目:"
Height = 195
Index = 5
Left = 270
TabIndex = 19
Top = 3270
Width = 765
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "币别:"
Height = 195
Index = 6
Left = 270
TabIndex = 18
Top = 1200
Width = 405
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "记帐汇率:"
Height = 195
Index = 7
Left = 270
TabIndex = 17
Top = 2430
Width = 765
End
End
Begin VB.CommandButton QxCommand
Caption = "取消(&C)"
Height = 300
Left = 4745
TabIndex = 10
Top = 4350
Width = 1120
End
Begin VB.CommandButton QdCommand
Caption = "确定(&O)"
Height = 300
Left = 3540
TabIndex = 9
Top = 4350
Width = 1120
End
End
Attribute VB_Name = "Note_FrmNoteEndorse"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'******************************************************************
'* 模 块 名 称 :应收票据背书
'* 功 能 描 述 :
'* 程序员姓名 :姜冬梅
'* 最后修改人 :姜冬梅
'* 最后修改时间:2001/12/06
'* 备 注:程序中所有依实际情况自定义部分均用[>> <<]括起
'******************************************************************
Dim Tsxx As String '系统信息提示
Dim Bln_ConVertFlag As Boolean '币种折算方式
Dim Dbl_AccRate As Double '币种记帐汇率
Dim Dbl_Bbje As Double '本币金额
'以下为固定使用变量(文本框)
Dim Textvar() As Variant '存储变体型文本框信息
Dim Textboolean() As Boolean '存储布尔型文本框信息
Dim Textint() As Integer '存储整型文本框信息
Dim Textstr() As String '存储字符型文本框信息
Dim Max_Text_Index As Integer '最大录入文本框索引值
Dim TextGroupCode As String '文本框录入分组编码
Dim TextValiLock As Boolean '文本框失去焦点是否进行有效性控制判断
Dim TextValiJudgeLock() As Boolean '文本框录入有效性判断控制锁
Dim CurTextIndex As Integer '当前文本框索引值
Dim TextChangeLock As Boolean '文本框内容变换控制锁
Dim Bln_Cancel As Boolean '取消按钮信息传递
Private Sub Form_KeyPress(KeyAscii As Integer) '控 制 焦 点 转 移(Fixed)
Dim jdzygs As Integer '控件焦点转移个数
jdzygs = 10
Select Case KeyAscii
Case vbKeyReturn
If Kjjdzy(jdzygs) Then
KeyAscii = 0
End If
Case 39 '屏蔽"'"
KeyAscii = 0
End Select
End Sub
Private Sub Form_Load()
'以下为文本框处理程序(Fixed)
TextGroupCode = "Ar_NoteEndorse"
Call Drwbkxx(TextGroupCode, Textvar(), Textboolean(), Textint(), Textstr()) '读入文本框录入信息
Call Wbkcsh
'[>>初始化查询条件默认值
Call ShowBill
'<<]
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) '查询条件窗体卸载
'查询条件窗体卸载时判断是否因为结果窗体卸载,如是则卸载,否则隐藏
Unload Me
End Sub
Private Sub QdCommand_Click() '确 定
'录入条件有效性判断(Fixed)
If Not Lrtjyxxpd Then
Exit Sub
End If
If SaveBill = True Then
'<<]
Xtfhcs = "1"
Unload Me
End If
End Sub
Private Sub QxCommand_Click() '取消(Fixed)
Xtfhcs = "0"
Unload Me
End Sub
Private Function Lrtjyxxpd() As Boolean '用户录入条件有效性判断
Dim jsqte As Integer
Lrtjyxxpd = False
'对需要进行事后判断的文本框录入内容进行有效性判断 (Fixed)
For jsqte = 0 To Max_Text_Index
If Textint(jsqte, 9) = 0 Or Textint(jsqte, 9) = 2 Then
If Not TextYxxpd(jsqte) Then
Exit Function
End If
End If
Next jsqte
'[>>以下为依据实际情况自定义部分
'<<]以上为依据实际情况自定义部分
Lrtjyxxpd = True
End Function
'*************以下为文本框录入处理程序(固定不变部分)*************'
Private Sub Wbklrwbcl(Index As Integer) '文本框录入事后处理程序
'以下为依据实际情况自定义部分[
'在此填写文本框录入事后处理程序
'如果背书方式为冲应付款,则自动取该供应商对应的科目
If Index = 4 Then
If OptType(0).Value = True And LrText(4).Text <> "" And LrText(7).Text = "" Then
LrText(7).Text = Fun_InputCodeSupplier(LrText(4).Tag, 0) '背书科目
End If
End If
Select Case Index
Case 5 '记帐汇率
TextChangeLock = True
'2.如果用户选择币种为本位币则汇率必须为1,否则汇率不能为零
If Trim(LrText(3).Tag) = XtSCurrCode Then
LrText(5).Text = 1
Else
Call Sub_GetAccRate(LrText(3).Tag, Bln_ConVertFlag, Dbl_AccRate) '取外币记帐汇率
If Dbl_AccRate <> 0 Then
LrText(5).Text = Dbl_AccRate
Else
LrText(5).Text = ""
End If
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -