📄 form29.frm
字号:
End If
If grs.Fields(82) = 0 Then
a83 = ""
Else
a83 = grs.Fields(82)
End If
If grs.Fields(83) = 0 Then
a84 = ""
Else
a84 = grs.Fields(83)
End If
If grs.Fields(84) = 0 Then
a85 = ""
Else
a85 = grs.Fields(84)
End If
If grs.Fields(85) = 0 Then
a86 = ""
Else
a86 = grs.Fields(85)
End If
If grs.Fields(86) = 0 Then
a87 = ""
Else
a87 = grs.Fields(86)
End If
If grs.Fields(87) = 0 Then
a88 = ""
Else
a88 = grs.Fields(87)
End If
If grs.Fields(88) = 0 Then
a89 = ""
Else
a89 = grs.Fields(88)
End If
If grs.Fields(89) = 0 Then
a90 = ""
Else
a90 = grs.Fields(89)
End If
If grs.Fields(90) = 0 Then
a91 = ""
Else
a91 = grs.Fields(90)
End If
If grs.Fields(91) = 0 Then
a92 = ""
Else
a92 = grs.Fields(91)
End If
If grs.Fields(92) = 0 Then
a93 = ""
Else
a93 = grs.Fields(92)
End If
If grs.Fields(93) = 0 Then
a94 = ""
Else
a94 = grs.Fields(93)
End If
If grs.Fields(94) = 0 Then
a95 = ""
Else
a95 = grs.Fields(94)
End If
If grs.Fields(95) = 0 Then
a96 = ""
Else
a96 = grs.Fields(95)
End If
If grs.Fields(96) = 0 Then
a97 = ""
Else
a97 = grs.Fields(96)
End If
If grs.Fields(97) = 0 Then
a98 = ""
Else
a98 = grs.Fields(97)
End If
If grs.Fields(98) = 0 Then
a99 = ""
Else
a99 = grs.Fields(98)
End If
If grs.Fields(99) = 0 Then
a100 = ""
Else
a100 = grs.Fields(99)
End If
If grs.Fields(100) = 0 Then
a101 = ""
Else
a101 = grs.Fields(100)
End If
If grs.Fields(101) = 0 Then
a102 = ""
Else
a102 = grs.Fields(101)
End If
If grs.Fields(102) = 0 Then
a103 = ""
Else
a103 = grs.Fields(102)
End If
If grs.Fields(103) = 0 Then
a104 = ""
Else
a104 = grs.Fields(103)
End If
If grs.Fields(104) = 0 Then
a105 = ""
Else
a105 = grs.Fields(104)
End If
If grs.Fields(105) = 0 Then
a106 = ""
Else
a106 = grs.Fields(105)
End If
If grs.Fields(106) = 0 Then
a107 = ""
Else
a107 = grs.Fields(106)
End If
If grs.Fields(107) = 0 Then
a108 = ""
Else
a108 = grs.Fields(107)
End If
If grs.Fields(108) = 0 Then
a109 = ""
Else
a109 = grs.Fields(108)
End If
If grs.Fields(109) = 0 Then
a110 = ""
Else
a110 = grs.Fields(109)
End If
If grs.Fields(110) = 0 Then
a111 = ""
Else
a111 = grs.Fields(110)
End If
If grs.Fields(111) = 0 Then
a112 = ""
Else
a112 = grs.Fields(111)
End If
If grs.Fields(112) = 0 Then
a113 = ""
Else
a113 = grs.Fields(112)
End If
If grs.Fields(113) = 0 Then
a114 = ""
Else
a114 = grs.Fields(113)
End If
If grs.Fields(114) = 0 Then
a115 = ""
Else
a115 = grs.Fields(114)
End If
If grs.Fields(115) = 0 Then
a116 = ""
Else
a116 = grs.Fields(115)
End If
If grs.Fields(116) = 0 Then
a117 = ""
Else
a117 = grs.Fields(116)
End If
If grs.Fields(117) = 0 Then
a118 = ""
Else
a118 = grs.Fields(117)
End If
If grs.Fields(118) = 0 Then
a119 = ""
Else
a119 = grs.Fields(118)
End If
If grs.Fields(119) = 0 Then
a120 = ""
Else
a120 = grs.Fields(119)
End If
If grs.Fields(120) = 0 Then
a121 = ""
Else
a121 = grs.Fields(120)
End If
If grs.Fields(121) = 0 Then
a122 = ""
Else
a122 = grs.Fields(121)
End If
If grs.Fields(122) = 0 Then
a123 = ""
Else
a123 = grs.Fields(122)
End If
If grs.Fields(123) = 1 Then
a124 = ""
Else
a124 = grs.Fields(123)
End If
If grs.Fields(124) = 0 Then
a125 = ""
Else
a125 = grs.Fields(124)
End If
If grs.Fields(125) = 0 Then
a126 = ""
Else
a126 = grs.Fields(125)
End If
If grs.Fields(126) = 0 Then
a127 = ""
Else
a127 = grs.Fields(126)
End If
If grs.Fields(127) = 0 Then
a128 = ""
Else
a128 = grs.Fields(127)
End If
If grs.Fields(128) = 0 Then '共计为空,预收款也必为空
a129 = ""
Else
a129 = grs.Fields(128)
End If
If grs.Fields(129) = 0 Then
a130 = username
Else
a130 = grs.Fields(129)
End If
If grs.Fields(130) = 0 Then
a131 = ""
Else
a131 = grs.Fields(130)
End If
Form30.Text1.Text = a1
Form30.Text2.Text = a2
Form30.Text3.Text = a3
Form30.Combo1.Text = a4
Form30.Combo2.Text = a5
Form30.Text6.Text = a6
Form30.Text7.Text = a7
Form30.Text8.Text = a8
Form30.Text9.Text = a9
Form30.Text10.Text = a10
Form30.Combo3.Text = a11
Form30.Combo4.Text = a12
Form30.Text13.Text = a13
Form30.Text14.Text = a14
Form30.Text15.Text = a15
Form30.Text16.Text = a16
Form30.Text17.Text = a17
Form30.Combo5.Text = a18
Form30.Combo6.Text = a19
Form30.Text20.Text = a20
Form30.Text21.Text = a21
Form30.Text22.Text = a22
Form30.Text23.Text = a23
Form30.Text24.Text = a24
Form30.Combo7.Text = a25
Form30.Combo8.Text = a26
Form30.Text27.Text = a27
Form30.Text28.Text = a28
Form30.Text29.Text = a29
Form30.Text30.Text = a30
Form30.Text31.Text = a31
Form30.Combo9.Text = a32
Form30.Combo10.Text = a33
Form30.Text34.Text = a34
Form30.Text35.Text = a35
Form30.Text36.Text = a36
Form30.Text37.Text = a37
Form30.Text38.Text = a38
Form30.Combo11.Text = a39
Form30.Combo12.Text = a40
Form30.Text41.Text = a41
Form30.Text42.Text = a42
Form30.Text43.Text = a43
Form30.Text44.Text = a44
Form30.Text45.Text = a45
Form30.Combo13.Text = a46
Form30.Combo14.Text = a47
Form30.Text48.Text = a48
Form30.Text49.Text = a49
Form30.Text50.Text = a50
Form30.Text51.Text = a51
Form30.Text52.Text = a52
Form30.Text53.Text = a53
Form30.Combo19.Text = a54
Form30.Text55.Text = a55
Form30.Text56.Text = a56
Form30.Text57.Text = a57
Form30.Combo20.Text = a58
Form30.Text59.Text = a59
Form30.Text60.Text = a60
Form30.Text61.Text = a61
Form30.Text62.Text = a62
Form30.Text63.Text = a63
Form30.Text64.Text = a64
Form30.Text65.Text = a65
Form30.Text66.Text = a66
Form30.Text67.Text = a67
Form30.Text68.Text = a68
Form30.Text69.Text = a69
Form30.Text70.Text = a70
Form30.Combo15.Text = a71
Form30.Combo16.Text = a72
Form30.Text73.Text = a73
Form30.Text74.Text = a74
Form30.Text75.Text = a75
Form30.Text76.Text = a76
Form30.Text77.Text = a77
Form30.Combo17.Text = a78
Form30.Combo18.Text = a79
Form30.Text80.Text = a80
Form30.Text81.Text = a81
Form30.Text82.Text = a82
Form30.Text83.Text = a83
Form30.Text84.Text = a84
Form30.Combo21.Text = a85
Form30.Text86.Text = a86
Form30.Text87.Text = a87
Form30.Text88.Text = a88
Form30.Text89.Text = a89
Form30.Combo22.Text = a90
Form30.Text91.Text = a91
Form30.Text92.Text = a92
Form30.Text93.Text = a93
Form30.Text94.Text = a94
Form30.Combo23.Text = a95
Form30.Text96.Text = a96
Form30.Text97.Text = a97
Form30.Text98.Text = a98
Form30.Text99.Text = a99
Form30.Combo24.Text = a100
Form30.Text101.Text = a101
Form30.Text102.Text = a102
Form30.Text103.Text = a103
Form30.Text104.Text = a104
Form30.Combo25.Text = a105
Form30.Text106.Text = a106
Form30.Text107.Text = a107
Form30.Text108.Text = a108
Form30.Text109.Text = a109
Form30.Combo26.Text = a110
Form30.Text111.Text = a111
Form30.Text112.Text = a112
Form30.Text113.Text = a113
Form30.Text114.Text = a114
Form30.Text18.Text = a115
Form30.Text4.Text = a116
Form30.Text19.Text = a117
Form30.Text5.Text = a118
Form30.Text25.Text = a119
Form30.Text11.Text = a120
Form30.Text26.Text = a121
Form30.Text12.Text = a70
Form30.Text33.Text = a123
Form30.Text32.Text = a124
Form30.Text40.Text = a125
Form30.Text39.Text = a126
Form30.Text46.Text = a127
Form30.Text47.Text = a128
Form30.Text115.Text = a129
Form30.Text58.Text = a130
Form30.Text54.Text = a131
p1 = grs.Fields(52).Value
p2 = grs.Fields(128).Value
p3 = Val(p1) - Val(p2)
If p3 = "0" Then
Form30.Text116.Text = ""
Else
Form30.Text116.Text = p3
End If
End If
grs.MoveNext
Next
grs.Close
End If
Next
Dim msql, msql1, msql2 As String
Form30.ListView1.ListItems.Clear
msql6 = "select 单位名称,工程编号, 时间,总计累计 from 定线 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 竣工 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 地籍 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 松北 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 计划内 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%'"
msql = msql6 & "UNION ALL select 单位名称,工程编号, 时间,总计累计 from 零星验字工程 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 建筑物位置测定 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%'"
grs.CursorLocation = adUseClient
grs.Open msql, gconn, 1, 1
For i = 1 To grs.RecordCount
Form30.ListView1.ListItems.Add , , grs("单位名称").Value
Form30.ListView1.ListItems.Item(i).SubItems(1) = grs("工程编号").Value
Form30.ListView1.ListItems.Item(i).SubItems(2) = grs("时间").Value
Form30.ListView1.ListItems.Item(i).SubItems(3) = grs("总计累计").Value
grs.MoveNext
Next
grs.Close
Form30.ListView2.ListItems.Clear
msql1 = "select sp_rws_num, sp_fromman_dept,sp_fromman, sp_opinion,sp_posttime ,sp_xz from 流程记录 where sp_rws_num='" & splc & "'order by sp_posttime DESC"
grs.CursorLocation = adUseClient
grs.Open msql1, gconn, 1, 1
For i = 1 To grs.RecordCount
Form30.ListView2.ListItems.Add , , grs("sp_fromman_dept").Value
Form30.ListView2.ListItems.Item(i).SubItems(1) = grs("sp_fromman").Value
Form30.ListView2.ListItems.Item(i).SubItems(2) = grs("sp_opinion").Value
Form30.ListView2.ListItems.Item(i).SubItems(3) = grs("sp_posttime").Value
Form30.ListView2.ListItems.Item(i).SubItems(4) = grs("sp_xz").Value
grs.MoveNext
Next
grs.Close
If a131 = "" Then
Form30.Text54.Enabled = True
Else
Form30.Text54.Enabled = False
End If
Form30.Show vbModal
Exit Sub
End If
Next
End Sub
Private Sub Timer1_Timer()
Dim i As Integer
i = i + 1
If i = 5 Then
Form29.ListView1.ListItems.Clear
For Each mytab In gcat.Tables
a = a + 1
lty11 = mytab.Name
lty12 = left(lty11, 2)
If lty12 <> "sy" And lty12 <> "dt" And lty12 <> "my" And lty12 <> "密码" And lty12 <> "流程" Then
grs.CursorLocation = adUseClient
grs.Open lty11, gconn, adOpenKeyset, adLockPessimistic
For n = 1 To grs.RecordCount
If grs.Fields(129).Value = "0" Then
b = b + 1
Form29.ListView1.ListItems.Add , , grs.Fields(0).Value
Form29.ListView1.ListItems.Item(b).SubItems(1) = grs.Fields(1).Value
Form29.ListView1.ListItems.Item(b).SubItems(2) = grs.Fields(2).Value
Form29.ListView1.ListItems.Item(b).SubItems(3) = grs.Fields(52).Value
Form29.ListView1.ListItems.Item(b).SubItems(4) = grs.Fields(53).Value
End If
grs.MoveNext
Next
grs.Close
End If
Next
If Form29.ListView1.ListItems.Count <> "0" Then
Form29.ListView1.ListItems(Form29.ListView1.ListItems.Count).Selected = True
Form29.ListView1.SelectedItem.EnsureVisible
Form29.ListView1.Refresh
End If
i = 0
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -